Changes in uspace/drv/usbhid/subdrivers.c [4939490:faa44e58] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/subdrivers.c
r4939490 rfaa44e58 38 38 #include <usb/hid/hidpath.h> 39 39 40 #include " multimedia/multimedia.h"40 #include "lgtch-ultrax/lgtch-ultrax.h" 41 41 #include "mouse/mousedev.h" 42 #include "generic/hiddev.h"43 42 44 43 static usb_hid_subdriver_usage_t path_kbd[] = { 45 {USB_HIDUT_PAGE_GENERIC_DESKTOP, 46 USB_HIDUT_USAGE_GENERIC_DESKTOP_KEYBOARD}, 44 {USB_HIDUT_PAGE_KEYBOARD, 0}, 47 45 {0, 0} 48 46 }; 49 47 50 static usb_hid_subdriver_usage_t path_mouse [] = {51 {USB_HIDUT_PAGE_GENERIC_DESKTOP, USB_HIDUT_USAGE_GENERIC_DESKTOP_ MOUSE},48 static usb_hid_subdriver_usage_t path_mouse2[] = { 49 {USB_HIDUT_PAGE_GENERIC_DESKTOP, USB_HIDUT_USAGE_GENERIC_DESKTOP_X}, 52 50 {0, 0} 53 51 }; 54 52 55 static usb_hid_subdriver_usage_t multim_key_path[] = {56 { USB_HIDUT_PAGE_CONSUMER, USB_HIDUT_USAGE_CONSUMER_CONSUMER_CONTROL},53 static usb_hid_subdriver_usage_t lgtch_path[] = { 54 {0xc, 0}, 57 55 {0, 0} 58 56 }; 59 60 //static usb_hid_subdriver_usage_t generic_hid_key_path[] = {61 // {0, 0}62 //};63 57 64 58 const usb_hid_subdriver_mapping_t usb_hid_subdrivers[] = { 65 59 { 66 60 path_kbd, 67 0, 68 USB_HID_PATH_COMPARE_BEGIN, 61 -1, 62 USB_HID_PATH_COMPARE_END 63 | USB_HID_PATH_COMPARE_USAGE_PAGE_ONLY, 69 64 -1, 70 65 -1, … … 78 73 }, 79 74 { 80 multim_key_path,75 lgtch_path, 81 76 1, 82 USB_HID_PATH_COMPARE_BEGIN, 83 -1, 84 -1, 77 USB_HID_PATH_COMPARE_END 78 | USB_HID_PATH_COMPARE_USAGE_PAGE_ONLY, 79 0x046d, 80 0xc30e, 85 81 { 86 .init = usb_ multimedia_init,87 .deinit = usb_ multimedia_deinit,88 .poll = usb_ multimedia_polling_callback,82 .init = usb_lgtch_init, 83 .deinit = usb_lgtch_deinit, 84 .poll = usb_lgtch_polling_callback, 89 85 .poll_end = NULL 90 86 } 91 87 }, 92 88 { 93 path_mouse, 94 0, 95 USB_HID_PATH_COMPARE_BEGIN, 89 path_mouse2, 90 -1, 91 USB_HID_PATH_COMPARE_END 92 | USB_HID_PATH_COMPARE_USAGE_PAGE_ONLY, 96 93 -1, 97 94 -1, … … 103 100 } 104 101 }, 105 // { 106 // generic_hid_key_path, 107 // 0, 108 // USB_HID_PATH_COMPARE_ANYWHERE, 109 // -1, 110 // -1, 111 // { 112 // .init = usb_generic_hid_init, 113 // .deinit = NULL, 114 // .poll = usb_generic_hid_polling_callback, 115 // .poll_end = NULL 116 // } 117 // }, 118 {NULL, -1, 0, -1, -1, {NULL, NULL, NULL, NULL, NULL}} 102 {NULL, -1, 0, -1, -1, {NULL, NULL, NULL, NULL}} 119 103 }; 120 104
Note:
See TracChangeset
for help on using the changeset viewer.