Changeset 95b3550 in mainline
- Timestamp:
- 2006-10-18T16:59:28Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a000fd71
- Parents:
- 494a54a
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/include/interrupt.h
r494a54a r95b3550 40 40 41 41 #define IVT_ITEMS IDT_ITEMS 42 #define IVT_FIRST 0 42 43 43 44 #define EXC_COUNT 32 -
kernel/arch/ia32/src/interrupt.c
r494a54a r95b3550 190 190 } 191 191 192 static void ipc_int(int n, istate_t *istate)193 {194 ipc_irq_send_notif(n-IVT_IRQBASE);195 trap_virtual_eoi();196 }197 198 192 /** @} 199 193 */ -
uspace/kbd/arch/ia32/include/kbd.h
r494a54a r95b3550 43 43 #include <libarch/ddi.h> 44 44 45 #define KBD_IRQ 146 #define MOUSE_IRQ 1247 48 45 #define i8042_DATA 0x60 49 46 #define i8042_STATUS 0X64 -
uspace/kbd/arch/ia32/src/kbd.c
r494a54a r95b3550 43 43 #include <keys.h> 44 44 #include <genarch/kbd.h> 45 #include <sysinfo.h> 45 46 46 47 /* Interesting bits for status register */ … … 70 71 71 72 irq_cmd_t i8042_cmds[2] = { 72 { CMD_PORT_READ_1, (void *) 0x64, 0, 1 },73 { CMD_PORT_READ_1, (void *) 0x60, 0, 2 }73 { CMD_PORT_READ_1, (void *) 0x64, 0, 1 }, 74 { CMD_PORT_READ_1, (void *) 0x60, 0, 2 } 74 75 }; 75 76 … … 92 93 int mouseenabled = 0; 93 94 94 iospace_enable(task_get_id(), (void *)i8042_DATA, 5);95 iospace_enable(task_get_id(), (void *) i8042_DATA, 5); 95 96 /* Disable kbd, enable mouse */ 96 97 i8042_command_write(i8042_CMD_KBD); … … 125 126 /* enable mouse */ 126 127 mouseenabled = 1; 127 128 ipc_register_irq( MOUSE_IRQ, &i8042_kbd);128 129 ipc_register_irq(sysinfo_value("mouse.inr"), sysinfo_value("mouse.devno"), 0, &i8042_kbd); 129 130 } 130 131 /* Enable kbd */ 131 ipc_register_irq(KBD_IRQ, &i8042_kbd); 132 /* Register for irq restart */ 133 ipc_register_irq(IPC_IRQ_KBDRESTART, NULL); 132 ipc_register_irq(sysinfo_value("kbd.inr"), sysinfo_value("kbd.devno"), 0, &i8042_kbd); 134 133 135 134 int newcontrol = i8042_KBD_IE | i8042_KBD_TRANSLATE; … … 150 149 int status = IPC_GET_ARG1(*call); 151 150 152 if (IPC_GET_METHOD(*call) == IPC_IRQ_KBDRESTART) {153 kbd_arch_init();154 return 1;155 }156 157 151 if ((status & i8042_MOUSE_DATA)) 158 152 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.