From 25b87aeef769aecb8d1c002d6666cdf56afbf1d0 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Thu, 29 Jan 2004 10:58:11 +0000 Subject: Map the raven, pcic, and isa/pci io space virtual rather than 1:1. --- sys/arch/mvmeppc/dev/ravenreg.h | 41 +++++++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 18 deletions(-) (limited to 'sys/arch/mvmeppc/dev/ravenreg.h') diff --git a/sys/arch/mvmeppc/dev/ravenreg.h b/sys/arch/mvmeppc/dev/ravenreg.h index 212e3e4c1c1..dff169b24d9 100644 --- a/sys/arch/mvmeppc/dev/ravenreg.h +++ b/sys/arch/mvmeppc/dev/ravenreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ravenreg.h,v 1.2 2004/01/27 10:04:18 miod Exp $ */ +/* $OpenBSD: ravenreg.h,v 1.3 2004/01/29 10:58:06 miod Exp $ */ /* * Copyright (c) 2001 Steve Murphree, Jr. @@ -37,31 +37,33 @@ #ifndef _MACHINE_RAVENREG_H_ #define _MACHINE_RAVENREG_H_ -#define RAVEN_REG 0xFEFF0000 -#define RAVEN_VENDOR 0xFEFF0000 +#define RAVEN_BASE 0xFEFF0000 +#define RAVEN_SIZE 0x00001000 + +#define RAVEN_VENDOR 0x00000000 #define RAVEN_MAGIC 0x10574801 /* vendor information */ -#define RAVEN_DEVICE 0xFEFF0002 -#define RAVEN_REVID 0xFEFF0005 -#define RAVEN_GCSR 0xFEFF0008 -#define RAVEN_FEAT 0xFEFF000A -#define RAVEN_MARB 0xFEFF000E -#define RAVEN_PIACK 0xFEFF0030 - -#define RAVEN_MSADD0 0xFEFF0040 +#define RAVEN_DEVICE 0x00000002 +#define RAVEN_REVID 0x00000005 +#define RAVEN_GCSR 0x00000008 +#define RAVEN_FEAT 0x0000000A +#define RAVEN_MARB 0x0000000E +#define RAVEN_PIACK 0x00000030 + +#define RAVEN_MSADD0 0x00000040 #define RAVEN_MSADD0_PREP 0xC000FCFF -#define RAVEN_MSOFF0 0xFEFF0044 +#define RAVEN_MSOFF0 0x00000044 #define RAVEN_MSOFF0_PREP 0x400000C2 -#define RAVEN_MSADD1 0xFEFF0048 +#define RAVEN_MSADD1 0x00000048 #define RAVEN_MSADD1_PREP 0x00000000 -#define RAVEN_MSOFF1 0xFEFF004C +#define RAVEN_MSOFF1 0x0000004C #define RAVEN_MSOFF1_PREP 0x00000002 -#define RAVEN_MSADD2 0xFEFF0050 +#define RAVEN_MSADD2 0x00000050 #define RAVEN_MSADD2_PREP 0x00000000 -#define RAVEN_MSOFF2 0xFEFF0054 +#define RAVEN_MSOFF2 0x00000054 #define RAVEN_MSOFF2_PREP 0x00000002 -#define RAVEN_MSADD3 0xFEFF0058 +#define RAVEN_MSADD3 0x00000058 #define RAVEN_MSADD3_PREP 0x8000BFFF -#define RAVEN_MSOFF3 0xFEFF005C +#define RAVEN_MSOFF3 0x0000005C #define RAVEN_MSOFF3_PREP 0x800000C0 /* Where we map the PCI memory space - MAP A*/ @@ -120,4 +122,7 @@ #define RAVEN_CMD_MEMSP 0x0002 #define RAVEN_CMD_MASTR 0x0004 +/* How much ISA space we'll map initially */ +#define ISA_SIZE PAGE_SIZE + #endif /* _MACHINE_RAVENREG_H_ */ -- cgit v1.2.3