32#include <boot/types.h>
35#define MEMMAP_MAX_RECORDS 32
36#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
42typedef unative_t ofw_arg_t;
43typedef unsigned int ihandle;
44typedef unsigned int phandle;
53 ofw_arg_t args[MAX_OFW_ARGS];
79extern uintptr_t ofw_cif;
81extern phandle ofw_chosen;
82extern ihandle ofw_stdout;
83extern phandle ofw_root;
84extern ihandle ofw_mmu;
85extern phandle ofw_memory;
87extern void ofw_init(
void);
89extern void ofw_write(
const char *str,
const int len);
91extern int ofw_get_property(
const phandle
device,
const char *name,
void *buf,
const int buflen);
92extern int ofw_get_proplen(
const phandle
device,
const char *name);
93extern int ofw_next_property(
const phandle
device,
char *previous,
char *buf);
95extern phandle ofw_get_child_node(
const phandle node);
96extern phandle ofw_get_peer_node(
const phandle node);
97extern phandle ofw_find_device(
const char *name);
99extern int ofw_package_to_path(
const phandle
device,
char *buf,
const int buflen);
102extern unsigned long ofw_call(
const char *service,
const int nargs,
const int nret, ofw_arg_t *rets, ...);
103extern void ofw_write(
const char *str,
const int len);
104extern void ofw_read(
void *str,
const int len);
105extern unsigned int ofw_get_address_cells(
const phandle
device);
106extern unsigned int ofw_get_size_cells(
const phandle
device);
107extern void *ofw_translate(
const void *virt);
108extern int ofw_translate_failed(ofw_arg_t flag);
109extern void *ofw_claim_virt(
const void *virt,
const unsigned int len);
110extern void *ofw_claim_phys(
const void *virt,
const unsigned int len);
111extern void *ofw_claim_phys_any(
const unsigned int len,
const unsigned int alignment);
112extern int ofw_map(
const void *phys,
const void *virt,
const unsigned int size,
const int mode);
114extern void ofw_setup_screens(
void);
115extern void ofw_quiesce(
void);
Definition: rtemscompat1.h:15
ofw_arg_t service
Definition: ofw.h:50
ofw_arg_t nret
Definition: ofw.h:52
ofw_arg_t nargs
Definition: ofw.h:51
unsigned size
Definition: tte.h:1