0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 #ifndef __ASM_MIPS_DEC_KN01_H
0014 #define __ASM_MIPS_DEC_KN01_H
0015
0016 #define KN01_SLOT_BASE 0x10000000
0017 #define KN01_SLOT_SIZE 0x01000000
0018
0019
0020
0021
0022 #define KN01_PMASK (0*KN01_SLOT_SIZE)
0023 #define KN01_PCC (1*KN01_SLOT_SIZE)
0024 #define KN01_VDAC (2*KN01_SLOT_SIZE)
0025 #define KN01_RES_3 (3*KN01_SLOT_SIZE)
0026 #define KN01_RES_4 (4*KN01_SLOT_SIZE)
0027 #define KN01_RES_5 (5*KN01_SLOT_SIZE)
0028 #define KN01_RES_6 (6*KN01_SLOT_SIZE)
0029 #define KN01_ERRADDR (7*KN01_SLOT_SIZE)
0030 #define KN01_LANCE (8*KN01_SLOT_SIZE)
0031 #define KN01_LANCE_MEM (9*KN01_SLOT_SIZE)
0032 #define KN01_SII (10*KN01_SLOT_SIZE)
0033 #define KN01_SII_MEM (11*KN01_SLOT_SIZE)
0034 #define KN01_DZ11 (12*KN01_SLOT_SIZE)
0035 #define KN01_RTC (13*KN01_SLOT_SIZE)
0036 #define KN01_ESAR (13*KN01_SLOT_SIZE)
0037 #define KN01_CSR (14*KN01_SLOT_SIZE)
0038 #define KN01_SYS_ROM (15*KN01_SLOT_SIZE)
0039
0040
0041
0042
0043
0044 #define KN01_VFB_MEM 0x0fc00000
0045
0046
0047
0048
0049 #define KN01_CPU_INR_BUS 6
0050 #define KN01_CPU_INR_VIDEO 6
0051 #define KN01_CPU_INR_RTC 5
0052 #define KN01_CPU_INR_DZ11 4
0053 #define KN01_CPU_INR_LANCE 3
0054 #define KN01_CPU_INR_SII 2
0055
0056
0057
0058
0059
0060 #define KN01_CSR_MNFMOD (1<<15)
0061 #define KN01_CSR_STATUS (1<<14)
0062 #define KN01_CSR_PARDIS (1<<13)
0063 #define KN01_CSR_CRSRTST (1<<12)
0064 #define KN01_CSR_MONO (1<<11)
0065 #define KN01_CSR_MEMERR (1<<10)
0066 #define KN01_CSR_VINT (1<<9)
0067 #define KN01_CSR_TXDIS (1<<8)
0068 #define KN01_CSR_VBGTRG (1<<2)
0069 #define KN01_CSR_VRGTRG (1<<1)
0070 #define KN01_CSR_VRGTRB (1<<0)
0071 #define KN01_CSR_LEDS (0xff<<0)
0072
0073
0074 #ifndef __ASSEMBLY__
0075
0076 #include <linux/interrupt.h>
0077 #include <linux/spinlock.h>
0078 #include <linux/types.h>
0079
0080 struct pt_regs;
0081
0082 extern u16 cached_kn01_csr;
0083
0084 extern void dec_kn01_be_init(void);
0085 extern int dec_kn01_be_handler(struct pt_regs *regs, int is_fixup);
0086 extern irqreturn_t dec_kn01_be_interrupt(int irq, void *dev_id);
0087 #endif
0088
0089 #endif