485 0, /* refcnt */
486 scsa2usb_info, /* info */
487 nulldev, /* identify */
488 nulldev, /* probe */
489 scsa2usb_attach, /* attach */
490 scsa2usb_detach, /* detach */
491 nodev, /* reset */
492 &scsa2usb_cbops, /* driver operations */
493 NULL, /* bus operations */
494 scsa2usb_power, /* power */
495 ddi_quiesce_not_needed, /* quiesce */
496 };
497
498 static struct modldrv modldrv = {
499 &mod_driverops, /* Module type. This one is a driver */
500 "SCSA to USB Driver", /* Name of the module. */
501 &scsa2usb_ops, /* driver ops */
502 };
503
504 static struct modlinkage modlinkage = {
505 MODREV_1, (void *)&modldrv, NULL
506 };
507
508 /* event support */
509 static usb_event_t scsa2usb_events = {
510 scsa2usb_disconnect_event_cb,
511 scsa2usb_reconnect_event_cb,
512 NULL, NULL
513 };
514
515 int
516 _init(void)
517 {
518 int rval;
519
520 if (((rval = ddi_soft_state_init(&scsa2usb_statep,
521 sizeof (scsa2usb_state_t), SCSA2USB_INITIAL_ALLOC)) != 0)) {
522
523 return (rval);
524 }
525
|
485 0, /* refcnt */
486 scsa2usb_info, /* info */
487 nulldev, /* identify */
488 nulldev, /* probe */
489 scsa2usb_attach, /* attach */
490 scsa2usb_detach, /* detach */
491 nodev, /* reset */
492 &scsa2usb_cbops, /* driver operations */
493 NULL, /* bus operations */
494 scsa2usb_power, /* power */
495 ddi_quiesce_not_needed, /* quiesce */
496 };
497
498 static struct modldrv modldrv = {
499 &mod_driverops, /* Module type. This one is a driver */
500 "SCSA to USB Driver", /* Name of the module. */
501 &scsa2usb_ops, /* driver ops */
502 };
503
504 static struct modlinkage modlinkage = {
505 MODREV_1, { (void *)&modldrv, NULL }
506 };
507
508 /* event support */
509 static usb_event_t scsa2usb_events = {
510 scsa2usb_disconnect_event_cb,
511 scsa2usb_reconnect_event_cb,
512 NULL, NULL
513 };
514
515 int
516 _init(void)
517 {
518 int rval;
519
520 if (((rval = ddi_soft_state_init(&scsa2usb_statep,
521 sizeof (scsa2usb_state_t), SCSA2USB_INITIAL_ALLOC)) != 0)) {
522
523 return (rval);
524 }
525
|