Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * This file is subject to the terms and conditions of the GNU General Public
0003  * License.  See the file "COPYING" in the main directory of this archive
0004  * for more details.
0005  *
0006  * Derived from IRIX <sys/SN/SN0/hubpi.h>, revision 1.28.
0007  *
0008  * Copyright (C) 1992 - 1997, 1999 Silicon Graphics, Inc.
0009  * Copyright (C) 1999 by Ralf Baechle
0010  */
0011 #ifndef _ASM_SN_SN0_HUBPI_H
0012 #define _ASM_SN_SN0_HUBPI_H
0013 
0014 #include <linux/types.h>
0015 
0016 /*
0017  * Hub I/O interface registers
0018  *
0019  * All registers in this file are subject to change until Hub chip tapeout.
0020  * All register "addresses" are actually offsets.  Use the LOCAL_HUB
0021  * or REMOTE_HUB macros to synthesize an actual address
0022  */
0023 
0024 #define PI_BASE         0x000000
0025 
0026 /* General protection and control registers */
0027 
0028 #define PI_CPU_PROTECT      0x000000 /* CPU Protection          */
0029 #define PI_PROT_OVERRD      0x000008 /* Clear CPU Protection bit        */
0030 #define PI_IO_PROTECT       0x000010 /* Interrupt Pending Protection    */
0031 #define PI_REGION_PRESENT   0x000018 /* Indicates whether region exists */
0032 #define PI_CPU_NUM      0x000020 /* CPU Number ID           */
0033 #define PI_CALIAS_SIZE      0x000028 /* Cached Alias Size           */
0034 #define PI_MAX_CRB_TIMEOUT  0x000030 /* Maximum Timeout for CRB     */
0035 #define PI_CRB_SFACTOR      0x000038 /* Scale factor for CRB timeout    */
0036 
0037 /* CALIAS values */
0038 #define PI_CALIAS_SIZE_0    0
0039 #define PI_CALIAS_SIZE_4K   1
0040 #define PI_CALIAS_SIZE_8K   2
0041 #define PI_CALIAS_SIZE_16K  3
0042 #define PI_CALIAS_SIZE_32K  4
0043 #define PI_CALIAS_SIZE_64K  5
0044 #define PI_CALIAS_SIZE_128K 6
0045 #define PI_CALIAS_SIZE_256K 7
0046 #define PI_CALIAS_SIZE_512K 8
0047 #define PI_CALIAS_SIZE_1M   9
0048 #define PI_CALIAS_SIZE_2M   10
0049 #define PI_CALIAS_SIZE_4M   11
0050 #define PI_CALIAS_SIZE_8M   12
0051 #define PI_CALIAS_SIZE_16M  13
0052 #define PI_CALIAS_SIZE_32M  14
0053 #define PI_CALIAS_SIZE_64M  15
0054 
0055 /* Processor control and status checking */
0056 
0057 #define PI_CPU_PRESENT_A    0x000040 /* CPU Present A           */
0058 #define PI_CPU_PRESENT_B    0x000048 /* CPU Present B           */
0059 #define PI_CPU_ENABLE_A     0x000050 /* CPU Enable A            */
0060 #define PI_CPU_ENABLE_B     0x000058 /* CPU Enable B            */
0061 #define PI_REPLY_LEVEL      0x000060 /* Reply Level             */
0062 #define PI_HARDRESET_BIT    0x020068 /* Bit cleared by s/w on SR        */
0063 #define PI_NMI_A        0x000070 /* NMI to CPU A            */
0064 #define PI_NMI_B        0x000078 /* NMI to CPU B            */
0065 #define PI_NMI_OFFSET       (PI_NMI_B - PI_NMI_A)
0066 #define PI_SOFTRESET        0x000080 /* Softreset (to both CPUs)        */
0067 
0068 /* Regular Interrupt register checking.  */
0069 
0070 #define PI_INT_PEND_MOD     0x000090 /* Write to set pending ints       */
0071 #define PI_INT_PEND0        0x000098 /* Read to get pending ints        */
0072 #define PI_INT_PEND1        0x0000a0 /* Read to get pending ints        */
0073 #define PI_INT_MASK0_A      0x0000a8 /* Interrupt Mask 0 for CPU A      */
0074 #define PI_INT_MASK1_A      0x0000b0 /* Interrupt Mask 1 for CPU A      */
0075 #define PI_INT_MASK0_B      0x0000b8 /* Interrupt Mask 0 for CPU B      */
0076 #define PI_INT_MASK1_B      0x0000c0 /* Interrupt Mask 1 for CPU B      */
0077 
0078 #define PI_INT_MASK_OFFSET  0x10     /* Offset from A to B          */
0079 
0080 /* Crosscall interrupts */
0081 
0082 #define PI_CC_PEND_SET_A    0x0000c8 /* CC Interrupt Pending Set, CPU A */
0083 #define PI_CC_PEND_SET_B    0x0000d0 /* CC Interrupt Pending Set, CPU B */
0084 #define PI_CC_PEND_CLR_A    0x0000d8 /* CC Interrupt Pending Clr, CPU A */
0085 #define PI_CC_PEND_CLR_B    0x0000e0 /* CC Interrupt Pending Clr, CPU B */
0086 #define PI_CC_MASK      0x0000e8 /* CC Interrupt mask           */
0087 
0088 #define PI_INT_SET_OFFSET   0x08     /* Offset from A to B          */
0089 
0090 /* Realtime Counter and Profiler control registers */
0091 
0092 #define PI_RT_COUNT     0x030100 /* Real Time Counter           */
0093 #define PI_RT_COMPARE_A     0x000108 /* Real Time Compare A         */
0094 #define PI_RT_COMPARE_B     0x000110 /* Real Time Compare B         */
0095 #define PI_PROFILE_COMPARE  0x000118 /* L5 int to both cpus when == RTC */
0096 #define PI_RT_PEND_A        0x000120 /* Set if RT int for A pending     */
0097 #define PI_RT_PEND_B        0x000128 /* Set if RT int for B pending     */
0098 #define PI_PROF_PEND_A      0x000130 /* Set if Prof int for A pending   */
0099 #define PI_PROF_PEND_B      0x000138 /* Set if Prof int for B pending   */
0100 #define PI_RT_EN_A      0x000140 /* RT int for CPU A enable     */
0101 #define PI_RT_EN_B      0x000148 /* RT int for CPU B enable     */
0102 #define PI_PROF_EN_A        0x000150 /* PROF int for CPU A enable       */
0103 #define PI_PROF_EN_B        0x000158 /* PROF int for CPU B enable       */
0104 #define PI_RT_LOCAL_CTRL    0x000160 /* RT control register         */
0105 #define PI_RT_FILTER_CTRL   0x000168 /* GCLK Filter control register    */
0106 
0107 #define PI_COUNT_OFFSET     0x08     /* A to B offset for all counts    */
0108 
0109 /* Built-In Self Test support */
0110 
0111 #define PI_BIST_WRITE_DATA  0x000200 /* BIST write data         */
0112 #define PI_BIST_READ_DATA   0x000208 /* BIST read data          */
0113 #define PI_BIST_COUNT_TARG  0x000210 /* BIST Count and Target       */
0114 #define PI_BIST_READY       0x000218 /* BIST Ready indicator        */
0115 #define PI_BIST_SHIFT_LOAD  0x000220 /* BIST control            */
0116 #define PI_BIST_SHIFT_UNLOAD    0x000228 /* BIST control            */
0117 #define PI_BIST_ENTER_RUN   0x000230 /* BIST control            */
0118 
0119 /* Graphics control registers */
0120 
0121 #define PI_GFX_PAGE_A       0x000300 /* Graphics page A         */
0122 #define PI_GFX_CREDIT_CNTR_A    0x000308 /* Graphics credit counter A       */
0123 #define PI_GFX_BIAS_A       0x000310 /* Graphics bias A         */
0124 #define PI_GFX_INT_CNTR_A   0x000318 /* Graphics interrupt counter A    */
0125 #define PI_GFX_INT_CMP_A    0x000320 /* Graphics interrupt comparator A */
0126 #define PI_GFX_PAGE_B       0x000328 /* Graphics page B         */
0127 #define PI_GFX_CREDIT_CNTR_B    0x000330 /* Graphics credit counter B       */
0128 #define PI_GFX_BIAS_B       0x000338 /* Graphics bias B         */
0129 #define PI_GFX_INT_CNTR_B   0x000340 /* Graphics interrupt counter B    */
0130 #define PI_GFX_INT_CMP_B    0x000348 /* Graphics interrupt comparator B */
0131 
0132 #define PI_GFX_OFFSET       (PI_GFX_PAGE_B - PI_GFX_PAGE_A)
0133 #define PI_GFX_PAGE_ENABLE  0x0000010000000000LL
0134 
0135 /* Error and timeout registers */
0136 #define PI_ERR_INT_PEND     0x000400 /* Error Interrupt Pending     */
0137 #define PI_ERR_INT_MASK_A   0x000408 /* Error Interrupt mask for CPU A  */
0138 #define PI_ERR_INT_MASK_B   0x000410 /* Error Interrupt mask for CPU B  */
0139 #define PI_ERR_STACK_ADDR_A 0x000418 /* Error stack address for CPU A   */
0140 #define PI_ERR_STACK_ADDR_B 0x000420 /* Error stack address for CPU B   */
0141 #define PI_ERR_STACK_SIZE   0x000428 /* Error Stack Size            */
0142 #define PI_ERR_STATUS0_A    0x000430 /* Error Status 0A         */
0143 #define PI_ERR_STATUS0_A_RCLR   0x000438 /* Error Status 0A clear on read   */
0144 #define PI_ERR_STATUS1_A    0x000440 /* Error Status 1A         */
0145 #define PI_ERR_STATUS1_A_RCLR   0x000448 /* Error Status 1A clear on read   */
0146 #define PI_ERR_STATUS0_B    0x000450 /* Error Status 0B         */
0147 #define PI_ERR_STATUS0_B_RCLR   0x000458 /* Error Status 0B clear on read   */
0148 #define PI_ERR_STATUS1_B    0x000460 /* Error Status 1B         */
0149 #define PI_ERR_STATUS1_B_RCLR   0x000468 /* Error Status 1B clear on read   */
0150 #define PI_SPOOL_CMP_A      0x000470 /* Spool compare for CPU A     */
0151 #define PI_SPOOL_CMP_B      0x000478 /* Spool compare for CPU B     */
0152 #define PI_CRB_TIMEOUT_A    0x000480 /* Timed out CRB entries for A     */
0153 #define PI_CRB_TIMEOUT_B    0x000488 /* Timed out CRB entries for B     */
0154 #define PI_SYSAD_ERRCHK_EN  0x000490 /* Enables SYSAD error checking    */
0155 #define PI_BAD_CHECK_BIT_A  0x000498 /* Force SYSAD check bit error     */
0156 #define PI_BAD_CHECK_BIT_B  0x0004a0 /* Force SYSAD check bit error     */
0157 #define PI_NACK_CNT_A       0x0004a8 /* Consecutive NACK counter        */
0158 #define PI_NACK_CNT_B       0x0004b0 /* "   " for CPU B     */
0159 #define PI_NACK_CMP     0x0004b8 /* NACK count compare          */
0160 #define PI_STACKADDR_OFFSET (PI_ERR_STACK_ADDR_B - PI_ERR_STACK_ADDR_A)
0161 #define PI_ERRSTAT_OFFSET   (PI_ERR_STATUS0_B - PI_ERR_STATUS0_A)
0162 #define PI_RDCLR_OFFSET     (PI_ERR_STATUS0_A_RCLR - PI_ERR_STATUS0_A)
0163 
0164 /* Bits in PI_ERR_INT_PEND */
0165 #define PI_ERR_SPOOL_CMP_B  0x00000001  /* Spool end hit high water */
0166 #define PI_ERR_SPOOL_CMP_A  0x00000002
0167 #define PI_ERR_SPUR_MSG_B   0x00000004  /* Spurious message intr.   */
0168 #define PI_ERR_SPUR_MSG_A   0x00000008
0169 #define PI_ERR_WRB_TERR_B   0x00000010  /* WRB TERR         */
0170 #define PI_ERR_WRB_TERR_A   0x00000020
0171 #define PI_ERR_WRB_WERR_B   0x00000040  /* WRB WERR         */
0172 #define PI_ERR_WRB_WERR_A   0x00000080
0173 #define PI_ERR_SYSSTATE_B   0x00000100  /* SysState parity error    */
0174 #define PI_ERR_SYSSTATE_A   0x00000200
0175 #define PI_ERR_SYSAD_DATA_B 0x00000400  /* SysAD data parity error  */
0176 #define PI_ERR_SYSAD_DATA_A 0x00000800
0177 #define PI_ERR_SYSAD_ADDR_B 0x00001000  /* SysAD addr parity error  */
0178 #define PI_ERR_SYSAD_ADDR_A 0x00002000
0179 #define PI_ERR_SYSCMD_DATA_B    0x00004000  /* SysCmd data parity error */
0180 #define PI_ERR_SYSCMD_DATA_A    0x00008000
0181 #define PI_ERR_SYSCMD_ADDR_B    0x00010000  /* SysCmd addr parity error */
0182 #define PI_ERR_SYSCMD_ADDR_A    0x00020000
0183 #define PI_ERR_BAD_SPOOL_B  0x00040000  /* Error spooling to memory */
0184 #define PI_ERR_BAD_SPOOL_A  0x00080000
0185 #define PI_ERR_UNCAC_UNCORR_B   0x00100000  /* Uncached uncorrectable   */
0186 #define PI_ERR_UNCAC_UNCORR_A   0x00200000
0187 #define PI_ERR_SYSSTATE_TAG_B   0x00400000  /* SysState tag parity error */
0188 #define PI_ERR_SYSSTATE_TAG_A   0x00800000
0189 #define PI_ERR_MD_UNCORR    0x01000000  /* Must be cleared in MD    */
0190 
0191 #define PI_ERR_CLEAR_ALL_A  0x00aaaaaa
0192 #define PI_ERR_CLEAR_ALL_B  0x00555555
0193 
0194 
0195 /*
0196  * The following three macros define all possible error int pends.
0197  */
0198 
0199 #define PI_FATAL_ERR_CPU_A  (PI_ERR_SYSSTATE_TAG_A  | \
0200                  PI_ERR_BAD_SPOOL_A | \
0201                  PI_ERR_SYSCMD_ADDR_A   | \
0202                  PI_ERR_SYSCMD_DATA_A   | \
0203                  PI_ERR_SYSAD_ADDR_A    | \
0204                  PI_ERR_SYSAD_DATA_A    | \
0205                  PI_ERR_SYSSTATE_A)
0206 
0207 #define PI_MISC_ERR_CPU_A   (PI_ERR_UNCAC_UNCORR_A  | \
0208                  PI_ERR_WRB_WERR_A  | \
0209                  PI_ERR_WRB_TERR_A  | \
0210                  PI_ERR_SPUR_MSG_A  | \
0211                  PI_ERR_SPOOL_CMP_A)
0212 
0213 #define PI_FATAL_ERR_CPU_B  (PI_ERR_SYSSTATE_TAG_B  | \
0214                  PI_ERR_BAD_SPOOL_B | \
0215                  PI_ERR_SYSCMD_ADDR_B   | \
0216                  PI_ERR_SYSCMD_DATA_B   | \
0217                  PI_ERR_SYSAD_ADDR_B    | \
0218                  PI_ERR_SYSAD_DATA_B    | \
0219                  PI_ERR_SYSSTATE_B)
0220 
0221 #define PI_MISC_ERR_CPU_B   (PI_ERR_UNCAC_UNCORR_B  | \
0222                  PI_ERR_WRB_WERR_B  | \
0223                  PI_ERR_WRB_TERR_B  | \
0224                  PI_ERR_SPUR_MSG_B  | \
0225                  PI_ERR_SPOOL_CMP_B)
0226 
0227 #define PI_ERR_GENERIC  (PI_ERR_MD_UNCORR)
0228 
0229 /*
0230  * Error types for PI_ERR_STATUS0_[AB] and error stack:
0231  * Use the write types if WRBRRB is 1 else use the read types
0232  */
0233 
0234 /* Fields in PI_ERR_STATUS0_[AB] */
0235 #define PI_ERR_ST0_TYPE_MASK    0x0000000000000007
0236 #define PI_ERR_ST0_TYPE_SHFT    0
0237 #define PI_ERR_ST0_REQNUM_MASK  0x0000000000000038
0238 #define PI_ERR_ST0_REQNUM_SHFT  3
0239 #define PI_ERR_ST0_SUPPL_MASK   0x000000000001ffc0
0240 #define PI_ERR_ST0_SUPPL_SHFT   6
0241 #define PI_ERR_ST0_CMD_MASK 0x0000000001fe0000
0242 #define PI_ERR_ST0_CMD_SHFT 17
0243 #define PI_ERR_ST0_ADDR_MASK    0x3ffffffffe000000
0244 #define PI_ERR_ST0_ADDR_SHFT    25
0245 #define PI_ERR_ST0_OVERRUN_MASK 0x4000000000000000
0246 #define PI_ERR_ST0_OVERRUN_SHFT 62
0247 #define PI_ERR_ST0_VALID_MASK   0x8000000000000000
0248 #define PI_ERR_ST0_VALID_SHFT   63
0249 
0250 /* Fields in PI_ERR_STATUS1_[AB] */
0251 #define PI_ERR_ST1_SPOOL_MASK   0x00000000001fffff
0252 #define PI_ERR_ST1_SPOOL_SHFT   0
0253 #define PI_ERR_ST1_TOUTCNT_MASK 0x000000001fe00000
0254 #define PI_ERR_ST1_TOUTCNT_SHFT 21
0255 #define PI_ERR_ST1_INVCNT_MASK  0x0000007fe0000000
0256 #define PI_ERR_ST1_INVCNT_SHFT  29
0257 #define PI_ERR_ST1_CRBNUM_MASK  0x0000038000000000
0258 #define PI_ERR_ST1_CRBNUM_SHFT  39
0259 #define PI_ERR_ST1_WRBRRB_MASK  0x0000040000000000
0260 #define PI_ERR_ST1_WRBRRB_SHFT  42
0261 #define PI_ERR_ST1_CRBSTAT_MASK 0x001ff80000000000
0262 #define PI_ERR_ST1_CRBSTAT_SHFT 43
0263 #define PI_ERR_ST1_MSGSRC_MASK  0xffe0000000000000
0264 #define PI_ERR_ST1_MSGSRC_SHFT  53
0265 
0266 /* Fields in the error stack */
0267 #define PI_ERR_STK_TYPE_MASK    0x0000000000000003
0268 #define PI_ERR_STK_TYPE_SHFT    0
0269 #define PI_ERR_STK_SUPPL_MASK   0x0000000000000038
0270 #define PI_ERR_STK_SUPPL_SHFT   3
0271 #define PI_ERR_STK_REQNUM_MASK  0x00000000000001c0
0272 #define PI_ERR_STK_REQNUM_SHFT  6
0273 #define PI_ERR_STK_CRBNUM_MASK  0x0000000000000e00
0274 #define PI_ERR_STK_CRBNUM_SHFT  9
0275 #define PI_ERR_STK_WRBRRB_MASK  0x0000000000001000
0276 #define PI_ERR_STK_WRBRRB_SHFT  12
0277 #define PI_ERR_STK_CRBSTAT_MASK 0x00000000007fe000
0278 #define PI_ERR_STK_CRBSTAT_SHFT 13
0279 #define PI_ERR_STK_CMD_MASK 0x000000007f800000
0280 #define PI_ERR_STK_CMD_SHFT 23
0281 #define PI_ERR_STK_ADDR_MASK    0xffffffff80000000
0282 #define PI_ERR_STK_ADDR_SHFT    31
0283 
0284 /* Error type in the error status or stack on Read CRBs */
0285 #define PI_ERR_RD_PRERR     1
0286 #define PI_ERR_RD_DERR      2
0287 #define PI_ERR_RD_TERR      3
0288 
0289 /* Error type in the error status or stack on Write CRBs */
0290 #define PI_ERR_WR_WERR      0
0291 #define PI_ERR_WR_PWERR     1
0292 #define PI_ERR_WR_TERR      3
0293 
0294 /* Read or Write CRB in error status or stack */
0295 #define PI_ERR_RRB  0
0296 #define PI_ERR_WRB  1
0297 #define PI_ERR_ANY_CRB  2
0298 
0299 /* Address masks in the error status and error stack are not the same */
0300 #define ERR_STK_ADDR_SHFT   7
0301 #define ERR_STAT0_ADDR_SHFT 3
0302 
0303 #define PI_MIN_STACK_SIZE 4096  /* For figuring out the size to set */
0304 #define PI_STACK_SIZE_SHFT  12  /* 4k */
0305 
0306 #define ERR_STACK_SIZE_BYTES(_sz) \
0307        ((_sz) ? (PI_MIN_STACK_SIZE << ((_sz) - 1)) : 0)
0308 
0309 #ifndef __ASSEMBLY__
0310 /*
0311  * format of error stack and error status registers.
0312  */
0313 
0314 struct err_stack_format {
0315     u64 sk_addr    : 33,   /* address */
0316         sk_cmd     :  8,   /* message command */
0317         sk_crb_sts : 10,   /* status from RRB or WRB */
0318         sk_rw_rb   :  1,   /* RRB == 0, WRB == 1 */
0319         sk_crb_num :  3,   /* WRB (0 to 7) or RRB (0 to 4) */
0320         sk_t5_req  :  3,   /* RRB T5 request number */
0321         sk_suppl   :  3,   /* lowest 3 bit of supplemental */
0322         sk_err_type:  3;   /* error type    */
0323 };
0324 
0325 typedef union pi_err_stack {
0326     u64 pi_stk_word;
0327     struct  err_stack_format pi_stk_fmt;
0328 } pi_err_stack_t;
0329 
0330 struct err_status0_format {
0331     u64 s0_valid   :  1,   /* Valid */
0332         s0_ovr_run :  1,   /* Overrun, spooled to memory */
0333         s0_addr    : 37,   /* address */
0334         s0_cmd     :  8,   /* message command */
0335         s0_supl    : 11,   /* message supplemental field */
0336         s0_t5_req  :  3,   /* RRB T5 request number */
0337         s0_err_type:  3;   /* error type */
0338 };
0339 
0340 typedef union pi_err_stat0 {
0341     u64 pi_stat0_word;
0342     struct err_status0_format pi_stat0_fmt;
0343 } pi_err_stat0_t;
0344 
0345 struct err_status1_format {
0346     u64 s1_src     : 11,   /* message source */
0347         s1_crb_sts : 10,   /* status from RRB or WRB */
0348         s1_rw_rb   :  1,   /* RRB == 0, WRB == 1 */
0349         s1_crb_num :  3,   /* WRB (0 to 7) or RRB (0 to 4) */
0350         s1_inval_cnt:10,   /* signed invalidate counter RRB */
0351         s1_to_cnt  :  8,   /* crb timeout counter */
0352         s1_spl_cnt : 21;   /* number spooled to memory */
0353 };
0354 
0355 typedef union pi_err_stat1 {
0356     u64 pi_stat1_word;
0357     struct err_status1_format pi_stat1_fmt;
0358 } pi_err_stat1_t;
0359 
0360 typedef u64 rtc_time_t;
0361 
0362 #endif /* !__ASSEMBLY__ */
0363 
0364 
0365 /* Bits in PI_SYSAD_ERRCHK_EN */
0366 #define PI_SYSAD_ERRCHK_ECCGEN  0x01    /* Enable ECC generation        */
0367 #define PI_SYSAD_ERRCHK_QUALGEN 0x02    /* Enable data quality signal gen.  */
0368 #define PI_SYSAD_ERRCHK_SADP    0x04    /* Enable SysAD parity checking     */
0369 #define PI_SYSAD_ERRCHK_CMDP    0x08    /* Enable SysCmd parity checking    */
0370 #define PI_SYSAD_ERRCHK_STATE   0x10    /* Enable SysState parity checking  */
0371 #define PI_SYSAD_ERRCHK_QUAL    0x20    /* Enable data quality checking     */
0372 #define PI_SYSAD_CHECK_ALL  0x3f    /* Generate and check all signals.  */
0373 
0374 /* Interrupt pending bits on R10000 */
0375 
0376 #define HUB_IP_PEND0        0x0400
0377 #define HUB_IP_PEND1_CC     0x0800
0378 #define HUB_IP_RT       0x1000
0379 #define HUB_IP_PROF     0x2000
0380 #define HUB_IP_ERROR        0x4000
0381 #define HUB_IP_MASK     0x7c00
0382 
0383 /* PI_RT_LOCAL_CTRL mask and shift definitions */
0384 
0385 #define PRLC_USE_INT_SHFT   16
0386 #define PRLC_USE_INT_MASK   (UINT64_CAST 1 << 16)
0387 #define PRLC_USE_INT        (UINT64_CAST 1 << 16)
0388 #define PRLC_GCLK_SHFT      15
0389 #define PRLC_GCLK_MASK      (UINT64_CAST 1 << 15)
0390 #define PRLC_GCLK       (UINT64_CAST 1 << 15)
0391 #define PRLC_GCLK_COUNT_SHFT    8
0392 #define PRLC_GCLK_COUNT_MASK    (UINT64_CAST 0x7f << 8)
0393 #define PRLC_MAX_COUNT_SHFT 1
0394 #define PRLC_MAX_COUNT_MASK (UINT64_CAST 0x7f << 1)
0395 #define PRLC_GCLK_EN_SHFT   0
0396 #define PRLC_GCLK_EN_MASK   (UINT64_CAST 1)
0397 #define PRLC_GCLK_EN        (UINT64_CAST 1)
0398 
0399 /* PI_RT_FILTER_CTRL mask and shift definitions */
0400 
0401 /*
0402  * Bits for NACK_CNT_A/B and NACK_CMP
0403  */
0404 #define PI_NACK_CNT_EN_SHFT 20
0405 #define PI_NACK_CNT_EN_MASK 0x100000
0406 #define PI_NACK_CNT_MASK    0x0fffff
0407 #define PI_NACK_CNT_MAX     0x0fffff
0408 
0409 #endif /* _ASM_SN_SN0_HUBPI_H */