0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 #ifndef __ASM_MIPS_DEC_KN02_H
0014 #define __ASM_MIPS_DEC_KN02_H
0015
0016 #define KN02_SLOT_BASE 0x1fc00000
0017 #define KN02_SLOT_SIZE 0x00080000
0018
0019
0020
0021
0022 #define KN02_SYS_ROM (0*KN02_SLOT_SIZE)
0023 #define KN02_RES_1 (1*KN02_SLOT_SIZE)
0024 #define KN02_CHKSYN (2*KN02_SLOT_SIZE)
0025 #define KN02_ERRADDR (3*KN02_SLOT_SIZE)
0026 #define KN02_DZ11 (4*KN02_SLOT_SIZE)
0027 #define KN02_RTC (5*KN02_SLOT_SIZE)
0028 #define KN02_CSR (6*KN02_SLOT_SIZE)
0029 #define KN02_SYS_ROM_7 (7*KN02_SLOT_SIZE)
0030
0031
0032
0033
0034
0035 #define KN02_CSR_RES_28 (0xf<<28)
0036 #define KN02_CSR_PSU (1<<27)
0037 #define KN02_CSR_NVRAM (1<<26)
0038 #define KN02_CSR_REFEVEN (1<<25)
0039 #define KN02_CSR_NRMOD (1<<24)
0040 #define KN02_CSR_IOINTEN (0xff<<16)
0041 #define KN02_CSR_DIAGCHK (1<<15)
0042 #define KN02_CSR_DIAGGEN (1<<14)
0043 #define KN02_CSR_CORRECT (1<<13)
0044 #define KN02_CSR_LEDIAG (1<<12)
0045 #define KN02_CSR_TXDIS (1<<11)
0046 #define KN02_CSR_BNK32M (1<<10)
0047 #define KN02_CSR_DIAGDN (1<<9)
0048 #define KN02_CSR_BAUD38 (1<<8)
0049 #define KN02_CSR_IOINT (0xff<<0)
0050 #define KN02_CSR_LEDS (0xff<<0)
0051
0052
0053
0054
0055
0056 #define KN02_CPU_INR_RES_6 6
0057 #define KN02_CPU_INR_BUS 5
0058 #define KN02_CPU_INR_RES_4 4
0059 #define KN02_CPU_INR_RTC 3
0060 #define KN02_CPU_INR_CASCADE 2
0061
0062
0063
0064
0065 #define KN02_CSR_INR_DZ11 7
0066 #define KN02_CSR_INR_LANCE 6
0067 #define KN02_CSR_INR_ASC 5
0068 #define KN02_CSR_INR_RES_4 4
0069 #define KN02_CSR_INR_RES_3 3
0070 #define KN02_CSR_INR_TC2 2
0071 #define KN02_CSR_INR_TC1 1
0072 #define KN02_CSR_INR_TC0 0
0073
0074
0075 #define KN02_IRQ_BASE 8
0076 #define KN02_IRQ_LINES 8
0077
0078 #define KN02_IRQ_NR(n) ((n) + KN02_IRQ_BASE)
0079 #define KN02_IRQ_MASK(n) (1 << (n))
0080 #define KN02_IRQ_ALL 0xff
0081
0082
0083 #ifndef __ASSEMBLY__
0084
0085 #include <linux/types.h>
0086
0087 extern u32 cached_kn02_csr;
0088 extern void init_kn02_irqs(int base);
0089 #endif
0090
0091 #endif