From 2ea9877c1b45b6a7e1f0b85e5e4e9a9162f9e5cc Mon Sep 17 00:00:00 2001 From: Andrew Gallatin Date: Sun, 20 Oct 2002 20:55:37 +0000 Subject: [PATCH] give alpha a bus_space_subregion() so that ahd_pci compiles and moves LINT one file further on. Only 999,999 or so more files to go.. --- sys/alpha/include/bus.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/sys/alpha/include/bus.h b/sys/alpha/include/bus.h index 4c1d55b018c..11d47ce9673 100644 --- a/sys/alpha/include/bus.h +++ b/sys/alpha/include/bus.h @@ -90,6 +90,26 @@ typedef u_int32_t bus_space_handle_t; #define BUS_SPACE_UNRESTRICTED (~0UL) +/* + * Get a new handle for a subregion of an already-mapped area of bus space. + */ + +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); + +static __inline int +bus_space_subregion(bus_space_tag_t t __unused, bus_space_handle_t bsh, + bus_size_t offset, bus_size_t size __unused, + bus_space_handle_t *nbshp) +{ + + *nbshp = bsh + offset; + return (0); +} + + struct alpha_busspace; struct alpha_busspace_ops {