summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/aim/ofw_machdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/powerpc/aim/ofw_machdep.c')
-rw-r--r--sys/powerpc/aim/ofw_machdep.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/sys/powerpc/aim/ofw_machdep.c b/sys/powerpc/aim/ofw_machdep.c
index 8e98cac..d868eec 100644
--- a/sys/powerpc/aim/ofw_machdep.c
+++ b/sys/powerpc/aim/ofw_machdep.c
@@ -51,6 +51,8 @@ __FBSDID("$FreeBSD$");
#include <vm/vm_param.h>
#include <vm/vm_page.h>
+#include <machine/bus.h>
+#include <machine/md_var.h>
#include <machine/powerpc.h>
#include <machine/ofw_machdep.h>
#include <powerpc/ofw/ofw_pci.h>
@@ -284,6 +286,22 @@ OF_getetheraddr(device_t dev, u_char *addr)
OF_getprop(node, "local-mac-address", addr, ETHER_ADDR_LEN);
}
+/*
+ * Return the physical address and the bus space to use for a node
+ * referenced by its package handle and the index of the register bank
+ * to decode. Intended to be used by console drivers in early boot only.
+ * Works by mapping the address of the node's bank given in the address
+ * space of its parent upward in the device tree at each bridge along the
+ * path.
+ */
+int
+OF_decode_addr(phandle_t node, int bank, bus_space_tag_t *tag,
+ bus_space_handle_t *handle)
+{
+
+ return (ENXIO);
+}
+
int
mem_valid(vm_offset_t addr, int len)
{
OpenPOWER on IntegriCloud