Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*****************************************************************************
0003  *                                                                           *
0004  * File: regs.h                                                              *
0005  * $Revision: 1.8 $                                                          *
0006  * $Date: 2005/06/21 18:29:48 $                                              *
0007  * Description:                                                              *
0008  *  part of the Chelsio 10Gb Ethernet Driver.                                *
0009  *                                                                           *
0010  *                                                                           *
0011  * http://www.chelsio.com                                                    *
0012  *                                                                           *
0013  * Copyright (c) 2003 - 2005 Chelsio Communications, Inc.                    *
0014  * All rights reserved.                                                      *
0015  *                                                                           *
0016  * Maintainers: maintainers@chelsio.com                                      *
0017  *                                                                           *
0018  * Authors: Dimitrios Michailidis   <dm@chelsio.com>                         *
0019  *          Tina Yang               <tainay@chelsio.com>                     *
0020  *          Felix Marti             <felix@chelsio.com>                      *
0021  *          Scott Bardone           <sbardone@chelsio.com>                   *
0022  *          Kurt Ottaway            <kottaway@chelsio.com>                   *
0023  *          Frank DiMambro          <frank@chelsio.com>                      *
0024  *                                                                           *
0025  * History:                                                                  *
0026  *                                                                           *
0027  ****************************************************************************/
0028 
0029 #ifndef _CXGB_REGS_H_
0030 #define _CXGB_REGS_H_
0031 
0032 /* SGE registers */
0033 #define A_SG_CONTROL 0x0
0034 
0035 #define S_CMDQ0_ENABLE    0
0036 #define V_CMDQ0_ENABLE(x) ((x) << S_CMDQ0_ENABLE)
0037 #define F_CMDQ0_ENABLE    V_CMDQ0_ENABLE(1U)
0038 
0039 #define S_CMDQ1_ENABLE    1
0040 #define V_CMDQ1_ENABLE(x) ((x) << S_CMDQ1_ENABLE)
0041 #define F_CMDQ1_ENABLE    V_CMDQ1_ENABLE(1U)
0042 
0043 #define S_FL0_ENABLE    2
0044 #define V_FL0_ENABLE(x) ((x) << S_FL0_ENABLE)
0045 #define F_FL0_ENABLE    V_FL0_ENABLE(1U)
0046 
0047 #define S_FL1_ENABLE    3
0048 #define V_FL1_ENABLE(x) ((x) << S_FL1_ENABLE)
0049 #define F_FL1_ENABLE    V_FL1_ENABLE(1U)
0050 
0051 #define S_CPL_ENABLE    4
0052 #define V_CPL_ENABLE(x) ((x) << S_CPL_ENABLE)
0053 #define F_CPL_ENABLE    V_CPL_ENABLE(1U)
0054 
0055 #define S_RESPONSE_QUEUE_ENABLE    5
0056 #define V_RESPONSE_QUEUE_ENABLE(x) ((x) << S_RESPONSE_QUEUE_ENABLE)
0057 #define F_RESPONSE_QUEUE_ENABLE    V_RESPONSE_QUEUE_ENABLE(1U)
0058 
0059 #define S_CMDQ_PRIORITY    6
0060 #define M_CMDQ_PRIORITY    0x3
0061 #define V_CMDQ_PRIORITY(x) ((x) << S_CMDQ_PRIORITY)
0062 #define G_CMDQ_PRIORITY(x) (((x) >> S_CMDQ_PRIORITY) & M_CMDQ_PRIORITY)
0063 
0064 #define S_DISABLE_CMDQ0_GTS    8
0065 #define V_DISABLE_CMDQ0_GTS(x) ((x) << S_DISABLE_CMDQ0_GTS)
0066 #define F_DISABLE_CMDQ0_GTS    V_DISABLE_CMDQ0_GTS(1U)
0067 
0068 #define S_DISABLE_CMDQ1_GTS    9
0069 #define V_DISABLE_CMDQ1_GTS(x) ((x) << S_DISABLE_CMDQ1_GTS)
0070 #define F_DISABLE_CMDQ1_GTS    V_DISABLE_CMDQ1_GTS(1U)
0071 
0072 #define S_DISABLE_FL0_GTS    10
0073 #define V_DISABLE_FL0_GTS(x) ((x) << S_DISABLE_FL0_GTS)
0074 #define F_DISABLE_FL0_GTS    V_DISABLE_FL0_GTS(1U)
0075 
0076 #define S_DISABLE_FL1_GTS    11
0077 #define V_DISABLE_FL1_GTS(x) ((x) << S_DISABLE_FL1_GTS)
0078 #define F_DISABLE_FL1_GTS    V_DISABLE_FL1_GTS(1U)
0079 
0080 #define S_ENABLE_BIG_ENDIAN    12
0081 #define V_ENABLE_BIG_ENDIAN(x) ((x) << S_ENABLE_BIG_ENDIAN)
0082 #define F_ENABLE_BIG_ENDIAN    V_ENABLE_BIG_ENDIAN(1U)
0083 
0084 #define S_FL_SELECTION_CRITERIA    13
0085 #define V_FL_SELECTION_CRITERIA(x) ((x) << S_FL_SELECTION_CRITERIA)
0086 #define F_FL_SELECTION_CRITERIA    V_FL_SELECTION_CRITERIA(1U)
0087 
0088 #define S_ISCSI_COALESCE    14
0089 #define V_ISCSI_COALESCE(x) ((x) << S_ISCSI_COALESCE)
0090 #define F_ISCSI_COALESCE    V_ISCSI_COALESCE(1U)
0091 
0092 #define S_RX_PKT_OFFSET    15
0093 #define M_RX_PKT_OFFSET    0x7
0094 #define V_RX_PKT_OFFSET(x) ((x) << S_RX_PKT_OFFSET)
0095 #define G_RX_PKT_OFFSET(x) (((x) >> S_RX_PKT_OFFSET) & M_RX_PKT_OFFSET)
0096 
0097 #define S_VLAN_XTRACT    18
0098 #define V_VLAN_XTRACT(x) ((x) << S_VLAN_XTRACT)
0099 #define F_VLAN_XTRACT    V_VLAN_XTRACT(1U)
0100 
0101 #define A_SG_DOORBELL 0x4
0102 #define A_SG_CMD0BASELWR 0x8
0103 #define A_SG_CMD0BASEUPR 0xc
0104 #define A_SG_CMD1BASELWR 0x10
0105 #define A_SG_CMD1BASEUPR 0x14
0106 #define A_SG_FL0BASELWR 0x18
0107 #define A_SG_FL0BASEUPR 0x1c
0108 #define A_SG_FL1BASELWR 0x20
0109 #define A_SG_FL1BASEUPR 0x24
0110 #define A_SG_CMD0SIZE 0x28
0111 
0112 #define S_CMDQ0_SIZE    0
0113 #define M_CMDQ0_SIZE    0x1ffff
0114 #define V_CMDQ0_SIZE(x) ((x) << S_CMDQ0_SIZE)
0115 #define G_CMDQ0_SIZE(x) (((x) >> S_CMDQ0_SIZE) & M_CMDQ0_SIZE)
0116 
0117 #define A_SG_FL0SIZE 0x2c
0118 
0119 #define S_FL0_SIZE    0
0120 #define M_FL0_SIZE    0x1ffff
0121 #define V_FL0_SIZE(x) ((x) << S_FL0_SIZE)
0122 #define G_FL0_SIZE(x) (((x) >> S_FL0_SIZE) & M_FL0_SIZE)
0123 
0124 #define A_SG_RSPSIZE 0x30
0125 
0126 #define S_RESPQ_SIZE    0
0127 #define M_RESPQ_SIZE    0x1ffff
0128 #define V_RESPQ_SIZE(x) ((x) << S_RESPQ_SIZE)
0129 #define G_RESPQ_SIZE(x) (((x) >> S_RESPQ_SIZE) & M_RESPQ_SIZE)
0130 
0131 #define A_SG_RSPBASELWR 0x34
0132 #define A_SG_RSPBASEUPR 0x38
0133 #define A_SG_FLTHRESHOLD 0x3c
0134 
0135 #define S_FL_THRESHOLD    0
0136 #define M_FL_THRESHOLD    0xffff
0137 #define V_FL_THRESHOLD(x) ((x) << S_FL_THRESHOLD)
0138 #define G_FL_THRESHOLD(x) (((x) >> S_FL_THRESHOLD) & M_FL_THRESHOLD)
0139 
0140 #define A_SG_RSPQUEUECREDIT 0x40
0141 
0142 #define S_RESPQ_CREDIT    0
0143 #define M_RESPQ_CREDIT    0x1ffff
0144 #define V_RESPQ_CREDIT(x) ((x) << S_RESPQ_CREDIT)
0145 #define G_RESPQ_CREDIT(x) (((x) >> S_RESPQ_CREDIT) & M_RESPQ_CREDIT)
0146 
0147 #define A_SG_SLEEPING 0x48
0148 
0149 #define S_SLEEPING    0
0150 #define M_SLEEPING    0xffff
0151 #define V_SLEEPING(x) ((x) << S_SLEEPING)
0152 #define G_SLEEPING(x) (((x) >> S_SLEEPING) & M_SLEEPING)
0153 
0154 #define A_SG_INTRTIMER 0x4c
0155 
0156 #define S_INTERRUPT_TIMER_COUNT    0
0157 #define M_INTERRUPT_TIMER_COUNT    0xffffff
0158 #define V_INTERRUPT_TIMER_COUNT(x) ((x) << S_INTERRUPT_TIMER_COUNT)
0159 #define G_INTERRUPT_TIMER_COUNT(x) (((x) >> S_INTERRUPT_TIMER_COUNT) & M_INTERRUPT_TIMER_COUNT)
0160 
0161 #define A_SG_CMD0PTR 0x50
0162 
0163 #define S_CMDQ0_POINTER    0
0164 #define M_CMDQ0_POINTER    0xffff
0165 #define V_CMDQ0_POINTER(x) ((x) << S_CMDQ0_POINTER)
0166 #define G_CMDQ0_POINTER(x) (((x) >> S_CMDQ0_POINTER) & M_CMDQ0_POINTER)
0167 
0168 #define S_CURRENT_GENERATION_BIT    16
0169 #define V_CURRENT_GENERATION_BIT(x) ((x) << S_CURRENT_GENERATION_BIT)
0170 #define F_CURRENT_GENERATION_BIT    V_CURRENT_GENERATION_BIT(1U)
0171 
0172 #define A_SG_CMD1PTR 0x54
0173 
0174 #define S_CMDQ1_POINTER    0
0175 #define M_CMDQ1_POINTER    0xffff
0176 #define V_CMDQ1_POINTER(x) ((x) << S_CMDQ1_POINTER)
0177 #define G_CMDQ1_POINTER(x) (((x) >> S_CMDQ1_POINTER) & M_CMDQ1_POINTER)
0178 
0179 #define A_SG_FL0PTR 0x58
0180 
0181 #define S_FL0_POINTER    0
0182 #define M_FL0_POINTER    0xffff
0183 #define V_FL0_POINTER(x) ((x) << S_FL0_POINTER)
0184 #define G_FL0_POINTER(x) (((x) >> S_FL0_POINTER) & M_FL0_POINTER)
0185 
0186 #define A_SG_FL1PTR 0x5c
0187 
0188 #define S_FL1_POINTER    0
0189 #define M_FL1_POINTER    0xffff
0190 #define V_FL1_POINTER(x) ((x) << S_FL1_POINTER)
0191 #define G_FL1_POINTER(x) (((x) >> S_FL1_POINTER) & M_FL1_POINTER)
0192 
0193 #define A_SG_VERSION 0x6c
0194 
0195 #define S_DAY    0
0196 #define M_DAY    0x1f
0197 #define V_DAY(x) ((x) << S_DAY)
0198 #define G_DAY(x) (((x) >> S_DAY) & M_DAY)
0199 
0200 #define S_MONTH    5
0201 #define M_MONTH    0xf
0202 #define V_MONTH(x) ((x) << S_MONTH)
0203 #define G_MONTH(x) (((x) >> S_MONTH) & M_MONTH)
0204 
0205 #define A_SG_CMD1SIZE 0xb0
0206 
0207 #define S_CMDQ1_SIZE    0
0208 #define M_CMDQ1_SIZE    0x1ffff
0209 #define V_CMDQ1_SIZE(x) ((x) << S_CMDQ1_SIZE)
0210 #define G_CMDQ1_SIZE(x) (((x) >> S_CMDQ1_SIZE) & M_CMDQ1_SIZE)
0211 
0212 #define A_SG_FL1SIZE 0xb4
0213 
0214 #define S_FL1_SIZE    0
0215 #define M_FL1_SIZE    0x1ffff
0216 #define V_FL1_SIZE(x) ((x) << S_FL1_SIZE)
0217 #define G_FL1_SIZE(x) (((x) >> S_FL1_SIZE) & M_FL1_SIZE)
0218 
0219 #define A_SG_INT_ENABLE 0xb8
0220 
0221 #define S_RESPQ_EXHAUSTED    0
0222 #define V_RESPQ_EXHAUSTED(x) ((x) << S_RESPQ_EXHAUSTED)
0223 #define F_RESPQ_EXHAUSTED    V_RESPQ_EXHAUSTED(1U)
0224 
0225 #define S_RESPQ_OVERFLOW    1
0226 #define V_RESPQ_OVERFLOW(x) ((x) << S_RESPQ_OVERFLOW)
0227 #define F_RESPQ_OVERFLOW    V_RESPQ_OVERFLOW(1U)
0228 
0229 #define S_FL_EXHAUSTED    2
0230 #define V_FL_EXHAUSTED(x) ((x) << S_FL_EXHAUSTED)
0231 #define F_FL_EXHAUSTED    V_FL_EXHAUSTED(1U)
0232 
0233 #define S_PACKET_TOO_BIG    3
0234 #define V_PACKET_TOO_BIG(x) ((x) << S_PACKET_TOO_BIG)
0235 #define F_PACKET_TOO_BIG    V_PACKET_TOO_BIG(1U)
0236 
0237 #define S_PACKET_MISMATCH    4
0238 #define V_PACKET_MISMATCH(x) ((x) << S_PACKET_MISMATCH)
0239 #define F_PACKET_MISMATCH    V_PACKET_MISMATCH(1U)
0240 
0241 #define A_SG_INT_CAUSE 0xbc
0242 #define A_SG_RESPACCUTIMER 0xc0
0243 
0244 /* MC3 registers */
0245 #define A_MC3_CFG 0x100
0246 
0247 #define S_CLK_ENABLE    0
0248 #define V_CLK_ENABLE(x) ((x) << S_CLK_ENABLE)
0249 #define F_CLK_ENABLE    V_CLK_ENABLE(1U)
0250 
0251 #define S_READY    1
0252 #define V_READY(x) ((x) << S_READY)
0253 #define F_READY    V_READY(1U)
0254 
0255 #define S_READ_TO_WRITE_DELAY    2
0256 #define M_READ_TO_WRITE_DELAY    0x7
0257 #define V_READ_TO_WRITE_DELAY(x) ((x) << S_READ_TO_WRITE_DELAY)
0258 #define G_READ_TO_WRITE_DELAY(x) (((x) >> S_READ_TO_WRITE_DELAY) & M_READ_TO_WRITE_DELAY)
0259 
0260 #define S_WRITE_TO_READ_DELAY    5
0261 #define M_WRITE_TO_READ_DELAY    0x7
0262 #define V_WRITE_TO_READ_DELAY(x) ((x) << S_WRITE_TO_READ_DELAY)
0263 #define G_WRITE_TO_READ_DELAY(x) (((x) >> S_WRITE_TO_READ_DELAY) & M_WRITE_TO_READ_DELAY)
0264 
0265 #define S_MC3_BANK_CYCLE    8
0266 #define M_MC3_BANK_CYCLE    0xf
0267 #define V_MC3_BANK_CYCLE(x) ((x) << S_MC3_BANK_CYCLE)
0268 #define G_MC3_BANK_CYCLE(x) (((x) >> S_MC3_BANK_CYCLE) & M_MC3_BANK_CYCLE)
0269 
0270 #define S_REFRESH_CYCLE    12
0271 #define M_REFRESH_CYCLE    0xf
0272 #define V_REFRESH_CYCLE(x) ((x) << S_REFRESH_CYCLE)
0273 #define G_REFRESH_CYCLE(x) (((x) >> S_REFRESH_CYCLE) & M_REFRESH_CYCLE)
0274 
0275 #define S_PRECHARGE_CYCLE    16
0276 #define M_PRECHARGE_CYCLE    0x3
0277 #define V_PRECHARGE_CYCLE(x) ((x) << S_PRECHARGE_CYCLE)
0278 #define G_PRECHARGE_CYCLE(x) (((x) >> S_PRECHARGE_CYCLE) & M_PRECHARGE_CYCLE)
0279 
0280 #define S_ACTIVE_TO_READ_WRITE_DELAY    18
0281 #define V_ACTIVE_TO_READ_WRITE_DELAY(x) ((x) << S_ACTIVE_TO_READ_WRITE_DELAY)
0282 #define F_ACTIVE_TO_READ_WRITE_DELAY    V_ACTIVE_TO_READ_WRITE_DELAY(1U)
0283 
0284 #define S_ACTIVE_TO_PRECHARGE_DELAY    19
0285 #define M_ACTIVE_TO_PRECHARGE_DELAY    0x7
0286 #define V_ACTIVE_TO_PRECHARGE_DELAY(x) ((x) << S_ACTIVE_TO_PRECHARGE_DELAY)
0287 #define G_ACTIVE_TO_PRECHARGE_DELAY(x) (((x) >> S_ACTIVE_TO_PRECHARGE_DELAY) & M_ACTIVE_TO_PRECHARGE_DELAY)
0288 
0289 #define S_WRITE_RECOVERY_DELAY    22
0290 #define M_WRITE_RECOVERY_DELAY    0x3
0291 #define V_WRITE_RECOVERY_DELAY(x) ((x) << S_WRITE_RECOVERY_DELAY)
0292 #define G_WRITE_RECOVERY_DELAY(x) (((x) >> S_WRITE_RECOVERY_DELAY) & M_WRITE_RECOVERY_DELAY)
0293 
0294 #define S_DENSITY    24
0295 #define M_DENSITY    0x3
0296 #define V_DENSITY(x) ((x) << S_DENSITY)
0297 #define G_DENSITY(x) (((x) >> S_DENSITY) & M_DENSITY)
0298 
0299 #define S_ORGANIZATION    26
0300 #define V_ORGANIZATION(x) ((x) << S_ORGANIZATION)
0301 #define F_ORGANIZATION    V_ORGANIZATION(1U)
0302 
0303 #define S_BANKS    27
0304 #define V_BANKS(x) ((x) << S_BANKS)
0305 #define F_BANKS    V_BANKS(1U)
0306 
0307 #define S_UNREGISTERED    28
0308 #define V_UNREGISTERED(x) ((x) << S_UNREGISTERED)
0309 #define F_UNREGISTERED    V_UNREGISTERED(1U)
0310 
0311 #define S_MC3_WIDTH    29
0312 #define M_MC3_WIDTH    0x3
0313 #define V_MC3_WIDTH(x) ((x) << S_MC3_WIDTH)
0314 #define G_MC3_WIDTH(x) (((x) >> S_MC3_WIDTH) & M_MC3_WIDTH)
0315 
0316 #define S_MC3_SLOW    31
0317 #define V_MC3_SLOW(x) ((x) << S_MC3_SLOW)
0318 #define F_MC3_SLOW    V_MC3_SLOW(1U)
0319 
0320 #define A_MC3_MODE 0x104
0321 
0322 #define S_MC3_MODE    0
0323 #define M_MC3_MODE    0x3fff
0324 #define V_MC3_MODE(x) ((x) << S_MC3_MODE)
0325 #define G_MC3_MODE(x) (((x) >> S_MC3_MODE) & M_MC3_MODE)
0326 
0327 #define S_BUSY    31
0328 #define V_BUSY(x) ((x) << S_BUSY)
0329 #define F_BUSY    V_BUSY(1U)
0330 
0331 #define A_MC3_EXT_MODE 0x108
0332 
0333 #define S_MC3_EXTENDED_MODE    0
0334 #define M_MC3_EXTENDED_MODE    0x3fff
0335 #define V_MC3_EXTENDED_MODE(x) ((x) << S_MC3_EXTENDED_MODE)
0336 #define G_MC3_EXTENDED_MODE(x) (((x) >> S_MC3_EXTENDED_MODE) & M_MC3_EXTENDED_MODE)
0337 
0338 #define A_MC3_PRECHARG 0x10c
0339 #define A_MC3_REFRESH 0x110
0340 
0341 #define S_REFRESH_ENABLE    0
0342 #define V_REFRESH_ENABLE(x) ((x) << S_REFRESH_ENABLE)
0343 #define F_REFRESH_ENABLE    V_REFRESH_ENABLE(1U)
0344 
0345 #define S_REFRESH_DIVISOR    1
0346 #define M_REFRESH_DIVISOR    0x3fff
0347 #define V_REFRESH_DIVISOR(x) ((x) << S_REFRESH_DIVISOR)
0348 #define G_REFRESH_DIVISOR(x) (((x) >> S_REFRESH_DIVISOR) & M_REFRESH_DIVISOR)
0349 
0350 #define A_MC3_STROBE 0x114
0351 
0352 #define S_MASTER_DLL_RESET    0
0353 #define V_MASTER_DLL_RESET(x) ((x) << S_MASTER_DLL_RESET)
0354 #define F_MASTER_DLL_RESET    V_MASTER_DLL_RESET(1U)
0355 
0356 #define S_MASTER_DLL_TAP_COUNT    1
0357 #define M_MASTER_DLL_TAP_COUNT    0xff
0358 #define V_MASTER_DLL_TAP_COUNT(x) ((x) << S_MASTER_DLL_TAP_COUNT)
0359 #define G_MASTER_DLL_TAP_COUNT(x) (((x) >> S_MASTER_DLL_TAP_COUNT) & M_MASTER_DLL_TAP_COUNT)
0360 
0361 #define S_MASTER_DLL_LOCKED    9
0362 #define V_MASTER_DLL_LOCKED(x) ((x) << S_MASTER_DLL_LOCKED)
0363 #define F_MASTER_DLL_LOCKED    V_MASTER_DLL_LOCKED(1U)
0364 
0365 #define S_MASTER_DLL_MAX_TAP_COUNT    10
0366 #define V_MASTER_DLL_MAX_TAP_COUNT(x) ((x) << S_MASTER_DLL_MAX_TAP_COUNT)
0367 #define F_MASTER_DLL_MAX_TAP_COUNT    V_MASTER_DLL_MAX_TAP_COUNT(1U)
0368 
0369 #define S_MASTER_DLL_TAP_COUNT_OFFSET    11
0370 #define M_MASTER_DLL_TAP_COUNT_OFFSET    0x3f
0371 #define V_MASTER_DLL_TAP_COUNT_OFFSET(x) ((x) << S_MASTER_DLL_TAP_COUNT_OFFSET)
0372 #define G_MASTER_DLL_TAP_COUNT_OFFSET(x) (((x) >> S_MASTER_DLL_TAP_COUNT_OFFSET) & M_MASTER_DLL_TAP_COUNT_OFFSET)
0373 
0374 #define S_SLAVE_DLL_RESET    11
0375 #define V_SLAVE_DLL_RESET(x) ((x) << S_SLAVE_DLL_RESET)
0376 #define F_SLAVE_DLL_RESET    V_SLAVE_DLL_RESET(1U)
0377 
0378 #define S_SLAVE_DLL_DELTA    12
0379 #define M_SLAVE_DLL_DELTA    0xf
0380 #define V_SLAVE_DLL_DELTA(x) ((x) << S_SLAVE_DLL_DELTA)
0381 #define G_SLAVE_DLL_DELTA(x) (((x) >> S_SLAVE_DLL_DELTA) & M_SLAVE_DLL_DELTA)
0382 
0383 #define S_SLAVE_DELAY_LINE_MANUAL_TAP_COUNT    17
0384 #define M_SLAVE_DELAY_LINE_MANUAL_TAP_COUNT    0x3f
0385 #define V_SLAVE_DELAY_LINE_MANUAL_TAP_COUNT(x) ((x) << S_SLAVE_DELAY_LINE_MANUAL_TAP_COUNT)
0386 #define G_SLAVE_DELAY_LINE_MANUAL_TAP_COUNT(x) (((x) >> S_SLAVE_DELAY_LINE_MANUAL_TAP_COUNT) & M_SLAVE_DELAY_LINE_MANUAL_TAP_COUNT)
0387 
0388 #define S_SLAVE_DELAY_LINE_MANUAL_TAP_COUNT_ENABLE    23
0389 #define V_SLAVE_DELAY_LINE_MANUAL_TAP_COUNT_ENABLE(x) ((x) << S_SLAVE_DELAY_LINE_MANUAL_TAP_COUNT_ENABLE)
0390 #define F_SLAVE_DELAY_LINE_MANUAL_TAP_COUNT_ENABLE    V_SLAVE_DELAY_LINE_MANUAL_TAP_COUNT_ENABLE(1U)
0391 
0392 #define S_SLAVE_DELAY_LINE_TAP_COUNT    24
0393 #define M_SLAVE_DELAY_LINE_TAP_COUNT    0x3f
0394 #define V_SLAVE_DELAY_LINE_TAP_COUNT(x) ((x) << S_SLAVE_DELAY_LINE_TAP_COUNT)
0395 #define G_SLAVE_DELAY_LINE_TAP_COUNT(x) (((x) >> S_SLAVE_DELAY_LINE_TAP_COUNT) & M_SLAVE_DELAY_LINE_TAP_COUNT)
0396 
0397 #define A_MC3_ECC_CNTL 0x118
0398 
0399 #define S_ECC_GENERATION_ENABLE    0
0400 #define V_ECC_GENERATION_ENABLE(x) ((x) << S_ECC_GENERATION_ENABLE)
0401 #define F_ECC_GENERATION_ENABLE    V_ECC_GENERATION_ENABLE(1U)
0402 
0403 #define S_ECC_CHECK_ENABLE    1
0404 #define V_ECC_CHECK_ENABLE(x) ((x) << S_ECC_CHECK_ENABLE)
0405 #define F_ECC_CHECK_ENABLE    V_ECC_CHECK_ENABLE(1U)
0406 
0407 #define S_CORRECTABLE_ERROR_COUNT    2
0408 #define M_CORRECTABLE_ERROR_COUNT    0xff
0409 #define V_CORRECTABLE_ERROR_COUNT(x) ((x) << S_CORRECTABLE_ERROR_COUNT)
0410 #define G_CORRECTABLE_ERROR_COUNT(x) (((x) >> S_CORRECTABLE_ERROR_COUNT) & M_CORRECTABLE_ERROR_COUNT)
0411 
0412 #define S_UNCORRECTABLE_ERROR_COUNT    10
0413 #define M_UNCORRECTABLE_ERROR_COUNT    0xff
0414 #define V_UNCORRECTABLE_ERROR_COUNT(x) ((x) << S_UNCORRECTABLE_ERROR_COUNT)
0415 #define G_UNCORRECTABLE_ERROR_COUNT(x) (((x) >> S_UNCORRECTABLE_ERROR_COUNT) & M_UNCORRECTABLE_ERROR_COUNT)
0416 
0417 #define A_MC3_CE_ADDR 0x11c
0418 
0419 #define S_MC3_CE_ADDR    4
0420 #define M_MC3_CE_ADDR    0xfffffff
0421 #define V_MC3_CE_ADDR(x) ((x) << S_MC3_CE_ADDR)
0422 #define G_MC3_CE_ADDR(x) (((x) >> S_MC3_CE_ADDR) & M_MC3_CE_ADDR)
0423 
0424 #define A_MC3_CE_DATA0 0x120
0425 #define A_MC3_CE_DATA1 0x124
0426 #define A_MC3_CE_DATA2 0x128
0427 #define A_MC3_CE_DATA3 0x12c
0428 #define A_MC3_CE_DATA4 0x130
0429 #define A_MC3_UE_ADDR 0x134
0430 
0431 #define S_MC3_UE_ADDR    4
0432 #define M_MC3_UE_ADDR    0xfffffff
0433 #define V_MC3_UE_ADDR(x) ((x) << S_MC3_UE_ADDR)
0434 #define G_MC3_UE_ADDR(x) (((x) >> S_MC3_UE_ADDR) & M_MC3_UE_ADDR)
0435 
0436 #define A_MC3_UE_DATA0 0x138
0437 #define A_MC3_UE_DATA1 0x13c
0438 #define A_MC3_UE_DATA2 0x140
0439 #define A_MC3_UE_DATA3 0x144
0440 #define A_MC3_UE_DATA4 0x148
0441 #define A_MC3_BD_ADDR 0x14c
0442 #define A_MC3_BD_DATA0 0x150
0443 #define A_MC3_BD_DATA1 0x154
0444 #define A_MC3_BD_DATA2 0x158
0445 #define A_MC3_BD_DATA3 0x15c
0446 #define A_MC3_BD_DATA4 0x160
0447 #define A_MC3_BD_OP 0x164
0448 
0449 #define S_BACK_DOOR_OPERATION    0
0450 #define V_BACK_DOOR_OPERATION(x) ((x) << S_BACK_DOOR_OPERATION)
0451 #define F_BACK_DOOR_OPERATION    V_BACK_DOOR_OPERATION(1U)
0452 
0453 #define A_MC3_BIST_ADDR_BEG 0x168
0454 #define A_MC3_BIST_ADDR_END 0x16c
0455 #define A_MC3_BIST_DATA 0x170
0456 #define A_MC3_BIST_OP 0x174
0457 
0458 #define S_OP    0
0459 #define V_OP(x) ((x) << S_OP)
0460 #define F_OP    V_OP(1U)
0461 
0462 #define S_DATA_PATTERN    1
0463 #define M_DATA_PATTERN    0x3
0464 #define V_DATA_PATTERN(x) ((x) << S_DATA_PATTERN)
0465 #define G_DATA_PATTERN(x) (((x) >> S_DATA_PATTERN) & M_DATA_PATTERN)
0466 
0467 #define S_CONTINUOUS    3
0468 #define V_CONTINUOUS(x) ((x) << S_CONTINUOUS)
0469 #define F_CONTINUOUS    V_CONTINUOUS(1U)
0470 
0471 #define A_MC3_INT_ENABLE 0x178
0472 
0473 #define S_MC3_CORR_ERR    0
0474 #define V_MC3_CORR_ERR(x) ((x) << S_MC3_CORR_ERR)
0475 #define F_MC3_CORR_ERR    V_MC3_CORR_ERR(1U)
0476 
0477 #define S_MC3_UNCORR_ERR    1
0478 #define V_MC3_UNCORR_ERR(x) ((x) << S_MC3_UNCORR_ERR)
0479 #define F_MC3_UNCORR_ERR    V_MC3_UNCORR_ERR(1U)
0480 
0481 #define S_MC3_PARITY_ERR    2
0482 #define M_MC3_PARITY_ERR    0xff
0483 #define V_MC3_PARITY_ERR(x) ((x) << S_MC3_PARITY_ERR)
0484 #define G_MC3_PARITY_ERR(x) (((x) >> S_MC3_PARITY_ERR) & M_MC3_PARITY_ERR)
0485 
0486 #define S_MC3_ADDR_ERR    10
0487 #define V_MC3_ADDR_ERR(x) ((x) << S_MC3_ADDR_ERR)
0488 #define F_MC3_ADDR_ERR    V_MC3_ADDR_ERR(1U)
0489 
0490 #define A_MC3_INT_CAUSE 0x17c
0491 
0492 /* MC4 registers */
0493 #define A_MC4_CFG 0x180
0494 
0495 #define S_POWER_UP    0
0496 #define V_POWER_UP(x) ((x) << S_POWER_UP)
0497 #define F_POWER_UP    V_POWER_UP(1U)
0498 
0499 #define S_MC4_BANK_CYCLE    8
0500 #define M_MC4_BANK_CYCLE    0x7
0501 #define V_MC4_BANK_CYCLE(x) ((x) << S_MC4_BANK_CYCLE)
0502 #define G_MC4_BANK_CYCLE(x) (((x) >> S_MC4_BANK_CYCLE) & M_MC4_BANK_CYCLE)
0503 
0504 #define S_MC4_NARROW    24
0505 #define V_MC4_NARROW(x) ((x) << S_MC4_NARROW)
0506 #define F_MC4_NARROW    V_MC4_NARROW(1U)
0507 
0508 #define S_MC4_SLOW    25
0509 #define V_MC4_SLOW(x) ((x) << S_MC4_SLOW)
0510 #define F_MC4_SLOW    V_MC4_SLOW(1U)
0511 
0512 #define S_MC4A_WIDTH    24
0513 #define M_MC4A_WIDTH    0x3
0514 #define V_MC4A_WIDTH(x) ((x) << S_MC4A_WIDTH)
0515 #define G_MC4A_WIDTH(x) (((x) >> S_MC4A_WIDTH) & M_MC4A_WIDTH)
0516 
0517 #define S_MC4A_SLOW    26
0518 #define V_MC4A_SLOW(x) ((x) << S_MC4A_SLOW)
0519 #define F_MC4A_SLOW    V_MC4A_SLOW(1U)
0520 
0521 #define A_MC4_MODE 0x184
0522 
0523 #define S_MC4_MODE    0
0524 #define M_MC4_MODE    0x7fff
0525 #define V_MC4_MODE(x) ((x) << S_MC4_MODE)
0526 #define G_MC4_MODE(x) (((x) >> S_MC4_MODE) & M_MC4_MODE)
0527 
0528 #define A_MC4_EXT_MODE 0x188
0529 
0530 #define S_MC4_EXTENDED_MODE    0
0531 #define M_MC4_EXTENDED_MODE    0x7fff
0532 #define V_MC4_EXTENDED_MODE(x) ((x) << S_MC4_EXTENDED_MODE)
0533 #define G_MC4_EXTENDED_MODE(x) (((x) >> S_MC4_EXTENDED_MODE) & M_MC4_EXTENDED_MODE)
0534 
0535 #define A_MC4_REFRESH 0x190
0536 #define A_MC4_STROBE 0x194
0537 #define A_MC4_ECC_CNTL 0x198
0538 #define A_MC4_CE_ADDR 0x19c
0539 
0540 #define S_MC4_CE_ADDR    4
0541 #define M_MC4_CE_ADDR    0xffffff
0542 #define V_MC4_CE_ADDR(x) ((x) << S_MC4_CE_ADDR)
0543 #define G_MC4_CE_ADDR(x) (((x) >> S_MC4_CE_ADDR) & M_MC4_CE_ADDR)
0544 
0545 #define A_MC4_CE_DATA0 0x1a0
0546 #define A_MC4_CE_DATA1 0x1a4
0547 #define A_MC4_CE_DATA2 0x1a8
0548 #define A_MC4_CE_DATA3 0x1ac
0549 #define A_MC4_CE_DATA4 0x1b0
0550 #define A_MC4_UE_ADDR 0x1b4
0551 
0552 #define S_MC4_UE_ADDR    4
0553 #define M_MC4_UE_ADDR    0xffffff
0554 #define V_MC4_UE_ADDR(x) ((x) << S_MC4_UE_ADDR)
0555 #define G_MC4_UE_ADDR(x) (((x) >> S_MC4_UE_ADDR) & M_MC4_UE_ADDR)
0556 
0557 #define A_MC4_UE_DATA0 0x1b8
0558 #define A_MC4_UE_DATA1 0x1bc
0559 #define A_MC4_UE_DATA2 0x1c0
0560 #define A_MC4_UE_DATA3 0x1c4
0561 #define A_MC4_UE_DATA4 0x1c8
0562 #define A_MC4_BD_ADDR 0x1cc
0563 
0564 #define S_MC4_BACK_DOOR_ADDR    0
0565 #define M_MC4_BACK_DOOR_ADDR    0xfffffff
0566 #define V_MC4_BACK_DOOR_ADDR(x) ((x) << S_MC4_BACK_DOOR_ADDR)
0567 #define G_MC4_BACK_DOOR_ADDR(x) (((x) >> S_MC4_BACK_DOOR_ADDR) & M_MC4_BACK_DOOR_ADDR)
0568 
0569 #define A_MC4_BD_DATA0 0x1d0
0570 #define A_MC4_BD_DATA1 0x1d4
0571 #define A_MC4_BD_DATA2 0x1d8
0572 #define A_MC4_BD_DATA3 0x1dc
0573 #define A_MC4_BD_DATA4 0x1e0
0574 #define A_MC4_BD_OP 0x1e4
0575 
0576 #define S_OPERATION    0
0577 #define V_OPERATION(x) ((x) << S_OPERATION)
0578 #define F_OPERATION    V_OPERATION(1U)
0579 
0580 #define A_MC4_BIST_ADDR_BEG 0x1e8
0581 #define A_MC4_BIST_ADDR_END 0x1ec
0582 #define A_MC4_BIST_DATA 0x1f0
0583 #define A_MC4_BIST_OP 0x1f4
0584 #define A_MC4_INT_ENABLE 0x1f8
0585 
0586 #define S_MC4_CORR_ERR    0
0587 #define V_MC4_CORR_ERR(x) ((x) << S_MC4_CORR_ERR)
0588 #define F_MC4_CORR_ERR    V_MC4_CORR_ERR(1U)
0589 
0590 #define S_MC4_UNCORR_ERR    1
0591 #define V_MC4_UNCORR_ERR(x) ((x) << S_MC4_UNCORR_ERR)
0592 #define F_MC4_UNCORR_ERR    V_MC4_UNCORR_ERR(1U)
0593 
0594 #define S_MC4_ADDR_ERR    2
0595 #define V_MC4_ADDR_ERR(x) ((x) << S_MC4_ADDR_ERR)
0596 #define F_MC4_ADDR_ERR    V_MC4_ADDR_ERR(1U)
0597 
0598 #define A_MC4_INT_CAUSE 0x1fc
0599 
0600 /* TPI registers */
0601 #define A_TPI_ADDR 0x280
0602 
0603 #define S_TPI_ADDRESS    0
0604 #define M_TPI_ADDRESS    0xffffff
0605 #define V_TPI_ADDRESS(x) ((x) << S_TPI_ADDRESS)
0606 #define G_TPI_ADDRESS(x) (((x) >> S_TPI_ADDRESS) & M_TPI_ADDRESS)
0607 
0608 #define A_TPI_WR_DATA 0x284
0609 #define A_TPI_RD_DATA 0x288
0610 #define A_TPI_CSR 0x28c
0611 
0612 #define S_TPIWR    0
0613 #define V_TPIWR(x) ((x) << S_TPIWR)
0614 #define F_TPIWR    V_TPIWR(1U)
0615 
0616 #define S_TPIRDY    1
0617 #define V_TPIRDY(x) ((x) << S_TPIRDY)
0618 #define F_TPIRDY    V_TPIRDY(1U)
0619 
0620 #define S_INT_DIR    31
0621 #define V_INT_DIR(x) ((x) << S_INT_DIR)
0622 #define F_INT_DIR    V_INT_DIR(1U)
0623 
0624 #define A_TPI_PAR 0x29c
0625 
0626 #define S_TPIPAR    0
0627 #define M_TPIPAR    0x7f
0628 #define V_TPIPAR(x) ((x) << S_TPIPAR)
0629 #define G_TPIPAR(x) (((x) >> S_TPIPAR) & M_TPIPAR)
0630 
0631 
0632 /* TP registers */
0633 #define A_TP_IN_CONFIG 0x300
0634 
0635 #define S_TP_IN_CSPI_TUNNEL    0
0636 #define V_TP_IN_CSPI_TUNNEL(x) ((x) << S_TP_IN_CSPI_TUNNEL)
0637 #define F_TP_IN_CSPI_TUNNEL    V_TP_IN_CSPI_TUNNEL(1U)
0638 
0639 #define S_TP_IN_CSPI_ETHERNET    1
0640 #define V_TP_IN_CSPI_ETHERNET(x) ((x) << S_TP_IN_CSPI_ETHERNET)
0641 #define F_TP_IN_CSPI_ETHERNET    V_TP_IN_CSPI_ETHERNET(1U)
0642 
0643 #define S_TP_IN_CSPI_CPL    3
0644 #define V_TP_IN_CSPI_CPL(x) ((x) << S_TP_IN_CSPI_CPL)
0645 #define F_TP_IN_CSPI_CPL    V_TP_IN_CSPI_CPL(1U)
0646 
0647 #define S_TP_IN_CSPI_POS    4
0648 #define V_TP_IN_CSPI_POS(x) ((x) << S_TP_IN_CSPI_POS)
0649 #define F_TP_IN_CSPI_POS    V_TP_IN_CSPI_POS(1U)
0650 
0651 #define S_TP_IN_CSPI_CHECK_IP_CSUM    5
0652 #define V_TP_IN_CSPI_CHECK_IP_CSUM(x) ((x) << S_TP_IN_CSPI_CHECK_IP_CSUM)
0653 #define F_TP_IN_CSPI_CHECK_IP_CSUM    V_TP_IN_CSPI_CHECK_IP_CSUM(1U)
0654 
0655 #define S_TP_IN_CSPI_CHECK_TCP_CSUM    6
0656 #define V_TP_IN_CSPI_CHECK_TCP_CSUM(x) ((x) << S_TP_IN_CSPI_CHECK_TCP_CSUM)
0657 #define F_TP_IN_CSPI_CHECK_TCP_CSUM    V_TP_IN_CSPI_CHECK_TCP_CSUM(1U)
0658 
0659 #define S_TP_IN_ESPI_TUNNEL    7
0660 #define V_TP_IN_ESPI_TUNNEL(x) ((x) << S_TP_IN_ESPI_TUNNEL)
0661 #define F_TP_IN_ESPI_TUNNEL    V_TP_IN_ESPI_TUNNEL(1U)
0662 
0663 #define S_TP_IN_ESPI_ETHERNET    8
0664 #define V_TP_IN_ESPI_ETHERNET(x) ((x) << S_TP_IN_ESPI_ETHERNET)
0665 #define F_TP_IN_ESPI_ETHERNET    V_TP_IN_ESPI_ETHERNET(1U)
0666 
0667 #define S_TP_IN_ESPI_CPL    10
0668 #define V_TP_IN_ESPI_CPL(x) ((x) << S_TP_IN_ESPI_CPL)
0669 #define F_TP_IN_ESPI_CPL    V_TP_IN_ESPI_CPL(1U)
0670 
0671 #define S_TP_IN_ESPI_POS    11
0672 #define V_TP_IN_ESPI_POS(x) ((x) << S_TP_IN_ESPI_POS)
0673 #define F_TP_IN_ESPI_POS    V_TP_IN_ESPI_POS(1U)
0674 
0675 #define S_TP_IN_ESPI_CHECK_IP_CSUM    12
0676 #define V_TP_IN_ESPI_CHECK_IP_CSUM(x) ((x) << S_TP_IN_ESPI_CHECK_IP_CSUM)
0677 #define F_TP_IN_ESPI_CHECK_IP_CSUM    V_TP_IN_ESPI_CHECK_IP_CSUM(1U)
0678 
0679 #define S_TP_IN_ESPI_CHECK_TCP_CSUM    13
0680 #define V_TP_IN_ESPI_CHECK_TCP_CSUM(x) ((x) << S_TP_IN_ESPI_CHECK_TCP_CSUM)
0681 #define F_TP_IN_ESPI_CHECK_TCP_CSUM    V_TP_IN_ESPI_CHECK_TCP_CSUM(1U)
0682 
0683 #define S_OFFLOAD_DISABLE    14
0684 #define V_OFFLOAD_DISABLE(x) ((x) << S_OFFLOAD_DISABLE)
0685 #define F_OFFLOAD_DISABLE    V_OFFLOAD_DISABLE(1U)
0686 
0687 #define A_TP_OUT_CONFIG 0x304
0688 
0689 #define S_TP_OUT_C_ETH    0
0690 #define V_TP_OUT_C_ETH(x) ((x) << S_TP_OUT_C_ETH)
0691 #define F_TP_OUT_C_ETH    V_TP_OUT_C_ETH(1U)
0692 
0693 #define S_TP_OUT_CSPI_CPL    2
0694 #define V_TP_OUT_CSPI_CPL(x) ((x) << S_TP_OUT_CSPI_CPL)
0695 #define F_TP_OUT_CSPI_CPL    V_TP_OUT_CSPI_CPL(1U)
0696 
0697 #define S_TP_OUT_CSPI_POS    3
0698 #define V_TP_OUT_CSPI_POS(x) ((x) << S_TP_OUT_CSPI_POS)
0699 #define F_TP_OUT_CSPI_POS    V_TP_OUT_CSPI_POS(1U)
0700 
0701 #define S_TP_OUT_CSPI_GENERATE_IP_CSUM    4
0702 #define V_TP_OUT_CSPI_GENERATE_IP_CSUM(x) ((x) << S_TP_OUT_CSPI_GENERATE_IP_CSUM)
0703 #define F_TP_OUT_CSPI_GENERATE_IP_CSUM    V_TP_OUT_CSPI_GENERATE_IP_CSUM(1U)
0704 
0705 #define S_TP_OUT_CSPI_GENERATE_TCP_CSUM    5
0706 #define V_TP_OUT_CSPI_GENERATE_TCP_CSUM(x) ((x) << S_TP_OUT_CSPI_GENERATE_TCP_CSUM)
0707 #define F_TP_OUT_CSPI_GENERATE_TCP_CSUM    V_TP_OUT_CSPI_GENERATE_TCP_CSUM(1U)
0708 
0709 #define S_TP_OUT_ESPI_ETHERNET    6
0710 #define V_TP_OUT_ESPI_ETHERNET(x) ((x) << S_TP_OUT_ESPI_ETHERNET)
0711 #define F_TP_OUT_ESPI_ETHERNET    V_TP_OUT_ESPI_ETHERNET(1U)
0712 
0713 #define S_TP_OUT_ESPI_TAG_ETHERNET    7
0714 #define V_TP_OUT_ESPI_TAG_ETHERNET(x) ((x) << S_TP_OUT_ESPI_TAG_ETHERNET)
0715 #define F_TP_OUT_ESPI_TAG_ETHERNET    V_TP_OUT_ESPI_TAG_ETHERNET(1U)
0716 
0717 #define S_TP_OUT_ESPI_CPL    8
0718 #define V_TP_OUT_ESPI_CPL(x) ((x) << S_TP_OUT_ESPI_CPL)
0719 #define F_TP_OUT_ESPI_CPL    V_TP_OUT_ESPI_CPL(1U)
0720 
0721 #define S_TP_OUT_ESPI_POS    9
0722 #define V_TP_OUT_ESPI_POS(x) ((x) << S_TP_OUT_ESPI_POS)
0723 #define F_TP_OUT_ESPI_POS    V_TP_OUT_ESPI_POS(1U)
0724 
0725 #define S_TP_OUT_ESPI_GENERATE_IP_CSUM    10
0726 #define V_TP_OUT_ESPI_GENERATE_IP_CSUM(x) ((x) << S_TP_OUT_ESPI_GENERATE_IP_CSUM)
0727 #define F_TP_OUT_ESPI_GENERATE_IP_CSUM    V_TP_OUT_ESPI_GENERATE_IP_CSUM(1U)
0728 
0729 #define S_TP_OUT_ESPI_GENERATE_TCP_CSUM    11
0730 #define V_TP_OUT_ESPI_GENERATE_TCP_CSUM(x) ((x) << S_TP_OUT_ESPI_GENERATE_TCP_CSUM)
0731 #define F_TP_OUT_ESPI_GENERATE_TCP_CSUM    V_TP_OUT_ESPI_GENERATE_TCP_CSUM(1U)
0732 
0733 #define A_TP_GLOBAL_CONFIG 0x308
0734 
0735 #define S_IP_TTL    0
0736 #define M_IP_TTL    0xff
0737 #define V_IP_TTL(x) ((x) << S_IP_TTL)
0738 #define G_IP_TTL(x) (((x) >> S_IP_TTL) & M_IP_TTL)
0739 
0740 #define S_TCAM_SERVER_REGION_USAGE    8
0741 #define M_TCAM_SERVER_REGION_USAGE    0x3
0742 #define V_TCAM_SERVER_REGION_USAGE(x) ((x) << S_TCAM_SERVER_REGION_USAGE)
0743 #define G_TCAM_SERVER_REGION_USAGE(x) (((x) >> S_TCAM_SERVER_REGION_USAGE) & M_TCAM_SERVER_REGION_USAGE)
0744 
0745 #define S_QOS_MAPPING    10
0746 #define V_QOS_MAPPING(x) ((x) << S_QOS_MAPPING)
0747 #define F_QOS_MAPPING    V_QOS_MAPPING(1U)
0748 
0749 #define S_TCP_CSUM    11
0750 #define V_TCP_CSUM(x) ((x) << S_TCP_CSUM)
0751 #define F_TCP_CSUM    V_TCP_CSUM(1U)
0752 
0753 #define S_UDP_CSUM    12
0754 #define V_UDP_CSUM(x) ((x) << S_UDP_CSUM)
0755 #define F_UDP_CSUM    V_UDP_CSUM(1U)
0756 
0757 #define S_IP_CSUM    13
0758 #define V_IP_CSUM(x) ((x) << S_IP_CSUM)
0759 #define F_IP_CSUM    V_IP_CSUM(1U)
0760 
0761 #define S_IP_ID_SPLIT    14
0762 #define V_IP_ID_SPLIT(x) ((x) << S_IP_ID_SPLIT)
0763 #define F_IP_ID_SPLIT    V_IP_ID_SPLIT(1U)
0764 
0765 #define S_PATH_MTU    15
0766 #define V_PATH_MTU(x) ((x) << S_PATH_MTU)
0767 #define F_PATH_MTU    V_PATH_MTU(1U)
0768 
0769 #define S_5TUPLE_LOOKUP    17
0770 #define M_5TUPLE_LOOKUP    0x3
0771 #define V_5TUPLE_LOOKUP(x) ((x) << S_5TUPLE_LOOKUP)
0772 #define G_5TUPLE_LOOKUP(x) (((x) >> S_5TUPLE_LOOKUP) & M_5TUPLE_LOOKUP)
0773 
0774 #define S_IP_FRAGMENT_DROP    19
0775 #define V_IP_FRAGMENT_DROP(x) ((x) << S_IP_FRAGMENT_DROP)
0776 #define F_IP_FRAGMENT_DROP    V_IP_FRAGMENT_DROP(1U)
0777 
0778 #define S_PING_DROP    20
0779 #define V_PING_DROP(x) ((x) << S_PING_DROP)
0780 #define F_PING_DROP    V_PING_DROP(1U)
0781 
0782 #define S_PROTECT_MODE    21
0783 #define V_PROTECT_MODE(x) ((x) << S_PROTECT_MODE)
0784 #define F_PROTECT_MODE    V_PROTECT_MODE(1U)
0785 
0786 #define S_SYN_COOKIE_ALGORITHM    22
0787 #define V_SYN_COOKIE_ALGORITHM(x) ((x) << S_SYN_COOKIE_ALGORITHM)
0788 #define F_SYN_COOKIE_ALGORITHM    V_SYN_COOKIE_ALGORITHM(1U)
0789 
0790 #define S_ATTACK_FILTER    23
0791 #define V_ATTACK_FILTER(x) ((x) << S_ATTACK_FILTER)
0792 #define F_ATTACK_FILTER    V_ATTACK_FILTER(1U)
0793 
0794 #define S_INTERFACE_TYPE    24
0795 #define V_INTERFACE_TYPE(x) ((x) << S_INTERFACE_TYPE)
0796 #define F_INTERFACE_TYPE    V_INTERFACE_TYPE(1U)
0797 
0798 #define S_DISABLE_RX_FLOW_CONTROL    25
0799 #define V_DISABLE_RX_FLOW_CONTROL(x) ((x) << S_DISABLE_RX_FLOW_CONTROL)
0800 #define F_DISABLE_RX_FLOW_CONTROL    V_DISABLE_RX_FLOW_CONTROL(1U)
0801 
0802 #define S_SYN_COOKIE_PARAMETER    26
0803 #define M_SYN_COOKIE_PARAMETER    0x3f
0804 #define V_SYN_COOKIE_PARAMETER(x) ((x) << S_SYN_COOKIE_PARAMETER)
0805 #define G_SYN_COOKIE_PARAMETER(x) (((x) >> S_SYN_COOKIE_PARAMETER) & M_SYN_COOKIE_PARAMETER)
0806 
0807 #define A_TP_GLOBAL_RX_CREDITS 0x30c
0808 #define A_TP_CM_SIZE 0x310
0809 #define A_TP_CM_MM_BASE 0x314
0810 
0811 #define S_CM_MEMMGR_BASE    0
0812 #define M_CM_MEMMGR_BASE    0xfffffff
0813 #define V_CM_MEMMGR_BASE(x) ((x) << S_CM_MEMMGR_BASE)
0814 #define G_CM_MEMMGR_BASE(x) (((x) >> S_CM_MEMMGR_BASE) & M_CM_MEMMGR_BASE)
0815 
0816 #define A_TP_CM_TIMER_BASE 0x318
0817 
0818 #define S_CM_TIMER_BASE    0
0819 #define M_CM_TIMER_BASE    0xfffffff
0820 #define V_CM_TIMER_BASE(x) ((x) << S_CM_TIMER_BASE)
0821 #define G_CM_TIMER_BASE(x) (((x) >> S_CM_TIMER_BASE) & M_CM_TIMER_BASE)
0822 
0823 #define A_TP_PM_SIZE 0x31c
0824 #define A_TP_PM_TX_BASE 0x320
0825 #define A_TP_PM_DEFRAG_BASE 0x324
0826 #define A_TP_PM_RX_BASE 0x328
0827 #define A_TP_PM_RX_PG_SIZE 0x32c
0828 #define A_TP_PM_RX_MAX_PGS 0x330
0829 #define A_TP_PM_TX_PG_SIZE 0x334
0830 #define A_TP_PM_TX_MAX_PGS 0x338
0831 #define A_TP_TCP_OPTIONS 0x340
0832 
0833 #define S_TIMESTAMP    0
0834 #define M_TIMESTAMP    0x3
0835 #define V_TIMESTAMP(x) ((x) << S_TIMESTAMP)
0836 #define G_TIMESTAMP(x) (((x) >> S_TIMESTAMP) & M_TIMESTAMP)
0837 
0838 #define S_WINDOW_SCALE    2
0839 #define M_WINDOW_SCALE    0x3
0840 #define V_WINDOW_SCALE(x) ((x) << S_WINDOW_SCALE)
0841 #define G_WINDOW_SCALE(x) (((x) >> S_WINDOW_SCALE) & M_WINDOW_SCALE)
0842 
0843 #define S_SACK    4
0844 #define M_SACK    0x3
0845 #define V_SACK(x) ((x) << S_SACK)
0846 #define G_SACK(x) (((x) >> S_SACK) & M_SACK)
0847 
0848 #define S_ECN    6
0849 #define M_ECN    0x3
0850 #define V_ECN(x) ((x) << S_ECN)
0851 #define G_ECN(x) (((x) >> S_ECN) & M_ECN)
0852 
0853 #define S_SACK_ALGORITHM    8
0854 #define M_SACK_ALGORITHM    0x3
0855 #define V_SACK_ALGORITHM(x) ((x) << S_SACK_ALGORITHM)
0856 #define G_SACK_ALGORITHM(x) (((x) >> S_SACK_ALGORITHM) & M_SACK_ALGORITHM)
0857 
0858 #define S_MSS    10
0859 #define V_MSS(x) ((x) << S_MSS)
0860 #define F_MSS    V_MSS(1U)
0861 
0862 #define S_DEFAULT_PEER_MSS    16
0863 #define M_DEFAULT_PEER_MSS    0xffff
0864 #define V_DEFAULT_PEER_MSS(x) ((x) << S_DEFAULT_PEER_MSS)
0865 #define G_DEFAULT_PEER_MSS(x) (((x) >> S_DEFAULT_PEER_MSS) & M_DEFAULT_PEER_MSS)
0866 
0867 #define A_TP_DACK_CONFIG 0x344
0868 
0869 #define S_DACK_MODE    0
0870 #define V_DACK_MODE(x) ((x) << S_DACK_MODE)
0871 #define F_DACK_MODE    V_DACK_MODE(1U)
0872 
0873 #define S_DACK_AUTO_MGMT    1
0874 #define V_DACK_AUTO_MGMT(x) ((x) << S_DACK_AUTO_MGMT)
0875 #define F_DACK_AUTO_MGMT    V_DACK_AUTO_MGMT(1U)
0876 
0877 #define S_DACK_AUTO_CAREFUL    2
0878 #define V_DACK_AUTO_CAREFUL(x) ((x) << S_DACK_AUTO_CAREFUL)
0879 #define F_DACK_AUTO_CAREFUL    V_DACK_AUTO_CAREFUL(1U)
0880 
0881 #define S_DACK_MSS_SELECTOR    3
0882 #define M_DACK_MSS_SELECTOR    0x3
0883 #define V_DACK_MSS_SELECTOR(x) ((x) << S_DACK_MSS_SELECTOR)
0884 #define G_DACK_MSS_SELECTOR(x) (((x) >> S_DACK_MSS_SELECTOR) & M_DACK_MSS_SELECTOR)
0885 
0886 #define S_DACK_BYTE_THRESHOLD    5
0887 #define M_DACK_BYTE_THRESHOLD    0xfffff
0888 #define V_DACK_BYTE_THRESHOLD(x) ((x) << S_DACK_BYTE_THRESHOLD)
0889 #define G_DACK_BYTE_THRESHOLD(x) (((x) >> S_DACK_BYTE_THRESHOLD) & M_DACK_BYTE_THRESHOLD)
0890 
0891 #define A_TP_PC_CONFIG 0x348
0892 
0893 #define S_TP_ACCESS_LATENCY    0
0894 #define M_TP_ACCESS_LATENCY    0xf
0895 #define V_TP_ACCESS_LATENCY(x) ((x) << S_TP_ACCESS_LATENCY)
0896 #define G_TP_ACCESS_LATENCY(x) (((x) >> S_TP_ACCESS_LATENCY) & M_TP_ACCESS_LATENCY)
0897 
0898 #define S_HELD_FIN_DISABLE    4
0899 #define V_HELD_FIN_DISABLE(x) ((x) << S_HELD_FIN_DISABLE)
0900 #define F_HELD_FIN_DISABLE    V_HELD_FIN_DISABLE(1U)
0901 
0902 #define S_DDP_FC_ENABLE    5
0903 #define V_DDP_FC_ENABLE(x) ((x) << S_DDP_FC_ENABLE)
0904 #define F_DDP_FC_ENABLE    V_DDP_FC_ENABLE(1U)
0905 
0906 #define S_RDMA_ERR_ENABLE    6
0907 #define V_RDMA_ERR_ENABLE(x) ((x) << S_RDMA_ERR_ENABLE)
0908 #define F_RDMA_ERR_ENABLE    V_RDMA_ERR_ENABLE(1U)
0909 
0910 #define S_FAST_PDU_DELIVERY    7
0911 #define V_FAST_PDU_DELIVERY(x) ((x) << S_FAST_PDU_DELIVERY)
0912 #define F_FAST_PDU_DELIVERY    V_FAST_PDU_DELIVERY(1U)
0913 
0914 #define S_CLEAR_FIN    8
0915 #define V_CLEAR_FIN(x) ((x) << S_CLEAR_FIN)
0916 #define F_CLEAR_FIN    V_CLEAR_FIN(1U)
0917 
0918 #define S_DIS_TX_FILL_WIN_PUSH    12
0919 #define V_DIS_TX_FILL_WIN_PUSH(x) ((x) << S_DIS_TX_FILL_WIN_PUSH)
0920 #define F_DIS_TX_FILL_WIN_PUSH    V_DIS_TX_FILL_WIN_PUSH(1U)
0921 
0922 #define S_TP_PC_REV    30
0923 #define M_TP_PC_REV    0x3
0924 #define V_TP_PC_REV(x) ((x) << S_TP_PC_REV)
0925 #define G_TP_PC_REV(x) (((x) >> S_TP_PC_REV) & M_TP_PC_REV)
0926 
0927 #define A_TP_BACKOFF0 0x350
0928 
0929 #define S_ELEMENT0    0
0930 #define M_ELEMENT0    0xff
0931 #define V_ELEMENT0(x) ((x) << S_ELEMENT0)
0932 #define G_ELEMENT0(x) (((x) >> S_ELEMENT0) & M_ELEMENT0)
0933 
0934 #define S_ELEMENT1    8
0935 #define M_ELEMENT1    0xff
0936 #define V_ELEMENT1(x) ((x) << S_ELEMENT1)
0937 #define G_ELEMENT1(x) (((x) >> S_ELEMENT1) & M_ELEMENT1)
0938 
0939 #define S_ELEMENT2    16
0940 #define M_ELEMENT2    0xff
0941 #define V_ELEMENT2(x) ((x) << S_ELEMENT2)
0942 #define G_ELEMENT2(x) (((x) >> S_ELEMENT2) & M_ELEMENT2)
0943 
0944 #define S_ELEMENT3    24
0945 #define M_ELEMENT3    0xff
0946 #define V_ELEMENT3(x) ((x) << S_ELEMENT3)
0947 #define G_ELEMENT3(x) (((x) >> S_ELEMENT3) & M_ELEMENT3)
0948 
0949 #define A_TP_BACKOFF1 0x354
0950 #define A_TP_BACKOFF2 0x358
0951 #define A_TP_BACKOFF3 0x35c
0952 #define A_TP_PARA_REG0 0x360
0953 
0954 #define S_VAR_MULT    0
0955 #define M_VAR_MULT    0xf
0956 #define V_VAR_MULT(x) ((x) << S_VAR_MULT)
0957 #define G_VAR_MULT(x) (((x) >> S_VAR_MULT) & M_VAR_MULT)
0958 
0959 #define S_VAR_GAIN    4
0960 #define M_VAR_GAIN    0xf
0961 #define V_VAR_GAIN(x) ((x) << S_VAR_GAIN)
0962 #define G_VAR_GAIN(x) (((x) >> S_VAR_GAIN) & M_VAR_GAIN)
0963 
0964 #define S_SRTT_GAIN    8
0965 #define M_SRTT_GAIN    0xf
0966 #define V_SRTT_GAIN(x) ((x) << S_SRTT_GAIN)
0967 #define G_SRTT_GAIN(x) (((x) >> S_SRTT_GAIN) & M_SRTT_GAIN)
0968 
0969 #define S_RTTVAR_INIT    12
0970 #define M_RTTVAR_INIT    0xf
0971 #define V_RTTVAR_INIT(x) ((x) << S_RTTVAR_INIT)
0972 #define G_RTTVAR_INIT(x) (((x) >> S_RTTVAR_INIT) & M_RTTVAR_INIT)
0973 
0974 #define S_DUP_THRESH    20
0975 #define M_DUP_THRESH    0xf
0976 #define V_DUP_THRESH(x) ((x) << S_DUP_THRESH)
0977 #define G_DUP_THRESH(x) (((x) >> S_DUP_THRESH) & M_DUP_THRESH)
0978 
0979 #define S_INIT_CONG_WIN    24
0980 #define M_INIT_CONG_WIN    0x7
0981 #define V_INIT_CONG_WIN(x) ((x) << S_INIT_CONG_WIN)
0982 #define G_INIT_CONG_WIN(x) (((x) >> S_INIT_CONG_WIN) & M_INIT_CONG_WIN)
0983 
0984 #define A_TP_PARA_REG1 0x364
0985 
0986 #define S_INITIAL_SLOW_START_THRESHOLD    0
0987 #define M_INITIAL_SLOW_START_THRESHOLD    0xffff
0988 #define V_INITIAL_SLOW_START_THRESHOLD(x) ((x) << S_INITIAL_SLOW_START_THRESHOLD)
0989 #define G_INITIAL_SLOW_START_THRESHOLD(x) (((x) >> S_INITIAL_SLOW_START_THRESHOLD) & M_INITIAL_SLOW_START_THRESHOLD)
0990 
0991 #define S_RECEIVE_BUFFER_SIZE    16
0992 #define M_RECEIVE_BUFFER_SIZE    0xffff
0993 #define V_RECEIVE_BUFFER_SIZE(x) ((x) << S_RECEIVE_BUFFER_SIZE)
0994 #define G_RECEIVE_BUFFER_SIZE(x) (((x) >> S_RECEIVE_BUFFER_SIZE) & M_RECEIVE_BUFFER_SIZE)
0995 
0996 #define A_TP_PARA_REG2 0x368
0997 
0998 #define S_RX_COALESCE_SIZE    0
0999 #define M_RX_COALESCE_SIZE    0xffff
1000 #define V_RX_COALESCE_SIZE(x) ((x) << S_RX_COALESCE_SIZE)
1001 #define G_RX_COALESCE_SIZE(x) (((x) >> S_RX_COALESCE_SIZE) & M_RX_COALESCE_SIZE)
1002 
1003 #define S_MAX_RX_SIZE    16
1004 #define M_MAX_RX_SIZE    0xffff
1005 #define V_MAX_RX_SIZE(x) ((x) << S_MAX_RX_SIZE)
1006 #define G_MAX_RX_SIZE(x) (((x) >> S_MAX_RX_SIZE) & M_MAX_RX_SIZE)
1007 
1008 #define A_TP_PARA_REG3 0x36c
1009 
1010 #define S_RX_COALESCING_PSH_DELIVER    0
1011 #define V_RX_COALESCING_PSH_DELIVER(x) ((x) << S_RX_COALESCING_PSH_DELIVER)
1012 #define F_RX_COALESCING_PSH_DELIVER    V_RX_COALESCING_PSH_DELIVER(1U)
1013 
1014 #define S_RX_COALESCING_ENABLE    1
1015 #define V_RX_COALESCING_ENABLE(x) ((x) << S_RX_COALESCING_ENABLE)
1016 #define F_RX_COALESCING_ENABLE    V_RX_COALESCING_ENABLE(1U)
1017 
1018 #define S_TAHOE_ENABLE    2
1019 #define V_TAHOE_ENABLE(x) ((x) << S_TAHOE_ENABLE)
1020 #define F_TAHOE_ENABLE    V_TAHOE_ENABLE(1U)
1021 
1022 #define S_MAX_REORDER_FRAGMENTS    12
1023 #define M_MAX_REORDER_FRAGMENTS    0x7
1024 #define V_MAX_REORDER_FRAGMENTS(x) ((x) << S_MAX_REORDER_FRAGMENTS)
1025 #define G_MAX_REORDER_FRAGMENTS(x) (((x) >> S_MAX_REORDER_FRAGMENTS) & M_MAX_REORDER_FRAGMENTS)
1026 
1027 #define A_TP_TIMER_RESOLUTION 0x390
1028 
1029 #define S_DELAYED_ACK_TIMER_RESOLUTION    0
1030 #define M_DELAYED_ACK_TIMER_RESOLUTION    0x3f
1031 #define V_DELAYED_ACK_TIMER_RESOLUTION(x) ((x) << S_DELAYED_ACK_TIMER_RESOLUTION)
1032 #define G_DELAYED_ACK_TIMER_RESOLUTION(x) (((x) >> S_DELAYED_ACK_TIMER_RESOLUTION) & M_DELAYED_ACK_TIMER_RESOLUTION)
1033 
1034 #define S_GENERIC_TIMER_RESOLUTION    16
1035 #define M_GENERIC_TIMER_RESOLUTION    0x3f
1036 #define V_GENERIC_TIMER_RESOLUTION(x) ((x) << S_GENERIC_TIMER_RESOLUTION)
1037 #define G_GENERIC_TIMER_RESOLUTION(x) (((x) >> S_GENERIC_TIMER_RESOLUTION) & M_GENERIC_TIMER_RESOLUTION)
1038 
1039 #define A_TP_2MSL 0x394
1040 
1041 #define S_2MSL    0
1042 #define M_2MSL    0x3fffffff
1043 #define V_2MSL(x) ((x) << S_2MSL)
1044 #define G_2MSL(x) (((x) >> S_2MSL) & M_2MSL)
1045 
1046 #define A_TP_RXT_MIN 0x398
1047 
1048 #define S_RETRANSMIT_TIMER_MIN    0
1049 #define M_RETRANSMIT_TIMER_MIN    0xffff
1050 #define V_RETRANSMIT_TIMER_MIN(x) ((x) << S_RETRANSMIT_TIMER_MIN)
1051 #define G_RETRANSMIT_TIMER_MIN(x) (((x) >> S_RETRANSMIT_TIMER_MIN) & M_RETRANSMIT_TIMER_MIN)
1052 
1053 #define A_TP_RXT_MAX 0x39c
1054 
1055 #define S_RETRANSMIT_TIMER_MAX    0
1056 #define M_RETRANSMIT_TIMER_MAX    0x3fffffff
1057 #define V_RETRANSMIT_TIMER_MAX(x) ((x) << S_RETRANSMIT_TIMER_MAX)
1058 #define G_RETRANSMIT_TIMER_MAX(x) (((x) >> S_RETRANSMIT_TIMER_MAX) & M_RETRANSMIT_TIMER_MAX)
1059 
1060 #define A_TP_PERS_MIN 0x3a0
1061 
1062 #define S_PERSIST_TIMER_MIN    0
1063 #define M_PERSIST_TIMER_MIN    0xffff
1064 #define V_PERSIST_TIMER_MIN(x) ((x) << S_PERSIST_TIMER_MIN)
1065 #define G_PERSIST_TIMER_MIN(x) (((x) >> S_PERSIST_TIMER_MIN) & M_PERSIST_TIMER_MIN)
1066 
1067 #define A_TP_PERS_MAX 0x3a4
1068 
1069 #define S_PERSIST_TIMER_MAX    0
1070 #define M_PERSIST_TIMER_MAX    0x3fffffff
1071 #define V_PERSIST_TIMER_MAX(x) ((x) << S_PERSIST_TIMER_MAX)
1072 #define G_PERSIST_TIMER_MAX(x) (((x) >> S_PERSIST_TIMER_MAX) & M_PERSIST_TIMER_MAX)
1073 
1074 #define A_TP_KEEP_IDLE 0x3ac
1075 
1076 #define S_KEEP_ALIVE_IDLE_TIME    0
1077 #define M_KEEP_ALIVE_IDLE_TIME    0x3fffffff
1078 #define V_KEEP_ALIVE_IDLE_TIME(x) ((x) << S_KEEP_ALIVE_IDLE_TIME)
1079 #define G_KEEP_ALIVE_IDLE_TIME(x) (((x) >> S_KEEP_ALIVE_IDLE_TIME) & M_KEEP_ALIVE_IDLE_TIME)
1080 
1081 #define A_TP_KEEP_INTVL 0x3b0
1082 
1083 #define S_KEEP_ALIVE_INTERVAL_TIME    0
1084 #define M_KEEP_ALIVE_INTERVAL_TIME    0x3fffffff
1085 #define V_KEEP_ALIVE_INTERVAL_TIME(x) ((x) << S_KEEP_ALIVE_INTERVAL_TIME)
1086 #define G_KEEP_ALIVE_INTERVAL_TIME(x) (((x) >> S_KEEP_ALIVE_INTERVAL_TIME) & M_KEEP_ALIVE_INTERVAL_TIME)
1087 
1088 #define A_TP_INIT_SRTT 0x3b4
1089 
1090 #define S_INITIAL_SRTT    0
1091 #define M_INITIAL_SRTT    0xffff
1092 #define V_INITIAL_SRTT(x) ((x) << S_INITIAL_SRTT)
1093 #define G_INITIAL_SRTT(x) (((x) >> S_INITIAL_SRTT) & M_INITIAL_SRTT)
1094 
1095 #define A_TP_DACK_TIME 0x3b8
1096 
1097 #define S_DELAYED_ACK_TIME    0
1098 #define M_DELAYED_ACK_TIME    0x7ff
1099 #define V_DELAYED_ACK_TIME(x) ((x) << S_DELAYED_ACK_TIME)
1100 #define G_DELAYED_ACK_TIME(x) (((x) >> S_DELAYED_ACK_TIME) & M_DELAYED_ACK_TIME)
1101 
1102 #define A_TP_FINWAIT2_TIME 0x3bc
1103 
1104 #define S_FINWAIT2_TIME    0
1105 #define M_FINWAIT2_TIME    0x3fffffff
1106 #define V_FINWAIT2_TIME(x) ((x) << S_FINWAIT2_TIME)
1107 #define G_FINWAIT2_TIME(x) (((x) >> S_FINWAIT2_TIME) & M_FINWAIT2_TIME)
1108 
1109 #define A_TP_FAST_FINWAIT2_TIME 0x3c0
1110 
1111 #define S_FAST_FINWAIT2_TIME    0
1112 #define M_FAST_FINWAIT2_TIME    0x3fffffff
1113 #define V_FAST_FINWAIT2_TIME(x) ((x) << S_FAST_FINWAIT2_TIME)
1114 #define G_FAST_FINWAIT2_TIME(x) (((x) >> S_FAST_FINWAIT2_TIME) & M_FAST_FINWAIT2_TIME)
1115 
1116 #define A_TP_SHIFT_CNT 0x3c4
1117 
1118 #define S_KEEPALIVE_MAX    0
1119 #define M_KEEPALIVE_MAX    0xff
1120 #define V_KEEPALIVE_MAX(x) ((x) << S_KEEPALIVE_MAX)
1121 #define G_KEEPALIVE_MAX(x) (((x) >> S_KEEPALIVE_MAX) & M_KEEPALIVE_MAX)
1122 
1123 #define S_WINDOWPROBE_MAX    8
1124 #define M_WINDOWPROBE_MAX    0xff
1125 #define V_WINDOWPROBE_MAX(x) ((x) << S_WINDOWPROBE_MAX)
1126 #define G_WINDOWPROBE_MAX(x) (((x) >> S_WINDOWPROBE_MAX) & M_WINDOWPROBE_MAX)
1127 
1128 #define S_RETRANSMISSION_MAX    16
1129 #define M_RETRANSMISSION_MAX    0xff
1130 #define V_RETRANSMISSION_MAX(x) ((x) << S_RETRANSMISSION_MAX)
1131 #define G_RETRANSMISSION_MAX(x) (((x) >> S_RETRANSMISSION_MAX) & M_RETRANSMISSION_MAX)
1132 
1133 #define S_SYN_MAX    24
1134 #define M_SYN_MAX    0xff
1135 #define V_SYN_MAX(x) ((x) << S_SYN_MAX)
1136 #define G_SYN_MAX(x) (((x) >> S_SYN_MAX) & M_SYN_MAX)
1137 
1138 #define A_TP_QOS_REG0 0x3e0
1139 
1140 #define S_L3_VALUE    0
1141 #define M_L3_VALUE    0x3f
1142 #define V_L3_VALUE(x) ((x) << S_L3_VALUE)
1143 #define G_L3_VALUE(x) (((x) >> S_L3_VALUE) & M_L3_VALUE)
1144 
1145 #define A_TP_QOS_REG1 0x3e4
1146 #define A_TP_QOS_REG2 0x3e8
1147 #define A_TP_QOS_REG3 0x3ec
1148 #define A_TP_QOS_REG4 0x3f0
1149 #define A_TP_QOS_REG5 0x3f4
1150 #define A_TP_QOS_REG6 0x3f8
1151 #define A_TP_QOS_REG7 0x3fc
1152 #define A_TP_MTU_REG0 0x404
1153 #define A_TP_MTU_REG1 0x408
1154 #define A_TP_MTU_REG2 0x40c
1155 #define A_TP_MTU_REG3 0x410
1156 #define A_TP_MTU_REG4 0x414
1157 #define A_TP_MTU_REG5 0x418
1158 #define A_TP_MTU_REG6 0x41c
1159 #define A_TP_MTU_REG7 0x420
1160 #define A_TP_RESET 0x44c
1161 
1162 #define S_TP_RESET    0
1163 #define V_TP_RESET(x) ((x) << S_TP_RESET)
1164 #define F_TP_RESET    V_TP_RESET(1U)
1165 
1166 #define S_CM_MEMMGR_INIT    1
1167 #define V_CM_MEMMGR_INIT(x) ((x) << S_CM_MEMMGR_INIT)
1168 #define F_CM_MEMMGR_INIT    V_CM_MEMMGR_INIT(1U)
1169 
1170 #define A_TP_MIB_INDEX 0x450
1171 #define A_TP_MIB_DATA 0x454
1172 #define A_TP_SYNC_TIME_HI 0x458
1173 #define A_TP_SYNC_TIME_LO 0x45c
1174 #define A_TP_CM_MM_RX_FLST_BASE 0x460
1175 
1176 #define S_CM_MEMMGR_RX_FREE_LIST_BASE    0
1177 #define M_CM_MEMMGR_RX_FREE_LIST_BASE    0xfffffff
1178 #define V_CM_MEMMGR_RX_FREE_LIST_BASE(x) ((x) << S_CM_MEMMGR_RX_FREE_LIST_BASE)
1179 #define G_CM_MEMMGR_RX_FREE_LIST_BASE(x) (((x) >> S_CM_MEMMGR_RX_FREE_LIST_BASE) & M_CM_MEMMGR_RX_FREE_LIST_BASE)
1180 
1181 #define A_TP_CM_MM_TX_FLST_BASE 0x464
1182 
1183 #define S_CM_MEMMGR_TX_FREE_LIST_BASE    0
1184 #define M_CM_MEMMGR_TX_FREE_LIST_BASE    0xfffffff
1185 #define V_CM_MEMMGR_TX_FREE_LIST_BASE(x) ((x) << S_CM_MEMMGR_TX_FREE_LIST_BASE)
1186 #define G_CM_MEMMGR_TX_FREE_LIST_BASE(x) (((x) >> S_CM_MEMMGR_TX_FREE_LIST_BASE) & M_CM_MEMMGR_TX_FREE_LIST_BASE)
1187 
1188 #define A_TP_CM_MM_P_FLST_BASE 0x468
1189 
1190 #define S_CM_MEMMGR_PSTRUCT_FREE_LIST_BASE    0
1191 #define M_CM_MEMMGR_PSTRUCT_FREE_LIST_BASE    0xfffffff
1192 #define V_CM_MEMMGR_PSTRUCT_FREE_LIST_BASE(x) ((x) << S_CM_MEMMGR_PSTRUCT_FREE_LIST_BASE)
1193 #define G_CM_MEMMGR_PSTRUCT_FREE_LIST_BASE(x) (((x) >> S_CM_MEMMGR_PSTRUCT_FREE_LIST_BASE) & M_CM_MEMMGR_PSTRUCT_FREE_LIST_BASE)
1194 
1195 #define A_TP_CM_MM_MAX_P 0x46c
1196 
1197 #define S_CM_MEMMGR_MAX_PSTRUCT    0
1198 #define M_CM_MEMMGR_MAX_PSTRUCT    0xfffffff
1199 #define V_CM_MEMMGR_MAX_PSTRUCT(x) ((x) << S_CM_MEMMGR_MAX_PSTRUCT)
1200 #define G_CM_MEMMGR_MAX_PSTRUCT(x) (((x) >> S_CM_MEMMGR_MAX_PSTRUCT) & M_CM_MEMMGR_MAX_PSTRUCT)
1201 
1202 #define A_TP_INT_ENABLE 0x470
1203 
1204 #define S_TX_FREE_LIST_EMPTY    0
1205 #define V_TX_FREE_LIST_EMPTY(x) ((x) << S_TX_FREE_LIST_EMPTY)
1206 #define F_TX_FREE_LIST_EMPTY    V_TX_FREE_LIST_EMPTY(1U)
1207 
1208 #define S_RX_FREE_LIST_EMPTY    1
1209 #define V_RX_FREE_LIST_EMPTY(x) ((x) << S_RX_FREE_LIST_EMPTY)
1210 #define F_RX_FREE_LIST_EMPTY    V_RX_FREE_LIST_EMPTY(1U)
1211 
1212 #define A_TP_INT_CAUSE 0x474
1213 #define A_TP_TIMER_SEPARATOR 0x4a4
1214 
1215 #define S_DISABLE_PAST_TIMER_INSERTION    0
1216 #define V_DISABLE_PAST_TIMER_INSERTION(x) ((x) << S_DISABLE_PAST_TIMER_INSERTION)
1217 #define F_DISABLE_PAST_TIMER_INSERTION    V_DISABLE_PAST_TIMER_INSERTION(1U)
1218 
1219 #define S_MODULATION_TIMER_SEPARATOR    1
1220 #define M_MODULATION_TIMER_SEPARATOR    0x7fff
1221 #define V_MODULATION_TIMER_SEPARATOR(x) ((x) << S_MODULATION_TIMER_SEPARATOR)
1222 #define G_MODULATION_TIMER_SEPARATOR(x) (((x) >> S_MODULATION_TIMER_SEPARATOR) & M_MODULATION_TIMER_SEPARATOR)
1223 
1224 #define S_GLOBAL_TIMER_SEPARATOR    16
1225 #define M_GLOBAL_TIMER_SEPARATOR    0xffff
1226 #define V_GLOBAL_TIMER_SEPARATOR(x) ((x) << S_GLOBAL_TIMER_SEPARATOR)
1227 #define G_GLOBAL_TIMER_SEPARATOR(x) (((x) >> S_GLOBAL_TIMER_SEPARATOR) & M_GLOBAL_TIMER_SEPARATOR)
1228 
1229 #define A_TP_CM_FC_MODE 0x4b0
1230 #define A_TP_PC_CONGESTION_CNTL 0x4b4
1231 #define A_TP_TX_DROP_CONFIG 0x4b8
1232 
1233 #define S_ENABLE_TX_DROP    31
1234 #define V_ENABLE_TX_DROP(x) ((x) << S_ENABLE_TX_DROP)
1235 #define F_ENABLE_TX_DROP    V_ENABLE_TX_DROP(1U)
1236 
1237 #define S_ENABLE_TX_ERROR    30
1238 #define V_ENABLE_TX_ERROR(x) ((x) << S_ENABLE_TX_ERROR)
1239 #define F_ENABLE_TX_ERROR    V_ENABLE_TX_ERROR(1U)
1240 
1241 #define S_DROP_TICKS_CNT    4
1242 #define M_DROP_TICKS_CNT    0x3ffffff
1243 #define V_DROP_TICKS_CNT(x) ((x) << S_DROP_TICKS_CNT)
1244 #define G_DROP_TICKS_CNT(x) (((x) >> S_DROP_TICKS_CNT) & M_DROP_TICKS_CNT)
1245 
1246 #define S_NUM_PKTS_DROPPED    0
1247 #define M_NUM_PKTS_DROPPED    0xf
1248 #define V_NUM_PKTS_DROPPED(x) ((x) << S_NUM_PKTS_DROPPED)
1249 #define G_NUM_PKTS_DROPPED(x) (((x) >> S_NUM_PKTS_DROPPED) & M_NUM_PKTS_DROPPED)
1250 
1251 #define A_TP_TX_DROP_COUNT 0x4bc
1252 
1253 /* RAT registers */
1254 #define A_RAT_ROUTE_CONTROL 0x580
1255 
1256 #define S_USE_ROUTE_TABLE    0
1257 #define V_USE_ROUTE_TABLE(x) ((x) << S_USE_ROUTE_TABLE)
1258 #define F_USE_ROUTE_TABLE    V_USE_ROUTE_TABLE(1U)
1259 
1260 #define S_ENABLE_CSPI    1
1261 #define V_ENABLE_CSPI(x) ((x) << S_ENABLE_CSPI)
1262 #define F_ENABLE_CSPI    V_ENABLE_CSPI(1U)
1263 
1264 #define S_ENABLE_PCIX    2
1265 #define V_ENABLE_PCIX(x) ((x) << S_ENABLE_PCIX)
1266 #define F_ENABLE_PCIX    V_ENABLE_PCIX(1U)
1267 
1268 #define A_RAT_ROUTE_TABLE_INDEX 0x584
1269 
1270 #define S_ROUTE_TABLE_INDEX    0
1271 #define M_ROUTE_TABLE_INDEX    0xf
1272 #define V_ROUTE_TABLE_INDEX(x) ((x) << S_ROUTE_TABLE_INDEX)
1273 #define G_ROUTE_TABLE_INDEX(x) (((x) >> S_ROUTE_TABLE_INDEX) & M_ROUTE_TABLE_INDEX)
1274 
1275 #define A_RAT_ROUTE_TABLE_DATA 0x588
1276 #define A_RAT_NO_ROUTE 0x58c
1277 
1278 #define S_CPL_OPCODE    0
1279 #define M_CPL_OPCODE    0xff
1280 #define V_CPL_OPCODE(x) ((x) << S_CPL_OPCODE)
1281 #define G_CPL_OPCODE(x) (((x) >> S_CPL_OPCODE) & M_CPL_OPCODE)
1282 
1283 #define A_RAT_INTR_ENABLE 0x590
1284 
1285 #define S_ZEROROUTEERROR    0
1286 #define V_ZEROROUTEERROR(x) ((x) << S_ZEROROUTEERROR)
1287 #define F_ZEROROUTEERROR    V_ZEROROUTEERROR(1U)
1288 
1289 #define S_CSPIFRAMINGERROR    1
1290 #define V_CSPIFRAMINGERROR(x) ((x) << S_CSPIFRAMINGERROR)
1291 #define F_CSPIFRAMINGERROR    V_CSPIFRAMINGERROR(1U)
1292 
1293 #define S_SGEFRAMINGERROR    2
1294 #define V_SGEFRAMINGERROR(x) ((x) << S_SGEFRAMINGERROR)
1295 #define F_SGEFRAMINGERROR    V_SGEFRAMINGERROR(1U)
1296 
1297 #define S_TPFRAMINGERROR    3
1298 #define V_TPFRAMINGERROR(x) ((x) << S_TPFRAMINGERROR)
1299 #define F_TPFRAMINGERROR    V_TPFRAMINGERROR(1U)
1300 
1301 #define A_RAT_INTR_CAUSE 0x594
1302 
1303 /* CSPI registers */
1304 #define A_CSPI_RX_AE_WM 0x810
1305 #define A_CSPI_RX_AF_WM 0x814
1306 #define A_CSPI_CALENDAR_LEN 0x818
1307 
1308 #define S_CALENDARLENGTH    0
1309 #define M_CALENDARLENGTH    0xffff
1310 #define V_CALENDARLENGTH(x) ((x) << S_CALENDARLENGTH)
1311 #define G_CALENDARLENGTH(x) (((x) >> S_CALENDARLENGTH) & M_CALENDARLENGTH)
1312 
1313 #define A_CSPI_FIFO_STATUS_ENABLE 0x820
1314 
1315 #define S_FIFOSTATUSENABLE    0
1316 #define V_FIFOSTATUSENABLE(x) ((x) << S_FIFOSTATUSENABLE)
1317 #define F_FIFOSTATUSENABLE    V_FIFOSTATUSENABLE(1U)
1318 
1319 #define A_CSPI_MAXBURST1_MAXBURST2 0x828
1320 
1321 #define S_MAXBURST1    0
1322 #define M_MAXBURST1    0xffff
1323 #define V_MAXBURST1(x) ((x) << S_MAXBURST1)
1324 #define G_MAXBURST1(x) (((x) >> S_MAXBURST1) & M_MAXBURST1)
1325 
1326 #define S_MAXBURST2    16
1327 #define M_MAXBURST2    0xffff
1328 #define V_MAXBURST2(x) ((x) << S_MAXBURST2)
1329 #define G_MAXBURST2(x) (((x) >> S_MAXBURST2) & M_MAXBURST2)
1330 
1331 #define A_CSPI_TRAIN 0x82c
1332 
1333 #define S_CSPI_TRAIN_ALPHA    0
1334 #define M_CSPI_TRAIN_ALPHA    0xffff
1335 #define V_CSPI_TRAIN_ALPHA(x) ((x) << S_CSPI_TRAIN_ALPHA)
1336 #define G_CSPI_TRAIN_ALPHA(x) (((x) >> S_CSPI_TRAIN_ALPHA) & M_CSPI_TRAIN_ALPHA)
1337 
1338 #define S_CSPI_TRAIN_DATA_MAXT    16
1339 #define M_CSPI_TRAIN_DATA_MAXT    0xffff
1340 #define V_CSPI_TRAIN_DATA_MAXT(x) ((x) << S_CSPI_TRAIN_DATA_MAXT)
1341 #define G_CSPI_TRAIN_DATA_MAXT(x) (((x) >> S_CSPI_TRAIN_DATA_MAXT) & M_CSPI_TRAIN_DATA_MAXT)
1342 
1343 #define A_CSPI_INTR_STATUS 0x848
1344 
1345 #define S_DIP4ERR    0
1346 #define V_DIP4ERR(x) ((x) << S_DIP4ERR)
1347 #define F_DIP4ERR    V_DIP4ERR(1U)
1348 
1349 #define S_RXDROP    1
1350 #define V_RXDROP(x) ((x) << S_RXDROP)
1351 #define F_RXDROP    V_RXDROP(1U)
1352 
1353 #define S_TXDROP    2
1354 #define V_TXDROP(x) ((x) << S_TXDROP)
1355 #define F_TXDROP    V_TXDROP(1U)
1356 
1357 #define S_RXOVERFLOW    3
1358 #define V_RXOVERFLOW(x) ((x) << S_RXOVERFLOW)
1359 #define F_RXOVERFLOW    V_RXOVERFLOW(1U)
1360 
1361 #define S_RAMPARITYERR    4
1362 #define V_RAMPARITYERR(x) ((x) << S_RAMPARITYERR)
1363 #define F_RAMPARITYERR    V_RAMPARITYERR(1U)
1364 
1365 #define A_CSPI_INTR_ENABLE 0x84c
1366 
1367 /* ESPI registers */
1368 #define A_ESPI_SCH_TOKEN0 0x880
1369 
1370 #define S_SCHTOKEN0    0
1371 #define M_SCHTOKEN0    0xffff
1372 #define V_SCHTOKEN0(x) ((x) << S_SCHTOKEN0)
1373 #define G_SCHTOKEN0(x) (((x) >> S_SCHTOKEN0) & M_SCHTOKEN0)
1374 
1375 #define A_ESPI_SCH_TOKEN1 0x884
1376 
1377 #define S_SCHTOKEN1    0
1378 #define M_SCHTOKEN1    0xffff
1379 #define V_SCHTOKEN1(x) ((x) << S_SCHTOKEN1)
1380 #define G_SCHTOKEN1(x) (((x) >> S_SCHTOKEN1) & M_SCHTOKEN1)
1381 
1382 #define A_ESPI_SCH_TOKEN2 0x888
1383 
1384 #define S_SCHTOKEN2    0
1385 #define M_SCHTOKEN2    0xffff
1386 #define V_SCHTOKEN2(x) ((x) << S_SCHTOKEN2)
1387 #define G_SCHTOKEN2(x) (((x) >> S_SCHTOKEN2) & M_SCHTOKEN2)
1388 
1389 #define A_ESPI_SCH_TOKEN3 0x88c
1390 
1391 #define S_SCHTOKEN3    0
1392 #define M_SCHTOKEN3    0xffff
1393 #define V_SCHTOKEN3(x) ((x) << S_SCHTOKEN3)
1394 #define G_SCHTOKEN3(x) (((x) >> S_SCHTOKEN3) & M_SCHTOKEN3)
1395 
1396 #define A_ESPI_RX_FIFO_ALMOST_EMPTY_WATERMARK 0x890
1397 
1398 #define S_ALMOSTEMPTY    0
1399 #define M_ALMOSTEMPTY    0xffff
1400 #define V_ALMOSTEMPTY(x) ((x) << S_ALMOSTEMPTY)
1401 #define G_ALMOSTEMPTY(x) (((x) >> S_ALMOSTEMPTY) & M_ALMOSTEMPTY)
1402 
1403 #define A_ESPI_RX_FIFO_ALMOST_FULL_WATERMARK 0x894
1404 
1405 #define S_ALMOSTFULL    0
1406 #define M_ALMOSTFULL    0xffff
1407 #define V_ALMOSTFULL(x) ((x) << S_ALMOSTFULL)
1408 #define G_ALMOSTFULL(x) (((x) >> S_ALMOSTFULL) & M_ALMOSTFULL)
1409 
1410 #define A_ESPI_CALENDAR_LENGTH 0x898
1411 #define A_PORT_CONFIG 0x89c
1412 
1413 #define S_RX_NPORTS    0
1414 #define M_RX_NPORTS    0xff
1415 #define V_RX_NPORTS(x) ((x) << S_RX_NPORTS)
1416 #define G_RX_NPORTS(x) (((x) >> S_RX_NPORTS) & M_RX_NPORTS)
1417 
1418 #define S_TX_NPORTS    8
1419 #define M_TX_NPORTS    0xff
1420 #define V_TX_NPORTS(x) ((x) << S_TX_NPORTS)
1421 #define G_TX_NPORTS(x) (((x) >> S_TX_NPORTS) & M_TX_NPORTS)
1422 
1423 #define A_ESPI_FIFO_STATUS_ENABLE 0x8a0
1424 
1425 #define S_RXSTATUSENABLE    0
1426 #define V_RXSTATUSENABLE(x) ((x) << S_RXSTATUSENABLE)
1427 #define F_RXSTATUSENABLE    V_RXSTATUSENABLE(1U)
1428 
1429 #define S_TXDROPENABLE    1
1430 #define V_TXDROPENABLE(x) ((x) << S_TXDROPENABLE)
1431 #define F_TXDROPENABLE    V_TXDROPENABLE(1U)
1432 
1433 #define S_RXENDIANMODE    2
1434 #define V_RXENDIANMODE(x) ((x) << S_RXENDIANMODE)
1435 #define F_RXENDIANMODE    V_RXENDIANMODE(1U)
1436 
1437 #define S_TXENDIANMODE    3
1438 #define V_TXENDIANMODE(x) ((x) << S_TXENDIANMODE)
1439 #define F_TXENDIANMODE    V_TXENDIANMODE(1U)
1440 
1441 #define S_INTEL1010MODE    4
1442 #define V_INTEL1010MODE(x) ((x) << S_INTEL1010MODE)
1443 #define F_INTEL1010MODE    V_INTEL1010MODE(1U)
1444 
1445 #define A_ESPI_MAXBURST1_MAXBURST2 0x8a8
1446 #define A_ESPI_TRAIN 0x8ac
1447 
1448 #define S_MAXTRAINALPHA    0
1449 #define M_MAXTRAINALPHA    0xffff
1450 #define V_MAXTRAINALPHA(x) ((x) << S_MAXTRAINALPHA)
1451 #define G_MAXTRAINALPHA(x) (((x) >> S_MAXTRAINALPHA) & M_MAXTRAINALPHA)
1452 
1453 #define S_MAXTRAINDATA    16
1454 #define M_MAXTRAINDATA    0xffff
1455 #define V_MAXTRAINDATA(x) ((x) << S_MAXTRAINDATA)
1456 #define G_MAXTRAINDATA(x) (((x) >> S_MAXTRAINDATA) & M_MAXTRAINDATA)
1457 
1458 #define A_RAM_STATUS 0x8b0
1459 
1460 #define S_RXFIFOPARITYERROR    0
1461 #define M_RXFIFOPARITYERROR    0x3ff
1462 #define V_RXFIFOPARITYERROR(x) ((x) << S_RXFIFOPARITYERROR)
1463 #define G_RXFIFOPARITYERROR(x) (((x) >> S_RXFIFOPARITYERROR) & M_RXFIFOPARITYERROR)
1464 
1465 #define S_TXFIFOPARITYERROR    10
1466 #define M_TXFIFOPARITYERROR    0x3ff
1467 #define V_TXFIFOPARITYERROR(x) ((x) << S_TXFIFOPARITYERROR)
1468 #define G_TXFIFOPARITYERROR(x) (((x) >> S_TXFIFOPARITYERROR) & M_TXFIFOPARITYERROR)
1469 
1470 #define S_RXFIFOOVERFLOW    20
1471 #define M_RXFIFOOVERFLOW    0x3ff
1472 #define V_RXFIFOOVERFLOW(x) ((x) << S_RXFIFOOVERFLOW)
1473 #define G_RXFIFOOVERFLOW(x) (((x) >> S_RXFIFOOVERFLOW) & M_RXFIFOOVERFLOW)
1474 
1475 #define A_TX_DROP_COUNT0 0x8b4
1476 
1477 #define S_TXPORT0DROPCNT    0
1478 #define M_TXPORT0DROPCNT    0xffff
1479 #define V_TXPORT0DROPCNT(x) ((x) << S_TXPORT0DROPCNT)
1480 #define G_TXPORT0DROPCNT(x) (((x) >> S_TXPORT0DROPCNT) & M_TXPORT0DROPCNT)
1481 
1482 #define S_TXPORT1DROPCNT    16
1483 #define M_TXPORT1DROPCNT    0xffff
1484 #define V_TXPORT1DROPCNT(x) ((x) << S_TXPORT1DROPCNT)
1485 #define G_TXPORT1DROPCNT(x) (((x) >> S_TXPORT1DROPCNT) & M_TXPORT1DROPCNT)
1486 
1487 #define A_TX_DROP_COUNT1 0x8b8
1488 
1489 #define S_TXPORT2DROPCNT    0
1490 #define M_TXPORT2DROPCNT    0xffff
1491 #define V_TXPORT2DROPCNT(x) ((x) << S_TXPORT2DROPCNT)
1492 #define G_TXPORT2DROPCNT(x) (((x) >> S_TXPORT2DROPCNT) & M_TXPORT2DROPCNT)
1493 
1494 #define S_TXPORT3DROPCNT    16
1495 #define M_TXPORT3DROPCNT    0xffff
1496 #define V_TXPORT3DROPCNT(x) ((x) << S_TXPORT3DROPCNT)
1497 #define G_TXPORT3DROPCNT(x) (((x) >> S_TXPORT3DROPCNT) & M_TXPORT3DROPCNT)
1498 
1499 #define A_RX_DROP_COUNT0 0x8bc
1500 
1501 #define S_RXPORT0DROPCNT    0
1502 #define M_RXPORT0DROPCNT    0xffff
1503 #define V_RXPORT0DROPCNT(x) ((x) << S_RXPORT0DROPCNT)
1504 #define G_RXPORT0DROPCNT(x) (((x) >> S_RXPORT0DROPCNT) & M_RXPORT0DROPCNT)
1505 
1506 #define S_RXPORT1DROPCNT    16
1507 #define M_RXPORT1DROPCNT    0xffff
1508 #define V_RXPORT1DROPCNT(x) ((x) << S_RXPORT1DROPCNT)
1509 #define G_RXPORT1DROPCNT(x) (((x) >> S_RXPORT1DROPCNT) & M_RXPORT1DROPCNT)
1510 
1511 #define A_RX_DROP_COUNT1 0x8c0
1512 
1513 #define S_RXPORT2DROPCNT    0
1514 #define M_RXPORT2DROPCNT    0xffff
1515 #define V_RXPORT2DROPCNT(x) ((x) << S_RXPORT2DROPCNT)
1516 #define G_RXPORT2DROPCNT(x) (((x) >> S_RXPORT2DROPCNT) & M_RXPORT2DROPCNT)
1517 
1518 #define S_RXPORT3DROPCNT    16
1519 #define M_RXPORT3DROPCNT    0xffff
1520 #define V_RXPORT3DROPCNT(x) ((x) << S_RXPORT3DROPCNT)
1521 #define G_RXPORT3DROPCNT(x) (((x) >> S_RXPORT3DROPCNT) & M_RXPORT3DROPCNT)
1522 
1523 #define A_DIP4_ERROR_COUNT 0x8c4
1524 
1525 #define S_DIP4ERRORCNT    0
1526 #define M_DIP4ERRORCNT    0xfff
1527 #define V_DIP4ERRORCNT(x) ((x) << S_DIP4ERRORCNT)
1528 #define G_DIP4ERRORCNT(x) (((x) >> S_DIP4ERRORCNT) & M_DIP4ERRORCNT)
1529 
1530 #define S_DIP4ERRORCNTSHADOW    12
1531 #define M_DIP4ERRORCNTSHADOW    0xfff
1532 #define V_DIP4ERRORCNTSHADOW(x) ((x) << S_DIP4ERRORCNTSHADOW)
1533 #define G_DIP4ERRORCNTSHADOW(x) (((x) >> S_DIP4ERRORCNTSHADOW) & M_DIP4ERRORCNTSHADOW)
1534 
1535 #define S_TRICN_RX_TRAIN_ERR    24
1536 #define V_TRICN_RX_TRAIN_ERR(x) ((x) << S_TRICN_RX_TRAIN_ERR)
1537 #define F_TRICN_RX_TRAIN_ERR    V_TRICN_RX_TRAIN_ERR(1U)
1538 
1539 #define S_TRICN_RX_TRAINING    25
1540 #define V_TRICN_RX_TRAINING(x) ((x) << S_TRICN_RX_TRAINING)
1541 #define F_TRICN_RX_TRAINING    V_TRICN_RX_TRAINING(1U)
1542 
1543 #define S_TRICN_RX_TRAIN_OK    26
1544 #define V_TRICN_RX_TRAIN_OK(x) ((x) << S_TRICN_RX_TRAIN_OK)
1545 #define F_TRICN_RX_TRAIN_OK    V_TRICN_RX_TRAIN_OK(1U)
1546 
1547 #define A_ESPI_INTR_STATUS 0x8c8
1548 
1549 #define S_DIP2PARITYERR    5
1550 #define V_DIP2PARITYERR(x) ((x) << S_DIP2PARITYERR)
1551 #define F_DIP2PARITYERR    V_DIP2PARITYERR(1U)
1552 
1553 #define A_ESPI_INTR_ENABLE 0x8cc
1554 #define A_RX_DROP_THRESHOLD 0x8d0
1555 #define A_ESPI_RX_RESET 0x8ec
1556 
1557 #define S_ESPI_RX_LNK_RST    0
1558 #define V_ESPI_RX_LNK_RST(x) ((x) << S_ESPI_RX_LNK_RST)
1559 #define F_ESPI_RX_LNK_RST    V_ESPI_RX_LNK_RST(1U)
1560 
1561 #define S_ESPI_RX_CORE_RST    1
1562 #define V_ESPI_RX_CORE_RST(x) ((x) << S_ESPI_RX_CORE_RST)
1563 #define F_ESPI_RX_CORE_RST    V_ESPI_RX_CORE_RST(1U)
1564 
1565 #define S_RX_CLK_STATUS    2
1566 #define V_RX_CLK_STATUS(x) ((x) << S_RX_CLK_STATUS)
1567 #define F_RX_CLK_STATUS    V_RX_CLK_STATUS(1U)
1568 
1569 #define A_ESPI_MISC_CONTROL 0x8f0
1570 
1571 #define S_OUT_OF_SYNC_COUNT    0
1572 #define M_OUT_OF_SYNC_COUNT    0xf
1573 #define V_OUT_OF_SYNC_COUNT(x) ((x) << S_OUT_OF_SYNC_COUNT)
1574 #define G_OUT_OF_SYNC_COUNT(x) (((x) >> S_OUT_OF_SYNC_COUNT) & M_OUT_OF_SYNC_COUNT)
1575 
1576 #define S_DIP2_COUNT_MODE_ENABLE    4
1577 #define V_DIP2_COUNT_MODE_ENABLE(x) ((x) << S_DIP2_COUNT_MODE_ENABLE)
1578 #define F_DIP2_COUNT_MODE_ENABLE    V_DIP2_COUNT_MODE_ENABLE(1U)
1579 
1580 #define S_DIP2_PARITY_ERR_THRES    5
1581 #define M_DIP2_PARITY_ERR_THRES    0xf
1582 #define V_DIP2_PARITY_ERR_THRES(x) ((x) << S_DIP2_PARITY_ERR_THRES)
1583 #define G_DIP2_PARITY_ERR_THRES(x) (((x) >> S_DIP2_PARITY_ERR_THRES) & M_DIP2_PARITY_ERR_THRES)
1584 
1585 #define S_DIP4_THRES    9
1586 #define M_DIP4_THRES    0xfff
1587 #define V_DIP4_THRES(x) ((x) << S_DIP4_THRES)
1588 #define G_DIP4_THRES(x) (((x) >> S_DIP4_THRES) & M_DIP4_THRES)
1589 
1590 #define S_DIP4_THRES_ENABLE    21
1591 #define V_DIP4_THRES_ENABLE(x) ((x) << S_DIP4_THRES_ENABLE)
1592 #define F_DIP4_THRES_ENABLE    V_DIP4_THRES_ENABLE(1U)
1593 
1594 #define S_FORCE_DISABLE_STATUS    22
1595 #define V_FORCE_DISABLE_STATUS(x) ((x) << S_FORCE_DISABLE_STATUS)
1596 #define F_FORCE_DISABLE_STATUS    V_FORCE_DISABLE_STATUS(1U)
1597 
1598 #define S_DYNAMIC_DESKEW    23
1599 #define V_DYNAMIC_DESKEW(x) ((x) << S_DYNAMIC_DESKEW)
1600 #define F_DYNAMIC_DESKEW    V_DYNAMIC_DESKEW(1U)
1601 
1602 #define S_MONITORED_PORT_NUM    25
1603 #define M_MONITORED_PORT_NUM    0x3
1604 #define V_MONITORED_PORT_NUM(x) ((x) << S_MONITORED_PORT_NUM)
1605 #define G_MONITORED_PORT_NUM(x) (((x) >> S_MONITORED_PORT_NUM) & M_MONITORED_PORT_NUM)
1606 
1607 #define S_MONITORED_DIRECTION    27
1608 #define V_MONITORED_DIRECTION(x) ((x) << S_MONITORED_DIRECTION)
1609 #define F_MONITORED_DIRECTION    V_MONITORED_DIRECTION(1U)
1610 
1611 #define S_MONITORED_INTERFACE    28
1612 #define V_MONITORED_INTERFACE(x) ((x) << S_MONITORED_INTERFACE)
1613 #define F_MONITORED_INTERFACE    V_MONITORED_INTERFACE(1U)
1614 
1615 #define A_ESPI_DIP2_ERR_COUNT 0x8f4
1616 
1617 #define S_DIP2_ERR_CNT    0
1618 #define M_DIP2_ERR_CNT    0xf
1619 #define V_DIP2_ERR_CNT(x) ((x) << S_DIP2_ERR_CNT)
1620 #define G_DIP2_ERR_CNT(x) (((x) >> S_DIP2_ERR_CNT) & M_DIP2_ERR_CNT)
1621 
1622 #define A_ESPI_CMD_ADDR 0x8f8
1623 
1624 #define S_WRITE_DATA    0
1625 #define M_WRITE_DATA    0xff
1626 #define V_WRITE_DATA(x) ((x) << S_WRITE_DATA)
1627 #define G_WRITE_DATA(x) (((x) >> S_WRITE_DATA) & M_WRITE_DATA)
1628 
1629 #define S_REGISTER_OFFSET    8
1630 #define M_REGISTER_OFFSET    0xf
1631 #define V_REGISTER_OFFSET(x) ((x) << S_REGISTER_OFFSET)
1632 #define G_REGISTER_OFFSET(x) (((x) >> S_REGISTER_OFFSET) & M_REGISTER_OFFSET)
1633 
1634 #define S_CHANNEL_ADDR    12
1635 #define M_CHANNEL_ADDR    0xf
1636 #define V_CHANNEL_ADDR(x) ((x) << S_CHANNEL_ADDR)
1637 #define G_CHANNEL_ADDR(x) (((x) >> S_CHANNEL_ADDR) & M_CHANNEL_ADDR)
1638 
1639 #define S_MODULE_ADDR    16
1640 #define M_MODULE_ADDR    0x3
1641 #define V_MODULE_ADDR(x) ((x) << S_MODULE_ADDR)
1642 #define G_MODULE_ADDR(x) (((x) >> S_MODULE_ADDR) & M_MODULE_ADDR)
1643 
1644 #define S_BUNDLE_ADDR    20
1645 #define M_BUNDLE_ADDR    0x3
1646 #define V_BUNDLE_ADDR(x) ((x) << S_BUNDLE_ADDR)
1647 #define G_BUNDLE_ADDR(x) (((x) >> S_BUNDLE_ADDR) & M_BUNDLE_ADDR)
1648 
1649 #define S_SPI4_COMMAND    24
1650 #define M_SPI4_COMMAND    0xff
1651 #define V_SPI4_COMMAND(x) ((x) << S_SPI4_COMMAND)
1652 #define G_SPI4_COMMAND(x) (((x) >> S_SPI4_COMMAND) & M_SPI4_COMMAND)
1653 
1654 #define A_ESPI_GOSTAT 0x8fc
1655 
1656 #define S_READ_DATA    0
1657 #define M_READ_DATA    0xff
1658 #define V_READ_DATA(x) ((x) << S_READ_DATA)
1659 #define G_READ_DATA(x) (((x) >> S_READ_DATA) & M_READ_DATA)
1660 
1661 #define S_ESPI_CMD_BUSY    8
1662 #define V_ESPI_CMD_BUSY(x) ((x) << S_ESPI_CMD_BUSY)
1663 #define F_ESPI_CMD_BUSY    V_ESPI_CMD_BUSY(1U)
1664 
1665 #define S_ERROR_ACK    9
1666 #define V_ERROR_ACK(x) ((x) << S_ERROR_ACK)
1667 #define F_ERROR_ACK    V_ERROR_ACK(1U)
1668 
1669 #define S_UNMAPPED_ERR    10
1670 #define V_UNMAPPED_ERR(x) ((x) << S_UNMAPPED_ERR)
1671 #define F_UNMAPPED_ERR    V_UNMAPPED_ERR(1U)
1672 
1673 #define S_TRANSACTION_TIMER    16
1674 #define M_TRANSACTION_TIMER    0xff
1675 #define V_TRANSACTION_TIMER(x) ((x) << S_TRANSACTION_TIMER)
1676 #define G_TRANSACTION_TIMER(x) (((x) >> S_TRANSACTION_TIMER) & M_TRANSACTION_TIMER)
1677 
1678 
1679 /* ULP registers */
1680 #define A_ULP_ULIMIT 0x980
1681 #define A_ULP_TAGMASK 0x984
1682 #define A_ULP_HREG_INDEX 0x988
1683 #define A_ULP_HREG_DATA 0x98c
1684 #define A_ULP_INT_ENABLE 0x990
1685 #define A_ULP_INT_CAUSE 0x994
1686 
1687 #define S_HREG_PAR_ERR    0
1688 #define V_HREG_PAR_ERR(x) ((x) << S_HREG_PAR_ERR)
1689 #define F_HREG_PAR_ERR    V_HREG_PAR_ERR(1U)
1690 
1691 #define S_EGRS_DATA_PAR_ERR    1
1692 #define V_EGRS_DATA_PAR_ERR(x) ((x) << S_EGRS_DATA_PAR_ERR)
1693 #define F_EGRS_DATA_PAR_ERR    V_EGRS_DATA_PAR_ERR(1U)
1694 
1695 #define S_INGRS_DATA_PAR_ERR    2
1696 #define V_INGRS_DATA_PAR_ERR(x) ((x) << S_INGRS_DATA_PAR_ERR)
1697 #define F_INGRS_DATA_PAR_ERR    V_INGRS_DATA_PAR_ERR(1U)
1698 
1699 #define S_PM_INTR    3
1700 #define V_PM_INTR(x) ((x) << S_PM_INTR)
1701 #define F_PM_INTR    V_PM_INTR(1U)
1702 
1703 #define S_PM_E2C_SYNC_ERR    4
1704 #define V_PM_E2C_SYNC_ERR(x) ((x) << S_PM_E2C_SYNC_ERR)
1705 #define F_PM_E2C_SYNC_ERR    V_PM_E2C_SYNC_ERR(1U)
1706 
1707 #define S_PM_C2E_SYNC_ERR    5
1708 #define V_PM_C2E_SYNC_ERR(x) ((x) << S_PM_C2E_SYNC_ERR)
1709 #define F_PM_C2E_SYNC_ERR    V_PM_C2E_SYNC_ERR(1U)
1710 
1711 #define S_PM_E2C_EMPTY_ERR    6
1712 #define V_PM_E2C_EMPTY_ERR(x) ((x) << S_PM_E2C_EMPTY_ERR)
1713 #define F_PM_E2C_EMPTY_ERR    V_PM_E2C_EMPTY_ERR(1U)
1714 
1715 #define S_PM_C2E_EMPTY_ERR    7
1716 #define V_PM_C2E_EMPTY_ERR(x) ((x) << S_PM_C2E_EMPTY_ERR)
1717 #define F_PM_C2E_EMPTY_ERR    V_PM_C2E_EMPTY_ERR(1U)
1718 
1719 #define S_PM_PAR_ERR    8
1720 #define M_PM_PAR_ERR    0xffff
1721 #define V_PM_PAR_ERR(x) ((x) << S_PM_PAR_ERR)
1722 #define G_PM_PAR_ERR(x) (((x) >> S_PM_PAR_ERR) & M_PM_PAR_ERR)
1723 
1724 #define S_PM_E2C_WRT_FULL    24
1725 #define V_PM_E2C_WRT_FULL(x) ((x) << S_PM_E2C_WRT_FULL)
1726 #define F_PM_E2C_WRT_FULL    V_PM_E2C_WRT_FULL(1U)
1727 
1728 #define S_PM_C2E_WRT_FULL    25
1729 #define V_PM_C2E_WRT_FULL(x) ((x) << S_PM_C2E_WRT_FULL)
1730 #define F_PM_C2E_WRT_FULL    V_PM_C2E_WRT_FULL(1U)
1731 
1732 #define A_ULP_PIO_CTRL 0x998
1733 
1734 /* PL registers */
1735 #define A_PL_ENABLE 0xa00
1736 
1737 #define S_PL_INTR_SGE_ERR    0
1738 #define V_PL_INTR_SGE_ERR(x) ((x) << S_PL_INTR_SGE_ERR)
1739 #define F_PL_INTR_SGE_ERR    V_PL_INTR_SGE_ERR(1U)
1740 
1741 #define S_PL_INTR_SGE_DATA    1
1742 #define V_PL_INTR_SGE_DATA(x) ((x) << S_PL_INTR_SGE_DATA)
1743 #define F_PL_INTR_SGE_DATA    V_PL_INTR_SGE_DATA(1U)
1744 
1745 #define S_PL_INTR_MC3    2
1746 #define V_PL_INTR_MC3(x) ((x) << S_PL_INTR_MC3)
1747 #define F_PL_INTR_MC3    V_PL_INTR_MC3(1U)
1748 
1749 #define S_PL_INTR_MC4    3
1750 #define V_PL_INTR_MC4(x) ((x) << S_PL_INTR_MC4)
1751 #define F_PL_INTR_MC4    V_PL_INTR_MC4(1U)
1752 
1753 #define S_PL_INTR_MC5    4
1754 #define V_PL_INTR_MC5(x) ((x) << S_PL_INTR_MC5)
1755 #define F_PL_INTR_MC5    V_PL_INTR_MC5(1U)
1756 
1757 #define S_PL_INTR_RAT    5
1758 #define V_PL_INTR_RAT(x) ((x) << S_PL_INTR_RAT)
1759 #define F_PL_INTR_RAT    V_PL_INTR_RAT(1U)
1760 
1761 #define S_PL_INTR_TP    6
1762 #define V_PL_INTR_TP(x) ((x) << S_PL_INTR_TP)
1763 #define F_PL_INTR_TP    V_PL_INTR_TP(1U)
1764 
1765 #define S_PL_INTR_ULP    7
1766 #define V_PL_INTR_ULP(x) ((x) << S_PL_INTR_ULP)
1767 #define F_PL_INTR_ULP    V_PL_INTR_ULP(1U)
1768 
1769 #define S_PL_INTR_ESPI    8
1770 #define V_PL_INTR_ESPI(x) ((x) << S_PL_INTR_ESPI)
1771 #define F_PL_INTR_ESPI    V_PL_INTR_ESPI(1U)
1772 
1773 #define S_PL_INTR_CSPI    9
1774 #define V_PL_INTR_CSPI(x) ((x) << S_PL_INTR_CSPI)
1775 #define F_PL_INTR_CSPI    V_PL_INTR_CSPI(1U)
1776 
1777 #define S_PL_INTR_PCIX    10
1778 #define V_PL_INTR_PCIX(x) ((x) << S_PL_INTR_PCIX)
1779 #define F_PL_INTR_PCIX    V_PL_INTR_PCIX(1U)
1780 
1781 #define S_PL_INTR_EXT    11
1782 #define V_PL_INTR_EXT(x) ((x) << S_PL_INTR_EXT)
1783 #define F_PL_INTR_EXT    V_PL_INTR_EXT(1U)
1784 
1785 #define A_PL_CAUSE 0xa04
1786 
1787 /* MC5 registers */
1788 #define A_MC5_CONFIG 0xc04
1789 
1790 #define S_MODE    0
1791 #define V_MODE(x) ((x) << S_MODE)
1792 #define F_MODE    V_MODE(1U)
1793 
1794 #define S_TCAM_RESET    1
1795 #define V_TCAM_RESET(x) ((x) << S_TCAM_RESET)
1796 #define F_TCAM_RESET    V_TCAM_RESET(1U)
1797 
1798 #define S_TCAM_READY    2
1799 #define V_TCAM_READY(x) ((x) << S_TCAM_READY)
1800 #define F_TCAM_READY    V_TCAM_READY(1U)
1801 
1802 #define S_DBGI_ENABLE    4
1803 #define V_DBGI_ENABLE(x) ((x) << S_DBGI_ENABLE)
1804 #define F_DBGI_ENABLE    V_DBGI_ENABLE(1U)
1805 
1806 #define S_M_BUS_ENABLE    5
1807 #define V_M_BUS_ENABLE(x) ((x) << S_M_BUS_ENABLE)
1808 #define F_M_BUS_ENABLE    V_M_BUS_ENABLE(1U)
1809 
1810 #define S_PARITY_ENABLE    6
1811 #define V_PARITY_ENABLE(x) ((x) << S_PARITY_ENABLE)
1812 #define F_PARITY_ENABLE    V_PARITY_ENABLE(1U)
1813 
1814 #define S_SYN_ISSUE_MODE    7
1815 #define M_SYN_ISSUE_MODE    0x3
1816 #define V_SYN_ISSUE_MODE(x) ((x) << S_SYN_ISSUE_MODE)
1817 #define G_SYN_ISSUE_MODE(x) (((x) >> S_SYN_ISSUE_MODE) & M_SYN_ISSUE_MODE)
1818 
1819 #define S_BUILD    16
1820 #define V_BUILD(x) ((x) << S_BUILD)
1821 #define F_BUILD    V_BUILD(1U)
1822 
1823 #define S_COMPRESSION_ENABLE    17
1824 #define V_COMPRESSION_ENABLE(x) ((x) << S_COMPRESSION_ENABLE)
1825 #define F_COMPRESSION_ENABLE    V_COMPRESSION_ENABLE(1U)
1826 
1827 #define S_NUM_LIP    18
1828 #define M_NUM_LIP    0x3f
1829 #define V_NUM_LIP(x) ((x) << S_NUM_LIP)
1830 #define G_NUM_LIP(x) (((x) >> S_NUM_LIP) & M_NUM_LIP)
1831 
1832 #define S_TCAM_PART_CNT    24
1833 #define M_TCAM_PART_CNT    0x3
1834 #define V_TCAM_PART_CNT(x) ((x) << S_TCAM_PART_CNT)
1835 #define G_TCAM_PART_CNT(x) (((x) >> S_TCAM_PART_CNT) & M_TCAM_PART_CNT)
1836 
1837 #define S_TCAM_PART_TYPE    26
1838 #define M_TCAM_PART_TYPE    0x3
1839 #define V_TCAM_PART_TYPE(x) ((x) << S_TCAM_PART_TYPE)
1840 #define G_TCAM_PART_TYPE(x) (((x) >> S_TCAM_PART_TYPE) & M_TCAM_PART_TYPE)
1841 
1842 #define S_TCAM_PART_SIZE    28
1843 #define M_TCAM_PART_SIZE    0x3
1844 #define V_TCAM_PART_SIZE(x) ((x) << S_TCAM_PART_SIZE)
1845 #define G_TCAM_PART_SIZE(x) (((x) >> S_TCAM_PART_SIZE) & M_TCAM_PART_SIZE)
1846 
1847 #define S_TCAM_PART_TYPE_HI    30
1848 #define V_TCAM_PART_TYPE_HI(x) ((x) << S_TCAM_PART_TYPE_HI)
1849 #define F_TCAM_PART_TYPE_HI    V_TCAM_PART_TYPE_HI(1U)
1850 
1851 #define A_MC5_SIZE 0xc08
1852 
1853 #define S_SIZE    0
1854 #define M_SIZE    0x3fffff
1855 #define V_SIZE(x) ((x) << S_SIZE)
1856 #define G_SIZE(x) (((x) >> S_SIZE) & M_SIZE)
1857 
1858 #define A_MC5_ROUTING_TABLE_INDEX 0xc0c
1859 
1860 #define S_START_OF_ROUTING_TABLE    0
1861 #define M_START_OF_ROUTING_TABLE    0x3fffff
1862 #define V_START_OF_ROUTING_TABLE(x) ((x) << S_START_OF_ROUTING_TABLE)
1863 #define G_START_OF_ROUTING_TABLE(x) (((x) >> S_START_OF_ROUTING_TABLE) & M_START_OF_ROUTING_TABLE)
1864 
1865 #define A_MC5_SERVER_INDEX 0xc14
1866 
1867 #define S_START_OF_SERVER_INDEX    0
1868 #define M_START_OF_SERVER_INDEX    0x3fffff
1869 #define V_START_OF_SERVER_INDEX(x) ((x) << S_START_OF_SERVER_INDEX)
1870 #define G_START_OF_SERVER_INDEX(x) (((x) >> S_START_OF_SERVER_INDEX) & M_START_OF_SERVER_INDEX)
1871 
1872 #define A_MC5_LIP_RAM_ADDR 0xc18
1873 
1874 #define S_LOCAL_IP_RAM_ADDR    0
1875 #define M_LOCAL_IP_RAM_ADDR    0x3f
1876 #define V_LOCAL_IP_RAM_ADDR(x) ((x) << S_LOCAL_IP_RAM_ADDR)
1877 #define G_LOCAL_IP_RAM_ADDR(x) (((x) >> S_LOCAL_IP_RAM_ADDR) & M_LOCAL_IP_RAM_ADDR)
1878 
1879 #define S_RAM_WRITE_ENABLE    8
1880 #define V_RAM_WRITE_ENABLE(x) ((x) << S_RAM_WRITE_ENABLE)
1881 #define F_RAM_WRITE_ENABLE    V_RAM_WRITE_ENABLE(1U)
1882 
1883 #define A_MC5_LIP_RAM_DATA 0xc1c
1884 #define A_MC5_RSP_LATENCY 0xc20
1885 
1886 #define S_SEARCH_RESPONSE_LATENCY    0
1887 #define M_SEARCH_RESPONSE_LATENCY    0x1f
1888 #define V_SEARCH_RESPONSE_LATENCY(x) ((x) << S_SEARCH_RESPONSE_LATENCY)
1889 #define G_SEARCH_RESPONSE_LATENCY(x) (((x) >> S_SEARCH_RESPONSE_LATENCY) & M_SEARCH_RESPONSE_LATENCY)
1890 
1891 #define S_LEARN_RESPONSE_LATENCY    8
1892 #define M_LEARN_RESPONSE_LATENCY    0x1f
1893 #define V_LEARN_RESPONSE_LATENCY(x) ((x) << S_LEARN_RESPONSE_LATENCY)
1894 #define G_LEARN_RESPONSE_LATENCY(x) (((x) >> S_LEARN_RESPONSE_LATENCY) & M_LEARN_RESPONSE_LATENCY)
1895 
1896 #define A_MC5_PARITY_LATENCY 0xc24
1897 
1898 #define S_SRCHLAT    0
1899 #define M_SRCHLAT    0x1f
1900 #define V_SRCHLAT(x) ((x) << S_SRCHLAT)
1901 #define G_SRCHLAT(x) (((x) >> S_SRCHLAT) & M_SRCHLAT)
1902 
1903 #define S_PARLAT    8
1904 #define M_PARLAT    0x1f
1905 #define V_PARLAT(x) ((x) << S_PARLAT)
1906 #define G_PARLAT(x) (((x) >> S_PARLAT) & M_PARLAT)
1907 
1908 #define A_MC5_WR_LRN_VERIFY 0xc28
1909 
1910 #define S_POVEREN    0
1911 #define V_POVEREN(x) ((x) << S_POVEREN)
1912 #define F_POVEREN    V_POVEREN(1U)
1913 
1914 #define S_LRNVEREN    1
1915 #define V_LRNVEREN(x) ((x) << S_LRNVEREN)
1916 #define F_LRNVEREN    V_LRNVEREN(1U)
1917 
1918 #define S_VWVEREN    2
1919 #define V_VWVEREN(x) ((x) << S_VWVEREN)
1920 #define F_VWVEREN    V_VWVEREN(1U)
1921 
1922 #define A_MC5_PART_ID_INDEX 0xc2c
1923 
1924 #define S_IDINDEX    0
1925 #define M_IDINDEX    0xf
1926 #define V_IDINDEX(x) ((x) << S_IDINDEX)
1927 #define G_IDINDEX(x) (((x) >> S_IDINDEX) & M_IDINDEX)
1928 
1929 #define A_MC5_RESET_MAX 0xc30
1930 
1931 #define S_RSTMAX    0
1932 #define M_RSTMAX    0x1ff
1933 #define V_RSTMAX(x) ((x) << S_RSTMAX)
1934 #define G_RSTMAX(x) (((x) >> S_RSTMAX) & M_RSTMAX)
1935 
1936 #define A_MC5_INT_ENABLE 0xc40
1937 
1938 #define S_MC5_INT_HIT_OUT_ACTIVE_REGION_ERR    0
1939 #define V_MC5_INT_HIT_OUT_ACTIVE_REGION_ERR(x) ((x) << S_MC5_INT_HIT_OUT_ACTIVE_REGION_ERR)
1940 #define F_MC5_INT_HIT_OUT_ACTIVE_REGION_ERR    V_MC5_INT_HIT_OUT_ACTIVE_REGION_ERR(1U)
1941 
1942 #define S_MC5_INT_HIT_IN_ACTIVE_REGION_ERR    1
1943 #define V_MC5_INT_HIT_IN_ACTIVE_REGION_ERR(x) ((x) << S_MC5_INT_HIT_IN_ACTIVE_REGION_ERR)
1944 #define F_MC5_INT_HIT_IN_ACTIVE_REGION_ERR    V_MC5_INT_HIT_IN_ACTIVE_REGION_ERR(1U)
1945 
1946 #define S_MC5_INT_HIT_IN_RT_REGION_ERR    2
1947 #define V_MC5_INT_HIT_IN_RT_REGION_ERR(x) ((x) << S_MC5_INT_HIT_IN_RT_REGION_ERR)
1948 #define F_MC5_INT_HIT_IN_RT_REGION_ERR    V_MC5_INT_HIT_IN_RT_REGION_ERR(1U)
1949 
1950 #define S_MC5_INT_MISS_ERR    3
1951 #define V_MC5_INT_MISS_ERR(x) ((x) << S_MC5_INT_MISS_ERR)
1952 #define F_MC5_INT_MISS_ERR    V_MC5_INT_MISS_ERR(1U)
1953 
1954 #define S_MC5_INT_LIP0_ERR    4
1955 #define V_MC5_INT_LIP0_ERR(x) ((x) << S_MC5_INT_LIP0_ERR)
1956 #define F_MC5_INT_LIP0_ERR    V_MC5_INT_LIP0_ERR(1U)
1957 
1958 #define S_MC5_INT_LIP_MISS_ERR    5
1959 #define V_MC5_INT_LIP_MISS_ERR(x) ((x) << S_MC5_INT_LIP_MISS_ERR)
1960 #define F_MC5_INT_LIP_MISS_ERR    V_MC5_INT_LIP_MISS_ERR(1U)
1961 
1962 #define S_MC5_INT_PARITY_ERR    6
1963 #define V_MC5_INT_PARITY_ERR(x) ((x) << S_MC5_INT_PARITY_ERR)
1964 #define F_MC5_INT_PARITY_ERR    V_MC5_INT_PARITY_ERR(1U)
1965 
1966 #define S_MC5_INT_ACTIVE_REGION_FULL    7
1967 #define V_MC5_INT_ACTIVE_REGION_FULL(x) ((x) << S_MC5_INT_ACTIVE_REGION_FULL)
1968 #define F_MC5_INT_ACTIVE_REGION_FULL    V_MC5_INT_ACTIVE_REGION_FULL(1U)
1969 
1970 #define S_MC5_INT_NFA_SRCH_ERR    8
1971 #define V_MC5_INT_NFA_SRCH_ERR(x) ((x) << S_MC5_INT_NFA_SRCH_ERR)
1972 #define F_MC5_INT_NFA_SRCH_ERR    V_MC5_INT_NFA_SRCH_ERR(1U)
1973 
1974 #define S_MC5_INT_SYN_COOKIE    9
1975 #define V_MC5_INT_SYN_COOKIE(x) ((x) << S_MC5_INT_SYN_COOKIE)
1976 #define F_MC5_INT_SYN_COOKIE    V_MC5_INT_SYN_COOKIE(1U)
1977 
1978 #define S_MC5_INT_SYN_COOKIE_BAD    10
1979 #define V_MC5_INT_SYN_COOKIE_BAD(x) ((x) << S_MC5_INT_SYN_COOKIE_BAD)
1980 #define F_MC5_INT_SYN_COOKIE_BAD    V_MC5_INT_SYN_COOKIE_BAD(1U)
1981 
1982 #define S_MC5_INT_SYN_COOKIE_OFF    11
1983 #define V_MC5_INT_SYN_COOKIE_OFF(x) ((x) << S_MC5_INT_SYN_COOKIE_OFF)
1984 #define F_MC5_INT_SYN_COOKIE_OFF    V_MC5_INT_SYN_COOKIE_OFF(1U)
1985 
1986 #define S_MC5_INT_UNKNOWN_CMD    15
1987 #define V_MC5_INT_UNKNOWN_CMD(x) ((x) << S_MC5_INT_UNKNOWN_CMD)
1988 #define F_MC5_INT_UNKNOWN_CMD    V_MC5_INT_UNKNOWN_CMD(1U)
1989 
1990 #define S_MC5_INT_REQUESTQ_PARITY_ERR    16
1991 #define V_MC5_INT_REQUESTQ_PARITY_ERR(x) ((x) << S_MC5_INT_REQUESTQ_PARITY_ERR)
1992 #define F_MC5_INT_REQUESTQ_PARITY_ERR    V_MC5_INT_REQUESTQ_PARITY_ERR(1U)
1993 
1994 #define S_MC5_INT_DISPATCHQ_PARITY_ERR    17
1995 #define V_MC5_INT_DISPATCHQ_PARITY_ERR(x) ((x) << S_MC5_INT_DISPATCHQ_PARITY_ERR)
1996 #define F_MC5_INT_DISPATCHQ_PARITY_ERR    V_MC5_INT_DISPATCHQ_PARITY_ERR(1U)
1997 
1998 #define S_MC5_INT_DEL_ACT_EMPTY    18
1999 #define V_MC5_INT_DEL_ACT_EMPTY(x) ((x) << S_MC5_INT_DEL_ACT_EMPTY)
2000 #define F_MC5_INT_DEL_ACT_EMPTY    V_MC5_INT_DEL_ACT_EMPTY(1U)
2001 
2002 #define A_MC5_INT_CAUSE 0xc44
2003 #define A_MC5_INT_TID 0xc48
2004 #define A_MC5_INT_PTID 0xc4c
2005 #define A_MC5_DBGI_CONFIG 0xc74
2006 #define A_MC5_DBGI_REQ_CMD 0xc78
2007 
2008 #define S_CMDMODE    0
2009 #define M_CMDMODE    0x7
2010 #define V_CMDMODE(x) ((x) << S_CMDMODE)
2011 #define G_CMDMODE(x) (((x) >> S_CMDMODE) & M_CMDMODE)
2012 
2013 #define S_SADRSEL    4
2014 #define V_SADRSEL(x) ((x) << S_SADRSEL)
2015 #define F_SADRSEL    V_SADRSEL(1U)
2016 
2017 #define S_WRITE_BURST_SIZE    22
2018 #define M_WRITE_BURST_SIZE    0x3ff
2019 #define V_WRITE_BURST_SIZE(x) ((x) << S_WRITE_BURST_SIZE)
2020 #define G_WRITE_BURST_SIZE(x) (((x) >> S_WRITE_BURST_SIZE) & M_WRITE_BURST_SIZE)
2021 
2022 #define A_MC5_DBGI_REQ_ADDR0 0xc7c
2023 #define A_MC5_DBGI_REQ_ADDR1 0xc80
2024 #define A_MC5_DBGI_REQ_ADDR2 0xc84
2025 #define A_MC5_DBGI_REQ_DATA0 0xc88
2026 #define A_MC5_DBGI_REQ_DATA1 0xc8c
2027 #define A_MC5_DBGI_REQ_DATA2 0xc90
2028 #define A_MC5_DBGI_REQ_DATA3 0xc94
2029 #define A_MC5_DBGI_REQ_DATA4 0xc98
2030 #define A_MC5_DBGI_REQ_MASK0 0xc9c
2031 #define A_MC5_DBGI_REQ_MASK1 0xca0
2032 #define A_MC5_DBGI_REQ_MASK2 0xca4
2033 #define A_MC5_DBGI_REQ_MASK3 0xca8
2034 #define A_MC5_DBGI_REQ_MASK4 0xcac
2035 #define A_MC5_DBGI_RSP_STATUS 0xcb0
2036 
2037 #define S_DBGI_RSP_VALID    0
2038 #define V_DBGI_RSP_VALID(x) ((x) << S_DBGI_RSP_VALID)
2039 #define F_DBGI_RSP_VALID    V_DBGI_RSP_VALID(1U)
2040 
2041 #define S_DBGI_RSP_HIT    1
2042 #define V_DBGI_RSP_HIT(x) ((x) << S_DBGI_RSP_HIT)
2043 #define F_DBGI_RSP_HIT    V_DBGI_RSP_HIT(1U)
2044 
2045 #define S_DBGI_RSP_ERR    2
2046 #define V_DBGI_RSP_ERR(x) ((x) << S_DBGI_RSP_ERR)
2047 #define F_DBGI_RSP_ERR    V_DBGI_RSP_ERR(1U)
2048 
2049 #define S_DBGI_RSP_ERR_REASON    8
2050 #define M_DBGI_RSP_ERR_REASON    0x7
2051 #define V_DBGI_RSP_ERR_REASON(x) ((x) << S_DBGI_RSP_ERR_REASON)
2052 #define G_DBGI_RSP_ERR_REASON(x) (((x) >> S_DBGI_RSP_ERR_REASON) & M_DBGI_RSP_ERR_REASON)
2053 
2054 #define A_MC5_DBGI_RSP_DATA0 0xcb4
2055 #define A_MC5_DBGI_RSP_DATA1 0xcb8
2056 #define A_MC5_DBGI_RSP_DATA2 0xcbc
2057 #define A_MC5_DBGI_RSP_DATA3 0xcc0
2058 #define A_MC5_DBGI_RSP_DATA4 0xcc4
2059 #define A_MC5_DBGI_RSP_LAST_CMD 0xcc8
2060 #define A_MC5_POPEN_DATA_WR_CMD 0xccc
2061 #define A_MC5_POPEN_MASK_WR_CMD 0xcd0
2062 #define A_MC5_AOPEN_SRCH_CMD 0xcd4
2063 #define A_MC5_AOPEN_LRN_CMD 0xcd8
2064 #define A_MC5_SYN_SRCH_CMD 0xcdc
2065 #define A_MC5_SYN_LRN_CMD 0xce0
2066 #define A_MC5_ACK_SRCH_CMD 0xce4
2067 #define A_MC5_ACK_LRN_CMD 0xce8
2068 #define A_MC5_ILOOKUP_CMD 0xcec
2069 #define A_MC5_ELOOKUP_CMD 0xcf0
2070 #define A_MC5_DATA_WRITE_CMD 0xcf4
2071 #define A_MC5_DATA_READ_CMD 0xcf8
2072 #define A_MC5_MASK_WRITE_CMD 0xcfc
2073 
2074 /* PCICFG registers */
2075 #define A_PCICFG_PM_CSR 0x44
2076 #define A_PCICFG_VPD_ADDR 0x4a
2077 
2078 #define S_VPD_ADDR    0
2079 #define M_VPD_ADDR    0x7fff
2080 #define V_VPD_ADDR(x) ((x) << S_VPD_ADDR)
2081 #define G_VPD_ADDR(x) (((x) >> S_VPD_ADDR) & M_VPD_ADDR)
2082 
2083 #define S_VPD_OP_FLAG    15
2084 #define V_VPD_OP_FLAG(x) ((x) << S_VPD_OP_FLAG)
2085 #define F_VPD_OP_FLAG    V_VPD_OP_FLAG(1U)
2086 
2087 #define A_PCICFG_VPD_DATA 0x4c
2088 #define A_PCICFG_PCIX_CMD 0x60
2089 #define A_PCICFG_INTR_ENABLE 0xf4
2090 
2091 #define S_MASTER_PARITY_ERR    0
2092 #define V_MASTER_PARITY_ERR(x) ((x) << S_MASTER_PARITY_ERR)
2093 #define F_MASTER_PARITY_ERR    V_MASTER_PARITY_ERR(1U)
2094 
2095 #define S_SIG_TARGET_ABORT    1
2096 #define V_SIG_TARGET_ABORT(x) ((x) << S_SIG_TARGET_ABORT)
2097 #define F_SIG_TARGET_ABORT    V_SIG_TARGET_ABORT(1U)
2098 
2099 #define S_RCV_TARGET_ABORT    2
2100 #define V_RCV_TARGET_ABORT(x) ((x) << S_RCV_TARGET_ABORT)
2101 #define F_RCV_TARGET_ABORT    V_RCV_TARGET_ABORT(1U)
2102 
2103 #define S_RCV_MASTER_ABORT    3
2104 #define V_RCV_MASTER_ABORT(x) ((x) << S_RCV_MASTER_ABORT)
2105 #define F_RCV_MASTER_ABORT    V_RCV_MASTER_ABORT(1U)
2106 
2107 #define S_SIG_SYS_ERR    4
2108 #define V_SIG_SYS_ERR(x) ((x) << S_SIG_SYS_ERR)
2109 #define F_SIG_SYS_ERR    V_SIG_SYS_ERR(1U)
2110 
2111 #define S_DET_PARITY_ERR    5
2112 #define V_DET_PARITY_ERR(x) ((x) << S_DET_PARITY_ERR)
2113 #define F_DET_PARITY_ERR    V_DET_PARITY_ERR(1U)
2114 
2115 #define S_PIO_PARITY_ERR    6
2116 #define V_PIO_PARITY_ERR(x) ((x) << S_PIO_PARITY_ERR)
2117 #define F_PIO_PARITY_ERR    V_PIO_PARITY_ERR(1U)
2118 
2119 #define S_WF_PARITY_ERR    7
2120 #define V_WF_PARITY_ERR(x) ((x) << S_WF_PARITY_ERR)
2121 #define F_WF_PARITY_ERR    V_WF_PARITY_ERR(1U)
2122 
2123 #define S_RF_PARITY_ERR    8
2124 #define M_RF_PARITY_ERR    0x3
2125 #define V_RF_PARITY_ERR(x) ((x) << S_RF_PARITY_ERR)
2126 #define G_RF_PARITY_ERR(x) (((x) >> S_RF_PARITY_ERR) & M_RF_PARITY_ERR)
2127 
2128 #define S_CF_PARITY_ERR    10
2129 #define M_CF_PARITY_ERR    0x3
2130 #define V_CF_PARITY_ERR(x) ((x) << S_CF_PARITY_ERR)
2131 #define G_CF_PARITY_ERR(x) (((x) >> S_CF_PARITY_ERR) & M_CF_PARITY_ERR)
2132 
2133 #define A_PCICFG_INTR_CAUSE 0xf8
2134 #define A_PCICFG_MODE 0xfc
2135 
2136 #define S_PCI_MODE_64BIT    0
2137 #define V_PCI_MODE_64BIT(x) ((x) << S_PCI_MODE_64BIT)
2138 #define F_PCI_MODE_64BIT    V_PCI_MODE_64BIT(1U)
2139 
2140 #define S_PCI_MODE_66MHZ    1
2141 #define V_PCI_MODE_66MHZ(x) ((x) << S_PCI_MODE_66MHZ)
2142 #define F_PCI_MODE_66MHZ    V_PCI_MODE_66MHZ(1U)
2143 
2144 #define S_PCI_MODE_PCIX_INITPAT    2
2145 #define M_PCI_MODE_PCIX_INITPAT    0x7
2146 #define V_PCI_MODE_PCIX_INITPAT(x) ((x) << S_PCI_MODE_PCIX_INITPAT)
2147 #define G_PCI_MODE_PCIX_INITPAT(x) (((x) >> S_PCI_MODE_PCIX_INITPAT) & M_PCI_MODE_PCIX_INITPAT)
2148 
2149 #define S_PCI_MODE_PCIX    5
2150 #define V_PCI_MODE_PCIX(x) ((x) << S_PCI_MODE_PCIX)
2151 #define F_PCI_MODE_PCIX    V_PCI_MODE_PCIX(1U)
2152 
2153 #define S_PCI_MODE_CLK    6
2154 #define M_PCI_MODE_CLK    0x3
2155 #define V_PCI_MODE_CLK(x) ((x) << S_PCI_MODE_CLK)
2156 #define G_PCI_MODE_CLK(x) (((x) >> S_PCI_MODE_CLK) & M_PCI_MODE_CLK)
2157 
2158 #endif /* _CXGB_REGS_H_ */