aboutsummaryrefslogtreecommitdiff
path: root/sys/ia64
diff options
context:
space:
mode:
authorYoshihiro Takahashi <nyan@FreeBSD.org>2003-09-23 08:22:34 +0000
committerYoshihiro Takahashi <nyan@FreeBSD.org>2003-09-23 08:22:34 +0000
commit33e38a2cc803aff0524deee574cfea00029feaa7 (patch)
tree7c37e05e21434e51e4ee071cbbd03a0e312848b9 /sys/ia64
parenteb98005f8d4d638b0781a4eb2f7b9260aebc6a07 (diff)
downloadsrc-33e38a2cc803aff0524deee574cfea00029feaa7.tar.gz
src-33e38a2cc803aff0524deee574cfea00029feaa7.zip
Implement the bus_space_map() function to allocate resources and initialize
a bus_handle, but currently it does only initializing a bus_handle.
Notes
Notes: svn path=/head/; revision=120375
Diffstat (limited to 'sys/ia64')
-rw-r--r--sys/ia64/include/bus.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/sys/ia64/include/bus.h b/sys/ia64/include/bus.h
index 0db84a489c84..9c9ae36c3a64 100644
--- a/sys/ia64/include/bus.h
+++ b/sys/ia64/include/bus.h
@@ -119,13 +119,20 @@ typedef u_long bus_space_handle_t;
/*
* Map a region of device bus space into CPU virtual address space.
*/
-#define BUS_SPACE_MAP_CACHEABLE 0x01
-#define BUS_SPACE_MAP_LINEAR 0x02
-int
-bus_space_map(bus_space_tag_t bst, bus_addr_t addr, bus_size_t size, int flags,
- bus_space_handle_t *bshp);
+static __inline int bus_space_map(bus_space_tag_t t, bus_addr_t addr,
+ bus_size_t size, int flags,
+ bus_space_handle_t *bshp);
+
+static __inline int
+bus_space_map(bus_space_tag_t t __unused, bus_addr_t addr,
+ bus_size_t size __unused, int flags __unused,
+ bus_space_handle_t *bshp)
+{
+ *bshp = addr;
+ return (0);
+}
/*
* Unmap a region of device bus space.