- Timestamp:
- 2009-02-25T21:32:18Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6b1de7a
- Parents:
- f542825
- Location:
- uspace
- Files:
-
- 3 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/Makefile
rf542825 r3e5a814 63 63 endif 64 64 65 ifeq ($(UARCH),sparc64) 66 DIRS += srv/fhc 67 endif 68 65 69 BUILDS := $(addsuffix .build,$(DIRS)) 66 70 CLEANS := $(addsuffix .clean,$(DIRS)) -
uspace/app/init/init.c
rf542825 r3e5a814 109 109 spawn("/srv/kbd"); 110 110 spawn("/srv/console"); 111 spawn("/srv/fhc"); 111 112 112 113 console_wait(); -
uspace/lib/libc/include/ipc/services.h
rf542825 r3e5a814 45 45 SERVICE_CONSOLE, 46 46 SERVICE_VFS, 47 SERVICE_DEVMAP 47 SERVICE_DEVMAP, 48 SERVICE_FHC 48 49 } services_t; 49 50 -
uspace/srv/kbd/generic/kbd.c
rf542825 r3e5a814 38 38 #include <ipc/ipc.h> 39 39 #include <ipc/services.h> 40 #include <sysinfo.h> 40 41 #include <stdio.h> 41 42 #include <unistd.h> … … 66 67 /** Currently pressed lock keys. We track these to tackle autorepeat. */ 67 68 static unsigned lock_keys; 69 70 int cir_service = 0; 71 int cir_phone = -1; 68 72 69 73 void kbd_push_scancode(int scancode) … … 173 177 ipcarg_t phonead; 174 178 179 if (sysinfo_value("kbd.cir.fhc") == 1) 180 cir_service = SERVICE_FHC; 181 182 if (cir_service) { 183 while (cir_phone < 0) { 184 cir_phone = ipc_connect_me_to(PHONE_NS, cir_service, 185 0, 0); 186 } 187 } 188 175 189 /* Initialize port driver. */ 176 190 if (kbd_port_init()) -
uspace/srv/kbd/include/kbd.h
rf542825 r3e5a814 46 46 #define KBD_MS_MOVE 1028 47 47 48 extern int cir_service; 49 extern int cir_phone; 50 48 51 extern void kbd_push_scancode(int); 49 52 extern void kbd_push_ev(int, unsigned int); -
uspace/srv/kbd/port/z8530.c
rf542825 r3e5a814 36 36 37 37 #include <ipc/ipc.h> 38 #include <ipc/bus.h> 38 39 #include <async.h> 39 40 #include <sysinfo.h> … … 89 90 CHAN_A_DATA; 90 91 ipc_register_irq(sysinfo_value("kbd.inr"), sysinfo_value("kbd.devno"), 91 0, &z8530_kbd);92 sysinfo_value("kbd.inr"), &z8530_kbd); 92 93 return 0; 93 94 } … … 97 98 int scan_code = IPC_GET_ARG2(*call); 98 99 kbd_push_scancode(scan_code); 100 101 if (cir_service) 102 async_msg_1(cir_phone, BUS_CLEAR_INTERRUPT, 103 IPC_GET_METHOD(*call)); 99 104 } 100 105
Note:
See TracChangeset
for help on using the changeset viewer.