diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2008-07-27 17:00:59 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2008-07-27 17:00:59 -0400 |
commit | a439fe51a1f8eb087c22dd24d69cebae4a3addac (patch) | |
tree | e32d1fa97a220ab598d8ab364205817c5bf2bd6f /arch/sparc/include/asm/estate.h | |
parent | 837b41b5de356aa67abb2cadb5eef3efc7776f91 (diff) |
sparc, sparc64: use arch/sparc/include
The majority of this patch was created by the following script:
***
ASM=arch/sparc/include/asm
mkdir -p $ASM
git mv include/asm-sparc64/ftrace.h $ASM
git rm include/asm-sparc64/*
git mv include/asm-sparc/* $ASM
sed -ie 's/asm-sparc64/asm/g' $ASM/*
sed -ie 's/asm-sparc/asm/g' $ASM/*
***
The rest was an update of the top-level Makefile to use sparc
for header files when sparc64 is being build.
And a small fixlet to pick up the correct unistd.h from
sparc64 code.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'arch/sparc/include/asm/estate.h')
-rw-r--r-- | arch/sparc/include/asm/estate.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/estate.h b/arch/sparc/include/asm/estate.h new file mode 100644 index 000000000000..520c08560d1b --- /dev/null +++ b/arch/sparc/include/asm/estate.h | |||
@@ -0,0 +1,49 @@ | |||
1 | #ifndef _SPARC64_ESTATE_H | ||
2 | #define _SPARC64_ESTATE_H | ||
3 | |||
4 | /* UltraSPARC-III E-cache Error Enable */ | ||
5 | #define ESTATE_ERROR_FMT 0x0000000000040000 /* Force MTAG ECC */ | ||
6 | #define ESTATE_ERROR_FMESS 0x000000000003c000 /* Forced MTAG ECC val */ | ||
7 | #define ESTATE_ERROR_FMD 0x0000000000002000 /* Force DATA ECC */ | ||
8 | #define ESTATE_ERROR_FDECC 0x0000000000001ff0 /* Forced DATA ECC val */ | ||
9 | #define ESTATE_ERROR_UCEEN 0x0000000000000008 /* See below */ | ||
10 | #define ESTATE_ERROR_NCEEN 0x0000000000000002 /* See below */ | ||
11 | #define ESTATE_ERROR_CEEN 0x0000000000000001 /* See below */ | ||
12 | |||
13 | /* UCEEN enables the fast_ECC_error trap for: 1) software correctable E-cache | ||
14 | * errors 2) uncorrectable E-cache errors. Such events only occur on reads | ||
15 | * of the E-cache by the local processor for: 1) data loads 2) instruction | ||
16 | * fetches 3) atomic operations. Such events _cannot_ occur for: 1) merge | ||
17 | * 2) writeback 2) copyout. The AFSR bits associated with these traps are | ||
18 | * UCC and UCU. | ||
19 | */ | ||
20 | |||
21 | /* NCEEN enables instruction_access_error, data_access_error, and ECC_error traps | ||
22 | * for uncorrectable ECC errors and system errors. | ||
23 | * | ||
24 | * Uncorrectable system bus data error or MTAG ECC error, system bus TimeOUT, | ||
25 | * or system bus BusERR: | ||
26 | * 1) As the result of an instruction fetch, will generate instruction_access_error | ||
27 | * 2) As the result of a load etc. will generate data_access_error. | ||
28 | * 3) As the result of store merge completion, writeback, or copyout will | ||
29 | * generate a disrupting ECC_error trap. | ||
30 | * 4) As the result of such errors on instruction vector fetch can generate any | ||
31 | * of the 3 trap types. | ||
32 | * | ||
33 | * The AFSR bits associated with these traps are EMU, EDU, WDU, CPU, IVU, UE, | ||
34 | * BERR, and TO. | ||
35 | */ | ||
36 | |||
37 | /* CEEN enables the ECC_error trap for hardware corrected ECC errors. System bus | ||
38 | * reads resulting in a hardware corrected data or MTAG ECC error will generate an | ||
39 | * ECC_error disrupting trap with this bit enabled. | ||
40 | * | ||
41 | * This same trap will also be generated when a hardware corrected ECC error results | ||
42 | * during store merge, writeback, and copyout operations. | ||
43 | */ | ||
44 | |||
45 | /* In general, if the trap enable bits above are disabled the AFSR bits will still | ||
46 | * log the events even though the trap will not be generated by the processor. | ||
47 | */ | ||
48 | |||
49 | #endif /* _SPARC64_ESTATE_H */ | ||