Changeset 0d107f31 in mainline for kernel/arch/sparc64/src/drivers/kbd.c
- Timestamp:
- 2006-10-13T20:42:54Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7dcf22a
- Parents:
- 8ce8499
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/drivers/kbd.c
r8ce8499 r0d107f31 41 41 #include <genarch/kbd/ns16550.h> 42 42 #endif 43 43 #include <irq.h> 44 44 #include <arch/mm/page.h> 45 45 #include <arch/types.h> … … 52 52 53 53 kbd_type_t kbd_type = KBD_UNKNOWN; 54 55 static irq_t kbd_irq; 54 56 55 57 /** Initialize keyboard. … … 102 104 int inr; 103 105 106 irq_initialize(&kbd_irq); 107 104 108 switch (kbd_type) { 105 109 case KBD_Z8530: … … 112 116 printf("Failed to determine keyboard interrupt.\n"); 113 117 return; 118 } else { 119 kbd_irq.inr = inr; 120 kbd_irq.devno = 0; /* FIXME: assign unique devno */ 121 kbd_irq.trigger = IRQ_TRIGGER_LEVEL; 122 kbd_irq.claim = z8530_claim; 123 kbd_irq.handler = z8530_irq_handler; 124 irq_register(&kbd_irq); 114 125 } 115 126 break; 127 116 128 case KBD_NS16550: 117 129 size = ((ofw_ebus_reg_t *) prop->value)->size; … … 123 135 printf("Failed to determine keyboard interrupt.\n"); 124 136 return; 137 } else { 138 kbd_irq.inr = inr; 139 kbd_irq.devno = 0; /* FIXME: assign unique devno */ 140 kbd_irq.trigger = IRQ_TRIGGER_LEVEL; 141 kbd_irq.claim = ns16550_claim; 142 kbd_irq.handler = ns16550_irq_handler; 143 irq_register(&kbd_irq); 125 144 } 126 145 break; 146 127 147 default: 128 148 panic("Unexpected type.\n");
Note:
See TracChangeset
for help on using the changeset viewer.