164 0, /* devo_refcnt */
165 NULL, /* devo_getinfo */
166 nulldev, /* devo_identify */
167 nulldev, /* devo_probe */
168 igb_attach, /* devo_attach */
169 igb_detach, /* devo_detach */
170 nodev, /* devo_reset */
171 &igb_cb_ops, /* devo_cb_ops */
172 NULL, /* devo_bus_ops */
173 ddi_power, /* devo_power */
174 igb_quiesce, /* devo_quiesce */
175 };
176
177 static struct modldrv igb_modldrv = {
178 &mod_driverops, /* Type of module. This one is a driver */
179 ident, /* Discription string */
180 &igb_dev_ops, /* driver ops */
181 };
182
183 static struct modlinkage igb_modlinkage = {
184 MODREV_1, &igb_modldrv, NULL
185 };
186
187 /* Access attributes for register mapping */
188 ddi_device_acc_attr_t igb_regs_acc_attr = {
189 DDI_DEVICE_ATTR_V1,
190 DDI_STRUCTURE_LE_ACC,
191 DDI_STRICTORDER_ACC,
192 DDI_FLAGERR_ACC
193 };
194
195 #define IGB_M_CALLBACK_FLAGS \
196 (MC_IOCTL | MC_GETCAPAB | MC_SETPROP | MC_GETPROP | MC_PROPINFO)
197
198 static mac_callbacks_t igb_m_callbacks = {
199 IGB_M_CALLBACK_FLAGS,
200 igb_m_stat,
201 igb_m_start,
202 igb_m_stop,
203 igb_m_promisc,
204 igb_m_multicst,
|
164 0, /* devo_refcnt */
165 NULL, /* devo_getinfo */
166 nulldev, /* devo_identify */
167 nulldev, /* devo_probe */
168 igb_attach, /* devo_attach */
169 igb_detach, /* devo_detach */
170 nodev, /* devo_reset */
171 &igb_cb_ops, /* devo_cb_ops */
172 NULL, /* devo_bus_ops */
173 ddi_power, /* devo_power */
174 igb_quiesce, /* devo_quiesce */
175 };
176
177 static struct modldrv igb_modldrv = {
178 &mod_driverops, /* Type of module. This one is a driver */
179 ident, /* Discription string */
180 &igb_dev_ops, /* driver ops */
181 };
182
183 static struct modlinkage igb_modlinkage = {
184 MODREV_1, { &igb_modldrv, NULL }
185 };
186
187 /* Access attributes for register mapping */
188 ddi_device_acc_attr_t igb_regs_acc_attr = {
189 DDI_DEVICE_ATTR_V1,
190 DDI_STRUCTURE_LE_ACC,
191 DDI_STRICTORDER_ACC,
192 DDI_FLAGERR_ACC
193 };
194
195 #define IGB_M_CALLBACK_FLAGS \
196 (MC_IOCTL | MC_GETCAPAB | MC_SETPROP | MC_GETPROP | MC_PROPINFO)
197
198 static mac_callbacks_t igb_m_callbacks = {
199 IGB_M_CALLBACK_FLAGS,
200 igb_m_stat,
201 igb_m_start,
202 igb_m_stop,
203 igb_m_promisc,
204 igb_m_multicst,
|