221 hid_info, /* info */
222 nulldev, /* identify */
223 nulldev, /* probe */
224 hid_attach, /* attach */
225 hid_detach, /* detach */
226 nodev, /* reset */
227 &hid_cb_ops, /* driver operations */
228 NULL, /* bus operations */
229 hid_power, /* power */
230 ddi_quiesce_not_needed, /* quiesce */
231 };
232
233 static struct modldrv hidmodldrv = {
234 &mod_driverops,
235 "USB HID Client Driver",
236 &hid_ops /* driver ops */
237 };
238
239 static struct modlinkage modlinkage = {
240 MODREV_1,
241 &hidmodldrv,
242 NULL,
243 };
244
245 static usb_event_t hid_events = {
246 hid_disconnect_event_callback,
247 hid_restore_state_event_callback,
248 NULL,
249 NULL,
250 };
251
252
253 int
254 _init(void)
255 {
256 int rval;
257
258 if (((rval = ddi_soft_state_init(&hid_statep, sizeof (hid_state_t),
259 HID_INITIAL_SOFT_SPACE)) != 0)) {
260
261 return (rval);
262 }
|
221 hid_info, /* info */
222 nulldev, /* identify */
223 nulldev, /* probe */
224 hid_attach, /* attach */
225 hid_detach, /* detach */
226 nodev, /* reset */
227 &hid_cb_ops, /* driver operations */
228 NULL, /* bus operations */
229 hid_power, /* power */
230 ddi_quiesce_not_needed, /* quiesce */
231 };
232
233 static struct modldrv hidmodldrv = {
234 &mod_driverops,
235 "USB HID Client Driver",
236 &hid_ops /* driver ops */
237 };
238
239 static struct modlinkage modlinkage = {
240 MODREV_1,
241 { &hidmodldrv, NULL }
242 };
243
244 static usb_event_t hid_events = {
245 hid_disconnect_event_callback,
246 hid_restore_state_event_callback,
247 NULL,
248 NULL,
249 };
250
251
252 int
253 _init(void)
254 {
255 int rval;
256
257 if (((rval = ddi_soft_state_init(&hid_statep, sizeof (hid_state_t),
258 HID_INITIAL_SOFT_SPACE)) != 0)) {
259
260 return (rval);
261 }
|