diff options
Diffstat (limited to 'include/asm-mips/dec/kn02.h')
-rw-r--r-- | include/asm-mips/dec/kn02.h | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/include/asm-mips/dec/kn02.h b/include/asm-mips/dec/kn02.h index 2c935f972c67..83a042e90687 100644 --- a/include/asm-mips/dec/kn02.h +++ b/include/asm-mips/dec/kn02.h | |||
@@ -8,16 +8,11 @@ | |||
8 | * | 8 | * |
9 | * Copyright (C) 1995,1996 by Paul M. Antoine, some code and definitions | 9 | * Copyright (C) 1995,1996 by Paul M. Antoine, some code and definitions |
10 | * are by courtesy of Chris Fraser. | 10 | * are by courtesy of Chris Fraser. |
11 | * Copyright (C) 2002, 2003 Maciej W. Rozycki | 11 | * Copyright (C) 2002, 2003, 2005 Maciej W. Rozycki |
12 | */ | 12 | */ |
13 | #ifndef __ASM_MIPS_DEC_KN02_H | 13 | #ifndef __ASM_MIPS_DEC_KN02_H |
14 | #define __ASM_MIPS_DEC_KN02_H | 14 | #define __ASM_MIPS_DEC_KN02_H |
15 | 15 | ||
16 | #ifndef __ASSEMBLY__ | ||
17 | #include <linux/spinlock.h> | ||
18 | #include <linux/types.h> | ||
19 | #endif | ||
20 | |||
21 | #include <asm/addrspace.h> | 16 | #include <asm/addrspace.h> |
22 | #include <asm/dec/ecc.h> | 17 | #include <asm/dec/ecc.h> |
23 | 18 | ||
@@ -53,8 +48,8 @@ | |||
53 | #define KN02_CSR_PSU (1<<27) /* power supply unit warning */ | 48 | #define KN02_CSR_PSU (1<<27) /* power supply unit warning */ |
54 | #define KN02_CSR_NVRAM (1<<26) /* ~NVRAM clear jumper */ | 49 | #define KN02_CSR_NVRAM (1<<26) /* ~NVRAM clear jumper */ |
55 | #define KN02_CSR_REFEVEN (1<<25) /* mem refresh bank toggle */ | 50 | #define KN02_CSR_REFEVEN (1<<25) /* mem refresh bank toggle */ |
56 | #define KN03_CSR_NRMOD (1<<24) /* ~NRMOD manufact. jumper */ | 51 | #define KN02_CSR_NRMOD (1<<24) /* ~NRMOD manufact. jumper */ |
57 | #define KN03_CSR_IOINTEN (0xff<<16) /* IRQ mask bits */ | 52 | #define KN02_CSR_IOINTEN (0xff<<16) /* IRQ mask bits */ |
58 | #define KN02_CSR_DIAGCHK (1<<15) /* diagn/norml ECC reads */ | 53 | #define KN02_CSR_DIAGCHK (1<<15) /* diagn/norml ECC reads */ |
59 | #define KN02_CSR_DIAGGEN (1<<14) /* diagn/norml ECC writes */ | 54 | #define KN02_CSR_DIAGGEN (1<<14) /* diagn/norml ECC writes */ |
60 | #define KN02_CSR_CORRECT (1<<13) /* ECC correct/check */ | 55 | #define KN02_CSR_CORRECT (1<<13) /* ECC correct/check */ |
@@ -63,8 +58,8 @@ | |||
63 | #define KN02_CSR_BNK32M (1<<10) /* 32M/8M stride */ | 58 | #define KN02_CSR_BNK32M (1<<10) /* 32M/8M stride */ |
64 | #define KN02_CSR_DIAGDN (1<<9) /* DIAGDN manufact. jumper */ | 59 | #define KN02_CSR_DIAGDN (1<<9) /* DIAGDN manufact. jumper */ |
65 | #define KN02_CSR_BAUD38 (1<<8) /* DZ11 38/19kbps ext. rate */ | 60 | #define KN02_CSR_BAUD38 (1<<8) /* DZ11 38/19kbps ext. rate */ |
66 | #define KN03_CSR_IOINT (0xff<<0) /* IRQ status bits (r/o) */ | 61 | #define KN02_CSR_IOINT (0xff<<0) /* IRQ status bits (r/o) */ |
67 | #define KN03_CSR_LEDS (0xff<<0) /* ~diagnostic LEDs (w/o) */ | 62 | #define KN02_CSR_LEDS (0xff<<0) /* ~diagnostic LEDs (w/o) */ |
68 | 63 | ||
69 | 64 | ||
70 | /* | 65 | /* |
@@ -98,6 +93,10 @@ | |||
98 | 93 | ||
99 | 94 | ||
100 | #ifndef __ASSEMBLY__ | 95 | #ifndef __ASSEMBLY__ |
96 | |||
97 | #include <linux/spinlock.h> | ||
98 | #include <linux/types.h> | ||
99 | |||
101 | extern u32 cached_kn02_csr; | 100 | extern u32 cached_kn02_csr; |
102 | extern spinlock_t kn02_lock; | 101 | extern spinlock_t kn02_lock; |
103 | extern void init_kn02_irqs(int base); | 102 | extern void init_kn02_irqs(int base); |