Changeset 9be360ee in mainline for uspace/srv/hid/kbd/include
- Timestamp:
- 2011-06-11T22:06:47Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4f3f9659
- Parents:
- 56ad818
- Location:
- uspace/srv/hid/kbd/include
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/kbd/include/kbd.h
r56ad818 r9be360ee 1 1 /* 2 2 * Copyright (c) 2006 Josef Cejka 3 * Copyright (c) 2011 Jiri Svoboda 3 4 * All rights reserved. 4 5 * … … 38 39 #define KBD_KBD_H_ 39 40 41 #include <adt/list.h> 40 42 #include <bool.h> 43 44 struct kbd_port_ops; 45 struct kbd_ctl_ops; 46 47 typedef struct kbd_dev { 48 /** Link to kbd_devs list */ 49 link_t kbd_devs; 50 51 /** Port ops */ 52 struct kbd_port_ops *port_ops; 53 54 /** Ctl ops */ 55 struct kbd_ctl_ops *ctl_ops; 56 } kbd_dev_t; 41 57 42 58 extern bool irc_service; 43 59 extern int irc_phone; 44 60 45 extern void kbd_push_scancode( int);46 extern void kbd_push_ev( int, unsigned int);61 extern void kbd_push_scancode(kbd_dev_t *, int); 62 extern void kbd_push_ev(kbd_dev_t *, int, unsigned int); 47 63 48 64 #endif -
uspace/srv/hid/kbd/include/kbd_ctl.h
r56ad818 r9be360ee 40 40 #include <kbd_port.h> 41 41 42 typedef struct { 42 struct kbd_dev; 43 44 typedef struct kbd_ctl_ops { 43 45 void (*parse_scancode)(int); 44 int (*init)( kbd_port_ops_t*);46 int (*init)(struct kbd_dev *); 45 47 void (*set_ind)(unsigned); 46 48 } kbd_ctl_ops_t; -
uspace/srv/hid/kbd/include/kbd_port.h
r56ad818 r9be360ee 40 40 #include <sys/types.h> 41 41 42 typedef struct { 43 int (*init)(void); 42 struct kbd_dev; 43 44 typedef struct kbd_port_ops { 45 int (*init)(struct kbd_dev *); 44 46 void (*yield)(void); 45 47 void (*reclaim)(void); -
uspace/srv/hid/kbd/include/stroke.h
r56ad818 r9be360ee 1 1 /* 2 * Copyright (c) 20 09Jiri Svoboda2 * Copyright (c) 2011 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 38 38 #define KBD_STROKE_H_ 39 39 40 extern void stroke_sim(unsigned, unsigned); 40 #include <kbd.h> 41 42 extern void stroke_sim(kbd_dev_t *, unsigned, unsigned); 41 43 42 44 #endif -
uspace/srv/hid/kbd/include/sun.h
r56ad818 r9be360ee 38 38 #define KBD_SUN_H_ 39 39 40 extern int ns16550_port_init(void); 41 extern int z8530_port_init(void); 40 #include <kbd.h> 41 42 extern int ns16550_port_init(kbd_dev_t *); 43 extern int z8530_port_init(kbd_dev_t *); 42 44 43 45 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
