Changeset 63cda71 in mainline for boot/genarch/ofw.h


Ignore:
Timestamp:
2006-07-13T14:58:57Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
94d614e
Parents:
eda7bf81
Message:

Fix ofw_memmap() in boot infrastructure.
The cell size is 32-bit and not equal sizeof(ofw_arg_t).
Define architecture dependant #address-cells and #size-cells for cases
the respective properties are missing in the OpenFirmware device tree.
The algorithm now works both for ppc32 and sparc64.

Add memmap_t, screen_t and keyboard_t to sparc64 bootinfo structure.
Be more verbose during sparc64 boot.

Move ALIGN_UP to generic part of boot/.

Change header guards in several places so that they don't contain double underscore.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/genarch/ofw.h

    reda7bf81 r63cda71  
    2727 */
    2828
    29 #ifndef __OFW_H__
    30 #define __OFW_H__
     29#ifndef BOOT_OFW_H_
     30#define BOOT_OFW_H_
    3131
    3232#include <types.h>
     
    3939#define MAX_OFW_ARGS            12
    4040
    41 typedef unsigned long ofw_arg_t;
     41typedef unative_t ofw_arg_t;
    4242typedef unsigned int ihandle;
    4343typedef unsigned int phandle;
     
    6565
    6666typedef struct {
    67         uint32_t addr;
     67        void *addr;
    6868        unsigned int width;
    6969        unsigned int height;
     
    7373
    7474typedef struct {
    75         uint32_t addr;
     75        void *addr;
    7676        unsigned int size;
    7777} keyboard_t;
     
    9393extern phandle ofw_aliases;
    9494
    95 extern void init(void);
     95extern void ofw_init(void);
    9696extern void ofw_write(const char *str, const int len);
    9797
     
    100100
    101101extern int ofw(ofw_args_t *arg);
     102extern unsigned int ofw_get_address_cells(const phandle device);
     103extern unsigned int ofw_get_size_cells(const phandle device);
    102104extern void *ofw_translate(const void *virt);
    103105extern int ofw_translate_failed(ofw_arg_t flag);
Note: See TracChangeset for help on using the changeset viewer.