Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch define a "BUS_SPACE_MAP_PREFETCHABLE" flag which ba...
details: https://anonhg.NetBSD.org/src/rev/881bcf41b47d
branches: trunk
changeset: 481307:881bcf41b47d
user: drochner <drochner%NetBSD.org@localhost>
date: Tue Jan 25 22:13:17 2000 +0000
description:
define a "BUS_SPACE_MAP_PREFETCHABLE" flag which basically means that
device accesses are idempotent (but should not be cached by the CPU)
diffstat:
sys/arch/alpha/include/bus.h | 3 ++-
sys/arch/arm32/include/bus.h | 3 ++-
sys/arch/atari/include/bus.h | 7 ++++---
sys/arch/bebox/include/bus.h | 3 ++-
sys/arch/hp300/include/bus.h | 3 ++-
sys/arch/hpcmips/include/bus.h | 3 ++-
sys/arch/i386/include/bus.h | 3 ++-
sys/arch/luna68k/include/bus.h | 3 ++-
sys/arch/mac68k/include/bus.h | 3 ++-
sys/arch/macppc/include/bus.h | 7 ++++---
sys/arch/pmax/include/bus.h | 3 ++-
sys/arch/sh3/include/bus.h | 3 ++-
sys/arch/sparc/include/bus.h | 3 ++-
sys/arch/sparc64/include/bus.h | 9 +++++----
sys/arch/vax/include/bus.h | 3 ++-
sys/arch/x68k/include/bus.h | 7 ++++---
16 files changed, 41 insertions(+), 25 deletions(-)
diffs (290 lines):
diff -r 7bcd9bb72663 -r 881bcf41b47d sys/arch/alpha/include/bus.h
--- a/sys/arch/alpha/include/bus.h Tue Jan 25 22:11:12 2000 +0000
+++ b/sys/arch/alpha/include/bus.h Tue Jan 25 22:13:17 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus.h,v 1.30 1999/12/08 23:40:36 thorpej Exp $ */
+/* $NetBSD: bus.h,v 1.31 2000/01/25 22:13:17 drochner Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -280,6 +280,7 @@
#define BUS_SPACE_MAP_CACHEABLE 0x01
#define BUS_SPACE_MAP_LINEAR 0x02
+#define BUS_SPACE_MAP_PREFETCHABLE 0x04
/*
* Allocation and deallocation operations.
diff -r 7bcd9bb72663 -r 881bcf41b47d sys/arch/arm32/include/bus.h
--- a/sys/arch/arm32/include/bus.h Tue Jan 25 22:11:12 2000 +0000
+++ b/sys/arch/arm32/include/bus.h Tue Jan 25 22:13:17 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus.h,v 1.17 1999/06/18 04:49:25 cgd Exp $ */
+/* $NetBSD: bus.h,v 1.18 2000/01/25 22:13:19 drochner Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -92,6 +92,7 @@
#define BUS_SPACE_MAP_CACHEABLE 0x01
#define BUS_SPACE_MAP_LINEAR 0x02
+#define BUS_SPACE_MAP_PREFETCHABLE 0x04
struct bus_space {
/* cookie */
diff -r 7bcd9bb72663 -r 881bcf41b47d sys/arch/atari/include/bus.h
--- a/sys/arch/atari/include/bus.h Tue Jan 25 22:11:12 2000 +0000
+++ b/sys/arch/atari/include/bus.h Tue Jan 25 22:13:17 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus.h,v 1.20 2000/01/19 13:13:07 leo Exp $ */
+/* $NetBSD: bus.h,v 1.21 2000/01/25 22:13:19 drochner Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -87,8 +87,9 @@
typedef struct atari_bus_space *bus_space_tag_t;
typedef caddr_t bus_space_handle_t;
-#define BUS_SPACE_MAP_CACHEABLE 0x01
-#define BUS_SPACE_MAP_LINEAR 0x02
+#define BUS_SPACE_MAP_CACHEABLE 0x01
+#define BUS_SPACE_MAP_LINEAR 0x02
+#define BUS_SPACE_MAP_PREFETCHABLE 0x04
int bus_space_alloc __P((bus_space_tag_t, bus_addr_t, bus_addr_t,
bus_size_t, bus_size_t, bus_size_t, int,
diff -r 7bcd9bb72663 -r 881bcf41b47d sys/arch/bebox/include/bus.h
--- a/sys/arch/bebox/include/bus.h Tue Jan 25 22:11:12 2000 +0000
+++ b/sys/arch/bebox/include/bus.h Tue Jan 25 22:13:17 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus.h,v 1.19 1999/06/18 04:49:25 cgd Exp $ */
+/* $NetBSD: bus.h,v 1.20 2000/01/25 22:13:20 drochner Exp $ */
/* $OpenBSD: bus.h,v 1.1 1997/10/13 10:53:42 pefo Exp $ */
/*-
@@ -129,6 +129,7 @@
#define BUS_SPACE_MAP_CACHEABLE 0x01
#define BUS_SPACE_MAP_LINEAR 0x02
+#define BUS_SPACE_MAP_PREFETCHABLE 0x04
#ifdef __STDC__
#define CAT(a,b) a##b
diff -r 7bcd9bb72663 -r 881bcf41b47d sys/arch/hp300/include/bus.h
--- a/sys/arch/hp300/include/bus.h Tue Jan 25 22:11:12 2000 +0000
+++ b/sys/arch/hp300/include/bus.h Tue Jan 25 22:13:17 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus.h,v 1.3 1999/10/26 01:49:38 thorpej Exp $ */
+/* $NetBSD: bus.h,v 1.4 2000/01/25 22:13:20 drochner Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -93,6 +93,7 @@
#define BUS_SPACE_MAP_CACHEABLE 0x01
#define BUS_SPACE_MAP_LINEAR 0x02
+#define BUS_SPACE_MAP_PREFETCHABLE 0x04
int bus_space_map __P((bus_space_tag_t, bus_addr_t, bus_size_t,
int, bus_space_handle_t *));
diff -r 7bcd9bb72663 -r 881bcf41b47d sys/arch/hpcmips/include/bus.h
--- a/sys/arch/hpcmips/include/bus.h Tue Jan 25 22:11:12 2000 +0000
+++ b/sys/arch/hpcmips/include/bus.h Tue Jan 25 22:13:17 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus.h,v 1.1.1.1 1999/09/16 12:23:21 takemura Exp $ */
+/* $NetBSD: bus.h,v 1.2 2000/01/25 22:13:21 drochner Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -107,6 +107,7 @@
#define BUS_SPACE_MAP_CACHEABLE 0x01
#define BUS_SPACE_MAP_LINEAR 0x02
+#define BUS_SPACE_MAP_PREFETCHABLE 0x04
int bus_space_map __P((bus_space_tag_t, bus_addr_t, bus_size_t,
int, bus_space_handle_t *));
diff -r 7bcd9bb72663 -r 881bcf41b47d sys/arch/i386/include/bus.h
--- a/sys/arch/i386/include/bus.h Tue Jan 25 22:11:12 2000 +0000
+++ b/sys/arch/i386/include/bus.h Tue Jan 25 22:13:17 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus.h,v 1.24 1999/06/18 04:49:25 cgd Exp $ */
+/* $NetBSD: bus.h,v 1.25 2000/01/25 22:13:21 drochner Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -125,6 +125,7 @@
#define BUS_SPACE_MAP_CACHEABLE 0x01
#define BUS_SPACE_MAP_LINEAR 0x02
+#define BUS_SPACE_MAP_PREFETCHABLE 0x04
int i386_memio_map __P((bus_space_tag_t t, bus_addr_t addr,
bus_size_t size, int flags, bus_space_handle_t *bshp));
diff -r 7bcd9bb72663 -r 881bcf41b47d sys/arch/luna68k/include/bus.h
--- a/sys/arch/luna68k/include/bus.h Tue Jan 25 22:11:12 2000 +0000
+++ b/sys/arch/luna68k/include/bus.h Tue Jan 25 22:13:17 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus.h,v 1.2 2000/01/07 05:13:08 nisimura Exp $ */
+/* $NetBSD: bus.h,v 1.3 2000/01/25 22:13:21 drochner Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -92,6 +92,7 @@
#define BUS_SPACE_MAP_CACHEABLE 0x01
#define BUS_SPACE_MAP_LINEAR 0x02
+#define BUS_SPACE_MAP_PREFETCHABLE 0x04
int bus_space_map __P((bus_space_tag_t, bus_addr_t, bus_size_t,
int, bus_space_handle_t *));
diff -r 7bcd9bb72663 -r 881bcf41b47d sys/arch/mac68k/include/bus.h
--- a/sys/arch/mac68k/include/bus.h Tue Jan 25 22:11:12 2000 +0000
+++ b/sys/arch/mac68k/include/bus.h Tue Jan 25 22:13:17 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus.h,v 1.12 1999/03/23 21:29:05 drochner Exp $ */
+/* $NetBSD: bus.h,v 1.13 2000/01/25 22:13:22 drochner Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -92,6 +92,7 @@
#define BUS_SPACE_MAP_CACHEABLE 0x01
#define BUS_SPACE_MAP_LINEAR 0x02
+#define BUS_SPACE_MAP_PREFETCHABLE 0x04
int bus_space_map __P((bus_space_tag_t, bus_addr_t, bus_size_t,
int, bus_space_handle_t *));
diff -r 7bcd9bb72663 -r 881bcf41b47d sys/arch/macppc/include/bus.h
--- a/sys/arch/macppc/include/bus.h Tue Jan 25 22:11:12 2000 +0000
+++ b/sys/arch/macppc/include/bus.h Tue Jan 25 22:13:17 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus.h,v 1.8 1999/06/18 04:49:25 cgd Exp $ */
+/* $NetBSD: bus.h,v 1.9 2000/01/25 22:13:22 drochner Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -105,8 +105,9 @@
* Map a region of bus space.
*/
-#define BUS_SPACE_MAP_CACHEABLE 0x01
-#define BUS_SPACE_MAP_LINEAR 0x02
+#define BUS_SPACE_MAP_CACHEABLE 0x01
+#define BUS_SPACE_MAP_LINEAR 0x02
+#define BUS_SPACE_MAP_PREFETCHABLE 0x04
extern void * mapiodev __P((paddr_t, psize_t));
diff -r 7bcd9bb72663 -r 881bcf41b47d sys/arch/pmax/include/bus.h
--- a/sys/arch/pmax/include/bus.h Tue Jan 25 22:11:12 2000 +0000
+++ b/sys/arch/pmax/include/bus.h Tue Jan 25 22:13:17 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus.h,v 1.10 2000/01/09 15:34:42 ad Exp $ */
+/* $NetBSD: bus.h,v 1.11 2000/01/25 22:13:23 drochner Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -69,6 +69,7 @@
#define BUS_SPACE_MAP_CACHEABLE 0x01
#define BUS_SPACE_MAP_LINEAR 0x02
+#define BUS_SPACE_MAP_PREFETCHABLE 0x04
int bus_space_map __P((bus_space_tag_t, bus_addr_t, bus_size_t,
int, bus_space_handle_t *));
diff -r 7bcd9bb72663 -r 881bcf41b47d sys/arch/sh3/include/bus.h
--- a/sys/arch/sh3/include/bus.h Tue Jan 25 22:11:12 2000 +0000
+++ b/sys/arch/sh3/include/bus.h Tue Jan 25 22:13:17 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus.h,v 1.1 1999/09/13 10:31:15 itojun Exp $ */
+/* $NetBSD: bus.h,v 1.2 2000/01/25 22:13:23 drochner Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -107,6 +107,7 @@
*/
#define BUS_SPACE_MAP_CACHEABLE 0x01
#define BUS_SPACE_MAP_LINEAR 0x02
+#define BUS_SPACE_MAP_PREFETCHABLE 0x04
int bus_space_map __P((bus_space_tag_t, bus_addr_t, bus_size_t size,
int, bus_space_handle_t *));
diff -r 7bcd9bb72663 -r 881bcf41b47d sys/arch/sparc/include/bus.h
--- a/sys/arch/sparc/include/bus.h Tue Jan 25 22:11:12 2000 +0000
+++ b/sys/arch/sparc/include/bus.h Tue Jan 25 22:13:17 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus.h,v 1.16 1999/03/23 21:29:05 drochner Exp $ */
+/* $NetBSD: bus.h,v 1.17 2000/01/25 22:13:24 drochner Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -294,6 +294,7 @@
/* flags for bus space map functions */
#define BUS_SPACE_MAP_CACHEABLE 0x0001
#define BUS_SPACE_MAP_LINEAR 0x0002
+#define BUS_SPACE_MAP_PREFETCHABLE 0x0004
#define BUS_SPACE_MAP_BUS1 0x0100 /* placeholders for bus functions... */
#define BUS_SPACE_MAP_BUS2 0x0200
#define BUS_SPACE_MAP_BUS3 0x0400
diff -r 7bcd9bb72663 -r 881bcf41b47d sys/arch/sparc64/include/bus.h
--- a/sys/arch/sparc64/include/bus.h Tue Jan 25 22:11:12 2000 +0000
+++ b/sys/arch/sparc64/include/bus.h Tue Jan 25 22:13:17 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus.h,v 1.13 1999/06/07 05:28:04 eeh Exp $ */
+/* $NetBSD: bus.h,v 1.14 2000/01/25 22:13:24 drochner Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -314,9 +314,10 @@
#endif
/* flags for bus space map functions */
-#define BUS_SPACE_MAP_CACHEABLE 0x0001
-#define BUS_SPACE_MAP_LINEAR 0x0002
-#define BUS_SPACE_MAP_READONLY 0x0004
+#define BUS_SPACE_MAP_CACHEABLE 0x0001
+#define BUS_SPACE_MAP_LINEAR 0x0002
+#define BUS_SPACE_MAP_READONLY 0x0004
+#define BUS_SPACE_MAP_PREFETCHABLE 0x0008
#define BUS_SPACE_MAP_BUS1 0x0100 /* placeholders for bus functions... */
#define BUS_SPACE_MAP_BUS2 0x0200
#define BUS_SPACE_MAP_BUS3 0x0400
diff -r 7bcd9bb72663 -r 881bcf41b47d sys/arch/vax/include/bus.h
--- a/sys/arch/vax/include/bus.h Tue Jan 25 22:11:12 2000 +0000
+++ b/sys/arch/vax/include/bus.h Tue Jan 25 22:13:17 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus.h,v 1.8 1999/06/18 04:49:26 cgd Exp $ */
+/* $NetBSD: bus.h,v 1.9 2000/01/25 22:13:24 drochner Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -137,6 +137,7 @@
#define BUS_SPACE_MAP_CACHEABLE 0x01
#define BUS_SPACE_MAP_LINEAR 0x02
+#define BUS_SPACE_MAP_PREFETCHABLE 0x04
#define bus_space_map(t, a, s, f, hp) \
(*(t)->vbs_map)((t)->vbs_cookie, (a), (s), (f), (hp), 1)
diff -r 7bcd9bb72663 -r 881bcf41b47d sys/arch/x68k/include/bus.h
--- a/sys/arch/x68k/include/bus.h Tue Jan 25 22:11:12 2000 +0000
+++ b/sys/arch/x68k/include/bus.h Tue Jan 25 22:13:17 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus.h,v 1.3 1999/03/23 21:29:06 drochner Exp $ */
+/* $NetBSD: bus.h,v 1.4 2000/01/25 22:13:25 drochner Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -122,8 +122,9 @@
((*((t)->x68k_bus_space_unmap)) ((t),(h),(s)))
#define bus_space_subregion(t,h,o,s,p) \
((*((t)->x68k_bus_space_subregion)) ((t),(h),(o),(s),(p)))
-#define BUS_SPACE_MAP_CACHEABLE 0x0001
-#define BUS_SPACE_MAP_LINEAR 0x0002
+#define BUS_SPACE_MAP_CACHEABLE 0x0001
+#define BUS_SPACE_MAP_LINEAR 0x0002
+#define BUS_SPACE_MAP_PREFETCHABLE 0x0004
/*
* For simpler hadware, many x68k devices are mapped with shifted address
* i.e. only on even or odd addresses.
Home |
Main Index |
Thread Index |
Old Index