summaryrefslogtreecommitdiffstats
path: root/sys/sparc64
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2003-01-08 04:29:00 +0000
committerjake <jake@FreeBSD.org>2003-01-08 04:29:00 +0000
commit14cca48eed604c3f58ef4687357603d0db17f68b (patch)
tree374fe80c2cc2ada3d08470007cb6ee06abb84d92 /sys/sparc64
parent5f30baaaa4ed270d5138472eaf7212526e3a734c (diff)
downloadFreeBSD-src-14cca48eed604c3f58ef4687357603d0db17f68b.zip
FreeBSD-src-14cca48eed604c3f58ef4687357603d0db17f68b.tar.gz
Implement bus_space_subregion.
Diffstat (limited to 'sys/sparc64')
-rw-r--r--sys/sparc64/include/bus.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/sparc64/include/bus.h b/sys/sparc64/include/bus.h
index 5cd45fa..95089fa 100644
--- a/sys/sparc64/include/bus.h
+++ b/sys/sparc64/include/bus.h
@@ -145,6 +145,8 @@ bus_space_handle_t sparc64_fake_bustag(int, bus_addr_t,
*/
static void bus_space_barrier(bus_space_tag_t, bus_space_handle_t, bus_size_t,
bus_size_t, int);
+static int bus_space_subregion(bus_space_tag_t, bus_space_handle_t,
+ bus_size_t, bus_size_t, bus_space_handle_t *);
/* This macro finds the first "upstream" implementation of method `f' */
#define _BS_CALL(t,f) \
@@ -159,6 +161,14 @@ bus_space_barrier(bus_space_tag_t t, bus_space_handle_t h, bus_size_t o,
_BS_CALL(t, bst_bus_barrier)(t, h, o, s, f);
}
+static __inline int
+bus_space_subregion(bus_space_tag_t t, bus_space_handle_t h, bus_size_t o,
+ bus_size_t s, bus_space_handle_t *hp)
+{
+ *hp = h + o;
+ return (0);
+}
+
/* flags for bus space map functions */
#define BUS_SPACE_MAP_CACHEABLE 0x0001
#define BUS_SPACE_MAP_LINEAR 0x0002
OpenPOWER on IntegriCloud