Changes in uspace/drv/bus/usb/usbhid/kbd/kbddev.h [4578a6e:5f6e25e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbhid/kbd/kbddev.h
r4578a6e r5f6e25e 38 38 39 39 #include <stdint.h> 40 #include <async.h> 40 41 41 #include <fibril_synch.h> 42 42 43 #include <usb/hid/hid.h> 43 44 #include <usb/hid/hidparser.h> … … 57 58 * data, such as currently pressed keys, modifiers and lock keys. 58 59 * 59 * Also holds a IPC sessionto the console (since there is now no other way to60 * Also holds a IPC phone to the console (since there is now no other way to 60 61 * communicate with it). 61 62 * … … 75 76 /** Currently pressed modifiers (bitmap). */ 76 77 uint8_t modifiers; 77 78 78 79 /** Currently active modifiers including locks. Sent to the console. */ 79 80 unsigned mods; 80 81 81 82 /** Currently active lock keys. */ 82 83 unsigned lock_keys; 83 84 /** IPC sessionto the console device (for sending key events). */85 async_sess_t *console_sess;86 84 85 /** IPC phone to the console device (for sending key events). */ 86 int console_phone; 87 87 88 /** @todo What is this actually? */ 88 89 ddf_dev_ops_t ops; 89 90 90 91 /** Information for auto-repeat of keys. */ 91 92 usb_kbd_repeat_t repeat; 92 93 93 94 /** Mutex for accessing the information about auto-repeat. */ 94 fibril_mutex_t repeat_mtx;95 95 fibril_mutex_t *repeat_mtx; 96 96 97 uint8_t *output_buffer; 97 98 98 99 size_t output_size; 99 100 100 101 size_t led_output_size; 101 102 102 103 usb_hid_report_path_t *led_path; 103 104 104 105 int32_t *led_data; 105 106 106 107 /** State of the structure (for checking before use). 107 108 * … … 111 112 */ 112 113 int initialized; 113 114 /** DDF function */115 ddf_fun_t *fun;116 114 } usb_kbd_t; 117 115 118 116 /*----------------------------------------------------------------------------*/ 119 117 120 extern constusb_endpoint_description_t usb_hid_kbd_poll_endpoint_description;118 usb_endpoint_description_t usb_hid_kbd_poll_endpoint_description; 121 119 122 120 const char *HID_KBD_FUN_NAME; … … 135 133 void usb_kbd_destroy(usb_kbd_t *kbd_dev); 136 134 137 void usb_kbd_push_ev( usb_kbd_t *kbd_dev,135 void usb_kbd_push_ev(struct usb_hid_dev *hid_dev, usb_kbd_t *kbd_dev, 138 136 int type, unsigned int key); 139 137
Note:
See TracChangeset
for help on using the changeset viewer.