summaryrefslogtreecommitdiffstats
path: root/sys/pc98/include/bus.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pc98/include/bus.h')
-rw-r--r--sys/pc98/include/bus.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/sys/pc98/include/bus.h b/sys/pc98/include/bus.h
index 39111f5..07b7ea3 100644
--- a/sys/pc98/include/bus.h
+++ b/sys/pc98/include/bus.h
@@ -92,7 +92,13 @@
#define BUS_SPACE_UNRESTRICTED (~0)
+/*
+ * address relocation table
+ */
#define BUS_SPACE_IAT_MAXSIZE 33
+typedef bus_addr_t *bus_space_iat_t;
+
+#define BUS_SPACE_IAT_SZ(IOTARRAY) (sizeof(IOTARRAY)/sizeof(bus_addr_t))
/*
* Access methods for bus resources and address space.
@@ -224,6 +230,19 @@ void i386_memio_unmap(bus_space_tag_t t, bus_space_handle_t bsh,
i386_memio_unmap((t), (h), (s))
/*
+ * int bus_space_map_load (bus_space_tag_t t, bus_space_handle_t bsh,
+ * bus_size_t size, bus_space_iat_t iat, u_int flags);
+ *
+ * Load I/O address table of bus space.
+ */
+
+int i386_memio_map_load(bus_space_tag_t t, bus_space_handle_t bsh,
+ bus_size_t size, bus_space_iat_t iat, u_int flags);
+
+#define bus_space_map_load(t, h, s, iat, f) \
+ i386_memio_map_load((t), (h), (s), (iat), (f))
+
+/*
* int bus_space_subregion (bus_space_tag_t t,
* bus_space_handle_t bsh, bus_size_t offset, bus_size_t size,
* bus_space_handle_t *nbshp);
@@ -260,6 +279,9 @@ void i386_memio_free(bus_space_tag_t t, bus_space_handle_t bsh,
int i386_memio_compare(bus_space_tag_t t1, bus_space_handle_t bsh1,
bus_space_tag_t t2, bus_space_handle_t bsh2);
+#define bus_space_compare(t1, h1, t2, h2) \
+ i386_memio_compare((t1), (h1), (t2), (h2))
+
/*
* Access methods for bus resources and address space.
*/
OpenPOWER on IntegriCloud