Changeset 3e5a814 in mainline
- 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
- Files:
-
- 3 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/sparc64/loader/Makefile
rf542825 r3e5a814 103 103 $(USPACEDIR)/srv/console/console \ 104 104 $(USPACEDIR)/srv/fs/tmpfs/tmpfs \ 105 $(USPACEDIR)/srv/fs/fat/fat 105 $(USPACEDIR)/srv/fs/fat/fat \ 106 $(USPACEDIR)/srv/fhc/fhc 106 107 107 108 RD_APPS = \ -
kernel/arch/sparc64/src/drivers/fhc.c
rf542825 r3e5a814 46 46 #include <arch/types.h> 47 47 #include <genarch/ofw/ofw_tree.h> 48 #include <sysinfo/sysinfo.h> 48 49 49 50 fhc_t *central_fhc = NULL; … … 87 88 fhc->uart_imap = (uint32_t *) hw_map(paddr, reg->size); 88 89 90 /* 91 * Set sysinfo data needed by the uspace FHC driver. 92 */ 93 sysinfo_set_item_val("fhc.uart.size", NULL, reg->size); 94 sysinfo_set_item_val("fhc.uart.physical", NULL, paddr); 95 89 96 return fhc; 90 97 } -
kernel/arch/sparc64/src/drivers/kbd.c
rf542825 r3e5a814 48 48 #include <func.h> 49 49 #include <print.h> 50 #include <sysinfo/sysinfo.h> 50 51 51 52 kbd_type_t kbd_type = KBD_UNKNOWN; … … 116 117 return; 117 118 } 119 sysinfo_set_item_val("kbd.cir.fhc", NULL, 1); 118 120 break; 119 121 -
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.