Lines Matching refs:ofw

67 #include <dev/ofw/ofwvar.h>
68 #include <dev/ofw/openfirm.h>
72 static int ofw_std_init(ofw_t ofw, void *openfirm);
73 static int ofw_std_test(ofw_t ofw, const char *name);
74 static int ofw_std_interpret(ofw_t ofw, const char *cmd, int nreturns,
76 static phandle_t ofw_std_peer(ofw_t ofw, phandle_t node);
77 static phandle_t ofw_std_child(ofw_t ofw, phandle_t node);
78 static phandle_t ofw_std_parent(ofw_t ofw, phandle_t node);
79 static phandle_t ofw_std_instance_to_package(ofw_t ofw, ihandle_t instance);
80 static ssize_t ofw_std_getproplen(ofw_t ofw, phandle_t package,
82 static ssize_t ofw_std_getprop(ofw_t ofw, phandle_t package,
84 static int ofw_std_nextprop(ofw_t ofw, phandle_t package, const char *previous,
86 static int ofw_std_setprop(ofw_t ofw, phandle_t package, const char *propname,
88 static ssize_t ofw_std_canon(ofw_t ofw, const char *device, char *buf,
90 static phandle_t ofw_std_finddevice(ofw_t ofw, const char *device);
91 static ssize_t ofw_std_instance_to_path(ofw_t ofw, ihandle_t instance,
93 static ssize_t ofw_std_package_to_path(ofw_t ofw, phandle_t package, char *buf,
95 static int ofw_std_call_method(ofw_t ofw, ihandle_t instance,
97 static ihandle_t ofw_std_open(ofw_t ofw, const char *device);
98 static void ofw_std_close(ofw_t ofw, ihandle_t instance);
99 static ssize_t ofw_std_read(ofw_t ofw, ihandle_t instance, void *addr,
101 static ssize_t ofw_std_write(ofw_t ofw, ihandle_t instance, const void *addr,
103 static int ofw_std_seek(ofw_t ofw, ihandle_t instance, uint64_t pos);
104 static caddr_t ofw_std_claim(ofw_t ofw, void *virt, size_t size, u_int align);
105 static void ofw_std_release(ofw_t ofw, void *virt, size_t size);
106 static void ofw_std_enter(ofw_t ofw);
107 static void ofw_std_exit(ofw_t ofw);
151 ofw_std_init(ofw_t ofw, void *openfirm)
164 ofw_std_test(ofw_t ofw, const char *name)
185 ofw_std_interpret(ofw_t ofw, const char *cmd, int nreturns, cell_t *returns)
215 ofw_std_peer(ofw_t ofw, phandle_t node)
237 ofw_std_child(ofw_t ofw, phandle_t node)
259 ofw_std_parent(ofw_t ofw, phandle_t node)
281 ofw_std_instance_to_package(ofw_t ofw, ihandle_t instance)
303 ofw_std_getproplen(ofw_t ofw, phandle_t package, const char *propname)
327 ofw_std_getprop(ofw_t ofw, phandle_t package, const char *propname, void *buf,
356 ofw_std_nextprop(ofw_t ofw, phandle_t package, const char *previous, char *buf,
384 ofw_std_setprop(ofw_t ofw, phandle_t package, const char *propname,
413 ofw_std_canon(ofw_t ofw, const char *device, char *buf, size_t len)
439 ofw_std_finddevice(ofw_t ofw, const char *device)
461 ofw_std_instance_to_path(ofw_t ofw, ihandle_t instance, char *buf, size_t len)
487 ofw_std_package_to_path(ofw_t ofw, phandle_t package, char *buf, size_t len)
513 ofw_std_call_method(ofw_t ofw, ihandle_t instance, const char *method,
556 ofw_std_open(ofw_t ofw, const char *device)
578 ofw_std_close(ofw_t ofw, ihandle_t instance)
597 ofw_std_read(ofw_t ofw, ihandle_t instance, void *addr, size_t len)
624 ofw_std_write(ofw_t ofw, ihandle_t instance, const void *addr, size_t len)
650 ofw_std_seek(ofw_t ofw, ihandle_t instance, uint64_t pos)
680 ofw_std_claim(ofw_t ofw, void *virt, size_t size, u_int align)
706 ofw_std_release(ofw_t ofw, void *virt, size_t size)
731 ofw_std_enter(ofw_t ofw)
749 ofw_std_exit(ofw_t ofw)