Home | History | Annotate | Download | only in sibyte
      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 _BCM1480_SCD_H
     20 #define _BCM1480_SCD_H
     21 #include "sb1250_defs.h"
     22 #include "sb1250_scd.h"
     23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24 #define K_SYS_PART_BCM1480 0x1406
     25 #define K_SYS_PART_BCM1280 0x1206
     26 #define K_SYS_PART_BCM1455 0x1407
     27 #define K_SYS_PART_BCM1255 0x1257
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29 #define K_SYS_PART_BCM1158 0x1156
     30 #define M_BCM1480_SYS_RESERVED0 _SB_MAKEMASK1(0)
     31 #define M_BCM1480_SYS_HT_MINRSTCNT _SB_MAKEMASK1(1)
     32 #define M_BCM1480_SYS_RESERVED2 _SB_MAKEMASK1(2)
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34 #define M_BCM1480_SYS_RESERVED3 _SB_MAKEMASK1(3)
     35 #define M_BCM1480_SYS_RESERVED4 _SB_MAKEMASK1(4)
     36 #define M_BCM1480_SYS_IOB_DIV _SB_MAKEMASK1(5)
     37 #define S_BCM1480_SYS_PLL_DIV _SB_MAKE64(6)
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39 #define M_BCM1480_SYS_PLL_DIV _SB_MAKEMASK(5, S_BCM1480_SYS_PLL_DIV)
     40 #define V_BCM1480_SYS_PLL_DIV(x) _SB_MAKEVALUE(x, S_BCM1480_SYS_PLL_DIV)
     41 #define G_BCM1480_SYS_PLL_DIV(x) _SB_GETVALUE(x, S_BCM1480_SYS_PLL_DIV, M_BCM1480_SYS_PLL_DIV)
     42 #define S_BCM1480_SYS_SW_DIV _SB_MAKE64(11)
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44 #define M_BCM1480_SYS_SW_DIV _SB_MAKEMASK(5, S_BCM1480_SYS_SW_DIV)
     45 #define V_BCM1480_SYS_SW_DIV(x) _SB_MAKEVALUE(x, S_BCM1480_SYS_SW_DIV)
     46 #define G_BCM1480_SYS_SW_DIV(x) _SB_GETVALUE(x, S_BCM1480_SYS_SW_DIV, M_BCM1480_SYS_SW_DIV)
     47 #define M_BCM1480_SYS_PCMCIA_ENABLE _SB_MAKEMASK1(16)
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49 #define M_BCM1480_SYS_DUART1_ENABLE _SB_MAKEMASK1(17)
     50 #define S_BCM1480_SYS_BOOT_MODE _SB_MAKE64(18)
     51 #define M_BCM1480_SYS_BOOT_MODE _SB_MAKEMASK(2, S_BCM1480_SYS_BOOT_MODE)
     52 #define V_BCM1480_SYS_BOOT_MODE(x) _SB_MAKEVALUE(x, S_BCM1480_SYS_BOOT_MODE)
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54 #define G_BCM1480_SYS_BOOT_MODE(x) _SB_GETVALUE(x, S_BCM1480_SYS_BOOT_MODE, M_BCM1480_SYS_BOOT_MODE)
     55 #define K_BCM1480_SYS_BOOT_MODE_ROM32 0
     56 #define K_BCM1480_SYS_BOOT_MODE_ROM8 1
     57 #define K_BCM1480_SYS_BOOT_MODE_SMBUS_SMALL 2
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59 #define K_BCM1480_SYS_BOOT_MODE_SMBUS_BIG 3
     60 #define M_BCM1480_SYS_BOOT_MODE_SMBUS _SB_MAKEMASK1(19)
     61 #define M_BCM1480_SYS_PCI_HOST _SB_MAKEMASK1(20)
     62 #define M_BCM1480_SYS_PCI_ARBITER _SB_MAKEMASK1(21)
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64 #define M_BCM1480_SYS_BIG_ENDIAN _SB_MAKEMASK1(22)
     65 #define M_BCM1480_SYS_GENCLK_EN _SB_MAKEMASK1(23)
     66 #define M_BCM1480_SYS_GEN_PARITY_EN _SB_MAKEMASK1(24)
     67 #define M_BCM1480_SYS_RESERVED25 _SB_MAKEMASK1(25)
     68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     69 #define S_BCM1480_SYS_CONFIG 26
     70 #define M_BCM1480_SYS_CONFIG _SB_MAKEMASK(6, S_BCM1480_SYS_CONFIG)
     71 #define V_BCM1480_SYS_CONFIG(x) _SB_MAKEVALUE(x, S_BCM1480_SYS_CONFIG)
     72 #define G_BCM1480_SYS_CONFIG(x) _SB_GETVALUE(x, S_BCM1480_SYS_CONFIG, M_BCM1480_SYS_CONFIG)
     73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     74 #define M_BCM1480_SYS_RESERVED32 _SB_MAKEMASK(32, 15)
     75 #define S_BCM1480_SYS_NODEID 47
     76 #define M_BCM1480_SYS_NODEID _SB_MAKEMASK(4, S_BCM1480_SYS_NODEID)
     77 #define V_BCM1480_SYS_NODEID(x) _SB_MAKEVALUE(x, S_BCM1480_SYS_NODEID)
     78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     79 #define G_BCM1480_SYS_NODEID(x) _SB_GETVALUE(x, S_BCM1480_SYS_NODEID, M_BCM1480_SYS_NODEID)
     80 #define M_BCM1480_SYS_CCNUMA_EN _SB_MAKEMASK1(51)
     81 #define M_BCM1480_SYS_CPU_RESET_0 _SB_MAKEMASK1(52)
     82 #define M_BCM1480_SYS_CPU_RESET_1 _SB_MAKEMASK1(53)
     83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     84 #define M_BCM1480_SYS_CPU_RESET_2 _SB_MAKEMASK1(54)
     85 #define M_BCM1480_SYS_CPU_RESET_3 _SB_MAKEMASK1(55)
     86 #define S_BCM1480_SYS_DISABLECPU0 56
     87 #define M_BCM1480_SYS_DISABLECPU0 _SB_MAKEMASK1(S_BCM1480_SYS_DISABLECPU0)
     88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     89 #define S_BCM1480_SYS_DISABLECPU1 57
     90 #define M_BCM1480_SYS_DISABLECPU1 _SB_MAKEMASK1(S_BCM1480_SYS_DISABLECPU1)
     91 #define S_BCM1480_SYS_DISABLECPU2 58
     92 #define M_BCM1480_SYS_DISABLECPU2 _SB_MAKEMASK1(S_BCM1480_SYS_DISABLECPU2)
     93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     94 #define S_BCM1480_SYS_DISABLECPU3 59
     95 #define M_BCM1480_SYS_DISABLECPU3 _SB_MAKEMASK1(S_BCM1480_SYS_DISABLECPU3)
     96 #define M_BCM1480_SYS_SB_SOFTRES _SB_MAKEMASK1(60)
     97 #define M_BCM1480_SYS_EXT_RESET _SB_MAKEMASK1(61)
     98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     99 #define M_BCM1480_SYS_SYSTEM_RESET _SB_MAKEMASK1(62)
    100 #define M_BCM1480_SYS_SW_FLAG _SB_MAKEMASK1(63)
    101 #define M_BCM1480_SCD_WDOG_ENABLE _SB_MAKEMASK1(0)
    102 #define S_BCM1480_SCD_WDOG_RESET_TYPE 2
    103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    104 #define M_BCM1480_SCD_WDOG_RESET_TYPE _SB_MAKEMASK(5, S_BCM1480_SCD_WDOG_RESET_TYPE)
    105 #define V_BCM1480_SCD_WDOG_RESET_TYPE(x) _SB_MAKEVALUE(x, S_BCM1480_SCD_WDOG_RESET_TYPE)
    106 #define G_BCM1480_SCD_WDOG_RESET_TYPE(x) _SB_GETVALUE(x, S_BCM1480_SCD_WDOG_RESET_TYPE, M_BCM1480_SCD_WDOG_RESET_TYPE)
    107 #define K_BCM1480_SCD_WDOG_RESET_FULL 0
    108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    109 #define K_BCM1480_SCD_WDOG_RESET_SOFT 1
    110 #define K_BCM1480_SCD_WDOG_RESET_CPU0 3
    111 #define K_BCM1480_SCD_WDOG_RESET_CPU1 5
    112 #define K_BCM1480_SCD_WDOG_RESET_CPU2 9
    113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    114 #define K_BCM1480_SCD_WDOG_RESET_CPU3 17
    115 #define K_BCM1480_SCD_WDOG_RESET_ALL_CPUS 31
    116 #define M_BCM1480_SCD_WDOG_HAS_RESET _SB_MAKEMASK1(8)
    117 #define S_SPC_CFG_SRC4 32
    118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    119 #define M_SPC_CFG_SRC4 _SB_MAKEMASK(8, S_SPC_CFG_SRC4)
    120 #define V_SPC_CFG_SRC4(x) _SB_MAKEVALUE(x, S_SPC_CFG_SRC4)
    121 #define G_SPC_CFG_SRC4(x) _SB_GETVALUE(x, S_SPC_CFG_SRC4, M_SPC_CFG_SRC4)
    122 #define S_SPC_CFG_SRC5 40
    123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    124 #define M_SPC_CFG_SRC5 _SB_MAKEMASK(8, S_SPC_CFG_SRC5)
    125 #define V_SPC_CFG_SRC5(x) _SB_MAKEVALUE(x, S_SPC_CFG_SRC5)
    126 #define G_SPC_CFG_SRC5(x) _SB_GETVALUE(x, S_SPC_CFG_SRC5, M_SPC_CFG_SRC5)
    127 #define S_SPC_CFG_SRC6 48
    128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    129 #define M_SPC_CFG_SRC6 _SB_MAKEMASK(8, S_SPC_CFG_SRC6)
    130 #define V_SPC_CFG_SRC6(x) _SB_MAKEVALUE(x, S_SPC_CFG_SRC6)
    131 #define G_SPC_CFG_SRC6(x) _SB_GETVALUE(x, S_SPC_CFG_SRC6, M_SPC_CFG_SRC6)
    132 #define S_SPC_CFG_SRC7 56
    133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    134 #define M_SPC_CFG_SRC7 _SB_MAKEMASK(8, S_SPC_CFG_SRC7)
    135 #define V_SPC_CFG_SRC7(x) _SB_MAKEVALUE(x, S_SPC_CFG_SRC7)
    136 #define G_SPC_CFG_SRC7(x) _SB_GETVALUE(x, S_SPC_CFG_SRC7, M_SPC_CFG_SRC7)
    137 #define M_BCM1480_SPC_CFG_CLEAR _SB_MAKEMASK1(0)
    138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    139 #define M_BCM1480_SPC_CFG_ENABLE _SB_MAKEMASK1(1)
    140 #if ???
    141 #define M_SPC_CFG_CLEAR M_BCM1480_SPC_CFG_CLEAR
    142 #define M_SPC_CFG_ENABLE M_BCM1480_SPC_CFG_ENABLE
    143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    144 #endif
    145 #define S_BCM1480_SPC_CNT_COUNT 0
    146 #define M_BCM1480_SPC_CNT_COUNT _SB_MAKEMASK(40, S_BCM1480_SPC_CNT_COUNT)
    147 #define V_BCM1480_SPC_CNT_COUNT(x) _SB_MAKEVALUE(x, S_BCM1480_SPC_CNT_COUNT)
    148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    149 #define G_BCM1480_SPC_CNT_COUNT(x) _SB_GETVALUE(x, S_BCM1480_SPC_CNT_COUNT, M_BCM1480_SPC_CNT_COUNT)
    150 #define M_BCM1480_SPC_CNT_OFLOW _SB_MAKEMASK1(40)
    151 #define M_BCM1480_ATRAP_INDEX _SB_MAKEMASK(4, 0)
    152 #define M_BCM1480_ATRAP_ADDRESS _SB_MAKEMASK(40, 0)
    153 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    154 #define S_BCM1480_ATRAP_CFG_CNT 0
    155 #define M_BCM1480_ATRAP_CFG_CNT _SB_MAKEMASK(3, S_BCM1480_ATRAP_CFG_CNT)
    156 #define V_BCM1480_ATRAP_CFG_CNT(x) _SB_MAKEVALUE(x, S_BCM1480_ATRAP_CFG_CNT)
    157 #define G_BCM1480_ATRAP_CFG_CNT(x) _SB_GETVALUE(x, S_BCM1480_ATRAP_CFG_CNT, M_BCM1480_ATRAP_CFG_CNT)
    158 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    159 #define M_BCM1480_ATRAP_CFG_WRITE _SB_MAKEMASK1(3)
    160 #define M_BCM1480_ATRAP_CFG_ALL _SB_MAKEMASK1(4)
    161 #define M_BCM1480_ATRAP_CFG_INV _SB_MAKEMASK1(5)
    162 #define M_BCM1480_ATRAP_CFG_USESRC _SB_MAKEMASK1(6)
    163 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    164 #define M_BCM1480_ATRAP_CFG_SRCINV _SB_MAKEMASK1(7)
    165 #define S_BCM1480_ATRAP_CFG_AGENTID 8
    166 #define M_BCM1480_ATRAP_CFG_AGENTID _SB_MAKEMASK(4, S_BCM1480_ATRAP_CFG_AGENTID)
    167 #define V_BCM1480_ATRAP_CFG_AGENTID(x) _SB_MAKEVALUE(x, S_BCM1480_ATRAP_CFG_AGENTID)
    168 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    169 #define G_BCM1480_ATRAP_CFG_AGENTID(x) _SB_GETVALUE(x, S_BCM1480_ATRAP_CFG_AGENTID, M_BCM1480_ATRAP_CFG_AGENTID)
    170 #define K_BCM1480_BUS_AGENT_CPU0 0
    171 #define K_BCM1480_BUS_AGENT_CPU1 1
    172 #define K_BCM1480_BUS_AGENT_NC 2
    173 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    174 #define K_BCM1480_BUS_AGENT_IOB 3
    175 #define K_BCM1480_BUS_AGENT_SCD 4
    176 #define K_BCM1480_BUS_AGENT_L2C 6
    177 #define K_BCM1480_BUS_AGENT_MC 7
    178 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    179 #define K_BCM1480_BUS_AGENT_CPU2 8
    180 #define K_BCM1480_BUS_AGENT_CPU3 9
    181 #define K_BCM1480_BUS_AGENT_PM 10
    182 #define S_BCM1480_ATRAP_CFG_CATTR 12
    183 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    184 #define M_BCM1480_ATRAP_CFG_CATTR _SB_MAKEMASK(2, S_BCM1480_ATRAP_CFG_CATTR)
    185 #define V_BCM1480_ATRAP_CFG_CATTR(x) _SB_MAKEVALUE(x, S_BCM1480_ATRAP_CFG_CATTR)
    186 #define G_BCM1480_ATRAP_CFG_CATTR(x) _SB_GETVALUE(x, S_BCM1480_ATRAP_CFG_CATTR, M_BCM1480_ATRAP_CFG_CATTR)
    187 #define K_BCM1480_ATRAP_CFG_CATTR_IGNORE 0
    188 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    189 #define K_BCM1480_ATRAP_CFG_CATTR_UNC 1
    190 #define K_BCM1480_ATRAP_CFG_CATTR_NONCOH 2
    191 #define K_BCM1480_ATRAP_CFG_CATTR_COHERENT 3
    192 #define M_BCM1480_ATRAP_CFG_CATTRINV _SB_MAKEMASK1(14)
    193 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    194 #define M_BCM1480_SCD_TRSEQ_TID_MATCH_EN _SB_MAKEMASK1(25)
    195 #define S_BCM1480_SCD_TRSEQ_SWFUNC 26
    196 #define M_BCM1480_SCD_TRSEQ_SWFUNC _SB_MAKEMASK(2, S_BCM1480_SCD_TRSEQ_SWFUNC)
    197 #define V_BCM1480_SCD_TRSEQ_SWFUNC(x) _SB_MAKEVALUE(x, S_BCM1480_SCD_TRSEQ_SWFUNC)
    198 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    199 #define G_BCM1480_SCD_TRSEQ_SWFUNC(x) _SB_GETVALUE(x, S_BCM1480_SCD_TRSEQ_SWFUNC, M_BCM1480_SCD_TRSEQ_SWFUNC)
    200 #define S_BCM1480_SCD_TRACE_CFG_MODE 16
    201 #define M_BCM1480_SCD_TRACE_CFG_MODE _SB_MAKEMASK(2, S_BCM1480_SCD_TRACE_CFG_MODE)
    202 #define V_BCM1480_SCD_TRACE_CFG_MODE(x) _SB_MAKEVALUE(x, S_BCM1480_SCD_TRACE_CFG_MODE)
    203 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    204 #define G_BCM1480_SCD_TRACE_CFG_MODE(x) _SB_GETVALUE(x, S_BCM1480_SCD_TRACE_CFG_MODE, M_BCM1480_SCD_TRACE_CFG_MODE)
    205 #define K_BCM1480_SCD_TRACE_CFG_MODE_BLOCKERS 0
    206 #define K_BCM1480_SCD_TRACE_CFG_MODE_BYTEEN_INT 1
    207 #define K_BCM1480_SCD_TRACE_CFG_MODE_FLOW_ID 2
    208 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    209 #endif
    210