Home | History | Annotate | Download | only in ip32
      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_CRIME_H__
     20 #define __ASM_CRIME_H__
     21 #define CRIME_BASE 0x14000000
     22 struct sgi_crime {
     23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24  volatile unsigned long id;
     25 #define CRIME_ID_MASK 0xff
     26 #define CRIME_ID_IDBITS 0xf0
     27 #define CRIME_ID_IDVALUE 0xa0
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29 #define CRIME_ID_REV 0x0f
     30 #define CRIME_REV_PETTY 0x00
     31 #define CRIME_REV_11 0x11
     32 #define CRIME_REV_13 0x13
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34 #define CRIME_REV_14 0x14
     35  volatile unsigned long control;
     36 #define CRIME_CONTROL_MASK 0x3fff
     37 #define CRIME_CONTROL_TRITON_SYSADC 0x2000
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39 #define CRIME_CONTROL_CRIME_SYSADC 0x1000
     40 #define CRIME_CONTROL_HARD_RESET 0x0800
     41 #define CRIME_CONTROL_SOFT_RESET 0x0400
     42 #define CRIME_CONTROL_DOG_ENA 0x0200
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44 #define CRIME_CONTROL_ENDIANESS 0x0100
     45 #define CRIME_CONTROL_ENDIAN_BIG 0x0100
     46 #define CRIME_CONTROL_ENDIAN_LITTLE 0x0000
     47 #define CRIME_CONTROL_CQUEUE_HWM 0x000f
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49 #define CRIME_CONTROL_CQUEUE_SHFT 0
     50 #define CRIME_CONTROL_WBUF_HWM 0x00f0
     51 #define CRIME_CONTROL_WBUF_SHFT 8
     52  volatile unsigned long istat;
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54  volatile unsigned long imask;
     55  volatile unsigned long soft_int;
     56  volatile unsigned long hard_int;
     57 #define MACE_VID_IN1_INT BIT(0)
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59 #define MACE_VID_IN2_INT BIT(1)
     60 #define MACE_VID_OUT_INT BIT(2)
     61 #define MACE_ETHERNET_INT BIT(3)
     62 #define MACE_SUPERIO_INT BIT(4)
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64 #define MACE_MISC_INT BIT(5)
     65 #define MACE_AUDIO_INT BIT(6)
     66 #define MACE_PCI_BRIDGE_INT BIT(7)
     67 #define MACEPCI_SCSI0_INT BIT(8)
     68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     69 #define MACEPCI_SCSI1_INT BIT(9)
     70 #define MACEPCI_SLOT0_INT BIT(10)
     71 #define MACEPCI_SLOT1_INT BIT(11)
     72 #define MACEPCI_SLOT2_INT BIT(12)
     73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     74 #define MACEPCI_SHARED0_INT BIT(13)
     75 #define MACEPCI_SHARED1_INT BIT(14)
     76 #define MACEPCI_SHARED2_INT BIT(15)
     77 #define CRIME_GBE0_INT BIT(16)
     78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     79 #define CRIME_GBE1_INT BIT(17)
     80 #define CRIME_GBE2_INT BIT(18)
     81 #define CRIME_GBE3_INT BIT(19)
     82 #define CRIME_CPUERR_INT BIT(20)
     83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     84 #define CRIME_MEMERR_INT BIT(21)
     85 #define CRIME_RE_EMPTY_E_INT BIT(22)
     86 #define CRIME_RE_FULL_E_INT BIT(23)
     87 #define CRIME_RE_IDLE_E_INT BIT(24)
     88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     89 #define CRIME_RE_EMPTY_L_INT BIT(25)
     90 #define CRIME_RE_FULL_L_INT BIT(26)
     91 #define CRIME_RE_IDLE_L_INT BIT(27)
     92 #define CRIME_SOFT0_INT BIT(28)
     93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     94 #define CRIME_SOFT1_INT BIT(29)
     95 #define CRIME_SOFT2_INT BIT(30)
     96 #define CRIME_SYSCORERR_INT CRIME_SOFT2_INT
     97 #define CRIME_VICE_INT BIT(31)
     98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     99 #define CRIME_MACE_INT_MASK 0x8f
    100 #define CRIME_MACEISA_INT_MASK 0x70
    101 #define CRIME_MACEPCI_INT_MASK 0xff00
    102 #define CRIME_CRIME_INT_MASK 0xffff0000
    103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    104  volatile unsigned long watchdog;
    105 #define CRIME_DOG_POWER_ON_RESET 0x00010000
    106 #define CRIME_DOG_WARM_RESET 0x00080000
    107 #define CRIME_DOG_TIMEOUT (CRIME_DOG_POWER_ON_RESET|CRIME_DOG_WARM_RESET)
    108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    109 #define CRIME_DOG_VALUE 0x00007fff
    110  volatile unsigned long timer;
    111 #define CRIME_MASTER_FREQ 66666500
    112 #define CRIME_NS_PER_TICK 15
    113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    114  volatile unsigned long cpu_error_addr;
    115 #define CRIME_CPU_ERROR_ADDR_MASK 0x3ffffffff
    116  volatile unsigned long cpu_error_stat;
    117 #define CRIME_CPU_ERROR_MASK 0x7
    118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    119 #define CRIME_CPU_ERROR_CPU_ILL_ADDR 0x4
    120 #define CRIME_CPU_ERROR_VICE_WRT_PRTY 0x2
    121 #define CRIME_CPU_ERROR_CPU_WRT_PRTY 0x1
    122  unsigned long _pad0[54];
    123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    124  volatile unsigned long mc_ctrl;
    125  volatile unsigned long bank_ctrl[8];
    126 #define CRIME_MEM_BANK_CONTROL_MASK 0x11f
    127 #define CRIME_MEM_BANK_CONTROL_ADDR 0x01f
    128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    129 #define CRIME_MEM_BANK_CONTROL_SDRAM_SIZE 0x100
    130 #define CRIME_MAXBANKS 8
    131  volatile unsigned long mem_ref_counter;
    132 #define CRIME_MEM_REF_COUNTER_MASK 0x3ff
    133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    134  volatile unsigned long mem_error_stat;
    135 #define CRIME_MEM_ERROR_STAT_MASK 0x0ff7ffff
    136 #define CRIME_MEM_ERROR_MACE_ID 0x0000007f
    137 #define CRIME_MEM_ERROR_MACE_ACCESS 0x00000080
    138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    139 #define CRIME_MEM_ERROR_RE_ID 0x00007f00
    140 #define CRIME_MEM_ERROR_RE_ACCESS 0x00008000
    141 #define CRIME_MEM_ERROR_GBE_ACCESS 0x00010000
    142 #define CRIME_MEM_ERROR_VICE_ACCESS 0x00020000
    143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    144 #define CRIME_MEM_ERROR_CPU_ACCESS 0x00040000
    145 #define CRIME_MEM_ERROR_RESERVED 0x00080000
    146 #define CRIME_MEM_ERROR_SOFT_ERR 0x00100000
    147 #define CRIME_MEM_ERROR_HARD_ERR 0x00200000
    148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    149 #define CRIME_MEM_ERROR_MULTIPLE 0x00400000
    150 #define CRIME_MEM_ERROR_ECC 0x01800000
    151 #define CRIME_MEM_ERROR_MEM_ECC_RD 0x00800000
    152 #define CRIME_MEM_ERROR_MEM_ECC_RMW 0x01000000
    153 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    154 #define CRIME_MEM_ERROR_INV 0x0e000000
    155 #define CRIME_MEM_ERROR_INV_MEM_ADDR_RD 0x02000000
    156 #define CRIME_MEM_ERROR_INV_MEM_ADDR_WR 0x04000000
    157 #define CRIME_MEM_ERROR_INV_MEM_ADDR_RMW 0x08000000
    158 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    159  volatile unsigned long mem_error_addr;
    160 #define CRIME_MEM_ERROR_ADDR_MASK 0x3fffffff
    161  volatile unsigned long mem_ecc_syn;
    162 #define CRIME_MEM_ERROR_ECC_SYN_MASK 0xffffffff
    163 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    164  volatile unsigned long mem_ecc_chk;
    165 #define CRIME_MEM_ERROR_ECC_CHK_MASK 0xffffffff
    166  volatile unsigned long mem_ecc_repl;
    167 #define CRIME_MEM_ERROR_ECC_REPL_MASK 0xffffffff
    168 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    169 };
    170 #define CRIME_HI_MEM_BASE 0x40000000
    171 #endif
    172