4 * Created on: Aug 12, 2008
32 void ofw_init(void *ofw
);
33 int32_t ofw_test(const char *name
);
34 void * ofw_peer(void *phandle
);
35 void * ofw_child(void *phandle
);
36 void * ofw_parent(void *phandle
);
37 int32_t ofw_get_prop_len(void * phandle
, const char *name
);
38 int32_t ofw_get_prop(void * phandle
, const char *name
, void * buf
, uint32_t buflen
);
39 int32_t ofw_next_prop(void * phandle
, const char *previous
, void * buf
);
40 int32_t ofw_set_prop(void * phandle
, const char *name
, void * buf
, uint32_t buflen
);
41 void *ofw_find_device(char *dev
);
42 void *ofw_open(const char *dev
);
43 void ofw_close(void * ihandle
);
44 int32_t ofw_read(void * ihandle
, void * addr
, uint32_t len
);
45 int32_t ofw_write(void * ihandle
, void * addr
, uint32_t len
);
46 int32_t ofw_seek(void * ihandle
, uint32_t pos_hi
, uint32_t pos_lo
);
47 void *ofw_claim(void * virt
, uint32_t size
, uint32_t align
);
48 void ofw_release(void * virt
, uint32_t size
);
49 void * __claim(uint32_t size
);
51 int32_t ofw_interpret(const char *cmd
);
53 int32_t ofw_load(void *ihandle
, void * addr
, int32_t *size
);
54 int32_t ofw_instantiate_rtas(void * ihandle
, void * rtas_base
, void **rtas_entry
);
56 int32_t ofw_rtas_token(const char *service
);
58 ofw_node_t
*ofw_scan_tree();
60 char *ofw_GetString(void *handle
, const char *prop
);
62 #endif /* OF1275_H_ */