Ignore:
Timestamp:
2008-11-28T19:33:10Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7905360
Parents:
4c4ddbe9
Message:

Initial support for interrupt driven driver for ns16550.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/drivers/kbd.c

    r4c4ddbe9 r3e53ab7  
    104104        case KBD_Z8530:
    105105                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)) {
    107108                        printf("Failed to determine keyboard address.\n");
    108109                        return;
    109110                }
    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)) {
    111113                        printf("Failed to determine keyboard interrupt.\n");
    112114                        return;
     
    116118        case KBD_NS16550:
    117119                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)) {
    119122                        printf("Failed to determine keyboard address.\n");
    120123                        return;
    121124                }
    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)) {
    123127                        printf("Failed to determine keyboard interrupt.\n");
    124128                        return;
     
    152156#endif
    153157        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");
    155160        }
    156161}
Note: See TracChangeset for help on using the changeset viewer.