25 #ifndef _LANGUAGE_ASSEMBLY
47 #include <linux/types.h>
49 #define LASAT_EEPROM_VERSION 7
103 #define LASAT_W0_DSCTYPE(v) (((v)) & 0xf)
104 #define LASAT_W0_BMID(v) (((v) >> 0x04) & 0xf)
105 #define LASAT_W0_CPUTYPE(v) (((v) >> 0x08) & 0xf)
106 #define LASAT_W0_BUSSPEED(v) (((v) >> 0x0c) & 0xf)
107 #define LASAT_W0_CPUCLK(v) (((v) >> 0x10) & 0xf)
108 #define LASAT_W0_SDRAMBANKSZ(v) (((v) >> 0x14) & 0xf)
109 #define LASAT_W0_SDRAMBANKS(v) (((v) >> 0x18) & 0xf)
110 #define LASAT_W0_L2CACHE(v) (((v) >> 0x1c) & 0xf)
112 #define LASAT_W1_EDHAC(v) (((v)) & 0xf)
113 #define LASAT_W1_HIFN(v) (((v) >> 0x04) & 0x1)
114 #define LASAT_W1_ISDN(v) (((v) >> 0x05) & 0x1)
115 #define LASAT_W1_IDE(v) (((v) >> 0x06) & 0x1)
116 #define LASAT_W1_HDLC(v) (((v) >> 0x07) & 0x1)
117 #define LASAT_W1_USVERSION(v) (((v) >> 0x08) & 0x1)
118 #define LASAT_W1_4MACS(v) (((v) >> 0x09) & 0x1)
119 #define LASAT_W1_EXTSERIAL(v) (((v) >> 0x0a) & 0x1)
120 #define LASAT_W1_FLASHSIZE(v) (((v) >> 0x0c) & 0xf)
121 #define LASAT_W1_PCISLOTS(v) (((v) >> 0x10) & 0xf)
122 #define LASAT_W1_PCI1OPT(v) (((v) >> 0x14) & 0xf)
123 #define LASAT_W1_PCI2OPT(v) (((v) >> 0x18) & 0xf)
124 #define LASAT_W1_PCI3OPT(v) (((v) >> 0x1c) & 0xf)
128 #define LASAT_BMID_MASQUERADE2 0
129 #define LASAT_BMID_MASQUERADEPRO 1
130 #define LASAT_BMID_SAFEPIPE25 2
131 #define LASAT_BMID_SAFEPIPE50 3
132 #define LASAT_BMID_SAFEPIPE100 4
133 #define LASAT_BMID_SAFEPIPE5000 5
134 #define LASAT_BMID_SAFEPIPE7000 6
135 #define LASAT_BMID_SAFEPIPE1000 7
137 #define LASAT_BMID_SAFEPIPE30 7
138 #define LASAT_BMID_SAFEPIPE5100 8
139 #define LASAT_BMID_SAFEPIPE7100 9
141 #define LASAT_BMID_UNKNOWN 0xf
142 #define LASAT_MAX_BMID_NAMES 9
144 #define LASAT_HAS_EDHAC (1 << 0)
145 #define LASAT_EDHAC_FAST (1 << 1)
146 #define LASAT_HAS_EADI (1 << 2)
147 #define LASAT_HAS_HIFN (1 << 3)
148 #define LASAT_HAS_ISDN (1 << 4)
149 #define LASAT_HAS_LEASEDLINE_IF (1 << 5)
150 #define LASAT_HAS_HDC (1 << 6)
152 #define LASAT_PRID_MASQUERADE2 0
153 #define LASAT_PRID_MASQUERADEPRO 1
154 #define LASAT_PRID_SAFEPIPE25 2
155 #define LASAT_PRID_SAFEPIPE50 3
156 #define LASAT_PRID_SAFEPIPE100 4
157 #define LASAT_PRID_SAFEPIPE5000 5
158 #define LASAT_PRID_SAFEPIPE7000 6
159 #define LASAT_PRID_SAFEPIPE30 7
160 #define LASAT_PRID_SAFEPIPE5100 8
161 #define LASAT_PRID_SAFEPIPE7100 9
163 #define LASAT_PRID_SAFEPIPE1110 10
164 #define LASAT_PRID_SAFEPIPE3020 11
165 #define LASAT_PRID_SAFEPIPE3030 12
166 #define LASAT_PRID_SAFEPIPE5020 13
167 #define LASAT_PRID_SAFEPIPE5030 14
168 #define LASAT_PRID_SAFEPIPE1120 15
169 #define LASAT_PRID_SAFEPIPE1130 16
170 #define LASAT_PRID_SAFEPIPE6010 17
171 #define LASAT_PRID_SAFEPIPE6110 18
172 #define LASAT_PRID_SAFEPIPE6210 19
173 #define LASAT_PRID_SAFEPIPE1020 20
174 #define LASAT_PRID_SAFEPIPE1040 21
175 #define LASAT_PRID_SAFEPIPE1060 22
198 static inline unsigned long lasat_flash_partition_start(
int partno)
206 static inline unsigned long lasat_flash_partition_size(
int partno)
220 #define N_MACHTYPES 2
231 #define LASAT_100_DIVIDER 20
233 #define LASAT_200_DIVIDER 8
237 static inline void lasat_ndelay(
unsigned int ns)
239 __delay(ns / lasat_ndelay_divider);
242 #define IS_LASAT_200() (current_cpu_data.cputype == CPU_R5000)
246 #define LASAT_SERVICEMODE_MAGIC_1 0xdeadbeef
247 #define LASAT_SERVICEMODE_MAGIC_2 0xfedeabba
250 #define LASAT_GT_BASE (KSEG1ADDR(0x14000000))
253 #define Vrc5074_PHYS_BASE 0x1fa00000
254 #define Vrc5074_BASE (KSEG1ADDR(Vrc5074_PHYS_BASE))
255 #define PCI_WINDOW1 0x1a000000