Changeset 09ab0a9a in mainline for uspace/drv/hid
- Timestamp:
- 2018-09-13T12:05:53Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cc74cb5
- Parents:
- b2aaaa0
- git-author:
- Jiri Svoboda <jiri@…> (2018-09-13 07:09:46)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-09-13 12:05:53)
- Location:
- uspace/drv/hid/usbhid
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/hid/usbhid/generic/hiddev.c
rb2aaaa0 r09ab0a9a 59 59 const char *HID_GENERIC_CATEGORY = "hid"; 60 60 61 62 61 static size_t usb_generic_hid_get_event_length(ddf_fun_t *fun); 63 62 static errno_t usb_generic_hid_get_event(ddf_fun_t *fun, uint8_t *buffer, -
uspace/drv/hid/usbhid/kbd/kbddev.c
rb2aaaa0 r09ab0a9a 75 75 static ddf_dev_ops_t kbdops = { .default_handler = default_connection_handler }; 76 76 77 78 77 static const unsigned DEFAULT_ACTIVE_MODS = KM_NUM_LOCK; 79 78 … … 88 87 /** Delay between two repeats of a pressed key when auto-repeating. */ 89 88 static const unsigned int DEFAULT_REPEAT_DELAY = 50 * 1000; 90 91 89 92 90 /** Keyboard polling endpoint description for boot protocol class. */ … … 587 585 usb_device_get_iface_number(hid_dev->usb_dev), IDLE_RATE); 588 586 589 590 587 kbd_dev->initialized = USB_KBD_STATUS_INITIALIZED; 591 588 usb_log_debug("HID/KBD device structure initialized."); … … 593 590 return EOK; 594 591 } 595 596 592 597 593 /* API functions */ -
uspace/drv/hid/usbhid/kbd/kbdrepeat.h
rb2aaaa0 r09ab0a9a 42 42 struct usb_kbd_t; 43 43 44 45 44 /** 46 45 * Structure for keeping information needed for auto-repeat of keys. … … 57 56 } usb_kbd_repeat_t; 58 57 59 60 61 58 errno_t usb_kbd_repeat_fibril(void *arg); 62 59 -
uspace/drv/hid/usbhid/mouse/mousedev.c
rb2aaaa0 r09ab0a9a 60 60 static ddf_dev_ops_t ops = { .default_handler = default_connection_handler }; 61 61 62 63 62 const usb_endpoint_description_t usb_hid_mouse_poll_endpoint_description = { 64 63 .transfer_type = USB_TRANSFER_INTERRUPT, … … 75 74 /** Default idle rate for mouses. */ 76 75 static const uint8_t IDLE_RATE = 0; 77 78 76 79 77 static const uint8_t USB_MOUSE_BOOT_REPORT_DESCRIPTOR[] = { … … 106 104 }; 107 105 108 109 110 106 /** Default handler for IPC methods not handled by DDF. 111 107 * … … 212 208 } 213 209 214 215 210 if (shift_x || shift_y || shift_z) { 216 211 async_exch_t *exch = -
uspace/drv/hid/usbhid/multimedia/multimedia.c
rb2aaaa0 r09ab0a9a 37 37 */ 38 38 39 40 39 #include "multimedia.h" 41 40 #include "../usbhid.h" … … 55 54 56 55 #define NAME "multimedia-keys" 57 58 56 59 57 /** … … 70 68 async_sess_t *console_sess; 71 69 } usb_multimedia_t; 72 73 74 70 75 71 /** Default handler for IPC methods not handled by DDF. -
uspace/drv/hid/usbhid/usbhid.h
rb2aaaa0 r09ab0a9a 97 97 }; 98 98 99 100 99 /** 101 100 * Structure for holding general HID device data.
Note:
See TracChangeset
for help on using the changeset viewer.