Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs
hubpi.h File Reference
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  err_stack_format
 
union  pi_err_stack
 
struct  err_status0_format
 
union  pi_err_stat0
 
struct  err_status1_format
 
union  pi_err_stat1
 

Macros

#define PI_BASE   0x000000
 
#define PI_CPU_PROTECT   0x000000 /* CPU Protection */
 
#define PI_PROT_OVERRD   0x000008 /* Clear CPU Protection bit */
 
#define PI_IO_PROTECT   0x000010 /* Interrupt Pending Protection */
 
#define PI_REGION_PRESENT   0x000018 /* Indicates whether region exists */
 
#define PI_CPU_NUM   0x000020 /* CPU Number ID */
 
#define PI_CALIAS_SIZE   0x000028 /* Cached Alias Size */
 
#define PI_MAX_CRB_TIMEOUT   0x000030 /* Maximum Timeout for CRB */
 
#define PI_CRB_SFACTOR   0x000038 /* Scale factor for CRB timeout */
 
#define PI_CALIAS_SIZE_0   0
 
#define PI_CALIAS_SIZE_4K   1
 
#define PI_CALIAS_SIZE_8K   2
 
#define PI_CALIAS_SIZE_16K   3
 
#define PI_CALIAS_SIZE_32K   4
 
#define PI_CALIAS_SIZE_64K   5
 
#define PI_CALIAS_SIZE_128K   6
 
#define PI_CALIAS_SIZE_256K   7
 
#define PI_CALIAS_SIZE_512K   8
 
#define PI_CALIAS_SIZE_1M   9
 
#define PI_CALIAS_SIZE_2M   10
 
#define PI_CALIAS_SIZE_4M   11
 
#define PI_CALIAS_SIZE_8M   12
 
#define PI_CALIAS_SIZE_16M   13
 
#define PI_CALIAS_SIZE_32M   14
 
#define PI_CALIAS_SIZE_64M   15
 
#define PI_CPU_PRESENT_A   0x000040 /* CPU Present A */
 
#define PI_CPU_PRESENT_B   0x000048 /* CPU Present B */
 
#define PI_CPU_ENABLE_A   0x000050 /* CPU Enable A */
 
#define PI_CPU_ENABLE_B   0x000058 /* CPU Enable B */
 
#define PI_REPLY_LEVEL   0x000060 /* Reply Level */
 
#define PI_HARDRESET_BIT   0x020068 /* Bit cleared by s/w on SR */
 
#define PI_NMI_A   0x000070 /* NMI to CPU A */
 
#define PI_NMI_B   0x000078 /* NMI to CPU B */
 
#define PI_NMI_OFFSET   (PI_NMI_B - PI_NMI_A)
 
#define PI_SOFTRESET   0x000080 /* Softreset (to both CPUs) */
 
#define PI_INT_PEND_MOD   0x000090 /* Write to set pending ints */
 
#define PI_INT_PEND0   0x000098 /* Read to get pending ints */
 
#define PI_INT_PEND1   0x0000a0 /* Read to get pending ints */
 
#define PI_INT_MASK0_A   0x0000a8 /* Interrupt Mask 0 for CPU A */
 
#define PI_INT_MASK1_A   0x0000b0 /* Interrupt Mask 1 for CPU A */
 
#define PI_INT_MASK0_B   0x0000b8 /* Interrupt Mask 0 for CPU B */
 
#define PI_INT_MASK1_B   0x0000c0 /* Interrupt Mask 1 for CPU B */
 
#define PI_INT_MASK_OFFSET   0x10 /* Offset from A to B */
 
#define PI_CC_PEND_SET_A   0x0000c8 /* CC Interrupt Pending Set, CPU A */
 
#define PI_CC_PEND_SET_B   0x0000d0 /* CC Interrupt Pending Set, CPU B */
 
#define PI_CC_PEND_CLR_A   0x0000d8 /* CC Interrupt Pending Clr, CPU A */
 
#define PI_CC_PEND_CLR_B   0x0000e0 /* CC Interrupt Pending Clr, CPU B */
 
#define PI_CC_MASK   0x0000e8 /* CC Interrupt mask */
 
#define PI_INT_SET_OFFSET   0x08 /* Offset from A to B */
 
#define PI_RT_COUNT   0x030100 /* Real Time Counter */
 
#define PI_RT_COMPARE_A   0x000108 /* Real Time Compare A */
 
#define PI_RT_COMPARE_B   0x000110 /* Real Time Compare B */
 
#define PI_PROFILE_COMPARE   0x000118 /* L5 int to both cpus when == RTC */
 
#define PI_RT_PEND_A   0x000120 /* Set if RT int for A pending */
 
#define PI_RT_PEND_B   0x000128 /* Set if RT int for B pending */
 
#define PI_PROF_PEND_A   0x000130 /* Set if Prof int for A pending */
 
#define PI_PROF_PEND_B   0x000138 /* Set if Prof int for B pending */
 
#define PI_RT_EN_A   0x000140 /* RT int for CPU A enable */
 
#define PI_RT_EN_B   0x000148 /* RT int for CPU B enable */
 
#define PI_PROF_EN_A   0x000150 /* PROF int for CPU A enable */
 
#define PI_PROF_EN_B   0x000158 /* PROF int for CPU B enable */
 
#define PI_RT_LOCAL_CTRL   0x000160 /* RT control register */
 
#define PI_RT_FILTER_CTRL   0x000168 /* GCLK Filter control register */
 
#define PI_COUNT_OFFSET   0x08 /* A to B offset for all counts */
 
#define PI_BIST_WRITE_DATA   0x000200 /* BIST write data */
 
#define PI_BIST_READ_DATA   0x000208 /* BIST read data */
 
#define PI_BIST_COUNT_TARG   0x000210 /* BIST Count and Target */
 
#define PI_BIST_READY   0x000218 /* BIST Ready indicator */
 
#define PI_BIST_SHIFT_LOAD   0x000220 /* BIST control */
 
#define PI_BIST_SHIFT_UNLOAD   0x000228 /* BIST control */
 
#define PI_BIST_ENTER_RUN   0x000230 /* BIST control */
 
#define PI_GFX_PAGE_A   0x000300 /* Graphics page A */
 
#define PI_GFX_CREDIT_CNTR_A   0x000308 /* Graphics credit counter A */
 
#define PI_GFX_BIAS_A   0x000310 /* Graphics bias A */
 
#define PI_GFX_INT_CNTR_A   0x000318 /* Graphics interrupt counter A */
 
#define PI_GFX_INT_CMP_A   0x000320 /* Graphics interrupt comparator A */
 
#define PI_GFX_PAGE_B   0x000328 /* Graphics page B */
 
#define PI_GFX_CREDIT_CNTR_B   0x000330 /* Graphics credit counter B */
 
#define PI_GFX_BIAS_B   0x000338 /* Graphics bias B */
 
#define PI_GFX_INT_CNTR_B   0x000340 /* Graphics interrupt counter B */
 
#define PI_GFX_INT_CMP_B   0x000348 /* Graphics interrupt comparator B */
 
#define PI_GFX_OFFSET   (PI_GFX_PAGE_B - PI_GFX_PAGE_A)
 
#define PI_GFX_PAGE_ENABLE   0x0000010000000000LL
 
#define PI_ERR_INT_PEND   0x000400 /* Error Interrupt Pending */
 
#define PI_ERR_INT_MASK_A   0x000408 /* Error Interrupt mask for CPU A */
 
#define PI_ERR_INT_MASK_B   0x000410 /* Error Interrupt mask for CPU B */
 
#define PI_ERR_STACK_ADDR_A   0x000418 /* Error stack address for CPU A */
 
#define PI_ERR_STACK_ADDR_B   0x000420 /* Error stack address for CPU B */
 
#define PI_ERR_STACK_SIZE   0x000428 /* Error Stack Size */
 
#define PI_ERR_STATUS0_A   0x000430 /* Error Status 0A */
 
#define PI_ERR_STATUS0_A_RCLR   0x000438 /* Error Status 0A clear on read */
 
#define PI_ERR_STATUS1_A   0x000440 /* Error Status 1A */
 
#define PI_ERR_STATUS1_A_RCLR   0x000448 /* Error Status 1A clear on read */
 
#define PI_ERR_STATUS0_B   0x000450 /* Error Status 0B */
 
#define PI_ERR_STATUS0_B_RCLR   0x000458 /* Error Status 0B clear on read */
 
#define PI_ERR_STATUS1_B   0x000460 /* Error Status 1B */
 
#define PI_ERR_STATUS1_B_RCLR   0x000468 /* Error Status 1B clear on read */
 
#define PI_SPOOL_CMP_A   0x000470 /* Spool compare for CPU A */
 
#define PI_SPOOL_CMP_B   0x000478 /* Spool compare for CPU B */
 
#define PI_CRB_TIMEOUT_A   0x000480 /* Timed out CRB entries for A */
 
#define PI_CRB_TIMEOUT_B   0x000488 /* Timed out CRB entries for B */
 
#define PI_SYSAD_ERRCHK_EN   0x000490 /* Enables SYSAD error checking */
 
#define PI_BAD_CHECK_BIT_A   0x000498 /* Force SYSAD check bit error */
 
#define PI_BAD_CHECK_BIT_B   0x0004a0 /* Force SYSAD check bit error */
 
#define PI_NACK_CNT_A   0x0004a8 /* Consecutive NACK counter */
 
#define PI_NACK_CNT_B   0x0004b0 /* " " for CPU B */
 
#define PI_NACK_CMP   0x0004b8 /* NACK count compare */
 
#define PI_STACKADDR_OFFSET   (PI_ERR_STACK_ADDR_B - PI_ERR_STACK_ADDR_A)
 
#define PI_ERRSTAT_OFFSET   (PI_ERR_STATUS0_B - PI_ERR_STATUS0_A)
 
#define PI_RDCLR_OFFSET   (PI_ERR_STATUS0_A_RCLR - PI_ERR_STATUS0_A)
 
#define PI_ERR_SPOOL_CMP_B   0x00000001 /* Spool end hit high water */
 
#define PI_ERR_SPOOL_CMP_A   0x00000002
 
#define PI_ERR_SPUR_MSG_B   0x00000004 /* Spurious message intr. */
 
#define PI_ERR_SPUR_MSG_A   0x00000008
 
#define PI_ERR_WRB_TERR_B   0x00000010 /* WRB TERR */
 
#define PI_ERR_WRB_TERR_A   0x00000020
 
#define PI_ERR_WRB_WERR_B   0x00000040 /* WRB WERR */
 
#define PI_ERR_WRB_WERR_A   0x00000080
 
#define PI_ERR_SYSSTATE_B   0x00000100 /* SysState parity error */
 
#define PI_ERR_SYSSTATE_A   0x00000200
 
#define PI_ERR_SYSAD_DATA_B   0x00000400 /* SysAD data parity error */
 
#define PI_ERR_SYSAD_DATA_A   0x00000800
 
#define PI_ERR_SYSAD_ADDR_B   0x00001000 /* SysAD addr parity error */
 
#define PI_ERR_SYSAD_ADDR_A   0x00002000
 
#define PI_ERR_SYSCMD_DATA_B   0x00004000 /* SysCmd data parity error */
 
#define PI_ERR_SYSCMD_DATA_A   0x00008000
 
#define PI_ERR_SYSCMD_ADDR_B   0x00010000 /* SysCmd addr parity error */
 
#define PI_ERR_SYSCMD_ADDR_A   0x00020000
 
#define PI_ERR_BAD_SPOOL_B   0x00040000 /* Error spooling to memory */
 
#define PI_ERR_BAD_SPOOL_A   0x00080000
 
#define PI_ERR_UNCAC_UNCORR_B   0x00100000 /* Uncached uncorrectable */
 
#define PI_ERR_UNCAC_UNCORR_A   0x00200000
 
#define PI_ERR_SYSSTATE_TAG_B   0x00400000 /* SysState tag parity error */
 
#define PI_ERR_SYSSTATE_TAG_A   0x00800000
 
#define PI_ERR_MD_UNCORR   0x01000000 /* Must be cleared in MD */
 
#define PI_ERR_CLEAR_ALL_A   0x00aaaaaa
 
#define PI_ERR_CLEAR_ALL_B   0x00555555
 
#define PI_FATAL_ERR_CPU_A
 
#define PI_MISC_ERR_CPU_A
 
#define PI_FATAL_ERR_CPU_B
 
#define PI_MISC_ERR_CPU_B
 
#define PI_ERR_GENERIC   (PI_ERR_MD_UNCORR)
 
#define PI_ERR_ST0_TYPE_MASK   0x0000000000000007
 
#define PI_ERR_ST0_TYPE_SHFT   0
 
#define PI_ERR_ST0_REQNUM_MASK   0x0000000000000038
 
#define PI_ERR_ST0_REQNUM_SHFT   3
 
#define PI_ERR_ST0_SUPPL_MASK   0x000000000001ffc0
 
#define PI_ERR_ST0_SUPPL_SHFT   6
 
#define PI_ERR_ST0_CMD_MASK   0x0000000001fe0000
 
#define PI_ERR_ST0_CMD_SHFT   17
 
#define PI_ERR_ST0_ADDR_MASK   0x3ffffffffe000000
 
#define PI_ERR_ST0_ADDR_SHFT   25
 
#define PI_ERR_ST0_OVERRUN_MASK   0x4000000000000000
 
#define PI_ERR_ST0_OVERRUN_SHFT   62
 
#define PI_ERR_ST0_VALID_MASK   0x8000000000000000
 
#define PI_ERR_ST0_VALID_SHFT   63
 
#define PI_ERR_ST1_SPOOL_MASK   0x00000000001fffff
 
#define PI_ERR_ST1_SPOOL_SHFT   0
 
#define PI_ERR_ST1_TOUTCNT_MASK   0x000000001fe00000
 
#define PI_ERR_ST1_TOUTCNT_SHFT   21
 
#define PI_ERR_ST1_INVCNT_MASK   0x0000007fe0000000
 
#define PI_ERR_ST1_INVCNT_SHFT   29
 
#define PI_ERR_ST1_CRBNUM_MASK   0x0000038000000000
 
#define PI_ERR_ST1_CRBNUM_SHFT   39
 
#define PI_ERR_ST1_WRBRRB_MASK   0x0000040000000000
 
#define PI_ERR_ST1_WRBRRB_SHFT   42
 
#define PI_ERR_ST1_CRBSTAT_MASK   0x001ff80000000000
 
#define PI_ERR_ST1_CRBSTAT_SHFT   43
 
#define PI_ERR_ST1_MSGSRC_MASK   0xffe0000000000000
 
#define PI_ERR_ST1_MSGSRC_SHFT   53
 
#define PI_ERR_STK_TYPE_MASK   0x0000000000000003
 
#define PI_ERR_STK_TYPE_SHFT   0
 
#define PI_ERR_STK_SUPPL_MASK   0x0000000000000038
 
#define PI_ERR_STK_SUPPL_SHFT   3
 
#define PI_ERR_STK_REQNUM_MASK   0x00000000000001c0
 
#define PI_ERR_STK_REQNUM_SHFT   6
 
#define PI_ERR_STK_CRBNUM_MASK   0x0000000000000e00
 
#define PI_ERR_STK_CRBNUM_SHFT   9
 
#define PI_ERR_STK_WRBRRB_MASK   0x0000000000001000
 
#define PI_ERR_STK_WRBRRB_SHFT   12
 
#define PI_ERR_STK_CRBSTAT_MASK   0x00000000007fe000
 
#define PI_ERR_STK_CRBSTAT_SHFT   13
 
#define PI_ERR_STK_CMD_MASK   0x000000007f800000
 
#define PI_ERR_STK_CMD_SHFT   23
 
#define PI_ERR_STK_ADDR_MASK   0xffffffff80000000
 
#define PI_ERR_STK_ADDR_SHFT   31
 
#define PI_ERR_RD_PRERR   1
 
#define PI_ERR_RD_DERR   2
 
#define PI_ERR_RD_TERR   3
 
#define PI_ERR_WR_WERR   0
 
#define PI_ERR_WR_PWERR   1
 
#define PI_ERR_WR_TERR   3
 
#define PI_ERR_RRB   0
 
#define PI_ERR_WRB   1
 
#define PI_ERR_ANY_CRB   2
 
#define ERR_STK_ADDR_SHFT   7
 
#define ERR_STAT0_ADDR_SHFT   3
 
#define PI_MIN_STACK_SIZE   4096 /* For figuring out the size to set */
 
#define PI_STACK_SIZE_SHFT   12 /* 4k */
 
#define ERR_STACK_SIZE_BYTES(_sz)   ((_sz) ? (PI_MIN_STACK_SIZE << ((_sz) - 1)) : 0)
 
#define PI_SYSAD_ERRCHK_ECCGEN   0x01 /* Enable ECC generation */
 
#define PI_SYSAD_ERRCHK_QUALGEN   0x02 /* Enable data quality signal gen. */
 
#define PI_SYSAD_ERRCHK_SADP   0x04 /* Enable SysAD parity checking */
 
#define PI_SYSAD_ERRCHK_CMDP   0x08 /* Enable SysCmd parity checking */
 
#define PI_SYSAD_ERRCHK_STATE   0x10 /* Enable SysState parity checking */
 
#define PI_SYSAD_ERRCHK_QUAL   0x20 /* Enable data quality checking */
 
#define PI_SYSAD_CHECK_ALL   0x3f /* Generate and check all signals. */
 
#define HUB_IP_PEND0   0x0400
 
#define HUB_IP_PEND1_CC   0x0800
 
#define HUB_IP_RT   0x1000
 
#define HUB_IP_PROF   0x2000
 
#define HUB_IP_ERROR   0x4000
 
#define HUB_IP_MASK   0x7c00
 
#define PRLC_USE_INT_SHFT   16
 
#define PRLC_USE_INT_MASK   (UINT64_CAST 1 << 16)
 
#define PRLC_USE_INT   (UINT64_CAST 1 << 16)
 
#define PRLC_GCLK_SHFT   15
 
#define PRLC_GCLK_MASK   (UINT64_CAST 1 << 15)
 
#define PRLC_GCLK   (UINT64_CAST 1 << 15)
 
#define PRLC_GCLK_COUNT_SHFT   8
 
#define PRLC_GCLK_COUNT_MASK   (UINT64_CAST 0x7f << 8)
 
#define PRLC_MAX_COUNT_SHFT   1
 
#define PRLC_MAX_COUNT_MASK   (UINT64_CAST 0x7f << 1)
 
#define PRLC_GCLK_EN_SHFT   0
 
#define PRLC_GCLK_EN_MASK   (UINT64_CAST 1)
 
#define PRLC_GCLK_EN   (UINT64_CAST 1)
 
#define PI_NACK_CNT_EN_SHFT   20
 
#define PI_NACK_CNT_EN_MASK   0x100000
 
#define PI_NACK_CNT_MASK   0x0fffff
 
#define PI_NACK_CNT_MAX   0x0fffff
 

Typedefs

typedef union pi_err_stack pi_err_stack_t
 
typedef union pi_err_stat0 pi_err_stat0_t
 
typedef union pi_err_stat1 pi_err_stat1_t
 
typedef u64 rtc_time_t
 

Macro Definition Documentation

#define ERR_STACK_SIZE_BYTES (   _sz)    ((_sz) ? (PI_MIN_STACK_SIZE << ((_sz) - 1)) : 0)

Definition at line 306 of file hubpi.h.

#define ERR_STAT0_ADDR_SHFT   3

Definition at line 301 of file hubpi.h.

#define ERR_STK_ADDR_SHFT   7

Definition at line 300 of file hubpi.h.

#define HUB_IP_ERROR   0x4000

Definition at line 380 of file hubpi.h.

#define HUB_IP_MASK   0x7c00

Definition at line 381 of file hubpi.h.

#define HUB_IP_PEND0   0x0400

Definition at line 376 of file hubpi.h.

#define HUB_IP_PEND1_CC   0x0800

Definition at line 377 of file hubpi.h.

#define HUB_IP_PROF   0x2000

Definition at line 379 of file hubpi.h.

#define HUB_IP_RT   0x1000

Definition at line 378 of file hubpi.h.

#define PI_BAD_CHECK_BIT_A   0x000498 /* Force SYSAD check bit error */

Definition at line 155 of file hubpi.h.

#define PI_BAD_CHECK_BIT_B   0x0004a0 /* Force SYSAD check bit error */

Definition at line 156 of file hubpi.h.

#define PI_BASE   0x000000

Definition at line 24 of file hubpi.h.

#define PI_BIST_COUNT_TARG   0x000210 /* BIST Count and Target */

Definition at line 113 of file hubpi.h.

#define PI_BIST_ENTER_RUN   0x000230 /* BIST control */

Definition at line 117 of file hubpi.h.

#define PI_BIST_READ_DATA   0x000208 /* BIST read data */

Definition at line 112 of file hubpi.h.

#define PI_BIST_READY   0x000218 /* BIST Ready indicator */

Definition at line 114 of file hubpi.h.

#define PI_BIST_SHIFT_LOAD   0x000220 /* BIST control */

Definition at line 115 of file hubpi.h.

#define PI_BIST_SHIFT_UNLOAD   0x000228 /* BIST control */

Definition at line 116 of file hubpi.h.

#define PI_BIST_WRITE_DATA   0x000200 /* BIST write data */

Definition at line 111 of file hubpi.h.

#define PI_CALIAS_SIZE   0x000028 /* Cached Alias Size */

Definition at line 33 of file hubpi.h.

#define PI_CALIAS_SIZE_0   0

Definition at line 38 of file hubpi.h.

#define PI_CALIAS_SIZE_128K   6

Definition at line 44 of file hubpi.h.

#define PI_CALIAS_SIZE_16K   3

Definition at line 41 of file hubpi.h.

#define PI_CALIAS_SIZE_16M   13

Definition at line 51 of file hubpi.h.

#define PI_CALIAS_SIZE_1M   9

Definition at line 47 of file hubpi.h.

#define PI_CALIAS_SIZE_256K   7

Definition at line 45 of file hubpi.h.

#define PI_CALIAS_SIZE_2M   10

Definition at line 48 of file hubpi.h.

#define PI_CALIAS_SIZE_32K   4

Definition at line 42 of file hubpi.h.

#define PI_CALIAS_SIZE_32M   14

Definition at line 52 of file hubpi.h.

#define PI_CALIAS_SIZE_4K   1

Definition at line 39 of file hubpi.h.

#define PI_CALIAS_SIZE_4M   11

Definition at line 49 of file hubpi.h.

#define PI_CALIAS_SIZE_512K   8

Definition at line 46 of file hubpi.h.

#define PI_CALIAS_SIZE_64K   5

Definition at line 43 of file hubpi.h.

#define PI_CALIAS_SIZE_64M   15

Definition at line 53 of file hubpi.h.

#define PI_CALIAS_SIZE_8K   2

Definition at line 40 of file hubpi.h.

#define PI_CALIAS_SIZE_8M   12

Definition at line 50 of file hubpi.h.

#define PI_CC_MASK   0x0000e8 /* CC Interrupt mask */

Definition at line 86 of file hubpi.h.

#define PI_CC_PEND_CLR_A   0x0000d8 /* CC Interrupt Pending Clr, CPU A */

Definition at line 84 of file hubpi.h.

#define PI_CC_PEND_CLR_B   0x0000e0 /* CC Interrupt Pending Clr, CPU B */

Definition at line 85 of file hubpi.h.

#define PI_CC_PEND_SET_A   0x0000c8 /* CC Interrupt Pending Set, CPU A */

Definition at line 82 of file hubpi.h.

#define PI_CC_PEND_SET_B   0x0000d0 /* CC Interrupt Pending Set, CPU B */

Definition at line 83 of file hubpi.h.

#define PI_COUNT_OFFSET   0x08 /* A to B offset for all counts */

Definition at line 107 of file hubpi.h.

#define PI_CPU_ENABLE_A   0x000050 /* CPU Enable A */

Definition at line 59 of file hubpi.h.

#define PI_CPU_ENABLE_B   0x000058 /* CPU Enable B */

Definition at line 60 of file hubpi.h.

#define PI_CPU_NUM   0x000020 /* CPU Number ID */

Definition at line 32 of file hubpi.h.

#define PI_CPU_PRESENT_A   0x000040 /* CPU Present A */

Definition at line 57 of file hubpi.h.

#define PI_CPU_PRESENT_B   0x000048 /* CPU Present B */

Definition at line 58 of file hubpi.h.

#define PI_CPU_PROTECT   0x000000 /* CPU Protection */

Definition at line 28 of file hubpi.h.

#define PI_CRB_SFACTOR   0x000038 /* Scale factor for CRB timeout */

Definition at line 35 of file hubpi.h.

#define PI_CRB_TIMEOUT_A   0x000480 /* Timed out CRB entries for A */

Definition at line 152 of file hubpi.h.

#define PI_CRB_TIMEOUT_B   0x000488 /* Timed out CRB entries for B */

Definition at line 153 of file hubpi.h.

#define PI_ERR_ANY_CRB   2

Definition at line 297 of file hubpi.h.

#define PI_ERR_BAD_SPOOL_A   0x00080000

Definition at line 184 of file hubpi.h.

#define PI_ERR_BAD_SPOOL_B   0x00040000 /* Error spooling to memory */

Definition at line 183 of file hubpi.h.

#define PI_ERR_CLEAR_ALL_A   0x00aaaaaa

Definition at line 191 of file hubpi.h.

#define PI_ERR_CLEAR_ALL_B   0x00555555

Definition at line 192 of file hubpi.h.

#define PI_ERR_GENERIC   (PI_ERR_MD_UNCORR)

Definition at line 227 of file hubpi.h.

#define PI_ERR_INT_MASK_A   0x000408 /* Error Interrupt mask for CPU A */

Definition at line 137 of file hubpi.h.

#define PI_ERR_INT_MASK_B   0x000410 /* Error Interrupt mask for CPU B */

Definition at line 138 of file hubpi.h.

#define PI_ERR_INT_PEND   0x000400 /* Error Interrupt Pending */

Definition at line 136 of file hubpi.h.

#define PI_ERR_MD_UNCORR   0x01000000 /* Must be cleared in MD */

Definition at line 189 of file hubpi.h.

#define PI_ERR_RD_DERR   2

Definition at line 286 of file hubpi.h.

#define PI_ERR_RD_PRERR   1

Definition at line 285 of file hubpi.h.

#define PI_ERR_RD_TERR   3

Definition at line 287 of file hubpi.h.

#define PI_ERR_RRB   0

Definition at line 295 of file hubpi.h.

#define PI_ERR_SPOOL_CMP_A   0x00000002

Definition at line 166 of file hubpi.h.

#define PI_ERR_SPOOL_CMP_B   0x00000001 /* Spool end hit high water */

Definition at line 165 of file hubpi.h.

#define PI_ERR_SPUR_MSG_A   0x00000008

Definition at line 168 of file hubpi.h.

#define PI_ERR_SPUR_MSG_B   0x00000004 /* Spurious message intr. */

Definition at line 167 of file hubpi.h.

#define PI_ERR_ST0_ADDR_MASK   0x3ffffffffe000000

Definition at line 243 of file hubpi.h.

#define PI_ERR_ST0_ADDR_SHFT   25

Definition at line 244 of file hubpi.h.

#define PI_ERR_ST0_CMD_MASK   0x0000000001fe0000

Definition at line 241 of file hubpi.h.

#define PI_ERR_ST0_CMD_SHFT   17

Definition at line 242 of file hubpi.h.

#define PI_ERR_ST0_OVERRUN_MASK   0x4000000000000000

Definition at line 245 of file hubpi.h.

#define PI_ERR_ST0_OVERRUN_SHFT   62

Definition at line 246 of file hubpi.h.

#define PI_ERR_ST0_REQNUM_MASK   0x0000000000000038

Definition at line 237 of file hubpi.h.

#define PI_ERR_ST0_REQNUM_SHFT   3

Definition at line 238 of file hubpi.h.

#define PI_ERR_ST0_SUPPL_MASK   0x000000000001ffc0

Definition at line 239 of file hubpi.h.

#define PI_ERR_ST0_SUPPL_SHFT   6

Definition at line 240 of file hubpi.h.

#define PI_ERR_ST0_TYPE_MASK   0x0000000000000007

Definition at line 235 of file hubpi.h.

#define PI_ERR_ST0_TYPE_SHFT   0

Definition at line 236 of file hubpi.h.

#define PI_ERR_ST0_VALID_MASK   0x8000000000000000

Definition at line 247 of file hubpi.h.

#define PI_ERR_ST0_VALID_SHFT   63

Definition at line 248 of file hubpi.h.

#define PI_ERR_ST1_CRBNUM_MASK   0x0000038000000000

Definition at line 257 of file hubpi.h.

#define PI_ERR_ST1_CRBNUM_SHFT   39

Definition at line 258 of file hubpi.h.

#define PI_ERR_ST1_CRBSTAT_MASK   0x001ff80000000000

Definition at line 261 of file hubpi.h.

#define PI_ERR_ST1_CRBSTAT_SHFT   43

Definition at line 262 of file hubpi.h.

#define PI_ERR_ST1_INVCNT_MASK   0x0000007fe0000000

Definition at line 255 of file hubpi.h.

#define PI_ERR_ST1_INVCNT_SHFT   29

Definition at line 256 of file hubpi.h.

#define PI_ERR_ST1_MSGSRC_MASK   0xffe0000000000000

Definition at line 263 of file hubpi.h.

#define PI_ERR_ST1_MSGSRC_SHFT   53

Definition at line 264 of file hubpi.h.

#define PI_ERR_ST1_SPOOL_MASK   0x00000000001fffff

Definition at line 251 of file hubpi.h.

#define PI_ERR_ST1_SPOOL_SHFT   0

Definition at line 252 of file hubpi.h.

#define PI_ERR_ST1_TOUTCNT_MASK   0x000000001fe00000

Definition at line 253 of file hubpi.h.

#define PI_ERR_ST1_TOUTCNT_SHFT   21

Definition at line 254 of file hubpi.h.

#define PI_ERR_ST1_WRBRRB_MASK   0x0000040000000000

Definition at line 259 of file hubpi.h.

#define PI_ERR_ST1_WRBRRB_SHFT   42

Definition at line 260 of file hubpi.h.

#define PI_ERR_STACK_ADDR_A   0x000418 /* Error stack address for CPU A */

Definition at line 139 of file hubpi.h.

#define PI_ERR_STACK_ADDR_B   0x000420 /* Error stack address for CPU B */

Definition at line 140 of file hubpi.h.

#define PI_ERR_STACK_SIZE   0x000428 /* Error Stack Size */

Definition at line 141 of file hubpi.h.

#define PI_ERR_STATUS0_A   0x000430 /* Error Status 0A */

Definition at line 142 of file hubpi.h.

#define PI_ERR_STATUS0_A_RCLR   0x000438 /* Error Status 0A clear on read */

Definition at line 143 of file hubpi.h.

#define PI_ERR_STATUS0_B   0x000450 /* Error Status 0B */

Definition at line 146 of file hubpi.h.

#define PI_ERR_STATUS0_B_RCLR   0x000458 /* Error Status 0B clear on read */

Definition at line 147 of file hubpi.h.

#define PI_ERR_STATUS1_A   0x000440 /* Error Status 1A */

Definition at line 144 of file hubpi.h.

#define PI_ERR_STATUS1_A_RCLR   0x000448 /* Error Status 1A clear on read */

Definition at line 145 of file hubpi.h.

#define PI_ERR_STATUS1_B   0x000460 /* Error Status 1B */

Definition at line 148 of file hubpi.h.

#define PI_ERR_STATUS1_B_RCLR   0x000468 /* Error Status 1B clear on read */

Definition at line 149 of file hubpi.h.

#define PI_ERR_STK_ADDR_MASK   0xffffffff80000000

Definition at line 281 of file hubpi.h.

#define PI_ERR_STK_ADDR_SHFT   31

Definition at line 282 of file hubpi.h.

#define PI_ERR_STK_CMD_MASK   0x000000007f800000

Definition at line 279 of file hubpi.h.

#define PI_ERR_STK_CMD_SHFT   23

Definition at line 280 of file hubpi.h.

#define PI_ERR_STK_CRBNUM_MASK   0x0000000000000e00

Definition at line 273 of file hubpi.h.

#define PI_ERR_STK_CRBNUM_SHFT   9

Definition at line 274 of file hubpi.h.

#define PI_ERR_STK_CRBSTAT_MASK   0x00000000007fe000

Definition at line 277 of file hubpi.h.

#define PI_ERR_STK_CRBSTAT_SHFT   13

Definition at line 278 of file hubpi.h.

#define PI_ERR_STK_REQNUM_MASK   0x00000000000001c0

Definition at line 271 of file hubpi.h.

#define PI_ERR_STK_REQNUM_SHFT   6

Definition at line 272 of file hubpi.h.

#define PI_ERR_STK_SUPPL_MASK   0x0000000000000038

Definition at line 269 of file hubpi.h.

#define PI_ERR_STK_SUPPL_SHFT   3

Definition at line 270 of file hubpi.h.

#define PI_ERR_STK_TYPE_MASK   0x0000000000000003

Definition at line 267 of file hubpi.h.

#define PI_ERR_STK_TYPE_SHFT   0

Definition at line 268 of file hubpi.h.

#define PI_ERR_STK_WRBRRB_MASK   0x0000000000001000

Definition at line 275 of file hubpi.h.

#define PI_ERR_STK_WRBRRB_SHFT   12

Definition at line 276 of file hubpi.h.

#define PI_ERR_SYSAD_ADDR_A   0x00002000

Definition at line 178 of file hubpi.h.

#define PI_ERR_SYSAD_ADDR_B   0x00001000 /* SysAD addr parity error */

Definition at line 177 of file hubpi.h.

#define PI_ERR_SYSAD_DATA_A   0x00000800

Definition at line 176 of file hubpi.h.

#define PI_ERR_SYSAD_DATA_B   0x00000400 /* SysAD data parity error */

Definition at line 175 of file hubpi.h.

#define PI_ERR_SYSCMD_ADDR_A   0x00020000

Definition at line 182 of file hubpi.h.

#define PI_ERR_SYSCMD_ADDR_B   0x00010000 /* SysCmd addr parity error */

Definition at line 181 of file hubpi.h.

#define PI_ERR_SYSCMD_DATA_A   0x00008000

Definition at line 180 of file hubpi.h.

#define PI_ERR_SYSCMD_DATA_B   0x00004000 /* SysCmd data parity error */

Definition at line 179 of file hubpi.h.

#define PI_ERR_SYSSTATE_A   0x00000200

Definition at line 174 of file hubpi.h.

#define PI_ERR_SYSSTATE_B   0x00000100 /* SysState parity error */

Definition at line 173 of file hubpi.h.

#define PI_ERR_SYSSTATE_TAG_A   0x00800000

Definition at line 188 of file hubpi.h.

#define PI_ERR_SYSSTATE_TAG_B   0x00400000 /* SysState tag parity error */

Definition at line 187 of file hubpi.h.

#define PI_ERR_UNCAC_UNCORR_A   0x00200000

Definition at line 186 of file hubpi.h.

#define PI_ERR_UNCAC_UNCORR_B   0x00100000 /* Uncached uncorrectable */

Definition at line 185 of file hubpi.h.

#define PI_ERR_WR_PWERR   1

Definition at line 291 of file hubpi.h.

#define PI_ERR_WR_TERR   3

Definition at line 292 of file hubpi.h.

#define PI_ERR_WR_WERR   0

Definition at line 290 of file hubpi.h.

#define PI_ERR_WRB   1

Definition at line 296 of file hubpi.h.

#define PI_ERR_WRB_TERR_A   0x00000020

Definition at line 170 of file hubpi.h.

#define PI_ERR_WRB_TERR_B   0x00000010 /* WRB TERR */

Definition at line 169 of file hubpi.h.

#define PI_ERR_WRB_WERR_A   0x00000080

Definition at line 172 of file hubpi.h.

#define PI_ERR_WRB_WERR_B   0x00000040 /* WRB WERR */

Definition at line 171 of file hubpi.h.

#define PI_ERRSTAT_OFFSET   (PI_ERR_STATUS0_B - PI_ERR_STATUS0_A)

Definition at line 161 of file hubpi.h.

#define PI_FATAL_ERR_CPU_A
Value:
PI_ERR_BAD_SPOOL_A | \
PI_ERR_SYSCMD_ADDR_A | \
PI_ERR_SYSCMD_DATA_A | \
PI_ERR_SYSAD_ADDR_A | \
PI_ERR_SYSAD_DATA_A | \
PI_ERR_SYSSTATE_A)

Definition at line 199 of file hubpi.h.

#define PI_FATAL_ERR_CPU_B
Value:
PI_ERR_BAD_SPOOL_B | \
PI_ERR_SYSCMD_ADDR_B | \
PI_ERR_SYSCMD_DATA_B | \
PI_ERR_SYSAD_ADDR_B | \
PI_ERR_SYSAD_DATA_B | \
PI_ERR_SYSSTATE_B)

Definition at line 213 of file hubpi.h.

#define PI_GFX_BIAS_A   0x000310 /* Graphics bias A */

Definition at line 123 of file hubpi.h.

#define PI_GFX_BIAS_B   0x000338 /* Graphics bias B */

Definition at line 128 of file hubpi.h.

#define PI_GFX_CREDIT_CNTR_A   0x000308 /* Graphics credit counter A */

Definition at line 122 of file hubpi.h.

#define PI_GFX_CREDIT_CNTR_B   0x000330 /* Graphics credit counter B */

Definition at line 127 of file hubpi.h.

#define PI_GFX_INT_CMP_A   0x000320 /* Graphics interrupt comparator A */

Definition at line 125 of file hubpi.h.

#define PI_GFX_INT_CMP_B   0x000348 /* Graphics interrupt comparator B */

Definition at line 130 of file hubpi.h.

#define PI_GFX_INT_CNTR_A   0x000318 /* Graphics interrupt counter A */

Definition at line 124 of file hubpi.h.

#define PI_GFX_INT_CNTR_B   0x000340 /* Graphics interrupt counter B */

Definition at line 129 of file hubpi.h.

#define PI_GFX_OFFSET   (PI_GFX_PAGE_B - PI_GFX_PAGE_A)

Definition at line 132 of file hubpi.h.

#define PI_GFX_PAGE_A   0x000300 /* Graphics page A */

Definition at line 121 of file hubpi.h.

#define PI_GFX_PAGE_B   0x000328 /* Graphics page B */

Definition at line 126 of file hubpi.h.

#define PI_GFX_PAGE_ENABLE   0x0000010000000000LL

Definition at line 133 of file hubpi.h.

#define PI_HARDRESET_BIT   0x020068 /* Bit cleared by s/w on SR */

Definition at line 62 of file hubpi.h.

#define PI_INT_MASK0_A   0x0000a8 /* Interrupt Mask 0 for CPU A */

Definition at line 73 of file hubpi.h.

#define PI_INT_MASK0_B   0x0000b8 /* Interrupt Mask 0 for CPU B */

Definition at line 75 of file hubpi.h.

#define PI_INT_MASK1_A   0x0000b0 /* Interrupt Mask 1 for CPU A */

Definition at line 74 of file hubpi.h.

#define PI_INT_MASK1_B   0x0000c0 /* Interrupt Mask 1 for CPU B */

Definition at line 76 of file hubpi.h.

#define PI_INT_MASK_OFFSET   0x10 /* Offset from A to B */

Definition at line 78 of file hubpi.h.

#define PI_INT_PEND0   0x000098 /* Read to get pending ints */

Definition at line 71 of file hubpi.h.

#define PI_INT_PEND1   0x0000a0 /* Read to get pending ints */

Definition at line 72 of file hubpi.h.

#define PI_INT_PEND_MOD   0x000090 /* Write to set pending ints */

Definition at line 70 of file hubpi.h.

#define PI_INT_SET_OFFSET   0x08 /* Offset from A to B */

Definition at line 88 of file hubpi.h.

#define PI_IO_PROTECT   0x000010 /* Interrupt Pending Protection */

Definition at line 30 of file hubpi.h.

#define PI_MAX_CRB_TIMEOUT   0x000030 /* Maximum Timeout for CRB */

Definition at line 34 of file hubpi.h.

#define PI_MIN_STACK_SIZE   4096 /* For figuring out the size to set */

Definition at line 303 of file hubpi.h.

#define PI_MISC_ERR_CPU_A
Value:
PI_ERR_WRB_WERR_A | \
PI_ERR_WRB_TERR_A | \
PI_ERR_SPUR_MSG_A | \
PI_ERR_SPOOL_CMP_A)

Definition at line 207 of file hubpi.h.

#define PI_MISC_ERR_CPU_B
Value:
PI_ERR_WRB_WERR_B | \
PI_ERR_WRB_TERR_B | \
PI_ERR_SPUR_MSG_B | \
PI_ERR_SPOOL_CMP_B)

Definition at line 221 of file hubpi.h.

#define PI_NACK_CMP   0x0004b8 /* NACK count compare */

Definition at line 159 of file hubpi.h.

#define PI_NACK_CNT_A   0x0004a8 /* Consecutive NACK counter */

Definition at line 157 of file hubpi.h.

#define PI_NACK_CNT_B   0x0004b0 /* " " for CPU B */

Definition at line 158 of file hubpi.h.

#define PI_NACK_CNT_EN_MASK   0x100000

Definition at line 405 of file hubpi.h.

#define PI_NACK_CNT_EN_SHFT   20

Definition at line 404 of file hubpi.h.

#define PI_NACK_CNT_MASK   0x0fffff

Definition at line 406 of file hubpi.h.

#define PI_NACK_CNT_MAX   0x0fffff

Definition at line 407 of file hubpi.h.

#define PI_NMI_A   0x000070 /* NMI to CPU A */

Definition at line 63 of file hubpi.h.

#define PI_NMI_B   0x000078 /* NMI to CPU B */

Definition at line 64 of file hubpi.h.

#define PI_NMI_OFFSET   (PI_NMI_B - PI_NMI_A)

Definition at line 65 of file hubpi.h.

#define PI_PROF_EN_A   0x000150 /* PROF int for CPU A enable */

Definition at line 102 of file hubpi.h.

#define PI_PROF_EN_B   0x000158 /* PROF int for CPU B enable */

Definition at line 103 of file hubpi.h.

#define PI_PROF_PEND_A   0x000130 /* Set if Prof int for A pending */

Definition at line 98 of file hubpi.h.

#define PI_PROF_PEND_B   0x000138 /* Set if Prof int for B pending */

Definition at line 99 of file hubpi.h.

#define PI_PROFILE_COMPARE   0x000118 /* L5 int to both cpus when == RTC */

Definition at line 95 of file hubpi.h.

#define PI_PROT_OVERRD   0x000008 /* Clear CPU Protection bit */

Definition at line 29 of file hubpi.h.

#define PI_RDCLR_OFFSET   (PI_ERR_STATUS0_A_RCLR - PI_ERR_STATUS0_A)

Definition at line 162 of file hubpi.h.

#define PI_REGION_PRESENT   0x000018 /* Indicates whether region exists */

Definition at line 31 of file hubpi.h.

#define PI_REPLY_LEVEL   0x000060 /* Reply Level */

Definition at line 61 of file hubpi.h.

#define PI_RT_COMPARE_A   0x000108 /* Real Time Compare A */

Definition at line 93 of file hubpi.h.

#define PI_RT_COMPARE_B   0x000110 /* Real Time Compare B */

Definition at line 94 of file hubpi.h.

#define PI_RT_COUNT   0x030100 /* Real Time Counter */

Definition at line 92 of file hubpi.h.

#define PI_RT_EN_A   0x000140 /* RT int for CPU A enable */

Definition at line 100 of file hubpi.h.

#define PI_RT_EN_B   0x000148 /* RT int for CPU B enable */

Definition at line 101 of file hubpi.h.

#define PI_RT_FILTER_CTRL   0x000168 /* GCLK Filter control register */

Definition at line 105 of file hubpi.h.

#define PI_RT_LOCAL_CTRL   0x000160 /* RT control register */

Definition at line 104 of file hubpi.h.

#define PI_RT_PEND_A   0x000120 /* Set if RT int for A pending */

Definition at line 96 of file hubpi.h.

#define PI_RT_PEND_B   0x000128 /* Set if RT int for B pending */

Definition at line 97 of file hubpi.h.

#define PI_SOFTRESET   0x000080 /* Softreset (to both CPUs) */

Definition at line 66 of file hubpi.h.

#define PI_SPOOL_CMP_A   0x000470 /* Spool compare for CPU A */

Definition at line 150 of file hubpi.h.

#define PI_SPOOL_CMP_B   0x000478 /* Spool compare for CPU B */

Definition at line 151 of file hubpi.h.

#define PI_STACK_SIZE_SHFT   12 /* 4k */

Definition at line 304 of file hubpi.h.

#define PI_STACKADDR_OFFSET   (PI_ERR_STACK_ADDR_B - PI_ERR_STACK_ADDR_A)

Definition at line 160 of file hubpi.h.

#define PI_SYSAD_CHECK_ALL   0x3f /* Generate and check all signals. */

Definition at line 372 of file hubpi.h.

#define PI_SYSAD_ERRCHK_CMDP   0x08 /* Enable SysCmd parity checking */

Definition at line 369 of file hubpi.h.

#define PI_SYSAD_ERRCHK_ECCGEN   0x01 /* Enable ECC generation */

Definition at line 366 of file hubpi.h.

#define PI_SYSAD_ERRCHK_EN   0x000490 /* Enables SYSAD error checking */

Definition at line 154 of file hubpi.h.

#define PI_SYSAD_ERRCHK_QUAL   0x20 /* Enable data quality checking */

Definition at line 371 of file hubpi.h.

#define PI_SYSAD_ERRCHK_QUALGEN   0x02 /* Enable data quality signal gen. */

Definition at line 367 of file hubpi.h.

#define PI_SYSAD_ERRCHK_SADP   0x04 /* Enable SysAD parity checking */

Definition at line 368 of file hubpi.h.

#define PI_SYSAD_ERRCHK_STATE   0x10 /* Enable SysState parity checking */

Definition at line 370 of file hubpi.h.

#define PRLC_GCLK   (UINT64_CAST 1 << 15)

Definition at line 390 of file hubpi.h.

#define PRLC_GCLK_COUNT_MASK   (UINT64_CAST 0x7f << 8)

Definition at line 392 of file hubpi.h.

#define PRLC_GCLK_COUNT_SHFT   8

Definition at line 391 of file hubpi.h.

#define PRLC_GCLK_EN   (UINT64_CAST 1)

Definition at line 397 of file hubpi.h.

#define PRLC_GCLK_EN_MASK   (UINT64_CAST 1)

Definition at line 396 of file hubpi.h.

#define PRLC_GCLK_EN_SHFT   0

Definition at line 395 of file hubpi.h.

#define PRLC_GCLK_MASK   (UINT64_CAST 1 << 15)

Definition at line 389 of file hubpi.h.

#define PRLC_GCLK_SHFT   15

Definition at line 388 of file hubpi.h.

#define PRLC_MAX_COUNT_MASK   (UINT64_CAST 0x7f << 1)

Definition at line 394 of file hubpi.h.

#define PRLC_MAX_COUNT_SHFT   1

Definition at line 393 of file hubpi.h.

#define PRLC_USE_INT   (UINT64_CAST 1 << 16)

Definition at line 387 of file hubpi.h.

#define PRLC_USE_INT_MASK   (UINT64_CAST 1 << 16)

Definition at line 386 of file hubpi.h.

#define PRLC_USE_INT_SHFT   16

Definition at line 385 of file hubpi.h.

Typedef Documentation

typedef u64 rtc_time_t

Definition at line 360 of file hubpi.h.