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


5430 
5431 /*
5432  * Module loading and removing entry points.
5433  */
5434 
5435 DDI_DEFINE_STREAM_OPS(nxge_dev_ops, nulldev, nulldev, nxge_attach, nxge_detach,
5436     nodev, NULL, D_MP, NULL, nxge_quiesce);
5437 
5438 #define NXGE_DESC_VER           "Sun NIU 10Gb Ethernet"
5439 
5440 /*
5441  * Module linkage information for the kernel.
5442  */
5443 static struct modldrv   nxge_modldrv = {
5444         &mod_driverops,
5445         NXGE_DESC_VER,
5446         &nxge_dev_ops
5447 };
5448 
5449 static struct modlinkage modlinkage = {
5450         MODREV_1, (void *) &nxge_modldrv, NULL
5451 };
5452 
5453 int
5454 _init(void)
5455 {
5456         int             status;
5457 
5458         MUTEX_INIT(&nxgedebuglock, NULL, MUTEX_DRIVER, NULL);
5459 
5460         NXGE_DEBUG_MSG((NULL, MOD_CTL, "==> _init"));
5461 
5462         mac_init_ops(&nxge_dev_ops, "nxge");
5463 
5464         status = ddi_soft_state_init(&nxge_list, sizeof (nxge_t), 0);
5465         if (status != 0) {
5466                 NXGE_ERROR_MSG((NULL, NXGE_ERR_CTL,
5467                     "failed to init device soft state"));
5468                 goto _init_exit;
5469         }
5470 




5430 
5431 /*
5432  * Module loading and removing entry points.
5433  */
5434 
5435 DDI_DEFINE_STREAM_OPS(nxge_dev_ops, nulldev, nulldev, nxge_attach, nxge_detach,
5436     nodev, NULL, D_MP, NULL, nxge_quiesce);
5437 
5438 #define NXGE_DESC_VER           "Sun NIU 10Gb Ethernet"
5439 
5440 /*
5441  * Module linkage information for the kernel.
5442  */
5443 static struct modldrv   nxge_modldrv = {
5444         &mod_driverops,
5445         NXGE_DESC_VER,
5446         &nxge_dev_ops
5447 };
5448 
5449 static struct modlinkage modlinkage = {
5450         MODREV_1, { (void *) &nxge_modldrv, NULL }
5451 };
5452 
5453 int
5454 _init(void)
5455 {
5456         int             status;
5457 
5458         MUTEX_INIT(&nxgedebuglock, NULL, MUTEX_DRIVER, NULL);
5459 
5460         NXGE_DEBUG_MSG((NULL, MOD_CTL, "==> _init"));
5461 
5462         mac_init_ops(&nxge_dev_ops, "nxge");
5463 
5464         status = ddi_soft_state_init(&nxge_list, sizeof (nxge_t), 0);
5465         if (status != 0) {
5466                 NXGE_ERROR_MSG((NULL, NXGE_ERR_CTL,
5467                     "failed to init device soft state"));
5468                 goto _init_exit;
5469         }
5470