Ignore:
Timestamp:
2006-09-22T21:44:54Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5d684e4
Parents:
16529d5
Message:

Convert sparc64 to detect keyboard and determine
its physical address by walking the memory representation
of the OpenFirmware device tree.

Add bus-specific functions that know how to apply the
"ranges" property to one component of the "reg" property.
Buses supported so far include FHC, EBUS and PCI.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/trap/interrupt.c

    r16529d5 r28ecadb  
    3737#include <interrupt.h>
    3838#include <arch/drivers/fhc.h>
     39#include <arch/drivers/kbd.h>
    3940#include <typedefs.h>
    4041#include <arch/types.h>
     
    6364{
    6465#ifdef CONFIG_Z8530
    65         z8530_belongs_to_kernel = false;
     66        if (kbd_type == KBD_Z8530)
     67                z8530_belongs_to_kernel = false;
    6668#endif
    6769}
     
    7880#ifdef CONFIG_Z8530
    7981        case Z8530_INTRCV_DATA0:
     82                if (kbd_type != KBD_Z8530)
     83                        break;
    8084                /*
    8185                 * So far, we know we got this interrupt through the FHC.
Note: See TracChangeset for help on using the changeset viewer.