Ignore:
Timestamp:
2006-09-22T21:44:54Z (19 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/include/drivers/kbd.h

    r16529d5 r28ecadb  
    3737
    3838#include <arch/types.h>
     39#include <genarch/ofw/ofw_tree.h>
     40
     41typedef enum {
     42        KBD_UNKNOWN,
     43        KBD_Z8530,
     44        KBD_NS16550
     45} kbd_type_t;
     46
     47extern kbd_type_t kbd_type;
    3948
    4049extern volatile uint8_t *kbd_virt_address;
    4150
    42 extern void kbd_init(void);
     51extern void kbd_init(ofw_tree_node_t *node);
    4352
    4453#endif
Note: See TracChangeset for help on using the changeset viewer.