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