diff options
author | nyan <nyan@FreeBSD.org> | 2003-09-23 08:22:34 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2003-09-23 08:22:34 +0000 |
commit | 2ae09c9acefe7434b4283d932e326a961af2723f (patch) | |
tree | 7c37e05e21434e51e4ee071cbbd03a0e312848b9 /sys/ia64/include/bus.h | |
parent | ac7d8771f0bd6a8543c290e4857c2350d581c282 (diff) | |
download | FreeBSD-src-2ae09c9acefe7434b4283d932e326a961af2723f.zip FreeBSD-src-2ae09c9acefe7434b4283d932e326a961af2723f.tar.gz |
Implement the bus_space_map() function to allocate resources and initialize
a bus_handle, but currently it does only initializing a bus_handle.
Diffstat (limited to 'sys/ia64/include/bus.h')
-rw-r--r-- | sys/ia64/include/bus.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/sys/ia64/include/bus.h b/sys/ia64/include/bus.h index 0db84a4..9c9ae36 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. |