From 7458aafff0569577b463f9c368e66cb25262aa6c Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Sun, 26 Jul 2009 18:48:56 +0000 Subject: Make sure all platforms understand the flags argument of bus_space_map() and bus_space_alloc() as a bitmask of flags, and not a boolean controlling cacheability; and make sure the three MI BUS_SPACE_MAP_xxx values documented in the manual page are defined on all platforms as well. --- sys/arch/sparc/include/bus.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/arch/sparc/include') diff --git a/sys/arch/sparc/include/bus.h b/sys/arch/sparc/include/bus.h index d938939cc89..5632d700755 100644 --- a/sys/arch/sparc/include/bus.h +++ b/sys/arch/sparc/include/bus.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bus.h,v 1.7 2009/07/13 19:50:00 kettenis Exp $ */ +/* $OpenBSD: bus.h,v 1.8 2009/07/26 18:48:55 miod Exp $ */ /* * Copyright (c) 2003, Miodrag Vallat. * @@ -72,6 +72,10 @@ static int bus_space_map(bus_space_tag_t, bus_addr_t, bus_size_t, int, static int bus_space_unmap(bus_space_tag_t, bus_space_handle_t, bus_size_t); +#define BUS_SPACE_MAP_CACHEABLE 0x01 +#define BUS_SPACE_MAP_LINEAR 0x02 +#define BUS_SPACE_MAP_PREFETCHABLE 0x04 + #define BUS_SPACE_BARRIER_READ 0 #define BUS_SPACE_BARRIER_WRITE 1 -- cgit v1.2.3