Changeset 9239333 in mainline
- Timestamp:
- 2009-04-15T15:44:51Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d15815e2
- Parents:
- f03afad
- Location:
- uspace/srv/kbd
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/kbd/Makefile
rf03afad r9239333 60 60 ctl/pc.c 61 61 endif 62 62 63 ifeq ($(UARCH), arm32) 63 64 GENARCH_SOURCES += \ 64 65 port/gxemul.c 66 65 67 ifeq ($(CONFIG_FB), y) 66 68 GENARCH_SOURCES += \ … … 71 73 endif 72 74 endif 75 73 76 ifeq ($(UARCH), ia32) 74 77 GENARCH_SOURCES += \ … … 76 79 ctl/pc.c 77 80 endif 81 78 82 ifeq ($(MACHINE), i460GX) 79 83 GENARCH_SOURCES += \ … … 81 85 ctl/pc.c 82 86 endif 87 83 88 ifeq ($(MACHINE), ski) 84 89 GENARCH_SOURCES += \ … … 86 91 ctl/stty.c 87 92 endif 93 88 94 ifeq ($(MACHINE), msim) 89 95 GENARCH_SOURCES += \ … … 91 97 ctl/stty.c 92 98 endif 99 93 100 ifeq ($(MACHINE), lgxemul) 94 101 GENARCH_SOURCES += \ 95 102 port/gxemul.c 103 96 104 ifeq ($(CONFIG_FB), y) 97 105 GENARCH_SOURCES += \ … … 102 110 endif 103 111 endif 112 104 113 ifeq ($(MACHINE), bgxemul) 105 114 GENARCH_SOURCES += \ … … 107 116 ctl/stty.c 108 117 endif 118 109 119 ifeq ($(UARCH), ppc32) 110 120 GENARCH_SOURCES += \ … … 112 122 ctl/stty.c 113 123 endif 124 114 125 ifeq ($(UARCH), sparc64) 115 ifeq ($(MACHINE),serengeti) 116 GENARCH_SOURCES += \ 117 port/sgcn.c \ 118 ctl/stty.c 119 else 120 GENARCH_SOURCES += \ 121 port/z8530.c \ 122 ctl/sun.c 123 endif 126 ifeq ($(MACHINE),serengeti) 127 GENARCH_SOURCES += \ 128 port/sgcn.c \ 129 ctl/stty.c 130 else 131 GENARCH_SOURCES += \ 132 port/sun.c \ 133 port/z8530.c \ 134 port/ns16550.c \ 135 ctl/sun.c 136 endif 124 137 endif 125 138 -
uspace/srv/kbd/port/ns16550.c
rf03afad r9239333 36 36 37 37 #include <ipc/ipc.h> 38 #include <ipc/bus.h> 38 39 #include <async.h> 39 40 #include <sysinfo.h> 40 41 #include <kbd.h> 41 42 #include <kbd_port.h> 43 #include <sun.h> 42 44 #include <ddi.h> 43 45 … … 90 92 static uintptr_t ns16550_kernel; 91 93 92 int kbd_port_init(void)94 int ns16550_port_init(void) 93 95 { 94 96 void *vaddr; … … 101 103 ns16550_kbd.cmds[3].addr = (void *) (ns16550_kernel + RBR_REG); 102 104 ipc_register_irq(sysinfo_value("kbd.inr"), device_assign_devno(), 103 0, &ns16550_kbd);105 sysinfo_value("kbd.inr"), &ns16550_kbd); 104 106 return pio_enable((void *) ns16550_physical, 8, &vaddr); 105 107 } … … 109 111 int scan_code = IPC_GET_ARG2(*call); 110 112 kbd_push_scancode(scan_code); 113 114 if (cir_service) 115 async_msg_1(cir_phone, BUS_CLEAR_INTERRUPT, 116 IPC_GET_METHOD(*call)); 111 117 } 112 118 -
uspace/srv/kbd/port/z8530.c
rf03afad r9239333 41 41 #include <kbd.h> 42 42 #include <kbd_port.h> 43 #include <sun.h> 43 44 #include <sys/types.h> 44 45 #include <ddi.h> … … 83 84 static void z8530_irq_handler(ipc_callid_t iid, ipc_call_t *call); 84 85 85 int kbd_port_init(void)86 int z8530_port_init(void) 86 87 { 87 88 async_set_interrupt_received(z8530_irq_handler);
Note:
See TracChangeset
for help on using the changeset viewer.