Lines Matching defs:ofw

70 #include <dev/ofw/ofwvar.h>
71 #include <dev/ofw/openfirm.h>
75 static int ofw_std_init(ofw_t ofw, void *openfirm);
76 static int ofw_std_test(ofw_t ofw, const char *name);
77 static int ofw_std_interpret(ofw_t ofw, const char *cmd, int nreturns,
79 static phandle_t ofw_std_peer(ofw_t ofw, phandle_t node);
80 static phandle_t ofw_std_child(ofw_t ofw, phandle_t node);
81 static phandle_t ofw_std_parent(ofw_t ofw, phandle_t node);
82 static phandle_t ofw_std_instance_to_package(ofw_t ofw, ihandle_t instance);
83 static ssize_t ofw_std_getproplen(ofw_t ofw, phandle_t package,
85 static ssize_t ofw_std_getprop(ofw_t ofw, phandle_t package,
87 static int ofw_std_nextprop(ofw_t ofw, phandle_t package, const char *previous,
89 static int ofw_std_setprop(ofw_t ofw, phandle_t package, const char *propname,
91 static ssize_t ofw_std_canon(ofw_t ofw, const char *device, char *buf,
93 static phandle_t ofw_std_finddevice(ofw_t ofw, const char *device);
94 static ssize_t ofw_std_instance_to_path(ofw_t ofw, ihandle_t instance,
96 static ssize_t ofw_std_package_to_path(ofw_t ofw, phandle_t package, char *buf,
98 static int ofw_std_call_method(ofw_t ofw, ihandle_t instance,
100 static ihandle_t ofw_std_open(ofw_t ofw, const char *device);
101 static void ofw_std_close(ofw_t ofw, ihandle_t instance);
102 static ssize_t ofw_std_read(ofw_t ofw, ihandle_t instance, void *addr,
104 static ssize_t ofw_std_write(ofw_t ofw, ihandle_t instance, const void *addr,
106 static int ofw_std_seek(ofw_t ofw, ihandle_t instance, uint64_t pos);
107 static caddr_t ofw_std_claim(ofw_t ofw, void *virt, size_t size, u_int align);
108 static void ofw_std_release(ofw_t ofw, void *virt, size_t size);
109 static void ofw_std_enter(ofw_t ofw);
110 static void ofw_std_exit(ofw_t ofw);
155 ofw_std_init(ofw_t ofw, void *openfirm)
168 ofw_std_test(ofw_t ofw, const char *name)
189 ofw_std_interpret(ofw_t ofw, const char *cmd, int nreturns, cell_t *returns)
219 ofw_std_peer(ofw_t ofw, phandle_t node)
241 ofw_std_child(ofw_t ofw, phandle_t node)
263 ofw_std_parent(ofw_t ofw, phandle_t node)
285 ofw_std_instance_to_package(ofw_t ofw, ihandle_t instance)
307 ofw_std_getproplen(ofw_t ofw, phandle_t package, const char *propname)
331 ofw_std_getprop(ofw_t ofw, phandle_t package, const char *propname, void *buf,
360 ofw_std_nextprop(ofw_t ofw, phandle_t package, const char *previous, char *buf,
388 ofw_std_setprop(ofw_t ofw, phandle_t package, const char *propname,
417 ofw_std_canon(ofw_t ofw, const char *device, char *buf, size_t len)
443 ofw_std_finddevice(ofw_t ofw, const char *device)
465 ofw_std_instance_to_path(ofw_t ofw, ihandle_t instance, char *buf, size_t len)
491 ofw_std_package_to_path(ofw_t ofw, phandle_t package, char *buf, size_t len)
517 ofw_std_call_method(ofw_t ofw, ihandle_t instance, const char *method,
560 ofw_std_open(ofw_t ofw, const char *device)
582 ofw_std_close(ofw_t ofw, ihandle_t instance)
601 ofw_std_read(ofw_t ofw, ihandle_t instance, void *addr, size_t len)
628 ofw_std_write(ofw_t ofw, ihandle_t instance, const void *addr, size_t len)
654 ofw_std_seek(ofw_t ofw, ihandle_t instance, uint64_t pos)
684 ofw_std_claim(ofw_t ofw, void *virt, size_t size, u_int align)
710 ofw_std_release(ofw_t ofw, void *virt, size_t size)
735 ofw_std_enter(ofw_t ofw)
753 ofw_std_exit(ofw_t ofw)