127
128 static struct streamtab usbkbm_info;
129 static struct fmodsw fsw = {
130 "usbkbm",
131 &usbkbm_info,
132 D_MP | D_MTPERMOD
133 };
134
135
136 /*
137 * Module linkage information for the kernel.
138 */
139 static struct modlstrmod modlstrmod = {
140 &mod_strmodops,
141 "USB keyboard streams 1.44",
142 &fsw
143 };
144
145 static struct modlinkage modlinkage = {
146 MODREV_1,
147 (void *)&modlstrmod,
148 NULL
149 };
150
151
152 int
153 _init(void)
154 {
155 int rval = mod_install(&modlinkage);
156 usbkbm_save_state_t *sp;
157
158 if (rval != 0) {
159
160 return (rval);
161 }
162
163 usbkbm_keyindex = kbtrans_usbkb_maptab_init();
164
165 usbkbm_log_handle = usb_alloc_log_hdl(NULL, "usbkbm",
166 &usbkbm_errlevel, &usbkbm_errmask, NULL, 0);
167
168 sp = (usbkbm_save_state_t *)space_fetch("SUNW,usbkbm_state");
|
127
128 static struct streamtab usbkbm_info;
129 static struct fmodsw fsw = {
130 "usbkbm",
131 &usbkbm_info,
132 D_MP | D_MTPERMOD
133 };
134
135
136 /*
137 * Module linkage information for the kernel.
138 */
139 static struct modlstrmod modlstrmod = {
140 &mod_strmodops,
141 "USB keyboard streams 1.44",
142 &fsw
143 };
144
145 static struct modlinkage modlinkage = {
146 MODREV_1,
147 { (void *)&modlstrmod, NULL }
148 };
149
150
151 int
152 _init(void)
153 {
154 int rval = mod_install(&modlinkage);
155 usbkbm_save_state_t *sp;
156
157 if (rval != 0) {
158
159 return (rval);
160 }
161
162 usbkbm_keyindex = kbtrans_usbkb_maptab_init();
163
164 usbkbm_log_handle = usb_alloc_log_hdl(NULL, "usbkbm",
165 &usbkbm_errlevel, &usbkbm_errmask, NULL, 0);
166
167 sp = (usbkbm_save_state_t *)space_fetch("SUNW,usbkbm_state");
|