Changeset 4939490 in mainline
- Timestamp:
- 2011-05-20T10:23:26Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d1fb591
- Parents:
- d09f3720
- Location:
- uspace/drv/usbhid
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/generic/hiddev.c
rd09f3720 r4939490 83 83 static size_t usb_generic_hid_get_event_length(ddf_fun_t *fun) 84 84 { 85 usb_log_debug("Generic HID: Get event length.\n"); 86 85 87 if (fun == NULL || fun->driver_data) { 86 88 return 0; … … 97 99 size_t size, size_t *act_size, unsigned int flags) 98 100 { 101 usb_log_debug("Generic HID: Get event.\n"); 102 99 103 if (fun == NULL || fun->driver_data) { 100 104 return EINVAL; … … 128 132 static int usb_generic_hid_client_connected(ddf_fun_t *fun) 129 133 { 134 usb_log_debug("Generic HID: Client connected.\n"); 130 135 usb_hid_report_received(); 131 136 return EOK; … … 145 150 return ENOMEM; 146 151 } 152 153 fun->ops = &usb_generic_hid_ops; 154 fun->driver_data = hid_dev; 147 155 148 156 int rc = ddf_fun_bind(fun); … … 154 162 } 155 163 156 fun->ops = &usb_generic_hid_ops; 157 fun->driver_data = hid_dev; 164 usb_log_debug("HID function created. Handle: %d\n", fun->handle); 158 165 159 166 return EOK; -
uspace/drv/usbhid/kbd/kbddev.c
rd09f3720 r4939490 798 798 } 799 799 800 usb_log_debug("%s function created. Handle: %d\n", HID_KBD_FUN_NAME, 801 fun->handle); 802 800 803 usb_log_debug("Adding DDF function to class %s...\n", 801 804 HID_KBD_CLASS_NAME); -
uspace/drv/usbhid/multimedia/multimedia.c
rd09f3720 r4939490 209 209 return rc; 210 210 } 211 212 usb_log_debug("%s function created. Handle: %d\n", NAME, fun->handle); 211 213 212 214 rc = ddf_fun_add_to_class(fun, "keyboard"); -
uspace/drv/usbhid/subdrivers.c
rd09f3720 r4939490 58 58 }; 59 59 60 static usb_hid_subdriver_usage_t generic_hid_key_path[] = {61 {0, 0}62 };60 //static usb_hid_subdriver_usage_t generic_hid_key_path[] = { 61 // {0, 0} 62 //}; 63 63 64 64 const usb_hid_subdriver_mapping_t usb_hid_subdrivers[] = { … … 103 103 } 104 104 }, 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 = NULL116 }117 },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 118 {NULL, -1, 0, -1, -1, {NULL, NULL, NULL, NULL, NULL}} 119 119 };
Note:
See TracChangeset
for help on using the changeset viewer.