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/sparc64 | |
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/sparc64')
-rw-r--r-- | sys/sparc64/include/bus.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sys/sparc64/include/bus.h b/sys/sparc64/include/bus.h index 90d33ab..c65abee 100644 --- a/sys/sparc64/include/bus.h +++ b/sys/sparc64/include/bus.h @@ -138,6 +138,25 @@ 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 *); + +/* + * Map a region of device bus space into CPU virtual address space. + */ + +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. */ |