|
105 | 105 | /* default value of bitfield vlan_req_tag0{f}[3:0] */
|
106 | 106 | #define HW_ATL2_RPF_VL_TAG_DEFAULT 0x0
|
107 | 107 |
|
| 108 | +/* RX rx_q{Q}_tc_map[2:0] Bitfield Definitions |
| 109 | + * Preprocessor definitions for the bitfield "rx_q{Q}_tc_map[2:0]". |
| 110 | + * Parameter: Queue {Q} | bit-level stride | range [0, 31] |
| 111 | + * PORT="pif_rx_q0_tc_map_i[2:0]" |
| 112 | + */ |
| 113 | + |
| 114 | +/* Register address for bitfield rx_q{Q}_tc_map[2:0] */ |
| 115 | +#define HW_ATL2_RX_Q_TC_MAP_ADR(queue) \ |
| 116 | + (((queue) < 32) ? 0x00005900 + ((queue) / 8) * 4 : 0) |
| 117 | +/* Lower bit position of bitfield rx_q{Q}_tc_map[2:0] */ |
| 118 | +#define HW_ATL2_RX_Q_TC_MAP_SHIFT(queue) \ |
| 119 | + (((queue) < 32) ? ((queue) * 4) % 32 : 0) |
| 120 | +/* Width of bitfield rx_q{Q}_tc_map[2:0] */ |
| 121 | +#define HW_ATL2_RX_Q_TC_MAP_WIDTH 3 |
| 122 | +/* Default value of bitfield rx_q{Q}_tc_map[2:0] */ |
| 123 | +#define HW_ATL2_RX_Q_TC_MAP_DEFAULT 0x0 |
| 124 | + |
| 125 | +/* tx tx_buffer_clk_gate_en bitfield definitions |
| 126 | + * preprocessor definitions for the bitfield "tx_buffer_clk_gate_en". |
| 127 | + * port="pif_tpb_tx_buffer_clk_gate_en_i" |
| 128 | + */ |
| 129 | + |
| 130 | +/* register address for bitfield tx_buffer_clk_gate_en */ |
| 131 | +#define HW_ATL2_TPB_TX_BUF_CLK_GATE_EN_ADR 0x00007900 |
| 132 | +/* bitmask for bitfield tx_buffer_clk_gate_en */ |
| 133 | +#define HW_ATL2_TPB_TX_BUF_CLK_GATE_EN_MSK 0x00000020 |
| 134 | +/* inverted bitmask for bitfield tx_buffer_clk_gate_en */ |
| 135 | +#define HW_ATL2_TPB_TX_BUF_CLK_GATE_EN_MSKN 0xffffffdf |
| 136 | +/* lower bit position of bitfield tx_buffer_clk_gate_en */ |
| 137 | +#define HW_ATL2_TPB_TX_BUF_CLK_GATE_EN_SHIFT 5 |
| 138 | +/* width of bitfield tx_buffer_clk_gate_en */ |
| 139 | +#define HW_ATL2_TPB_TX_BUF_CLK_GATE_EN_WIDTH 1 |
| 140 | +/* default value of bitfield tx_buffer_clk_gate_en */ |
| 141 | +#define HW_ATL2_TPB_TX_BUF_CLK_GATE_EN_DEFAULT 0x0 |
| 142 | + |
| 143 | +/* tx data_tc{t}_credit_max[b:0] bitfield definitions |
| 144 | + * preprocessor definitions for the bitfield "data_tc{t}_credit_max[b:0]". |
| 145 | + * parameter: tc {t} | stride size 0x4 | range [0, 7] |
| 146 | + * port="pif_tps_data_tc0_credit_max_i[11:0]" |
| 147 | + */ |
| 148 | + |
| 149 | +/* register address for bitfield data_tc{t}_credit_max[b:0] */ |
| 150 | +#define HW_ATL2_TPS_DATA_TCTCREDIT_MAX_ADR(tc) (0x00007110 + (tc) * 0x4) |
| 151 | +/* bitmask for bitfield data_tc{t}_credit_max[b:0] */ |
| 152 | +#define HW_ATL2_TPS_DATA_TCTCREDIT_MAX_MSK 0x0fff0000 |
| 153 | +/* inverted bitmask for bitfield data_tc{t}_credit_max[b:0] */ |
| 154 | +#define HW_ATL2_TPS_DATA_TCTCREDIT_MAX_MSKN 0xf000ffff |
| 155 | +/* lower bit position of bitfield data_tc{t}_credit_max[b:0] */ |
| 156 | +#define HW_ATL2_TPS_DATA_TCTCREDIT_MAX_SHIFT 16 |
| 157 | +/* width of bitfield data_tc{t}_credit_max[b:0] */ |
| 158 | +#define HW_ATL2_TPS_DATA_TCTCREDIT_MAX_WIDTH 12 |
| 159 | +/* default value of bitfield data_tc{t}_credit_max[b:0] */ |
| 160 | +#define HW_ATL2_TPS_DATA_TCTCREDIT_MAX_DEFAULT 0x0 |
| 161 | + |
| 162 | +/* tx data_tc{t}_weight[8:0] bitfield definitions |
| 163 | + * preprocessor definitions for the bitfield "data_tc{t}_weight[8:0]". |
| 164 | + * parameter: tc {t} | stride size 0x4 | range [0, 7] |
| 165 | + * port="pif_tps_data_tc0_weight_i[8:0]" |
| 166 | + */ |
| 167 | + |
| 168 | +/* register address for bitfield data_tc{t}_weight[8:0] */ |
| 169 | +#define HW_ATL2_TPS_DATA_TCTWEIGHT_ADR(tc) (0x00007110 + (tc) * 0x4) |
| 170 | +/* bitmask for bitfield data_tc{t}_weight[8:0] */ |
| 171 | +#define HW_ATL2_TPS_DATA_TCTWEIGHT_MSK 0x000001ff |
| 172 | +/* inverted bitmask for bitfield data_tc{t}_weight[8:0] */ |
| 173 | +#define HW_ATL2_TPS_DATA_TCTWEIGHT_MSKN 0xfffffe00 |
| 174 | +/* lower bit position of bitfield data_tc{t}_weight[8:0] */ |
| 175 | +#define HW_ATL2_TPS_DATA_TCTWEIGHT_SHIFT 0 |
| 176 | +/* width of bitfield data_tc{t}_weight[8:0] */ |
| 177 | +#define HW_ATL2_TPS_DATA_TCTWEIGHT_WIDTH 9 |
| 178 | +/* default value of bitfield data_tc{t}_weight[8:0] */ |
| 179 | +#define HW_ATL2_TPS_DATA_TCTWEIGHT_DEFAULT 0x0 |
| 180 | + |
| 181 | +/* Launch time control register */ |
| 182 | +#define HW_ATL2_LT_CTRL_ADR 0x00007a1c |
| 183 | + |
| 184 | +#define HW_ATL2_LT_CTRL_AVB_LEN_CMP_TRSHLD_MSK 0xFFFF0000 |
| 185 | +#define HW_ATL2_LT_CTRL_AVB_LEN_CMP_TRSHLD_SHIFT 16 |
| 186 | + |
| 187 | +#define HW_ATL2_LT_CTRL_CLK_RATIO_MSK 0x0000FF00 |
| 188 | +#define HW_ATL2_LT_CTRL_CLK_RATIO_SHIFT 8 |
| 189 | +#define HW_ATL2_LT_CTRL_CLK_RATIO_QUATER_SPEED 4 |
| 190 | +#define HW_ATL2_LT_CTRL_CLK_RATIO_HALF_SPEED 2 |
| 191 | +#define HW_ATL2_LT_CTRL_CLK_RATIO_FULL_SPEED 1 |
| 192 | + |
| 193 | +#define HW_ATL2_LT_CTRL_25G_MODE_SUPPORT_MSK 0x00000008 |
| 194 | +#define HW_ATL2_LT_CTRL_25G_MODE_SUPPORT_SHIFT 3 |
| 195 | + |
| 196 | +#define HW_ATL2_LT_CTRL_LINK_SPEED_MSK 0x00000007 |
| 197 | +#define HW_ATL2_LT_CTRL_LINK_SPEED_SHIFT 0 |
| 198 | + |
| 199 | +/* FPGA VER register */ |
| 200 | +#define HW_ATL2_FPGA_VER_ADR 0x000000f4 |
| 201 | +#define HW_ATL2_FPGA_VER_U32(mj, mi, bl, rv) \ |
| 202 | + ((((mj) & 0xff) << 24) | \ |
| 203 | + (((mi) & 0xff) << 16) | \ |
| 204 | + (((bl) & 0xff) << 8) | \ |
| 205 | + (((rv) & 0xff) << 0)) |
| 206 | + |
108 | 207 | /* ahb_mem_addr{f}[31:0] Bitfield Definitions
|
109 | 208 | * Preprocessor definitions for the bitfield "ahb_mem_addr{f}[31:0]".
|
110 | 209 | * Parameter: filter {f} | stride size 0x10 | range [0, 127]
|
|
209 | 308 | /* Default value of bitfield pif_mcp_finished_buf_rd_i */
|
210 | 309 | #define HW_ATL2_MIF_MCP_FINISHED_READ_DEFAULT 0x0
|
211 | 310 |
|
| 311 | +/* Register address for bitfield pif_mcp_boot_reg */ |
| 312 | +#define HW_ATL2_MIF_BOOT_REG_ADR 0x00003040u |
| 313 | + |
| 314 | +#define HW_ATL2_MCP_HOST_REQ_INT_READY BIT(0) |
| 315 | + |
| 316 | +#define HW_ATL2_MCP_HOST_REQ_INT_ADR 0x00000F00u |
| 317 | +#define HW_ATL2_MCP_HOST_REQ_INT_SET_ADR 0x00000F04u |
| 318 | +#define HW_ATL2_MCP_HOST_REQ_INT_CLR_ADR 0x00000F08u |
| 319 | + |
212 | 320 | #endif /* HW_ATL2_LLH_INTERNAL_H */
|
0 commit comments