206 nodev, /* devo_reset */
207 &(cb_consms_ops), /* devo_cb_ops */
208 (struct bus_ops *)NULL, /* devo_bus_ops */
209 NULL, /* devo_power */
210 ddi_quiesce_not_needed, /* devo_quiesce */
211 };
212
213
214 /*
215 * Module linkage information for the kernel.
216 */
217
218 static struct modldrv modldrv = {
219 &mod_driverops, /* Type of module. This one is a pseudo driver */
220 "Mouse Driver for Sun 'consms' 5.57",
221 &consms_ops, /* driver ops */
222 };
223
224 static struct modlinkage modlinkage = {
225 MODREV_1,
226 (void *)&modldrv,
227 NULL
228 };
229
230 int
231 _init(void)
232 {
233 int error;
234
235 mutex_init(&consmslock, NULL, MUTEX_DRIVER, NULL);
236 mutex_init(&consms_msg_lock, NULL, MUTEX_DRIVER, NULL);
237 error = mod_install(&modlinkage);
238 if (error != 0) {
239 mutex_destroy(&consmslock);
240 mutex_destroy(&consms_msg_lock);
241 }
242 return (error);
243 }
244
245 int
246 _fini(void)
247 {
|
206 nodev, /* devo_reset */
207 &(cb_consms_ops), /* devo_cb_ops */
208 (struct bus_ops *)NULL, /* devo_bus_ops */
209 NULL, /* devo_power */
210 ddi_quiesce_not_needed, /* devo_quiesce */
211 };
212
213
214 /*
215 * Module linkage information for the kernel.
216 */
217
218 static struct modldrv modldrv = {
219 &mod_driverops, /* Type of module. This one is a pseudo driver */
220 "Mouse Driver for Sun 'consms' 5.57",
221 &consms_ops, /* driver ops */
222 };
223
224 static struct modlinkage modlinkage = {
225 MODREV_1,
226 { (void *)&modldrv, NULL }
227 };
228
229 int
230 _init(void)
231 {
232 int error;
233
234 mutex_init(&consmslock, NULL, MUTEX_DRIVER, NULL);
235 mutex_init(&consms_msg_lock, NULL, MUTEX_DRIVER, NULL);
236 error = mod_install(&modlinkage);
237 if (error != 0) {
238 mutex_destroy(&consmslock);
239 mutex_destroy(&consms_msg_lock);
240 }
241 return (error);
242 }
243
244 int
245 _fini(void)
246 {
|