Changeset 0c33687a in mainline
- Timestamp:
- 2009-02-21T20:51:30Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e78136a
- Parents:
- 21df2e5
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/src/drivers/msim.c
r21df2e5 r0c33687a 34 34 35 35 #include <interrupt.h> 36 #include <ipc/irq.h>37 36 #include <console/chardev.h> 38 37 #include <arch/drivers/msim.h> … … 96 95 static void msim_irq_handler(irq_t *irq) 97 96 { 98 if ((irq->notif_cfg.notify) && (irq->notif_cfg.answerbox)) 99 ipc_irq_send_notif(irq); 100 else { 101 char ch = 0; 97 char ch = 0; 102 98 103 ch = *((char *) MSIM_KBD_ADDRESS); 104 if (ch =='\r') 105 ch = '\n'; 106 if (ch == 0x7f) 107 ch = '\b'; 108 chardev_push_character(&console, ch); 109 } 99 ch = *((char *) MSIM_KBD_ADDRESS); 100 if (ch =='\r') 101 ch = '\n'; 102 if (ch == 0x7f) 103 ch = '\b'; 104 chardev_push_character(&console, ch); 110 105 } 111 106 -
kernel/arch/mips32/src/drivers/serial.c
r21df2e5 r0c33687a 35 35 #include <interrupt.h> 36 36 #include <arch/cp0.h> 37 #include <ipc/irq.h>38 37 #include <arch/drivers/serial.h> 39 38 #include <console/chardev.h> … … 115 114 static void serial_irq_handler(irq_t *irq) 116 115 { 117 if ((irq->notif_cfg.notify) && (irq->notif_cfg.answerbox)) 118 ipc_irq_send_notif(irq); 119 else 120 serial_handler(); 116 serial_handler(); 121 117 } 122 118 -
uspace/srv/kbd/port/msim.c
r21df2e5 r0c33687a 41 41 #include <kbd.h> 42 42 43 irq_cmd_t msim_cmds[1] = { 44 { CMD_MEM_READ_1, (void *) 0, 0, 2 } 43 irq_cmd_t msim_cmds[] = { 44 { 45 .cmd = CMD_PIO_READ_8, 46 .addr = (void *) 0, /* will be patched in run-time */ 47 .dstarg = 2 48 }, 49 { 50 .cmd = CMD_ACCEPT 51 } 52 45 53 }; 46 54 47 55 irq_code_t msim_kbd = { 48 1,56 sizeof(msim_cmds) / sizeof(irq_cmd_t), 49 57 msim_cmds 50 58 };
Note:
See TracChangeset
for help on using the changeset viewer.