1 
   2 
   3 
   4 
   5 
   6 
   7 
   8 
   9 
  10 
  11 
  12 
  13 #ifndef __ASM_MIPS_DEC_KN01_H
  14 #define __ASM_MIPS_DEC_KN01_H
  15 
  16 #define KN01_SLOT_BASE  0x10000000
  17 #define KN01_SLOT_SIZE  0x01000000
  18 
  19 
  20 
  21 
  22 #define KN01_PMASK      (0*KN01_SLOT_SIZE)      
  23 #define KN01_PCC        (1*KN01_SLOT_SIZE)      
  24 #define KN01_VDAC       (2*KN01_SLOT_SIZE)      
  25 #define KN01_RES_3      (3*KN01_SLOT_SIZE)      
  26 #define KN01_RES_4      (4*KN01_SLOT_SIZE)      
  27 #define KN01_RES_5      (5*KN01_SLOT_SIZE)      
  28 #define KN01_RES_6      (6*KN01_SLOT_SIZE)      
  29 #define KN01_ERRADDR    (7*KN01_SLOT_SIZE)      
  30 #define KN01_LANCE      (8*KN01_SLOT_SIZE)      
  31 #define KN01_LANCE_MEM  (9*KN01_SLOT_SIZE)      
  32 #define KN01_SII        (10*KN01_SLOT_SIZE)     
  33 #define KN01_SII_MEM    (11*KN01_SLOT_SIZE)     
  34 #define KN01_DZ11       (12*KN01_SLOT_SIZE)     
  35 #define KN01_RTC        (13*KN01_SLOT_SIZE)     
  36 #define KN01_ESAR       (13*KN01_SLOT_SIZE)     
  37 #define KN01_CSR        (14*KN01_SLOT_SIZE)     
  38 #define KN01_SYS_ROM    (15*KN01_SLOT_SIZE)     
  39 
  40 
  41 
  42 
  43 
  44 #define KN01_VFB_MEM    0x0fc00000
  45 
  46 
  47 
  48 
  49 #define KN01_CPU_INR_BUS        6       
  50 #define KN01_CPU_INR_VIDEO      6       
  51 #define KN01_CPU_INR_RTC        5       
  52 #define KN01_CPU_INR_DZ11       4       
  53 #define KN01_CPU_INR_LANCE      3       
  54 #define KN01_CPU_INR_SII        2       
  55 
  56 
  57 
  58 
  59 
  60 #define KN01_CSR_MNFMOD         (1<<15) 
  61 #define KN01_CSR_STATUS         (1<<14) 
  62 #define KN01_CSR_PARDIS         (1<<13) 
  63 #define KN01_CSR_CRSRTST        (1<<12) 
  64 #define KN01_CSR_MONO           (1<<11) 
  65 #define KN01_CSR_MEMERR         (1<<10) 
  66 #define KN01_CSR_VINT           (1<<9)  
  67 #define KN01_CSR_TXDIS          (1<<8)  
  68 #define KN01_CSR_VBGTRG         (1<<2)  
  69 #define KN01_CSR_VRGTRG         (1<<1)  
  70 #define KN01_CSR_VRGTRB         (1<<0)  
  71 #define KN01_CSR_LEDS           (0xff<<0) 
  72 
  73 
  74 #ifndef __ASSEMBLY__
  75 
  76 #include <linux/interrupt.h>
  77 #include <linux/spinlock.h>
  78 #include <linux/types.h>
  79 
  80 struct pt_regs;
  81 
  82 extern u16 cached_kn01_csr;
  83 
  84 extern void dec_kn01_be_init(void);
  85 extern int dec_kn01_be_handler(struct pt_regs *regs, int is_fixup);
  86 extern irqreturn_t dec_kn01_be_interrupt(int irq, void *dev_id);
  87 #endif
  88 
  89 #endif