Changeset 74a1ba9 in mainline
- Timestamp:
- 2011-04-08T09:15:02Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e9f0348
- Parents:
- fec47d4
- Location:
- uspace/drv/usbhid
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/generic/hiddev.h
rfec47d4 r74a1ba9 34 34 */ 35 35 36 #ifndef USB_HIDD _H_37 #define USB_HIDD _H_36 #ifndef USB_HIDDDEV_H_ 37 #define USB_HIDDDEV_H_ 38 38 39 39 #include <usb/devdrv.h> … … 47 47 size_t buffer_size, void *arg); 48 48 49 #endif // USB_HIDD _H_49 #endif // USB_HIDDDEV_H_ 50 50 51 51 /** -
uspace/drv/usbhid/kbd/kbddev.c
rfec47d4 r74a1ba9 238 238 * @param icall Call data. 239 239 */ 240 void default_connection_handler(ddf_fun_t *fun,240 static void default_connection_handler(ddf_fun_t *fun, 241 241 ipc_callid_t icallid, ipc_call_t *icall) 242 242 { -
uspace/drv/usbhid/kbd/kbddev.h
rfec47d4 r74a1ba9 65 65 */ 66 66 typedef struct usb_kbd_t { 67 /** Structure holding generic USB device information. */68 //usbhid_dev_t *hid_dev;69 //usb_device_t *usb_dev;70 71 67 /** Currently pressed keys (not translated to key codes). */ 72 68 uint8_t *keys; … … 91 87 fibril_mutex_t *repeat_mtx; 92 88 93 /** Report descriptor. */94 //uint8_t *report_desc;95 96 /** Report descriptor size. */97 //size_t report_desc_size;98 99 89 uint8_t *output_buffer; 100 90 … … 106 96 107 97 int32_t *led_data; 108 109 /** HID Report parser. */110 //usb_hid_report_parser_t *parser;111 98 112 99 /** State of the structure (for checking before use). … … 121 108 /*----------------------------------------------------------------------------*/ 122 109 123 //enum {124 // USB_KBD_POLL_EP_NO = 0,125 // USB_HID_POLL_EP_NO = 1,126 // USB_KBD_POLL_EP_COUNT = 2127 //};128 129 //usb_endpoint_description_t *usb_kbd_endpoints[USB_KBD_POLL_EP_COUNT + 1];130 131 //ddf_dev_ops_t keyboard_ops;132 133 110 usb_endpoint_description_t usb_hid_kbd_poll_endpoint_description; 134 111 … … 138 115 /*----------------------------------------------------------------------------*/ 139 116 140 //usb_kbd_t *usb_kbd_new(void);141 142 117 int usb_kbd_init(struct usb_hid_dev_t *hid_dev); 143 118 144 119 bool usb_kbd_polling_callback(usb_device_t *dev, uint8_t *buffer, 145 120 size_t buffer_size, void *arg); 146 147 //void usb_kbd_polling_ended_callback(usb_device_t *dev, bool reason,148 // void *arg);149 121 150 122 int usb_kbd_is_initialized(const usb_kbd_t *kbd_dev); … … 157 129 int type, unsigned int key); 158 130 159 160 131 void usb_kbd_deinit(struct usb_hid_dev_t *hid_dev); 161 132
Note:
See TracChangeset
for help on using the changeset viewer.