125 opattach, /* attach */
126 opdetach, /* detach */
127 nodev, /* reset */
128 &openeepr_cb_ops, /* driver operations */
129 NULL, /* bus operations */
130 NULL, /* power */
131 ddi_quiesce_not_needed, /* quiesce */
132 };
133
134 /*
135 * Module linkage information for the kernel.
136 */
137 static struct modldrv modldrv = {
138 &mod_driverops,
139 "OPENPROM/NVRAM Driver",
140 &openeepr_ops
141 };
142
143 static struct modlinkage modlinkage = {
144 MODREV_1,
145 &modldrv,
146 NULL
147 };
148
149 int
150 _init(void)
151 {
152 int error;
153
154 mutex_init(&oprom_lock, NULL, MUTEX_DRIVER, NULL);
155
156 error = mod_install(&modlinkage);
157 if (error != 0) {
158 mutex_destroy(&oprom_lock);
159 return (error);
160 }
161
162 return (0);
163 }
164
165 int
166 _info(struct modinfo *modinfop)
|
125 opattach, /* attach */
126 opdetach, /* detach */
127 nodev, /* reset */
128 &openeepr_cb_ops, /* driver operations */
129 NULL, /* bus operations */
130 NULL, /* power */
131 ddi_quiesce_not_needed, /* quiesce */
132 };
133
134 /*
135 * Module linkage information for the kernel.
136 */
137 static struct modldrv modldrv = {
138 &mod_driverops,
139 "OPENPROM/NVRAM Driver",
140 &openeepr_ops
141 };
142
143 static struct modlinkage modlinkage = {
144 MODREV_1,
145 { &modldrv, NULL }
146 };
147
148 int
149 _init(void)
150 {
151 int error;
152
153 mutex_init(&oprom_lock, NULL, MUTEX_DRIVER, NULL);
154
155 error = mod_install(&modlinkage);
156 if (error != 0) {
157 mutex_destroy(&oprom_lock);
158 return (error);
159 }
160
161 return (0);
162 }
163
164 int
165 _info(struct modinfo *modinfop)
|