40 uint_t hparser_errlevel = (uint_t)USB_LOG_L1;
41 static usb_log_handle_t hparser_log_handle;
42
43 /*
44 * Array used to store corresponding strings for the
45 * different item types for debugging.
46 */
47 char *items[500]; /* Print items */
48
49 /*
50 * modload support
51 */
52 extern struct mod_ops mod_miscops;
53
54 static struct modlmisc modlmisc = {
55 &mod_miscops, /* Type of module */
56 "HID Parser"
57 };
58
59 static struct modlinkage modlinkage = {
60 MODREV_1, (void *)&modlmisc, NULL
61 };
62
63 int
64 _init(void)
65 {
66 int rval = mod_install(&modlinkage);
67
68 if (rval == 0) {
69 hparser_log_handle = usb_alloc_log_hdl(NULL, "hidparser",
70 &hparser_errlevel, &hparser_errmask, NULL, 0);
71 }
72
73 return (rval);
74 }
75
76 int
77 _fini()
78 {
79 int rval = mod_remove(&modlinkage);
80
|
40 uint_t hparser_errlevel = (uint_t)USB_LOG_L1;
41 static usb_log_handle_t hparser_log_handle;
42
43 /*
44 * Array used to store corresponding strings for the
45 * different item types for debugging.
46 */
47 char *items[500]; /* Print items */
48
49 /*
50 * modload support
51 */
52 extern struct mod_ops mod_miscops;
53
54 static struct modlmisc modlmisc = {
55 &mod_miscops, /* Type of module */
56 "HID Parser"
57 };
58
59 static struct modlinkage modlinkage = {
60 MODREV_1, { (void *)&modlmisc, NULL }
61 };
62
63 int
64 _init(void)
65 {
66 int rval = mod_install(&modlinkage);
67
68 if (rval == 0) {
69 hparser_log_handle = usb_alloc_log_hdl(NULL, "hidparser",
70 &hparser_errlevel, &hparser_errmask, NULL, 0);
71 }
72
73 return (rval);
74 }
75
76 int
77 _fini()
78 {
79 int rval = mod_remove(&modlinkage);
80
|