summaryrefslogtreecommitdiffstats
path: root/sys/ia64
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2002-11-29 20:14:03 +0000
committermarcel <marcel@FreeBSD.org>2002-11-29 20:14:03 +0000
commitfddfacd0f020a475edfdd08cc8a36e7f20b7eaa7 (patch)
tree62b896d644fc253ffbe8a3c41fd5ed1ef8bf2f98 /sys/ia64
parente31313a4a8d97e624971a82e1c09f4795dc76f0a (diff)
downloadFreeBSD-src-fddfacd0f020a475edfdd08cc8a36e7f20b7eaa7.zip
FreeBSD-src-fddfacd0f020a475edfdd08cc8a36e7f20b7eaa7.tar.gz
Implement bus_space_subregion(). Identical to i386.
Approved by: re (carte blanc)
Diffstat (limited to 'sys/ia64')
-rw-r--r--sys/ia64/include/bus.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/ia64/include/bus.h b/sys/ia64/include/bus.h
index 457aa2a..b44c72d 100644
--- a/sys/ia64/include/bus.h
+++ b/sys/ia64/include/bus.h
@@ -131,9 +131,14 @@ void bus_space_unmap(bus_space_tag_t t, bus_space_handle_t bsh,
* Get a new handle for a subregion of an already-mapped area of bus space.
*/
-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);
+static __inline 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)
+{
+ *nbshp = bsh + offset;
+ return (0);
+}
/*
* Allocate a region of memory that is accessible to devices in bus space.
OpenPOWER on IntegriCloud