Changeset d900699 in mainline for uspace/srv/hid/input/include/kbd_ctl.h
- Timestamp:
- 2011-06-17T16:48:53Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f3a605be
- Parents:
- df8110d3 (diff), 98caf49 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/input/include/kbd_ctl.h
rdf8110d3 rd900699 1 1 /* 2 * Copyright (c) 2009 Jiri Svoboda 3 * Copyright (c) 2011 Lubos Slovak 4 * (copied from /uspace/srv/hid/kbd/include/layout.h) 2 * Copyright (c) 2011 Jiri Svoboda 5 3 * All rights reserved. 6 4 * … … 29 27 */ 30 28 31 /** @addtogroup drvusbhid 29 /** @addtogroup inputgen generic 30 * @brief Keyboard controller driver interface. 31 * @ingroup input 32 32 * @{ 33 33 */ 34 34 /** @file 35 * Keyboard layout.36 35 */ 37 36 38 #ifndef USB_HID_LAYOUT_H_39 #define USB_HID_LAYOUT_H_37 #ifndef KBD_CTL_H_ 38 #define KBD_CTL_H_ 40 39 41 #include <sys/types.h> 42 #include <io/console.h> 40 #include <kbd_port.h> 43 41 44 typedef struct { 45 void (*reset)(void); 46 wchar_t (*parse_ev)(kbd_event_t *); 47 } layout_op_t; 42 struct kbd_dev; 48 43 49 extern layout_op_t us_qwerty_op; 50 extern layout_op_t us_dvorak_op; 51 extern layout_op_t cz_op; 44 typedef struct kbd_ctl_ops { 45 void (*parse_scancode)(int); 46 int (*init)(struct kbd_dev *); 47 void (*set_ind)(struct kbd_dev *, unsigned); 48 } kbd_ctl_ops_t; 49 50 extern kbd_ctl_ops_t apple_ctl; 51 extern kbd_ctl_ops_t gxe_fb_ctl; 52 extern kbd_ctl_ops_t kbdev_ctl; 53 extern kbd_ctl_ops_t pc_ctl; 54 extern kbd_ctl_ops_t stty_ctl; 55 extern kbd_ctl_ops_t sun_ctl; 52 56 53 57 #endif … … 55 59 /** 56 60 * @} 57 */ 61 */ 62
Note:
See TracChangeset
for help on using the changeset viewer.