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