Changeset 215abc1 in mainline for uspace/srv/kbd/include
- Timestamp:
- 2009-06-03T18:49:33Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 05b9912
- Parents:
- bbdbf86
- Location:
- uspace/srv/kbd/include
- Files:
-
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/kbd/include/kbd.h
rbbdbf86 r215abc1 28 28 29 29 /** @addtogroup kbdgen generic 30 * @brief 31 * @ingroup 30 * @brief HelenOS generic uspace keyboard handler. 31 * @ingroup kbd 32 32 * @{ 33 */ 33 */ 34 34 /** @file 35 35 */ … … 38 38 #define KBD_KBD_H_ 39 39 40 #include <key _buffer.h>40 #include <keybuffer.h> 41 41 #include <ipc/ipc.h> 42 42 43 #define KBD_EVENT 44 #define KBD_MS_LEFT 45 #define KBD_MS_RIGHT 46 #define KBD_MS_MIDDLE 47 #define KBD_MS_MOVE 43 #define KBD_EVENT 1024 44 #define KBD_MS_LEFT 1025 45 #define KBD_MS_RIGHT 1026 46 #define KBD_MS_MIDDLE 1027 47 #define KBD_MS_MOVE 1028 48 48 49 49 typedef enum { 50 KBD_YIELD 50 KBD_YIELD = IPC_FIRST_USER_METHOD, 51 51 KBD_RECLAIM 52 52 } kbd_request_t; … … 62 62 /** 63 63 * @} 64 */ 65 64 */ -
uspace/srv/kbd/include/keybuffer.h
rbbdbf86 r215abc1 28 28 29 29 /** @addtogroup kbdgen 30 * @brief 31 * @ingroup 30 * @brief HelenOS generic uspace keyboard handler. 31 * @ingroup kbd 32 32 * @{ 33 */ 33 */ 34 34 /** @file 35 35 */ 36 36 37 #ifndef __KEY _BUFFER_H__38 #define __KEY _BUFFER_H__37 #ifndef __KEYBUFFER_H__ 38 #define __KEYBUFFER_H__ 39 39 40 40 #include <sys/types.h> 41 #include <kbd/kbd.h> 41 #include <io/console.h> 42 #include <bool.h> 42 43 43 44 /** Size of buffer for pressed keys */ 44 #define KEYBUFFER_SIZE 12845 #define KEYBUFFER_SIZE 128 45 46 46 47 typedef struct { 47 kbd_event_t fifo[KEYBUFFER_SIZE];48 console_event_t fifo[KEYBUFFER_SIZE]; 48 49 unsigned long head; 49 50 unsigned long tail; … … 53 54 extern void keybuffer_free(keybuffer_t *); 54 55 extern void keybuffer_init(keybuffer_t *); 55 extern int keybuffer_available(keybuffer_t *);56 extern intkeybuffer_empty(keybuffer_t *);57 extern void keybuffer_push(keybuffer_t *, const kbd_event_t *);58 extern int keybuffer_pop(keybuffer_t *, kbd_event_t *);56 extern size_t keybuffer_available(keybuffer_t *); 57 extern bool keybuffer_empty(keybuffer_t *); 58 extern void keybuffer_push(keybuffer_t *, const console_event_t *); 59 extern bool keybuffer_pop(keybuffer_t *, console_event_t *); 59 60 60 61 #endif … … 62 63 /** 63 64 * @} 64 */ 65 65 */ -
uspace/srv/kbd/include/layout.h
rbbdbf86 r215abc1 28 28 29 29 /** @addtogroup kbdgen generic 30 * @brief 31 * @ingroup 30 * @brief HelenOS generic uspace keyboard handler. 31 * @ingroup kbd 32 32 * @{ 33 */ 33 */ 34 34 /** @file 35 35 */ … … 38 38 #define KBD_LAYOUT_H_ 39 39 40 #include <kbd/kbd.h>41 40 #include <sys/types.h> 41 #include <io/console.h> 42 42 43 43 typedef struct { 44 44 void (*reset)(void); 45 wchar_t (*parse_ev)( kbd_event_t *);45 wchar_t (*parse_ev)(console_event_t *); 46 46 } layout_op_t; 47 47 … … 54 54 /** 55 55 * @} 56 */ 57 56 */
Note:
See TracChangeset
for help on using the changeset viewer.