Print this page
7127  remove -Wno-missing-braces from Makefile.uts


 207         0,                      /* devo_refcnt */
 208         NULL,                   /* devo_getinfo */
 209         nulldev,                /* devo_identify */
 210         nulldev,                /* devo_probe */
 211         e1000g_attach,          /* devo_attach */
 212         e1000g_detach,          /* devo_detach */
 213         nodev,                  /* devo_reset */
 214         &cb_ws_ops,         /* devo_cb_ops */
 215         NULL,                   /* devo_bus_ops */
 216         ddi_power,              /* devo_power */
 217         e1000g_quiesce          /* devo_quiesce */
 218 };
 219 
 220 static struct modldrv modldrv = {
 221         &mod_driverops,             /* Type of module.  This one is a driver */
 222         ident,                  /* Discription string */
 223         &ws_ops,            /* driver ops */
 224 };
 225 
 226 static struct modlinkage modlinkage = {
 227         MODREV_1, &modldrv, NULL
 228 };
 229 
 230 /* Access attributes for register mapping */
 231 static ddi_device_acc_attr_t e1000g_regs_acc_attr = {
 232         DDI_DEVICE_ATTR_V1,
 233         DDI_STRUCTURE_LE_ACC,
 234         DDI_STRICTORDER_ACC,
 235         DDI_FLAGERR_ACC
 236 };
 237 
 238 #define E1000G_M_CALLBACK_FLAGS \
 239         (MC_IOCTL | MC_GETCAPAB | MC_SETPROP | MC_GETPROP | MC_PROPINFO)
 240 
 241 static mac_callbacks_t e1000g_m_callbacks = {
 242         E1000G_M_CALLBACK_FLAGS,
 243         e1000g_m_stat,
 244         e1000g_m_start,
 245         e1000g_m_stop,
 246         e1000g_m_promisc,
 247         e1000g_m_multicst,




 207         0,                      /* devo_refcnt */
 208         NULL,                   /* devo_getinfo */
 209         nulldev,                /* devo_identify */
 210         nulldev,                /* devo_probe */
 211         e1000g_attach,          /* devo_attach */
 212         e1000g_detach,          /* devo_detach */
 213         nodev,                  /* devo_reset */
 214         &cb_ws_ops,         /* devo_cb_ops */
 215         NULL,                   /* devo_bus_ops */
 216         ddi_power,              /* devo_power */
 217         e1000g_quiesce          /* devo_quiesce */
 218 };
 219 
 220 static struct modldrv modldrv = {
 221         &mod_driverops,             /* Type of module.  This one is a driver */
 222         ident,                  /* Discription string */
 223         &ws_ops,            /* driver ops */
 224 };
 225 
 226 static struct modlinkage modlinkage = {
 227         MODREV_1, { &modldrv, NULL }
 228 };
 229 
 230 /* Access attributes for register mapping */
 231 static ddi_device_acc_attr_t e1000g_regs_acc_attr = {
 232         DDI_DEVICE_ATTR_V1,
 233         DDI_STRUCTURE_LE_ACC,
 234         DDI_STRICTORDER_ACC,
 235         DDI_FLAGERR_ACC
 236 };
 237 
 238 #define E1000G_M_CALLBACK_FLAGS \
 239         (MC_IOCTL | MC_GETCAPAB | MC_SETPROP | MC_GETPROP | MC_PROPINFO)
 240 
 241 static mac_callbacks_t e1000g_m_callbacks = {
 242         E1000G_M_CALLBACK_FLAGS,
 243         e1000g_m_stat,
 244         e1000g_m_start,
 245         e1000g_m_stop,
 246         e1000g_m_promisc,
 247         e1000g_m_multicst,