47
48 static struct streamtab usbms_streamtab;
49
50 static struct fmodsw fsw = {
51 "usbms",
52 &usbms_streamtab,
53 D_MP | D_MTPERMOD
54 };
55
56 /*
57 * Module linkage information for the kernel.
58 */
59 static struct modlstrmod modlstrmod = {
60 &mod_strmodops,
61 "USB mouse streams",
62 &fsw
63 };
64
65 static struct modlinkage modlinkage = {
66 MODREV_1,
67 (void *)&modlstrmod,
68 NULL
69 };
70
71
72 int
73 _init(void)
74 {
75 int rval = mod_install(&modlinkage);
76
77 if (rval == 0) {
78 usbms_log_handle = usb_alloc_log_hdl(NULL, "usbms",
79 &usbms_errlevel, &usbms_errmask, NULL, 0);
80 }
81
82 return (rval);
83 }
84
85 int
86 _fini(void)
87 {
88 int rval = mod_remove(&modlinkage);
|
47
48 static struct streamtab usbms_streamtab;
49
50 static struct fmodsw fsw = {
51 "usbms",
52 &usbms_streamtab,
53 D_MP | D_MTPERMOD
54 };
55
56 /*
57 * Module linkage information for the kernel.
58 */
59 static struct modlstrmod modlstrmod = {
60 &mod_strmodops,
61 "USB mouse streams",
62 &fsw
63 };
64
65 static struct modlinkage modlinkage = {
66 MODREV_1,
67 { (void *)&modlstrmod, NULL }
68 };
69
70
71 int
72 _init(void)
73 {
74 int rval = mod_install(&modlinkage);
75
76 if (rval == 0) {
77 usbms_log_handle = usb_alloc_log_hdl(NULL, "usbms",
78 &usbms_errlevel, &usbms_errmask, NULL, 0);
79 }
80
81 return (rval);
82 }
83
84 int
85 _fini(void)
86 {
87 int rval = mod_remove(&modlinkage);
|