Ignore:
Timestamp:
2009-08-20T16:58:55Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b9c7425
Parents:
a11099f
Message:

make ppc32 OFW usage on par with sparc64, make appropriate modifications elsewhere

  • introduce ofw_tree_walk_by_device_type() to gather all OFW devices of a given type
  • ppc32 uses canonized OFW tree, mac-io and display devices are detected in kernel (not by the boot loader) by means of device type
  • various busses (PCI, EBUS, etc.) stay sparc64 specific for now
  • boot memcpy() is defined in a common way
  • BALLOC_MAX_SIZE is platform-dependent
  • ppc32 and sparc64 boot loaders cleanup (removal of obsolete stuff, data is not passed by global variables if not necessary, etc.)
  • balloc and OFW tree canonizer have now a provision to support different mapping of the data during boot time and kernel run-time
  • OFW tree canonizer uses balloc_rebase() to store pointers suitable for access during kernel run-time (with potentially different memory mapping than during boot time)
File:
1 edited

Legend:

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

    ra11099f re731b0d  
    3535#include <arch/drivers/kbd.h>
    3636#include <genarch/ofw/ofw_tree.h>
    37 
    38 #ifdef CONFIG_SUN_KBD
    39 #include <genarch/kbrd/kbrd.h>
    40 #endif
    41 #ifdef CONFIG_Z8530
    42 #include <genarch/drivers/z8530/z8530.h>
    43 #endif
    44 #ifdef CONFIG_NS16550
    45 #include <genarch/drivers/ns16550/ns16550.h>
    46 #endif
    47 
     37#include <genarch/ofw/fhc.h>
     38#include <genarch/ofw/ebus.h>
    4839#include <console/console.h>
    4940#include <ddi/irq.h>
     
    5647
    5748#ifdef CONFIG_SUN_KBD
     49#include <genarch/kbrd/kbrd.h>
     50#endif
     51
     52#ifdef CONFIG_Z8530
     53#include <genarch/drivers/z8530/z8530.h>
     54#endif
     55
     56#ifdef CONFIG_NS16550
     57#include <genarch/drivers/ns16550/ns16550.h>
     58#endif
     59
     60#ifdef CONFIG_SUN_KBD
    5861
    5962#ifdef CONFIG_Z8530
Note: See TracChangeset for help on using the changeset viewer.