Changeset 2b017ba in mainline for kernel/genarch/src/kbd/z8530.c
- Timestamp:
- 2006-10-16T20:51:55Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5f9b4d9a
- Parents:
- e3890b3f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/kbd/z8530.c
re3890b3f r2b017ba 41 41 #include <arch/drivers/z8530.h> 42 42 #include <ddi/irq.h> 43 #include <ipc/irq.h> 43 44 #include <arch/interrupt.h> 44 45 #include <arch/drivers/kbd.h> … … 59 60 #define IGNORE_CODE 0x7f /* all keys up */ 60 61 61 bool z8530_belongs_to_kernel = true;62 63 62 static z8530_t z8530; /**< z8530 device structure. */ 64 63 static irq_t z8530_irq; /**< z8530's IRQ. */ … … 73 72 }; 74 73 75 void z8530_wait(void); 76 77 /** Initialize keyboard and service interrupts using kernel routine */ 74 /** Initialize keyboard and service interrupts using kernel routine. */ 78 75 void z8530_grab(void) 79 76 { 80 z8530_belongs_to_kernel = true; 81 } 82 83 /** Resume the former interrupt vector */ 77 } 78 79 /** Resume the former IPC notification behavior. */ 84 80 void z8530_release(void) 85 81 { 86 z8530_belongs_to_kernel = false;87 82 } 88 83 … … 132 127 { 133 128 z8530_poll(); 134 }135 136 /** Wait until the controller reads its data. */137 void z8530_wait(void) {138 129 } 139 130 … … 195 186 /* 196 187 * So far, we know we got this interrupt through the FHC. 197 * Since we don't have enough information about the FHC and198 * because the interrupt looks like level sensitive,188 * Since we don't have enough documentation about the FHC 189 * and because the interrupt looks like level sensitive, 199 190 * we cannot handle it by scheduling one of the level 200 191 * interrupt traps. Process the interrupt directly. 201 192 */ 202 if (z8530_belongs_to_kernel) 193 if (irq->notif_cfg.answerbox) 194 ipc_irq_send_notif(irq); 195 else 203 196 z8530_interrupt(); 204 else205 ipc_irq_send_notif(0);206 197 fhc_clear_interrupt(central_fhc, irq->inr); 207 198 }
Note:
See TracChangeset
for help on using the changeset viewer.