Changes in uspace/drv/usbhid/subdrivers.c [37f87fa:faa44e58] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/subdrivers.c
r37f87fa rfaa44e58 35 35 36 36 #include "subdrivers.h" 37 #include "usb/classes/hidut.h"38 #include "usb/classes/hidpath.h"37 #include <usb/hid/usages/core.h> 38 #include <usb/hid/hidpath.h> 39 39 40 //#include "lgtch-ultrax/lgtch-ultrax.h" 41 #include "multimedia/multimedia.h" 40 #include "lgtch-ultrax/lgtch-ultrax.h" 42 41 #include "mouse/mousedev.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 }; … … 62 60 path_kbd, 63 61 -1, 64 USB_HID_PATH_COMPARE_BEGIN, 62 USB_HID_PATH_COMPARE_END 63 | USB_HID_PATH_COMPARE_USAGE_PAGE_ONLY, 65 64 -1, 66 65 -1, … … 74 73 }, 75 74 { 76 multim_key_path,75 lgtch_path, 77 76 1, 78 USB_HID_PATH_COMPARE_BEGIN, 79 -1, 80 -1, 77 USB_HID_PATH_COMPARE_END 78 | USB_HID_PATH_COMPARE_USAGE_PAGE_ONLY, 79 0x046d, 80 0xc30e, 81 81 { 82 .init = usb_ multimedia_init,83 .deinit = usb_ multimedia_deinit,84 .poll = usb_ multimedia_polling_callback,82 .init = usb_lgtch_init, 83 .deinit = usb_lgtch_deinit, 84 .poll = usb_lgtch_polling_callback, 85 85 .poll_end = NULL 86 86 } 87 87 }, 88 88 { 89 path_mouse ,89 path_mouse2, 90 90 -1, 91 USB_HID_PATH_COMPARE_BEGIN, 91 USB_HID_PATH_COMPARE_END 92 | USB_HID_PATH_COMPARE_USAGE_PAGE_ONLY, 92 93 -1, 93 94 -1, … … 99 100 } 100 101 }, 101 {NULL, -1, 0, -1, -1, {NULL, NULL, NULL, NULL , NULL}}102 {NULL, -1, 0, -1, -1, {NULL, NULL, NULL, NULL}} 102 103 }; 103 104
Note:
See TracChangeset
for help on using the changeset viewer.