Changeset 5f88293 in mainline
- Timestamp:
- 2011-06-12T15:44:38Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 60e5a856
- Parents:
- af897ff0
- Files:
-
- 7 edited
- 29 moved
Legend:
- Unmodified
- Added
- Removed
-
boot/Makefile.common
raf897ff0 r5f88293 86 86 RD_SRVS_ESSENTIAL = \ 87 87 $(USPACE_PATH)/srv/hid/fb/fb \ 88 $(USPACE_PATH)/srv/hid/ kbd/kbd\88 $(USPACE_PATH)/srv/hid/input/input \ 89 89 $(USPACE_PATH)/srv/hid/console/console \ 90 90 $(USPACE_PATH)/srv/fs/devfs/devfs -
uspace/Makefile
raf897ff0 r5f88293 85 85 srv/hid/s3c24xx_ts \ 86 86 srv/hid/fb \ 87 srv/hid/ kbd\87 srv/hid/input \ 88 88 srv/hw/char/i8042 \ 89 89 srv/hw/char/s3c24xx_uart \ -
uspace/app/init/init.c
raf897ff0 r5f88293 280 280 281 281 spawn("/srv/fb"); 282 spawn("/srv/ kbd");283 console("hid_in/ kbd");282 spawn("/srv/input"); 283 console("hid_in/input"); 284 284 285 285 spawn("/srv/clip"); -
uspace/drv/usbhid/kbd/kbddev.c
raf897ff0 r5f88293 41 41 #include <io/keycode.h> 42 42 #include <io/console.h> 43 #include <ipc/kbd .h>43 #include <ipc/kbdev.h> 44 44 #include <async.h> 45 45 #include <async_obsolete.h> … … 303 303 } 304 304 305 async_obsolete_msg_2(kbd_dev->console_phone, KBD _EVENT, type, key);305 async_obsolete_msg_2(kbd_dev->console_phone, KBDEV_EVENT, type, key); 306 306 } 307 307 -
uspace/drv/usbhid/mouse/mousedev.c
raf897ff0 r5f88293 47 47 #include <io/console.h> 48 48 49 #include <ipc/kbd .h>49 #include <ipc/kbdev.h> 50 50 #include <io/keycode.h> 51 51 … … 219 219 for (i = 0; i < count * 3; ++i) { 220 220 usb_log_debug2("Sending key %d to the console\n", ev.key); 221 async_obsolete_msg_4(mouse_dev->wheel_phone, KBD _EVENT, ev.type,221 async_obsolete_msg_4(mouse_dev->wheel_phone, KBDEV_EVENT, ev.type, 222 222 ev.key, ev.mods, ev.c); 223 223 // send key release right away 224 async_obsolete_msg_4(mouse_dev->wheel_phone, KBD _EVENT, KEY_RELEASE,224 async_obsolete_msg_4(mouse_dev->wheel_phone, KBDEV_EVENT, KEY_RELEASE, 225 225 ev.key, ev.mods, ev.c); 226 226 } -
uspace/drv/usbhid/multimedia/multimedia.c
raf897ff0 r5f88293 50 50 #include <str_error.h> 51 51 52 #include <ipc/kbd .h>52 #include <ipc/kbdev.h> 53 53 #include <io/console.h> 54 54 … … 162 162 } 163 163 164 async_obsolete_msg_4(multim_dev->console_phone, KBD _EVENT, ev.type, ev.key,164 async_obsolete_msg_4(multim_dev->console_phone, KBDEV_EVENT, ev.type, ev.key, 165 165 ev.mods, ev.c); 166 166 } -
uspace/lib/c/include/ipc/input.h
raf897ff0 r5f88293 1 1 /* 2 * Copyright (c) 20 09Jiri Svoboda2 * Copyright (c) 2011 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup kbdgen generic 30 * @brief HelenOS generic uspace keyboard handler. 31 * @ingroup kbd 29 /** @addtogroup libcipc 32 30 * @{ 33 31 */ … … 35 33 */ 36 34 37 #ifndef LIBC_IPC_ KBD_H_38 #define LIBC_IPC_ KBD_H_35 #ifndef LIBC_IPC_INPUT_H_ 36 #define LIBC_IPC_INPUT_H_ 39 37 40 38 #include <ipc/common.h> 41 #include <ipc/dev_iface.h>42 39 43 40 typedef enum { 44 KBD_YIELD = DEV_FIRST_CUSTOM_METHOD,45 KBD_RECLAIM46 } kbd_request_t;41 INPUT_YIELD = IPC_FIRST_USER_METHOD, 42 INPUT_RECLAIM 43 } input_request_t; 47 44 48 45 typedef enum { 49 KBD_EVENT = IPC_FIRST_USER_METHOD50 } kbd_notif_t;46 INPUT_EVENT = IPC_FIRST_USER_METHOD 47 } input_notif_t; 51 48 52 49 #endif -
uspace/srv/hid/console/console.c
raf897ff0 r5f88293 34 34 35 35 #include <libc.h> 36 #include <ipc/ kbd.h>36 #include <ipc/input.h> 37 37 #include <io/keycode.h> 38 38 #include <ipc/mouse.h> … … 157 157 static void kbd_yield(void) 158 158 { 159 async_obsolete_req_0_0(kbd_phone, KBD_YIELD);159 async_obsolete_req_0_0(kbd_phone, INPUT_YIELD); 160 160 } 161 161 162 162 static void kbd_reclaim(void) 163 163 { 164 async_obsolete_req_0_0(kbd_phone, KBD_RECLAIM);164 async_obsolete_req_0_0(kbd_phone, INPUT_RECLAIM); 165 165 } 166 166 … … 444 444 445 445 switch (IPC_GET_IMETHOD(call)) { 446 case KBD_EVENT:446 case INPUT_EVENT: 447 447 /* Got event from keyboard driver. */ 448 448 retval = 0; -
uspace/srv/hid/input/Makefile
raf897ff0 r5f88293 35 35 36 36 EXTRA_CFLAGS = -Iinclude 37 BINARY = kbd37 BINARY = input 38 38 39 39 -include $(COMMON_MAKEFILE) … … 44 44 45 45 SOURCES = \ 46 generic/ kbd.c \46 generic/input.c \ 47 47 genarch/gsp.c \ 48 48 genarch/stroke.c \ -
uspace/srv/hid/input/ctl/apple.c
raf897ff0 r5f88293 28 28 29 29 /** @addtogroup kbd_ctl 30 * @ingroup kbd30 * @ingroup input 31 31 * @{ 32 32 */ -
uspace/srv/hid/input/ctl/gxe_fb.c
raf897ff0 r5f88293 28 28 29 29 /** @addtogroup kbd_ctl 30 * @ingroup kbd30 * @ingroup input 31 31 * @{ 32 32 */ -
uspace/srv/hid/input/ctl/pc.c
raf897ff0 r5f88293 28 28 29 29 /** @addtogroup kbd_ctl 30 * @ingroup kbd30 * @ingroup input 31 31 * @{ 32 32 */ -
uspace/srv/hid/input/ctl/stty.c
raf897ff0 r5f88293 28 28 29 29 /** @addtogroup kbd_ctl 30 * @ingroup kbd30 * @ingroup input 31 31 * @{ 32 32 */ -
uspace/srv/hid/input/ctl/sun.c
raf897ff0 r5f88293 29 29 30 30 /** @addtogroup kbd_ctl 31 * @ingroup kbd31 * @ingroup input 32 32 * @{ 33 33 */ -
uspace/srv/hid/input/genarch/gsp.c
raf897ff0 r5f88293 29 29 /** 30 30 * @addtogroup kbdgen generic 31 * @ingroup kbd31 * @ingroup input 32 32 * @{ 33 33 */ -
uspace/srv/hid/input/genarch/stroke.c
raf897ff0 r5f88293 27 27 */ 28 28 29 /** @addtogroup kbd29 /** @addtogroup input 30 30 * @{ 31 31 */ -
uspace/srv/hid/input/generic/input.c
raf897ff0 r5f88293 29 29 30 30 /** 31 * @addtogroup kbdgen generic32 * @brief HelenOS generic uspace keyboard handler.33 * @ingroup kbd31 * @addtogroup inputgen generic 32 * @brief HelenOS input server. 33 * @ingroup input 34 34 * @{ 35 35 */ … … 39 39 #include <adt/list.h> 40 40 #include <ipc/services.h> 41 #include <ipc/ kbd.h>41 #include <ipc/input.h> 42 42 #include <sysinfo.h> 43 43 #include <stdio.h> … … 175 175 ev.c = layout[active_layout]->parse_ev(&ev); 176 176 177 async_obsolete_msg_4(client_phone, KBD_EVENT, ev.type, ev.key, ev.mods, ev.c);177 async_obsolete_msg_4(client_phone, INPUT_EVENT, ev.type, ev.key, ev.mods, ev.c); 178 178 } 179 179 … … 208 208 retval = 0; 209 209 break; 210 case KBD_YIELD:210 case INPUT_YIELD: 211 211 kbd_devs_yield(); 212 212 retval = 0; 213 213 break; 214 case KBD_RECLAIM:214 case INPUT_RECLAIM: 215 215 kbd_devs_reclaim(); 216 216 retval = 0; … … 416 416 int main(int argc, char **argv) 417 417 { 418 printf("%s: HelenOS Keyboardservice\n", NAME);418 printf("%s: HelenOS input service\n", NAME); 419 419 420 420 sysarg_t fhc; … … 466 466 /** 467 467 * @} 468 */ 468 */ -
uspace/srv/hid/input/include/gsp.h
raf897ff0 r5f88293 27 27 */ 28 28 29 /** @addtogroup kbdgen generic29 /** @addtogroup inputgen generic 30 30 * @brief Generic scancode parser. 31 * @ingroup kbd31 * @ingroup input 32 32 * @{ 33 */ 33 */ 34 34 /** @file 35 35 */ -
uspace/srv/hid/input/include/kbd.h
raf897ff0 r5f88293 28 28 */ 29 29 30 /** @addtogroup kbdgen generic31 * @brief HelenOS generic uspace keyboard handler.32 * @ingroup kbd30 /** @addtogroup inputgen generic 31 * @brief HelenOS input server. 32 * @ingroup input 33 33 * @{ 34 34 */ … … 42 42 #include <bool.h> 43 43 44 #define NAME " kbd"44 #define NAME "input" 45 45 #define NAMESPACE "hid_in" 46 46 -
uspace/srv/hid/input/include/kbd_ctl.h
raf897ff0 r5f88293 27 27 */ 28 28 29 /** @addtogroup kbdgen generic30 * @brief HelenOS generic uspace keyboard handler.31 * @ingroup kbd29 /** @addtogroup inputgen generic 30 * @brief Keyboard controller driver interface. 31 * @ingroup input 32 32 * @{ 33 */ 33 */ 34 34 /** @file 35 35 */ -
uspace/srv/hid/input/include/kbd_port.h
raf897ff0 r5f88293 27 27 */ 28 28 29 /** @addtogroup kbdgen generic30 * @brief HelenOS generic uspace keyboard handler.31 * @ingroup kbd29 /** @addtogroup inputgen generic 30 * @brief Keyboard port driver interface. 31 * @ingroup input 32 32 * @{ 33 */ 33 */ 34 34 /** @file 35 35 */ -
uspace/srv/hid/input/include/layout.h
raf897ff0 r5f88293 27 27 */ 28 28 29 /** @addtogroup kbdgen generic30 * @brief HelenOS generic uspace keyboard handler.31 * @ingroup kbd29 /** @addtogroup inputgen generic 30 * @brief Keyboard layout interface. 31 * @ingroup input 32 32 * @{ 33 33 */ -
uspace/srv/hid/input/include/stroke.h
raf897ff0 r5f88293 27 27 */ 28 28 29 /** @addtogroup kbdgen generic29 /** @addtogroup inputgen generic 30 30 * @brief Generic scancode parser. 31 * @ingroup kbd31 * @ingroup input 32 32 * @{ 33 33 */ -
uspace/srv/hid/input/layout/cz.c
raf897ff0 r5f88293 27 27 */ 28 28 29 /** @addtogroup kbd29 /** @addtogroup input 30 30 * @brief Czech QWERTZ layout. 31 31 * @{ -
uspace/srv/hid/input/layout/us_dvorak.c
raf897ff0 r5f88293 27 27 */ 28 28 29 /** @addtogroup kbd29 /** @addtogroup input 30 30 * @brief US Dvorak Simplified Keyboard layout. 31 31 * @{ -
uspace/srv/hid/input/layout/us_qwerty.c
raf897ff0 r5f88293 27 27 */ 28 28 29 /** @addtogroup kbd29 /** @addtogroup input 30 30 * @brief US QWERTY layout. 31 31 * @{ 32 */ 32 */ 33 33 34 34 #include <kbd.h> -
uspace/srv/hid/input/port/adb.c
raf897ff0 r5f88293 63 63 static kbd_dev_t *kbd_dev; 64 64 static int dev_phone; 65 66 #define NAME "kbd"67 65 68 66 static int adb_port_init(kbd_dev_t *kdev)
Note:
See TracChangeset
for help on using the changeset viewer.