446
447 ibt_status_t ibd_get_part_attr(datalink_id_t, ibt_part_attr_t *);
448 ibt_status_t ibd_get_all_part_attr(ibt_part_attr_t **, int *);
449
450 #ifdef IBD_LOGGING
451 static void ibd_log(const char *, ...);
452 #endif
453
454 DDI_DEFINE_STREAM_OPS(ibd_dev_ops, nulldev, nulldev, ibd_attach, ibd_detach,
455 nodev, NULL, D_MP, NULL, ddi_quiesce_not_needed);
456
457 /* Module Driver Info */
458 static struct modldrv ibd_modldrv = {
459 &mod_driverops, /* This one is a driver */
460 "InfiniBand GLDv3 Driver", /* short description */
461 &ibd_dev_ops /* driver specific ops */
462 };
463
464 /* Module Linkage */
465 static struct modlinkage ibd_modlinkage = {
466 MODREV_1, (void *)&ibd_modldrv, NULL
467 };
468
469 /*
470 * Module (static) info passed to IBTL during ibt_attach
471 */
472 static struct ibt_clnt_modinfo_s ibd_clnt_modinfo = {
473 IBTI_V_CURR,
474 IBT_NETWORK,
475 ibd_async_handler,
476 NULL,
477 "IBPART"
478 };
479
480 static struct ibt_clnt_modinfo_s ibdpd_clnt_modinfo = {
481 IBTI_V_CURR,
482 IBT_NETWORK,
483 ibdpd_async_handler,
484 NULL,
485 "IPIB"
486 };
|
446
447 ibt_status_t ibd_get_part_attr(datalink_id_t, ibt_part_attr_t *);
448 ibt_status_t ibd_get_all_part_attr(ibt_part_attr_t **, int *);
449
450 #ifdef IBD_LOGGING
451 static void ibd_log(const char *, ...);
452 #endif
453
454 DDI_DEFINE_STREAM_OPS(ibd_dev_ops, nulldev, nulldev, ibd_attach, ibd_detach,
455 nodev, NULL, D_MP, NULL, ddi_quiesce_not_needed);
456
457 /* Module Driver Info */
458 static struct modldrv ibd_modldrv = {
459 &mod_driverops, /* This one is a driver */
460 "InfiniBand GLDv3 Driver", /* short description */
461 &ibd_dev_ops /* driver specific ops */
462 };
463
464 /* Module Linkage */
465 static struct modlinkage ibd_modlinkage = {
466 MODREV_1, { (void *)&ibd_modldrv, NULL }
467 };
468
469 /*
470 * Module (static) info passed to IBTL during ibt_attach
471 */
472 static struct ibt_clnt_modinfo_s ibd_clnt_modinfo = {
473 IBTI_V_CURR,
474 IBT_NETWORK,
475 ibd_async_handler,
476 NULL,
477 "IBPART"
478 };
479
480 static struct ibt_clnt_modinfo_s ibdpd_clnt_modinfo = {
481 IBTI_V_CURR,
482 IBT_NETWORK,
483 ibdpd_async_handler,
484 NULL,
485 "IPIB"
486 };
|