Changeset 1875a0c in mainline for uspace/srv/hid/input/include
- Timestamp:
- 2011-06-21T19:10:20Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 022d9f67
- Parents:
- a9d85df
- Location:
- uspace/srv/hid/input/include
- Files:
-
- 5 edited
- 2 moved
-
input.h (modified) (1 diff)
-
kbd.h (modified) (1 diff)
-
kbd_ctl.h (modified) (3 diffs)
-
kbd_port.h (modified) (3 diffs)
-
mouse.h (modified) (1 diff)
-
mouse_port.h (moved) (moved from uspace/srv/hid/char_mouse/include/mouse_port.h ) (4 diffs)
-
mouse_proto.h (moved) (moved from uspace/srv/hid/char_mouse/include/mouse_proto.h ) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/input/include/input.h
ra9d85df r1875a0c 42 42 43 43 #define NAME "input" 44 #define NAMESPACE "hid _in"44 #define NAMESPACE "hid" 45 45 46 46 extern bool irc_service; 47 47 extern int irc_phone; 48 49 extern list_t mouse_devs;50 51 void input_event_move(int, int);52 void input_event_button(int bnum, int press);53 48 54 49 #endif -
uspace/srv/hid/input/include/kbd.h
ra9d85df r1875a0c 71 71 } kbd_dev_t; 72 72 73 extern void kbd_push_ scancode(kbd_dev_t *, int);74 extern void kbd_push_ev (kbd_dev_t *, int, unsigned int);73 extern void kbd_push_data(kbd_dev_t *, sysarg_t); 74 extern void kbd_push_event(kbd_dev_t *, int, unsigned int); 75 75 76 76 #endif -
uspace/srv/hid/input/include/kbd_ctl.h
ra9d85df r1875a0c 28 28 29 29 /** @addtogroup inputgen generic 30 * @brief Keyboard controller driver interface.31 * @ingroup input30 * @brief Keyboard controller driver interface. 31 * @ingroup input 32 32 * @{ 33 33 */ … … 43 43 44 44 typedef struct kbd_ctl_ops { 45 void (*parse _scancode)(int);45 void (*parse)(sysarg_t); 46 46 int (*init)(struct kbd_dev *); 47 void (*set_ind)(struct kbd_dev *, unsigned );47 void (*set_ind)(struct kbd_dev *, unsigned int); 48 48 } kbd_ctl_ops_t; 49 49 … … 59 59 /** 60 60 * @} 61 */ 62 61 */ -
uspace/srv/hid/input/include/kbd_port.h
ra9d85df r1875a0c 28 28 29 29 /** @addtogroup inputgen generic 30 * @brief Keyboard port driver interface.31 * @ingroup input30 * @brief Keyboard port driver interface. 31 * @ingroup input 32 32 * @{ 33 33 */ … … 51 51 extern kbd_port_ops_t adb_port; 52 52 extern kbd_port_ops_t chardev_port; 53 extern kbd_port_ops_t dummy_port;54 53 extern kbd_port_ops_t gxemul_port; 55 54 extern kbd_port_ops_t msim_port; … … 65 64 /** 66 65 * @} 67 */ 68 66 */ -
uspace/srv/hid/input/include/mouse.h
ra9d85df r1875a0c 40 40 #include <adt/list.h> 41 41 42 struct mouse_port_ops; 43 struct mouse_proto_ops; 44 42 45 typedef struct mouse_dev { 43 46 /** Link to mouse_devs list */ 44 47 link_t mouse_devs; 45 46 /** Path to the device */48 49 /** Path to the device (only for mouseev devices) */ 47 50 const char *dev_path; 51 52 /** Port ops */ 53 struct mouse_port_ops *port_ops; 54 55 /** Protocol ops */ 56 struct mouse_proto_ops *proto_ops; 48 57 } mouse_dev_t; 49 58 50 int mouse_add_dev(const char *dev_path); 59 extern void mouse_push_data(mouse_dev_t *, sysarg_t); 60 extern void mouse_push_event_move(mouse_dev_t *, int, int); 61 extern void mouse_push_event_button(mouse_dev_t *, int, int); 51 62 52 63 #endif -
uspace/srv/hid/input/include/mouse_port.h
ra9d85df r1875a0c 1 1 /* 2 * Copyright (c) 20 09 Jiri Svoboda2 * Copyright (c) 2011 Martin Decky 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup mouse 30 * @brief 29 /** @addtogroup inputgen generic 30 * @brief Mouse port driver interface. 31 * @ingroup input 31 32 * @{ 32 33 */ … … 39 40 #include <sys/types.h> 40 41 41 extern int mouse_port_init(void); 42 extern void mouse_port_yield(void); 43 extern void mouse_port_reclaim(void); 44 extern void mouse_port_write(uint8_t); 42 struct mouse_dev; 43 44 typedef struct mouse_port_ops { 45 int (*init)(struct mouse_dev *); 46 void (*yield)(void); 47 void (*reclaim)(void); 48 void (*write)(uint8_t); 49 } mouse_port_ops_t; 50 51 extern mouse_port_ops_t adb_mouse_port; 52 extern mouse_port_ops_t chardev_mouse_port; 45 53 46 54 #endif … … 48 56 /** 49 57 * @} 50 */ 51 58 */ -
uspace/srv/hid/input/include/mouse_proto.h
ra9d85df r1875a0c 1 1 /* 2 * Copyright (c) 20 09 Jiri Svoboda2 * Copyright (c) 2011 Martin Decky 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup mouse 30 * @brief 29 /** @addtogroup inputgen generic 30 * @brief Mouse protocol driver interface. 31 * @ingroup input 31 32 * @{ 32 33 */ … … 37 38 #define MOUSE_PROTO_H_ 38 39 39 extern void mouse_proto_parse_byte(int); 40 extern int mouse_proto_init(void); 40 #include <mouse_port.h> 41 42 struct mouse_dev; 43 44 typedef struct mouse_proto_ops { 45 void (*parse)(sysarg_t); 46 int (*init)(struct mouse_dev *); 47 } mouse_proto_ops_t; 48 49 extern mouse_proto_ops_t adb_proto; 50 extern mouse_proto_ops_t ps2_proto; 51 extern mouse_proto_ops_t mousedev_proto; 41 52 42 53 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
