Added a test for MUIA_Listview_SelectChange.
[AROS.git] / arch / ppc-chrp / boot / openfirmware / include / of1275.h
blobb0d4bbe3c740d24bcb64699ea24f5fff698ded34
1 /*
2 * of1275.h
4 * Created on: Aug 12, 2008
5 * Author: misc
6 */
8 #ifndef OF1275_H_
9 #define OF1275_H_
11 #include <inttypes.h>
12 #include <support.h>
14 typedef struct {
15 node_t on_node;
16 char *on_name;
17 list_t on_children;
18 list_t on_properties;
20 uint8_t on_storage[];
21 } ofw_node_t;
23 typedef struct {
24 node_t op_node;
25 char *op_name;
26 uint32_t op_length;
27 void *op_value;
29 uint8_t op_storage[];
30 } ofw_property_t;
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_ */