87 fct_attach,
88 fct_detach,
89 nodev, /* reset */
90 &fct_cb_ops,
91 NULL, /* bus_ops */
92 NULL /* power */
93 };
94
95 #define FCT_NAME "COMSTAR FCT"
96 #define FCT_MODULE_NAME "fct"
97
98 extern struct mod_ops mod_driverops;
99 static struct modldrv modldrv = {
100 &mod_driverops,
101 FCT_NAME,
102 &fct_ops
103 };
104
105 static struct modlinkage modlinkage = {
106 MODREV_1,
107 &modldrv,
108 NULL
109 };
110
111 static uint32_t rportid_table_size = FCT_HASH_TABLE_SIZE;
112 static int max_cached_ncmds = FCT_MAX_CACHED_CMDS;
113 static fct_i_local_port_t *fct_iport_list = NULL;
114 static kmutex_t fct_global_mutex;
115 uint32_t fct_rscn_options = RSCN_OPTION_VERIFY;
116
117 int
118 _init(void)
119 {
120 int ret;
121
122 ret = mod_install(&modlinkage);
123 if (ret)
124 return (ret);
125 /* XXX */
126 mutex_init(&fct_global_mutex, NULL, MUTEX_DRIVER, NULL);
127 return (ret);
128 }
|
87 fct_attach,
88 fct_detach,
89 nodev, /* reset */
90 &fct_cb_ops,
91 NULL, /* bus_ops */
92 NULL /* power */
93 };
94
95 #define FCT_NAME "COMSTAR FCT"
96 #define FCT_MODULE_NAME "fct"
97
98 extern struct mod_ops mod_driverops;
99 static struct modldrv modldrv = {
100 &mod_driverops,
101 FCT_NAME,
102 &fct_ops
103 };
104
105 static struct modlinkage modlinkage = {
106 MODREV_1,
107 { &modldrv, NULL }
108 };
109
110 static uint32_t rportid_table_size = FCT_HASH_TABLE_SIZE;
111 static int max_cached_ncmds = FCT_MAX_CACHED_CMDS;
112 static fct_i_local_port_t *fct_iport_list = NULL;
113 static kmutex_t fct_global_mutex;
114 uint32_t fct_rscn_options = RSCN_OPTION_VERIFY;
115
116 int
117 _init(void)
118 {
119 int ret;
120
121 ret = mod_install(&modlinkage);
122 if (ret)
123 return (ret);
124 /* XXX */
125 mutex_init(&fct_global_mutex, NULL, MUTEX_DRIVER, NULL);
126 return (ret);
127 }
|