338 ddi_getinfo_1to1, /* info */
339 nulldev, /* identify */
340 NULL, /* probe */
341 ata_attach, /* attach */
342 ata_detach, /* detach */
343 ata_devo_reset, /* reset */
344 &ata_cb_ops, /* driver operations */
345 NULL, /* bus operations */
346 ata_power, /* power */
347 ata_quiesce /* quiesce */
348 };
349
350 /* driver loadable module wrapper */
351 static struct modldrv modldrv = {
352 &mod_driverops, /* Type of module. This one is a driver */
353 "ATA AT-bus attachment disk controller Driver", /* module name */
354 &ata_ops, /* driver ops */
355 };
356
357 static struct modlinkage modlinkage = {
358 MODREV_1, (void *)&modldrv, NULL
359 };
360
361 #ifdef ATA_DEBUG
362 int ata_debug_init = FALSE;
363 int ata_debug_attach = FALSE;
364
365 int ata_debug = ADBG_FLAG_ERROR
366 /* | ADBG_FLAG_ARQ */
367 /* | ADBG_FLAG_INIT */
368 /* | ADBG_FLAG_TRACE */
369 /* | ADBG_FLAG_TRANSPORT */
370 /* | ADBG_FLAG_WARN */
371 ;
372 #endif
373
374 int
375 _init(void)
376 {
377 int err;
378
|
338 ddi_getinfo_1to1, /* info */
339 nulldev, /* identify */
340 NULL, /* probe */
341 ata_attach, /* attach */
342 ata_detach, /* detach */
343 ata_devo_reset, /* reset */
344 &ata_cb_ops, /* driver operations */
345 NULL, /* bus operations */
346 ata_power, /* power */
347 ata_quiesce /* quiesce */
348 };
349
350 /* driver loadable module wrapper */
351 static struct modldrv modldrv = {
352 &mod_driverops, /* Type of module. This one is a driver */
353 "ATA AT-bus attachment disk controller Driver", /* module name */
354 &ata_ops, /* driver ops */
355 };
356
357 static struct modlinkage modlinkage = {
358 MODREV_1, { (void *)&modldrv, NULL }
359 };
360
361 #ifdef ATA_DEBUG
362 int ata_debug_init = FALSE;
363 int ata_debug_attach = FALSE;
364
365 int ata_debug = ADBG_FLAG_ERROR
366 /* | ADBG_FLAG_ARQ */
367 /* | ADBG_FLAG_INIT */
368 /* | ADBG_FLAG_TRACE */
369 /* | ADBG_FLAG_TRANSPORT */
370 /* | ADBG_FLAG_WARN */
371 ;
372 #endif
373
374 int
375 _init(void)
376 {
377 int err;
378
|