1/**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19#ifndef __ASM_JAZZ_H 20#define __ASM_JAZZ_H 21#define JAZZ_LOCAL_IO_SPACE 0xe0000000 22#define PICA_ASIC_REVISION 0xe0000008 23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24#define PICA_LED 0xe000f000 25#define LED_DOT 0x01 26#define LED_SPACE 0x00 27#define LED_0 0xfc 28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29#define LED_1 0x60 30#define LED_2 0xda 31#define LED_3 0xf2 32#define LED_4 0x66 33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34#define LED_5 0xb6 35#define LED_6 0xbe 36#define LED_7 0xe0 37#define LED_8 0xfe 38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39#define LED_9 0xf6 40#define LED_A 0xee 41#define LED_b 0x3e 42#define LED_C 0x9c 43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44#define LED_d 0x7a 45#define LED_E 0x9e 46#define LED_F 0x8e 47#ifndef __ASSEMBLY__ 48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49#endif 50#define JAZZ_ETHERNET_BASE 0xe0001000 51#define JAZZ_SCSI_BASE 0xe0002000 52#define JAZZ_KEYBOARD_ADDRESS 0xe0005000 53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54#define JAZZ_KEYBOARD_DATA 0xe0005000 55#define JAZZ_KEYBOARD_COMMAND 0xe0005001 56#ifndef __ASSEMBLY__ 57typedef struct { 58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 unsigned char data; 60 unsigned char command; 61} jazz_keyboard_hardware; 62#define jazz_kh ((keyboard_hardware *) JAZZ_KEYBOARD_ADDRESS) 63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64typedef struct { 65 unsigned char pad0[3]; 66 unsigned char data; 67 unsigned char pad1[3]; 68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 unsigned char command; 70} mips_keyboard_hardware; 71#define keyboard_hardware jazz_keyboard_hardware 72#endif 73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74#define MIPS_KEYBOARD_ADDRESS 0xb9005000 75#define MIPS_KEYBOARD_DATA 0xb9005003 76#define MIPS_KEYBOARD_COMMAND 0xb9005007 77#define JAZZ_SERIAL1_BASE (unsigned int)0xe0006000 78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79#define JAZZ_SERIAL2_BASE (unsigned int)0xe0007000 80#define JAZZ_PARALLEL_BASE (unsigned int)0xe0008000 81#define JAZZ_DUMMY_DEVICE 0xe000d000 82#define JAZZ_TIMER_INTERVAL 0xe0000228 83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84#define JAZZ_TIMER_REGISTER 0xe0000230 85#ifndef __ASSEMBLY__ 86#ifdef __MIPSEL__ 87typedef struct { 88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89 unsigned int bank2 : 3; 90 unsigned int bank1 : 3; 91 unsigned int mem_bus_width : 1; 92 unsigned int reserved2 : 1; 93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 94 unsigned int page_mode : 1; 95 unsigned int reserved1 : 23; 96} dram_configuration; 97#else 98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 99typedef struct { 100 unsigned int reserved1 : 23; 101 unsigned int page_mode : 1; 102 unsigned int reserved2 : 1; 103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 104 unsigned int mem_bus_width : 1; 105 unsigned int bank1 : 3; 106 unsigned int bank2 : 3; 107} dram_configuration; 108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 109#endif 110#endif 111#define PICA_DRAM_CONFIG 0xe00fffe0 112#define JAZZ_IO_IRQ_SOURCE 0xe0010000 113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 114#define JAZZ_IO_IRQ_ENABLE 0xe0010002 115#define JAZZ_IRQ_START 24 116#define JAZZ_IRQ_END (24 + 9) 117#define JAZZ_PARALLEL_IRQ (JAZZ_IRQ_START + 0) 118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 119#define JAZZ_FLOPPY_IRQ (JAZZ_IRQ_START + 1) 120#define JAZZ_SOUND_IRQ (JAZZ_IRQ_START + 2) 121#define JAZZ_VIDEO_IRQ (JAZZ_IRQ_START + 3) 122#define JAZZ_ETHERNET_IRQ (JAZZ_IRQ_START + 4) 123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 124#define JAZZ_SCSI_IRQ (JAZZ_IRQ_START + 5) 125#define JAZZ_KEYBOARD_IRQ (JAZZ_IRQ_START + 6) 126#define JAZZ_MOUSE_IRQ (JAZZ_IRQ_START + 7) 127#define JAZZ_SERIAL1_IRQ (JAZZ_IRQ_START + 8) 128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 129#define JAZZ_SERIAL2_IRQ (JAZZ_IRQ_START + 9) 130#define JAZZ_TIMER_IRQ (MIPS_CPU_IRQ_BASE+6) 131#define JAZZ_SCSI_DMA 0 132#define JAZZ_FLOPPY_DMA 1 133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 134#define JAZZ_AUDIOL_DMA 2 135#define JAZZ_AUDIOR_DMA 3 136#define JAZZ_R4030_CONFIG 0xE0000000 137#define JAZZ_R4030_REVISION 0xE0000008 138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 139#define JAZZ_R4030_INV_ADDR 0xE0000010 140#define JAZZ_R4030_TRSTBL_BASE 0xE0000018 141#define JAZZ_R4030_TRSTBL_LIM 0xE0000020 142#define JAZZ_R4030_TRSTBL_INV 0xE0000028 143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 144#define JAZZ_R4030_CACHE_MTNC 0xE0000030 145#define JAZZ_R4030_R_FAIL_ADDR 0xE0000038 146#define JAZZ_R4030_M_FAIL_ADDR 0xE0000040 147#define JAZZ_R4030_CACHE_PTAG 0xE0000048 148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 149#define JAZZ_R4030_CACHE_LTAG 0xE0000050 150#define JAZZ_R4030_CACHE_BMASK 0xE0000058 151#define JAZZ_R4030_CACHE_BWIN 0xE0000060 152#define JAZZ_R4030_REM_SPEED 0xE0000070 153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 154#define JAZZ_R4030_IRQ_ENABLE 0xE00000E8 155#define JAZZ_R4030_INVAL_ADDR 0xE0000010 156#define JAZZ_R4030_IRQ_SOURCE 0xE0000200 157#define JAZZ_R4030_I386_ERROR 0xE0000208 158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 159#define JAZZ_EISA_IRQ_ACK 0xE0000238 160#ifndef __ASSEMBLY__ 161#endif 162#define JAZZ_FDC_BASE 0xe0003000 163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 164#define JAZZ_RTC_BASE 0xe0004000 165#define JAZZ_PORT_BASE 0xe2000000 166#define JAZZ_EISA_BASE 0xe3000000 167#endif 168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 169