Changeset 28ecadb in mainline for kernel/arch/sparc64/include


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.

Location:
kernel/arch/sparc64/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/include/boot/boot.h

    r16529d5 r28ecadb  
    8080
    8181typedef struct {
    82         uintptr_t addr;
    83         uint32_t size;
    84 } keyboard_t;
    85 
    86 typedef struct {
    8782        uint32_t clock_frequency;
    8883} processor_t;
     
    9691        memmap_t memmap;
    9792        screen_t screen;
    98         keyboard_t keyboard;
    9993        processor_t processor;
    10094        ballocs_t ballocs;
  • 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.