Changeset 3e53ab7 in mainline for kernel/arch/sparc64
- Timestamp:
- 2008-11-28T19:33:10Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7905360
- Parents:
- 4c4ddbe9
- Location:
- kernel/arch/sparc64/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/console.c
r4c4ddbe9 r3e53ab7 113 113 #endif 114 114 115 #ifdef CONFIG_NS16550 116 #ifdef CONFIG_NS16550_INTERRUPT_DRIVEN 117 if (kbd_type == KBD_NS16550) { 118 /* 119 * The ns16550 driver is interrupt-driven. 120 */ 121 return; 122 } 123 #endif 124 #endif 115 125 while (1) { 116 126 #ifdef CONFIG_NS16550 127 #ifndef CONFIG_NS16550_INTERRUPT_DRIVEN 117 128 if (kbd_type == KBD_NS16550) 118 129 ns16550_poll(); 130 #endif 119 131 #endif 120 132 thread_usleep(KEYBOARD_POLL_PAUSE); -
kernel/arch/sparc64/src/drivers/kbd.c
r4c4ddbe9 r3e53ab7 104 104 case KBD_Z8530: 105 105 size = ((ofw_fhc_reg_t *) prop->value)->size; 106 if (!ofw_fhc_apply_ranges(node->parent, ((ofw_fhc_reg_t *) prop->value) , &pa)) { 106 if (!ofw_fhc_apply_ranges(node->parent, 107 ((ofw_fhc_reg_t *) prop->value), &pa)) { 107 108 printf("Failed to determine keyboard address.\n"); 108 109 return; 109 110 } 110 if (!ofw_fhc_map_interrupt(node->parent, ((ofw_fhc_reg_t *) prop->value), interrupts, &inr)) { 111 if (!ofw_fhc_map_interrupt(node->parent, 112 ((ofw_fhc_reg_t *) prop->value), interrupts, &inr)) { 111 113 printf("Failed to determine keyboard interrupt.\n"); 112 114 return; … … 116 118 case KBD_NS16550: 117 119 size = ((ofw_ebus_reg_t *) prop->value)->size; 118 if (!ofw_ebus_apply_ranges(node->parent, ((ofw_ebus_reg_t *) prop->value) , &pa)) { 120 if (!ofw_ebus_apply_ranges(node->parent, 121 ((ofw_ebus_reg_t *) prop->value), &pa)) { 119 122 printf("Failed to determine keyboard address.\n"); 120 123 return; 121 124 } 122 if (!ofw_ebus_map_interrupt(node->parent, ((ofw_ebus_reg_t *) prop->value), interrupts, &inr)) { 125 if (!ofw_ebus_map_interrupt(node->parent, 126 ((ofw_ebus_reg_t *) prop->value), interrupts, &inr)) { 123 127 printf("Failed to determine keyboard interrupt.\n"); 124 128 return; … … 152 156 #endif 153 157 default: 154 printf("Kernel is not compiled with the necessary keyboard driver this machine requires.\n"); 158 printf("Kernel is not compiled with the necessary keyboard " 159 "driver this machine requires.\n"); 155 160 } 156 161 }
Note:
See TracChangeset
for help on using the changeset viewer.