Ignore:
Timestamp:
2006-10-06T22:37:15Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
33b1903
Parents:
233af8c5
Message:

Add support for interrupt mapping in the Sabre PCI controller.
Add support for PCI and EBUS interrupt mapping via the OpenFirmware device tree.
Unfortunatelly, the code is not capable enough to earn single ns16550 interrupt.
I suspect something needs to be enabled in the EBUS registers.

File:
1 edited

Legend:

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

    r233af8c5 re2cc9a0  
    100100        uintptr_t pa;
    101101        size_t size;
    102         int ino;
     102        int inr;
    103103       
    104104        switch (kbd_type) {
     
    109109                        return;
    110110                }
    111                 if (!ofw_fhc_map_interrupts(node->parent, ((ofw_fhc_reg_t *) prop->value), interrupts, &ino)) {
     111                if (!ofw_fhc_map_interrupts(node->parent, ((ofw_fhc_reg_t *) prop->value), interrupts, &inr)) {
    112112                        printf("Failed to determine keyboard interrupts.\n");
    113113                        return;
     
    120120                        return;
    121121                }
    122                 if (!ofw_ebus_map_interrupts(node->parent, ((ofw_ebus_reg_t *) prop->value), interrupts, &ino)) {
     122                if (!ofw_ebus_map_interrupts(node->parent, ((ofw_ebus_reg_t *) prop->value), interrupts, &inr)) {
    123123                        printf("Failed to determine keyboard interrupts.\n");
    124124                        return;
Note: See TracChangeset for help on using the changeset viewer.