Go to the documentation of this file.
19 #define JAZZ_LOCAL_IO_SPACE 0xe0000000
28 #define PICA_ASIC_REVISION 0xe0000008
45 #define PICA_LED 0xe000f000
55 #define LED_SPACE 0x00
77 volatile unsigned int *led_register = (
unsigned int *)
PICA_LED;
87 #define JAZZ_ETHERNET_BASE 0xe0001000
92 #define JAZZ_SCSI_BASE 0xe0002000
99 #define JAZZ_KEYBOARD_ADDRESS 0xe0005000
100 #define JAZZ_KEYBOARD_DATA 0xe0005000
101 #define JAZZ_KEYBOARD_COMMAND 0xe0005001
110 #define jazz_kh ((keyboard_hardware *) JAZZ_KEYBOARD_ADDRESS)
122 #define keyboard_hardware jazz_keyboard_hardware
129 #define MIPS_KEYBOARD_ADDRESS 0xb9005000
130 #define MIPS_KEYBOARD_DATA 0xb9005003
131 #define MIPS_KEYBOARD_COMMAND 0xb9005007
136 #define JAZZ_SERIAL1_BASE (unsigned int)0xe0006000
137 #define JAZZ_SERIAL2_BASE (unsigned int)0xe0007000
138 #define JAZZ_PARALLEL_BASE (unsigned int)0xe0008000
143 #define JAZZ_DUMMY_DEVICE 0xe000d000
151 #define JAZZ_TIMER_INTERVAL 0xe0000228
152 #define JAZZ_TIMER_REGISTER 0xe0000230
160 unsigned int bank2 : 3;
161 unsigned int bank1 : 3;
162 unsigned int mem_bus_width : 1;
164 unsigned int page_mode : 1;
170 unsigned int page_mode : 1;
172 unsigned int mem_bus_width : 1;
173 unsigned int bank1 : 3;
174 unsigned int bank2 : 3;
179 #define PICA_DRAM_CONFIG 0xe00fffe0
184 #define JAZZ_IO_IRQ_SOURCE 0xe0010000
185 #define JAZZ_IO_IRQ_ENABLE 0xe0010002
193 #define JAZZ_IRQ_START 24
194 #define JAZZ_IRQ_END (24 + 9)
195 #define JAZZ_PARALLEL_IRQ (JAZZ_IRQ_START + 0)
196 #define JAZZ_FLOPPY_IRQ (JAZZ_IRQ_START + 1)
197 #define JAZZ_SOUND_IRQ (JAZZ_IRQ_START + 2)
198 #define JAZZ_VIDEO_IRQ (JAZZ_IRQ_START + 3)
199 #define JAZZ_ETHERNET_IRQ (JAZZ_IRQ_START + 4)
200 #define JAZZ_SCSI_IRQ (JAZZ_IRQ_START + 5)
201 #define JAZZ_KEYBOARD_IRQ (JAZZ_IRQ_START + 6)
202 #define JAZZ_MOUSE_IRQ (JAZZ_IRQ_START + 7)
203 #define JAZZ_SERIAL1_IRQ (JAZZ_IRQ_START + 8)
204 #define JAZZ_SERIAL2_IRQ (JAZZ_IRQ_START + 9)
206 #define JAZZ_TIMER_IRQ (MIPS_CPU_IRQ_BASE+6)
214 #define JAZZ_SCSI_DMA 0
215 #define JAZZ_FLOPPY_DMA 1
216 #define JAZZ_AUDIOL_DMA 2
217 #define JAZZ_AUDIOR_DMA 3
223 #define JAZZ_R4030_CONFIG 0xE0000000
224 #define JAZZ_R4030_REVISION 0xE0000008
225 #define JAZZ_R4030_INV_ADDR 0xE0000010
227 #define JAZZ_R4030_TRSTBL_BASE 0xE0000018
228 #define JAZZ_R4030_TRSTBL_LIM 0xE0000020
229 #define JAZZ_R4030_TRSTBL_INV 0xE0000028
231 #define JAZZ_R4030_CACHE_MTNC 0xE0000030
232 #define JAZZ_R4030_R_FAIL_ADDR 0xE0000038
233 #define JAZZ_R4030_M_FAIL_ADDR 0xE0000040
235 #define JAZZ_R4030_CACHE_PTAG 0xE0000048
236 #define JAZZ_R4030_CACHE_LTAG 0xE0000050
237 #define JAZZ_R4030_CACHE_BMASK 0xE0000058
238 #define JAZZ_R4030_CACHE_BWIN 0xE0000060
248 #define JAZZ_R4030_REM_SPEED 0xE0000070
250 #define JAZZ_R4030_IRQ_ENABLE 0xE00000E8
251 #define JAZZ_R4030_INVAL_ADDR 0xE0000010
252 #define JAZZ_R4030_IRQ_SOURCE 0xE0000200
253 #define JAZZ_R4030_I386_ERROR 0xE0000208
258 #define JAZZ_EISA_IRQ_ACK 0xE0000238
265 static inline void r4030_delay(
void)
268 ".set\tnoreorder\n\t"
276 static inline unsigned short r4030_read_reg16(
unsigned long addr)
278 unsigned short ret = *((
volatile unsigned short *)addr);
283 static inline unsigned int r4030_read_reg32(
unsigned long addr)
285 unsigned int ret = *((
volatile unsigned int *)addr);
290 static inline void r4030_write_reg16(
unsigned long addr,
unsigned val)
292 *((
volatile unsigned short *)addr) =
val;
296 static inline void r4030_write_reg32(
unsigned long addr,
unsigned val)
298 *((
volatile unsigned int *)addr) =
val;
304 #define JAZZ_FDC_BASE 0xe0003000
305 #define JAZZ_RTC_BASE 0xe0004000
306 #define JAZZ_PORT_BASE 0xe2000000
308 #define JAZZ_EISA_BASE 0xe3000000