ofw_t
ofw_fdt_init(ofw_t ofw, void *data)
ofw_fdt_peer(ofw_t ofw, phandle_t node)
ofw_fdt_child(ofw_t ofw, phandle_t node)
ofw_fdt_parent(ofw_t ofw, phandle_t node)
ofw_fdt_instance_to_package(ofw_t ofw, ihandle_t instance)
ofw_fdt_getproplen(ofw_t ofw, phandle_t package, const char *propname)
ofw_fdt_getprop(ofw_t ofw, phandle_t package, const char *propname, void *buf,
ofw_fdt_nextprop(ofw_t ofw, phandle_t package, const char *previous, char *buf,
ofw_fdt_setprop(ofw_t ofw, phandle_t package, const char *propname,
ofw_fdt_canon(ofw_t ofw, const char *device, char *buf, size_t len)
ofw_fdt_finddevice(ofw_t ofw, const char *device)
ofw_fdt_instance_to_path(ofw_t ofw, ihandle_t instance, char *buf, size_t len)
ofw_fdt_package_to_path(ofw_t ofw, phandle_t package, char *buf, size_t len)
ofw_fdt_fixup(ofw_t ofw)
ofw_fdt_interpret(ofw_t ofw, const char *cmd, int nret, cell_t *retvals)
static int ofw_fdt_init(ofw_t, void *);
static phandle_t ofw_fdt_peer(ofw_t, phandle_t);
static phandle_t ofw_fdt_child(ofw_t, phandle_t);
static phandle_t ofw_fdt_parent(ofw_t, phandle_t);
static phandle_t ofw_fdt_instance_to_package(ofw_t, ihandle_t);
static ssize_t ofw_fdt_getproplen(ofw_t, phandle_t, const char *);
static ssize_t ofw_fdt_getprop(ofw_t, phandle_t, const char *, void *, size_t);
static int ofw_fdt_nextprop(ofw_t, phandle_t, const char *, char *, size_t);
static int ofw_fdt_setprop(ofw_t, phandle_t, const char *, const void *,
static ssize_t ofw_fdt_canon(ofw_t, const char *, char *, size_t);
static phandle_t ofw_fdt_finddevice(ofw_t, const char *);
static ssize_t ofw_fdt_instance_to_path(ofw_t, ihandle_t, char *, size_t);
static ssize_t ofw_fdt_package_to_path(ofw_t, phandle_t, char *, size_t);
static int ofw_fdt_interpret(ofw_t, const char *, int, cell_t *);
static ssize_t ofw_std_write(ofw_t ofw, ihandle_t instance, const void *addr,
static int ofw_std_seek(ofw_t ofw, ihandle_t instance, uint64_t pos);
static caddr_t ofw_std_claim(ofw_t ofw, void *virt, size_t size, u_int align);
static void ofw_std_release(ofw_t ofw, void *virt, size_t size);
static void ofw_std_enter(ofw_t ofw);
static void ofw_std_exit(ofw_t ofw);
ofw_std_init(ofw_t ofw, void *openfirm)
ofw_std_test(ofw_t ofw, const char *name)
ofw_std_interpret(ofw_t ofw, const char *cmd, int nreturns, cell_t *returns)
ofw_std_peer(ofw_t ofw, phandle_t node)
ofw_std_child(ofw_t ofw, phandle_t node)
ofw_std_parent(ofw_t ofw, phandle_t node)
ofw_std_instance_to_package(ofw_t ofw, ihandle_t instance)
ofw_std_getproplen(ofw_t ofw, phandle_t package, const char *propname)
ofw_std_getprop(ofw_t ofw, phandle_t package, const char *propname, void *buf,
ofw_std_nextprop(ofw_t ofw, phandle_t package, const char *previous, char *buf,
ofw_std_setprop(ofw_t ofw, phandle_t package, const char *propname,
ofw_std_canon(ofw_t ofw, const char *device, char *buf, size_t len)
ofw_std_finddevice(ofw_t ofw, const char *device)
ofw_std_instance_to_path(ofw_t ofw, ihandle_t instance, char *buf, size_t len)
ofw_std_package_to_path(ofw_t ofw, phandle_t package, char *buf, size_t len)
ofw_std_call_method(ofw_t ofw, ihandle_t instance, const char *method,
ofw_std_open(ofw_t ofw, const char *device)
ofw_std_close(ofw_t ofw, ihandle_t instance)
ofw_std_read(ofw_t ofw, ihandle_t instance, void *addr, size_t len)
ofw_std_write(ofw_t ofw, ihandle_t instance, const void *addr, size_t len)
ofw_std_seek(ofw_t ofw, ihandle_t instance, uint64_t pos)
ofw_std_claim(ofw_t ofw, void *virt, size_t size, u_int align)
ofw_std_release(ofw_t ofw, void *virt, size_t size)
static int ofw_std_init(ofw_t ofw, void *openfirm);
static int ofw_std_test(ofw_t ofw, const char *name);
static int ofw_std_interpret(ofw_t ofw, const char *cmd, int nreturns,
ofw_std_enter(ofw_t ofw)
ofw_std_exit(ofw_t ofw)
static phandle_t ofw_std_peer(ofw_t ofw, phandle_t node);
static phandle_t ofw_std_child(ofw_t ofw, phandle_t node);
static phandle_t ofw_std_parent(ofw_t ofw, phandle_t node);
static phandle_t ofw_std_instance_to_package(ofw_t ofw, ihandle_t instance);
static ssize_t ofw_std_getproplen(ofw_t ofw, phandle_t package,
static ssize_t ofw_std_getprop(ofw_t ofw, phandle_t package,
static int ofw_std_nextprop(ofw_t ofw, phandle_t package, const char *previous,
static int ofw_std_setprop(ofw_t ofw, phandle_t package, const char *propname,
static ssize_t ofw_std_canon(ofw_t ofw, const char *device, char *buf,
static phandle_t ofw_std_finddevice(ofw_t ofw, const char *device);
static ssize_t ofw_std_instance_to_path(ofw_t ofw, ihandle_t instance,
static ssize_t ofw_std_package_to_path(ofw_t ofw, phandle_t package, char *buf,
static int ofw_std_call_method(ofw_t ofw, ihandle_t instance,
static ihandle_t ofw_std_open(ofw_t ofw, const char *device);
static void ofw_std_close(ofw_t ofw, ihandle_t instance);
static ssize_t ofw_std_read(ofw_t ofw, ihandle_t instance, void *addr,
static ofw_t ofw_obj;
static int ofw_real_call_method(ofw_t, ihandle_t instance, const char *method,
ofw_real_write(ofw_t ofw, ihandle_t instance, const void *addr, size_t len)
static int ofw_real_interpret(ofw_t ofw, const char *cmd, int nreturns,
ofw_real_seek(ofw_t ofw, ihandle_t instance, u_int64_t pos)
static ihandle_t ofw_real_open(ofw_t, const char *device);
static void ofw_real_close(ofw_t, ihandle_t instance);
static ssize_t ofw_real_read(ofw_t, ihandle_t instance, void *addr, size_t len);
static ssize_t ofw_real_write(ofw_t, ihandle_t instance, const void *addr,
ofw_real_claim(ofw_t ofw, void *virt, size_t size, u_int align)
static int ofw_real_seek(ofw_t, ihandle_t instance, u_int64_t pos);
static caddr_t ofw_real_claim(ofw_t, void *virt, size_t size, u_int align);
ofw_real_release(ofw_t ofw, void *virt, size_t size)
static void ofw_real_release(ofw_t, void *virt, size_t size);
static void ofw_real_enter(ofw_t);
static void ofw_real_exit(ofw_t);
ofw_real_enter(ofw_t ofw)
ofw_real_exit(ofw_t ofw)
ofw_real_init(ofw_t ofw, void *openfirm)
ofw_real_test(ofw_t ofw, const char *name)
ofw_real_peer(ofw_t ofw, phandle_t node)
ofw_real_child(ofw_t ofw, phandle_t node)
ofw_real_parent(ofw_t ofw, phandle_t node)
ofw_real_instance_to_package(ofw_t ofw, ihandle_t instance)
ofw_real_getproplen(ofw_t ofw, phandle_t package, const char *propname)
ofw_real_getprop(ofw_t ofw, phandle_t package, const char *propname, void *buf,
ofw_real_nextprop(ofw_t ofw, phandle_t package, const char *previous,
ofw_real_setprop(ofw_t ofw, phandle_t package, const char *propname,
ofw_real_canon(ofw_t ofw, const char *device, char *buf, size_t len)
ofw_real_finddevice(ofw_t ofw, const char *device)
ofw_real_instance_to_path(ofw_t ofw, ihandle_t instance, char *buf, size_t len)
ofw_real_package_to_path(ofw_t ofw, phandle_t package, char *buf, size_t len)
static int ofw_real_init(ofw_t, void *openfirm);
static int ofw_real_test(ofw_t, const char *name);
static phandle_t ofw_real_peer(ofw_t, phandle_t node);
static phandle_t ofw_real_child(ofw_t, phandle_t node);
ofw_real_call_method(ofw_t ofw, ihandle_t instance, const char *method,
static phandle_t ofw_real_parent(ofw_t, phandle_t node);
static phandle_t ofw_real_instance_to_package(ofw_t, ihandle_t instance);
static ssize_t ofw_real_getproplen(ofw_t, phandle_t package,
ofw_real_interpret(ofw_t ofw, const char *cmd, int nreturns, cell_t *returns)
static ssize_t ofw_real_getprop(ofw_t, phandle_t package, const char *propname,
static int ofw_real_nextprop(ofw_t, phandle_t package, const char *previous,
ofw_real_open(ofw_t ofw, const char *device)
static int ofw_real_setprop(ofw_t, phandle_t package, const char *propname,
static ssize_t ofw_real_canon(ofw_t, const char *device, char *buf, size_t len);
ofw_real_close(ofw_t ofw, ihandle_t instance)
static phandle_t ofw_real_finddevice(ofw_t, const char *device);
static ssize_t ofw_real_instance_to_path(ofw_t, ihandle_t instance, char *buf,
ofw_real_read(ofw_t ofw, ihandle_t instance, void *addr, size_t len)
static ssize_t ofw_real_package_to_path(ofw_t, phandle_t package, char *buf,