Changeset 1787e527 in mainline for boot/genarch/ofw.h


Ignore:
Timestamp:
2009-11-16T21:22:54Z (14 years ago)
Author:
Lenka Trochtova <trochtova.lenka@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5ebdf94
Parents:
fcbd1be (diff), 9c70ed6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merged with head (unstable)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/genarch/ofw.h

    rfcbd1be r1787e527  
    3333#include <stdarg.h>
    3434
    35 #define BUF_SIZE                1024
     35#define MEMMAP_MAX_RECORDS  32
     36#define MAX_OFW_ARGS        12
    3637
    37 #define MEMMAP_MAX_RECORDS      32
    38 
    39 #define MAX_OFW_ARGS            12
     38#define OFW_TREE_PATH_MAX_LEN           256
     39#define OFW_TREE_PROPERTY_MAX_NAMELEN   32
     40#define OFW_TREE_PROPERTY_MAX_VALUELEN  64
    4041
    4142typedef unative_t ofw_arg_t;
     
    4748 */
    4849typedef struct {
    49         ofw_arg_t service;              /**< Command name. */
    50         ofw_arg_t nargs;                /**< Number of in arguments. */
    51         ofw_arg_t nret;                 /**< Number of out arguments. */
    52         ofw_arg_t args[MAX_OFW_ARGS];   /**< List of arguments. */
     50        ofw_arg_t service;             /**< Command name. */
     51        ofw_arg_t nargs;               /**< Number of in arguments. */
     52        ofw_arg_t nret;                /**< Number of out arguments. */
     53        ofw_arg_t args[MAX_OFW_ARGS];  /**< List of arguments. */
    5354} ofw_args_t;
    5455
     
    6364        memzone_t zones[MEMMAP_MAX_RECORDS];
    6465} memmap_t;
    65 
    66 typedef struct {
    67         void *addr;
    68         uint32_t width;
    69         uint32_t height;
    70         uint32_t bpp;
    71         uint32_t scanline;
    72 } screen_t;
    73 
    74 typedef struct {
    75         void *addr;
    76         uint32_t size;
    77 } macio_t;
    7866
    7967typedef struct {
     
    9684extern ihandle ofw_mmu;
    9785extern phandle ofw_memory;
    98 extern phandle ofw_aliases;
    9986
    10087extern void ofw_init(void);
     
    118105extern void *ofw_translate(const void *virt);
    119106extern int ofw_translate_failed(ofw_arg_t flag);
    120 extern void *ofw_claim_virt(const void *virt, const int len);
    121 extern void *ofw_claim_phys(const void *virt, const int len);
    122 extern int ofw_map(const void *phys, const void *virt, const int size, const int mode);
     107extern void *ofw_claim_virt(const void *virt, const unsigned int len);
     108extern void *ofw_claim_phys(const void *virt, const unsigned int len);
     109extern void *ofw_claim_phys_any(const unsigned int len, const unsigned int alignment);
     110extern int ofw_map(const void *phys, const void *virt, const unsigned int size, const int mode);
    123111extern int ofw_memmap(memmap_t *map);
    124 extern int ofw_screen(screen_t *screen);
    125 extern int ofw_macio(macio_t *macio);
    126 extern int ofw_setup_palette(void);
     112extern void ofw_setup_screens(void);
    127113extern void ofw_quiesce(void);
    128114
Note: See TracChangeset for help on using the changeset viewer.