Changeset 3e53ab7 in mainline for kernel/arch/sparc64/src/drivers/kbd.c
- Timestamp:
- 2008-11-28T19:33:10Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7905360
- Parents:
- 4c4ddbe9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.