72 ioat_getinfo, /* devo_getinfo */
73 nulldev, /* devo_identify */
74 nulldev, /* devo_probe */
75 ioat_attach, /* devo_attach */
76 ioat_detach, /* devo_detach */
77 nodev, /* devo_reset */
78 &ioat_cb_ops, /* devo_cb_ops */
79 NULL, /* devo_bus_ops */
80 NULL, /* devo_power */
81 ioat_quiesce, /* devo_quiesce */
82 };
83
84 static struct modldrv ioat_modldrv = {
85 &mod_driverops, /* Type of module. This one is a driver */
86 "ioat driver", /* Name of the module. */
87 &ioat_dev_ops, /* driver ops */
88 };
89
90 static struct modlinkage ioat_modlinkage = {
91 MODREV_1,
92 (void *) &ioat_modldrv,
93 NULL
94 };
95
96
97 void *ioat_statep;
98
99 static int ioat_chip_init(ioat_state_t *state);
100 static void ioat_chip_fini(ioat_state_t *state);
101 static int ioat_drv_init(ioat_state_t *state);
102 static void ioat_drv_fini(ioat_state_t *state);
103 static uint_t ioat_isr(caddr_t parm);
104 static void ioat_intr_enable(ioat_state_t *state);
105 static void ioat_intr_disable(ioat_state_t *state);
106 void ioat_detach_finish(ioat_state_t *state);
107
108
109 ddi_device_acc_attr_t ioat_acc_attr = {
110 DDI_DEVICE_ATTR_V0, /* devacc_attr_version */
111 DDI_NEVERSWAP_ACC, /* devacc_attr_endian_flags */
112 DDI_STORECACHING_OK_ACC, /* devacc_attr_dataorder */
113 DDI_DEFAULT_ACC /* devacc_attr_access */
|
72 ioat_getinfo, /* devo_getinfo */
73 nulldev, /* devo_identify */
74 nulldev, /* devo_probe */
75 ioat_attach, /* devo_attach */
76 ioat_detach, /* devo_detach */
77 nodev, /* devo_reset */
78 &ioat_cb_ops, /* devo_cb_ops */
79 NULL, /* devo_bus_ops */
80 NULL, /* devo_power */
81 ioat_quiesce, /* devo_quiesce */
82 };
83
84 static struct modldrv ioat_modldrv = {
85 &mod_driverops, /* Type of module. This one is a driver */
86 "ioat driver", /* Name of the module. */
87 &ioat_dev_ops, /* driver ops */
88 };
89
90 static struct modlinkage ioat_modlinkage = {
91 MODREV_1,
92 { (void *) &ioat_modldrv, NULL }
93 };
94
95
96 void *ioat_statep;
97
98 static int ioat_chip_init(ioat_state_t *state);
99 static void ioat_chip_fini(ioat_state_t *state);
100 static int ioat_drv_init(ioat_state_t *state);
101 static void ioat_drv_fini(ioat_state_t *state);
102 static uint_t ioat_isr(caddr_t parm);
103 static void ioat_intr_enable(ioat_state_t *state);
104 static void ioat_intr_disable(ioat_state_t *state);
105 void ioat_detach_finish(ioat_state_t *state);
106
107
108 ddi_device_acc_attr_t ioat_acc_attr = {
109 DDI_DEVICE_ATTR_V0, /* devacc_attr_version */
110 DDI_NEVERSWAP_ACC, /* devacc_attr_endian_flags */
111 DDI_STORECACHING_OK_ACC, /* devacc_attr_dataorder */
112 DDI_DEFAULT_ACC /* devacc_attr_access */
|