18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/****************************************************************************
38c2ecf20Sopenharmony_ci * Driver for Solarflare network controllers and boards
48c2ecf20Sopenharmony_ci * Copyright 2018 Solarflare Communications Inc.
58c2ecf20Sopenharmony_ci * Copyright 2019-2020 Xilinx Inc.
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci * This program is free software; you can redistribute it and/or modify it
88c2ecf20Sopenharmony_ci * under the terms of the GNU General Public License version 2 as published
98c2ecf20Sopenharmony_ci * by the Free Software Foundation, incorporated herein by reference.
108c2ecf20Sopenharmony_ci */
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#ifndef EFX_EF100_REGS_H
138c2ecf20Sopenharmony_ci#define EFX_EF100_REGS_H
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci/* EF100 hardware architecture definitions have a name prefix following
168c2ecf20Sopenharmony_ci * the format:
178c2ecf20Sopenharmony_ci *
188c2ecf20Sopenharmony_ci *     E<type>_<min-rev><max-rev>_
198c2ecf20Sopenharmony_ci *
208c2ecf20Sopenharmony_ci * The following <type> strings are used:
218c2ecf20Sopenharmony_ci *
228c2ecf20Sopenharmony_ci *             MMIO register  Host memory structure
238c2ecf20Sopenharmony_ci * -------------------------------------------------------------
248c2ecf20Sopenharmony_ci * Address     R
258c2ecf20Sopenharmony_ci * Bitfield    RF             SF
268c2ecf20Sopenharmony_ci * Enumerator  FE             SE
278c2ecf20Sopenharmony_ci *
288c2ecf20Sopenharmony_ci * <min-rev> is the first revision to which the definition applies:
298c2ecf20Sopenharmony_ci *
308c2ecf20Sopenharmony_ci *     G: Riverhead
318c2ecf20Sopenharmony_ci *
328c2ecf20Sopenharmony_ci * If the definition has been changed or removed in later revisions
338c2ecf20Sopenharmony_ci * then <max-rev> is the last revision to which the definition applies;
348c2ecf20Sopenharmony_ci * otherwise it is "Z".
358c2ecf20Sopenharmony_ci */
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ci/**************************************************************************
388c2ecf20Sopenharmony_ci *
398c2ecf20Sopenharmony_ci * EF100 registers and descriptors
408c2ecf20Sopenharmony_ci *
418c2ecf20Sopenharmony_ci **************************************************************************
428c2ecf20Sopenharmony_ci */
438c2ecf20Sopenharmony_ci
448c2ecf20Sopenharmony_ci/* HW_REV_ID_REG: Hardware revision info register */
458c2ecf20Sopenharmony_ci#define	ER_GZ_HW_REV_ID 0x00000000
468c2ecf20Sopenharmony_ci
478c2ecf20Sopenharmony_ci/* NIC_REV_ID: SoftNIC revision info register */
488c2ecf20Sopenharmony_ci#define	ER_GZ_NIC_REV_ID 0x00000004
498c2ecf20Sopenharmony_ci
508c2ecf20Sopenharmony_ci/* NIC_MAGIC: Signature register that should contain a well-known value */
518c2ecf20Sopenharmony_ci#define	ER_GZ_NIC_MAGIC 0x00000008
528c2ecf20Sopenharmony_ci#define	ERF_GZ_NIC_MAGIC_LBN 0
538c2ecf20Sopenharmony_ci#define	ERF_GZ_NIC_MAGIC_WIDTH 32
548c2ecf20Sopenharmony_ci#define	EFE_GZ_NIC_MAGIC_EXPECTED 0xEF100FCB
558c2ecf20Sopenharmony_ci
568c2ecf20Sopenharmony_ci/* MC_SFT_STATUS: MC soft status */
578c2ecf20Sopenharmony_ci#define	ER_GZ_MC_SFT_STATUS 0x00000010
588c2ecf20Sopenharmony_ci#define	ER_GZ_MC_SFT_STATUS_STEP 4
598c2ecf20Sopenharmony_ci#define	ER_GZ_MC_SFT_STATUS_ROWS 2
608c2ecf20Sopenharmony_ci
618c2ecf20Sopenharmony_ci/* MC_DB_LWRD_REG: MC doorbell register, low word */
628c2ecf20Sopenharmony_ci#define	ER_GZ_MC_DB_LWRD 0x00000020
638c2ecf20Sopenharmony_ci
648c2ecf20Sopenharmony_ci/* MC_DB_HWRD_REG: MC doorbell register, high word */
658c2ecf20Sopenharmony_ci#define	ER_GZ_MC_DB_HWRD 0x00000024
668c2ecf20Sopenharmony_ci
678c2ecf20Sopenharmony_ci/* EVQ_INT_PRIME: Prime EVQ */
688c2ecf20Sopenharmony_ci#define	ER_GZ_EVQ_INT_PRIME 0x00000040
698c2ecf20Sopenharmony_ci#define	ERF_GZ_IDX_LBN 16
708c2ecf20Sopenharmony_ci#define	ERF_GZ_IDX_WIDTH 16
718c2ecf20Sopenharmony_ci#define	ERF_GZ_EVQ_ID_LBN 0
728c2ecf20Sopenharmony_ci#define	ERF_GZ_EVQ_ID_WIDTH 16
738c2ecf20Sopenharmony_ci
748c2ecf20Sopenharmony_ci/* INT_AGG_RING_PRIME: Prime interrupt aggregation ring. */
758c2ecf20Sopenharmony_ci#define	ER_GZ_INT_AGG_RING_PRIME 0x00000048
768c2ecf20Sopenharmony_ci/* defined as ERF_GZ_IDX_LBN 16; access=WO reset=0x0 */
778c2ecf20Sopenharmony_ci/* defined as ERF_GZ_IDX_WIDTH 16 */
788c2ecf20Sopenharmony_ci#define	ERF_GZ_RING_ID_LBN 0
798c2ecf20Sopenharmony_ci#define	ERF_GZ_RING_ID_WIDTH 16
808c2ecf20Sopenharmony_ci
818c2ecf20Sopenharmony_ci/* EVQ_TMR: EVQ timer control */
828c2ecf20Sopenharmony_ci#define	ER_GZ_EVQ_TMR 0x00000104
838c2ecf20Sopenharmony_ci#define	ER_GZ_EVQ_TMR_STEP 65536
848c2ecf20Sopenharmony_ci#define	ER_GZ_EVQ_TMR_ROWS 1024
858c2ecf20Sopenharmony_ci
868c2ecf20Sopenharmony_ci/* EVQ_UNSOL_CREDIT_GRANT_SEQ: Grant credits for unsolicited events. */
878c2ecf20Sopenharmony_ci#define	ER_GZ_EVQ_UNSOL_CREDIT_GRANT_SEQ 0x00000108
888c2ecf20Sopenharmony_ci#define	ER_GZ_EVQ_UNSOL_CREDIT_GRANT_SEQ_STEP 65536
898c2ecf20Sopenharmony_ci#define	ER_GZ_EVQ_UNSOL_CREDIT_GRANT_SEQ_ROWS 1024
908c2ecf20Sopenharmony_ci
918c2ecf20Sopenharmony_ci/* EVQ_DESC_CREDIT_GRANT_SEQ: Grant credits for descriptor proxy events. */
928c2ecf20Sopenharmony_ci#define	ER_GZ_EVQ_DESC_CREDIT_GRANT_SEQ 0x00000110
938c2ecf20Sopenharmony_ci#define	ER_GZ_EVQ_DESC_CREDIT_GRANT_SEQ_STEP 65536
948c2ecf20Sopenharmony_ci#define	ER_GZ_EVQ_DESC_CREDIT_GRANT_SEQ_ROWS 1024
958c2ecf20Sopenharmony_ci
968c2ecf20Sopenharmony_ci/* RX_RING_DOORBELL: Ring Rx doorbell. */
978c2ecf20Sopenharmony_ci#define	ER_GZ_RX_RING_DOORBELL 0x00000180
988c2ecf20Sopenharmony_ci#define	ER_GZ_RX_RING_DOORBELL_STEP 65536
998c2ecf20Sopenharmony_ci#define	ER_GZ_RX_RING_DOORBELL_ROWS 1024
1008c2ecf20Sopenharmony_ci#define	ERF_GZ_RX_RING_PIDX_LBN 16
1018c2ecf20Sopenharmony_ci#define	ERF_GZ_RX_RING_PIDX_WIDTH 16
1028c2ecf20Sopenharmony_ci
1038c2ecf20Sopenharmony_ci/* TX_RING_DOORBELL: Ring Tx doorbell. */
1048c2ecf20Sopenharmony_ci#define	ER_GZ_TX_RING_DOORBELL 0x00000200
1058c2ecf20Sopenharmony_ci#define	ER_GZ_TX_RING_DOORBELL_STEP 65536
1068c2ecf20Sopenharmony_ci#define	ER_GZ_TX_RING_DOORBELL_ROWS 1024
1078c2ecf20Sopenharmony_ci#define	ERF_GZ_TX_RING_PIDX_LBN 16
1088c2ecf20Sopenharmony_ci#define	ERF_GZ_TX_RING_PIDX_WIDTH 16
1098c2ecf20Sopenharmony_ci
1108c2ecf20Sopenharmony_ci/* TX_DESC_PUSH: Tx ring descriptor push. Reserved for future use. */
1118c2ecf20Sopenharmony_ci#define	ER_GZ_TX_DESC_PUSH 0x00000210
1128c2ecf20Sopenharmony_ci#define	ER_GZ_TX_DESC_PUSH_STEP 65536
1138c2ecf20Sopenharmony_ci#define	ER_GZ_TX_DESC_PUSH_ROWS 1024
1148c2ecf20Sopenharmony_ci
1158c2ecf20Sopenharmony_ci/* THE_TIME: NIC hardware time */
1168c2ecf20Sopenharmony_ci#define	ER_GZ_THE_TIME 0x00000280
1178c2ecf20Sopenharmony_ci#define	ER_GZ_THE_TIME_STEP 65536
1188c2ecf20Sopenharmony_ci#define	ER_GZ_THE_TIME_ROWS 1024
1198c2ecf20Sopenharmony_ci#define	ERF_GZ_THE_TIME_SECS_LBN 32
1208c2ecf20Sopenharmony_ci#define	ERF_GZ_THE_TIME_SECS_WIDTH 32
1218c2ecf20Sopenharmony_ci#define	ERF_GZ_THE_TIME_NANOS_LBN 2
1228c2ecf20Sopenharmony_ci#define	ERF_GZ_THE_TIME_NANOS_WIDTH 30
1238c2ecf20Sopenharmony_ci#define	ERF_GZ_THE_TIME_CLOCK_IN_SYNC_LBN 1
1248c2ecf20Sopenharmony_ci#define	ERF_GZ_THE_TIME_CLOCK_IN_SYNC_WIDTH 1
1258c2ecf20Sopenharmony_ci#define	ERF_GZ_THE_TIME_CLOCK_IS_SET_LBN 0
1268c2ecf20Sopenharmony_ci#define	ERF_GZ_THE_TIME_CLOCK_IS_SET_WIDTH 1
1278c2ecf20Sopenharmony_ci
1288c2ecf20Sopenharmony_ci/* PARAMS_TLV_LEN: Size of design parameters area in bytes */
1298c2ecf20Sopenharmony_ci#define	ER_GZ_PARAMS_TLV_LEN 0x00000c00
1308c2ecf20Sopenharmony_ci#define	ER_GZ_PARAMS_TLV_LEN_STEP 65536
1318c2ecf20Sopenharmony_ci#define	ER_GZ_PARAMS_TLV_LEN_ROWS 1024
1328c2ecf20Sopenharmony_ci
1338c2ecf20Sopenharmony_ci/* PARAMS_TLV: Design parameters */
1348c2ecf20Sopenharmony_ci#define	ER_GZ_PARAMS_TLV 0x00000c04
1358c2ecf20Sopenharmony_ci#define	ER_GZ_PARAMS_TLV_STEP 65536
1368c2ecf20Sopenharmony_ci#define	ER_GZ_PARAMS_TLV_ROWS 1024
1378c2ecf20Sopenharmony_ci
1388c2ecf20Sopenharmony_ci/* EW_EMBEDDED_EVENT */
1398c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_256_EVENT_LBN 0
1408c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_256_EVENT_WIDTH 64
1418c2ecf20Sopenharmony_ci#define	ESE_GZ_EW_EMBEDDED_EVENT_STRUCT_SIZE 64
1428c2ecf20Sopenharmony_ci
1438c2ecf20Sopenharmony_ci/* NMMU_PAGESZ_2M_ADDR */
1448c2ecf20Sopenharmony_ci#define	ESF_GZ_NMMU_2M_PAGE_SIZE_ID_LBN 59
1458c2ecf20Sopenharmony_ci#define	ESF_GZ_NMMU_2M_PAGE_SIZE_ID_WIDTH 5
1468c2ecf20Sopenharmony_ci#define	ESE_GZ_NMMU_PAGE_SIZE_2M 9
1478c2ecf20Sopenharmony_ci#define	ESF_GZ_NMMU_2M_PAGE_ID_LBN 21
1488c2ecf20Sopenharmony_ci#define	ESF_GZ_NMMU_2M_PAGE_ID_WIDTH 38
1498c2ecf20Sopenharmony_ci#define	ESF_GZ_NMMU_2M_PAGE_OFFSET_LBN 0
1508c2ecf20Sopenharmony_ci#define	ESF_GZ_NMMU_2M_PAGE_OFFSET_WIDTH 21
1518c2ecf20Sopenharmony_ci#define	ESE_GZ_NMMU_PAGESZ_2M_ADDR_STRUCT_SIZE 64
1528c2ecf20Sopenharmony_ci
1538c2ecf20Sopenharmony_ci/* PARAM_TLV */
1548c2ecf20Sopenharmony_ci#define	ESF_GZ_TLV_VALUE_LBN 16
1558c2ecf20Sopenharmony_ci#define	ESF_GZ_TLV_VALUE_WIDTH 8
1568c2ecf20Sopenharmony_ci#define	ESE_GZ_TLV_VALUE_LENMIN 8
1578c2ecf20Sopenharmony_ci#define	ESE_GZ_TLV_VALUE_LENMAX 2040
1588c2ecf20Sopenharmony_ci#define	ESF_GZ_TLV_LEN_LBN 8
1598c2ecf20Sopenharmony_ci#define	ESF_GZ_TLV_LEN_WIDTH 8
1608c2ecf20Sopenharmony_ci#define	ESF_GZ_TLV_TYPE_LBN 0
1618c2ecf20Sopenharmony_ci#define	ESF_GZ_TLV_TYPE_WIDTH 8
1628c2ecf20Sopenharmony_ci#define	ESE_GZ_DP_NMMU_GROUP_SIZE 5
1638c2ecf20Sopenharmony_ci#define	ESE_GZ_DP_EVQ_UNSOL_CREDIT_SEQ_BITS 4
1648c2ecf20Sopenharmony_ci#define	ESE_GZ_DP_TX_EV_NUM_DESCS_BITS 3
1658c2ecf20Sopenharmony_ci#define	ESE_GZ_DP_RX_EV_NUM_PACKETS_BITS 2
1668c2ecf20Sopenharmony_ci#define	ESE_GZ_DP_PARTIAL_TSTAMP_SUB_NANO_BITS 1
1678c2ecf20Sopenharmony_ci#define	ESE_GZ_DP_PAD 0
1688c2ecf20Sopenharmony_ci#define	ESE_GZ_PARAM_TLV_STRUCT_SIZE 24
1698c2ecf20Sopenharmony_ci
1708c2ecf20Sopenharmony_ci/* PCI_EXPRESS_XCAP_HDR */
1718c2ecf20Sopenharmony_ci#define	ESF_GZ_PCI_EXPRESS_XCAP_NEXT_LBN 20
1728c2ecf20Sopenharmony_ci#define	ESF_GZ_PCI_EXPRESS_XCAP_NEXT_WIDTH 12
1738c2ecf20Sopenharmony_ci#define	ESF_GZ_PCI_EXPRESS_XCAP_VER_LBN 16
1748c2ecf20Sopenharmony_ci#define	ESF_GZ_PCI_EXPRESS_XCAP_VER_WIDTH 4
1758c2ecf20Sopenharmony_ci#define	ESE_GZ_PCI_EXPRESS_XCAP_VER_VSEC 1
1768c2ecf20Sopenharmony_ci#define	ESF_GZ_PCI_EXPRESS_XCAP_ID_LBN 0
1778c2ecf20Sopenharmony_ci#define	ESF_GZ_PCI_EXPRESS_XCAP_ID_WIDTH 16
1788c2ecf20Sopenharmony_ci#define	ESE_GZ_PCI_EXPRESS_XCAP_ID_VNDR 0xb
1798c2ecf20Sopenharmony_ci#define	ESE_GZ_PCI_EXPRESS_XCAP_HDR_STRUCT_SIZE 32
1808c2ecf20Sopenharmony_ci
1818c2ecf20Sopenharmony_ci/* RHEAD_BASE_EVENT */
1828c2ecf20Sopenharmony_ci#define	ESF_GZ_E_TYPE_LBN 60
1838c2ecf20Sopenharmony_ci#define	ESF_GZ_E_TYPE_WIDTH 4
1848c2ecf20Sopenharmony_ci#define	ESE_GZ_EF100_EV_DRIVER 5
1858c2ecf20Sopenharmony_ci#define	ESE_GZ_EF100_EV_MCDI 4
1868c2ecf20Sopenharmony_ci#define	ESE_GZ_EF100_EV_CONTROL 3
1878c2ecf20Sopenharmony_ci#define	ESE_GZ_EF100_EV_TX_TIMESTAMP 2
1888c2ecf20Sopenharmony_ci#define	ESE_GZ_EF100_EV_TX_COMPLETION 1
1898c2ecf20Sopenharmony_ci#define	ESE_GZ_EF100_EV_RX_PKTS 0
1908c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_EVQ_PHASE_LBN 59
1918c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_EVQ_PHASE_WIDTH 1
1928c2ecf20Sopenharmony_ci#define	ESE_GZ_RHEAD_BASE_EVENT_STRUCT_SIZE 64
1938c2ecf20Sopenharmony_ci
1948c2ecf20Sopenharmony_ci/* RHEAD_EW_EVENT */
1958c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_256_EV32_PHASE_LBN 255
1968c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_256_EV32_PHASE_WIDTH 1
1978c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_256_EV32_TYPE_LBN 251
1988c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_256_EV32_TYPE_WIDTH 4
1998c2ecf20Sopenharmony_ci#define	ESE_GZ_EF100_EVEW_VIRTQ_DESC 2
2008c2ecf20Sopenharmony_ci#define	ESE_GZ_EF100_EVEW_TXQ_DESC 1
2018c2ecf20Sopenharmony_ci#define	ESE_GZ_EF100_EVEW_64BIT 0
2028c2ecf20Sopenharmony_ci#define	ESE_GZ_RHEAD_EW_EVENT_STRUCT_SIZE 256
2038c2ecf20Sopenharmony_ci
2048c2ecf20Sopenharmony_ci/* RX_DESC */
2058c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_BUF_ADDR_LBN 0
2068c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_BUF_ADDR_WIDTH 64
2078c2ecf20Sopenharmony_ci#define	ESE_GZ_RX_DESC_STRUCT_SIZE 64
2088c2ecf20Sopenharmony_ci
2098c2ecf20Sopenharmony_ci/* TXQ_DESC_PROXY_EVENT */
2108c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_TXQ_DP_VI_ID_LBN 128
2118c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_TXQ_DP_VI_ID_WIDTH 16
2128c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_TXQ_DP_TXQ_DESC_LBN 0
2138c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_TXQ_DP_TXQ_DESC_WIDTH 128
2148c2ecf20Sopenharmony_ci#define	ESE_GZ_TXQ_DESC_PROXY_EVENT_STRUCT_SIZE 144
2158c2ecf20Sopenharmony_ci
2168c2ecf20Sopenharmony_ci/* TX_DESC_TYPE */
2178c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_DESC_TYPE_LBN 124
2188c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_DESC_TYPE_WIDTH 4
2198c2ecf20Sopenharmony_ci#define	ESE_GZ_TX_DESC_TYPE_DESC2CMPT 7
2208c2ecf20Sopenharmony_ci#define	ESE_GZ_TX_DESC_TYPE_MEM2MEM 4
2218c2ecf20Sopenharmony_ci#define	ESE_GZ_TX_DESC_TYPE_SEG 3
2228c2ecf20Sopenharmony_ci#define	ESE_GZ_TX_DESC_TYPE_TSO 2
2238c2ecf20Sopenharmony_ci#define	ESE_GZ_TX_DESC_TYPE_PREFIX 1
2248c2ecf20Sopenharmony_ci#define	ESE_GZ_TX_DESC_TYPE_SEND 0
2258c2ecf20Sopenharmony_ci#define	ESE_GZ_TX_DESC_TYPE_STRUCT_SIZE 128
2268c2ecf20Sopenharmony_ci
2278c2ecf20Sopenharmony_ci/* VIRTQ_DESC_PROXY_EVENT */
2288c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_VQ_DP_AVAIL_ENTRY_LBN 144
2298c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_VQ_DP_AVAIL_ENTRY_WIDTH 16
2308c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_VQ_DP_VI_ID_LBN 128
2318c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_VQ_DP_VI_ID_WIDTH 16
2328c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_VQ_DP_VIRTQ_DESC_LBN 0
2338c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_VQ_DP_VIRTQ_DESC_WIDTH 128
2348c2ecf20Sopenharmony_ci#define	ESE_GZ_VIRTQ_DESC_PROXY_EVENT_STRUCT_SIZE 160
2358c2ecf20Sopenharmony_ci
2368c2ecf20Sopenharmony_ci/* XIL_CFGBAR_TBL_ENTRY */
2378c2ecf20Sopenharmony_ci#define	ESF_GZ_CFGBAR_CONT_CAP_OFF_HI_LBN 96
2388c2ecf20Sopenharmony_ci#define	ESF_GZ_CFGBAR_CONT_CAP_OFF_HI_WIDTH 32
2398c2ecf20Sopenharmony_ci#define	ESF_GZ_CFGBAR_CONT_CAP_OFFSET_LBN 68
2408c2ecf20Sopenharmony_ci#define	ESF_GZ_CFGBAR_CONT_CAP_OFFSET_WIDTH 60
2418c2ecf20Sopenharmony_ci#define	ESE_GZ_CONT_CAP_OFFSET_BYTES_SHIFT 4
2428c2ecf20Sopenharmony_ci#define	ESF_GZ_CFGBAR_EF100_FUNC_CTL_WIN_OFF_LBN 67
2438c2ecf20Sopenharmony_ci#define	ESF_GZ_CFGBAR_EF100_FUNC_CTL_WIN_OFF_WIDTH 29
2448c2ecf20Sopenharmony_ci#define	ESE_GZ_EF100_FUNC_CTL_WIN_OFF_SHIFT 4
2458c2ecf20Sopenharmony_ci#define	ESF_GZ_CFGBAR_CONT_CAP_OFF_LO_LBN 68
2468c2ecf20Sopenharmony_ci#define	ESF_GZ_CFGBAR_CONT_CAP_OFF_LO_WIDTH 28
2478c2ecf20Sopenharmony_ci#define	ESF_GZ_CFGBAR_CONT_CAP_RSV_LBN 67
2488c2ecf20Sopenharmony_ci#define	ESF_GZ_CFGBAR_CONT_CAP_RSV_WIDTH 1
2498c2ecf20Sopenharmony_ci#define	ESF_GZ_CFGBAR_EF100_BAR_LBN 64
2508c2ecf20Sopenharmony_ci#define	ESF_GZ_CFGBAR_EF100_BAR_WIDTH 3
2518c2ecf20Sopenharmony_ci#define	ESE_GZ_CFGBAR_EF100_BAR_NUM_INVALID 7
2528c2ecf20Sopenharmony_ci#define	ESE_GZ_CFGBAR_EF100_BAR_NUM_EXPANSION_ROM 6
2538c2ecf20Sopenharmony_ci#define	ESF_GZ_CFGBAR_CONT_CAP_BAR_LBN 64
2548c2ecf20Sopenharmony_ci#define	ESF_GZ_CFGBAR_CONT_CAP_BAR_WIDTH 3
2558c2ecf20Sopenharmony_ci#define	ESE_GZ_CFGBAR_CONT_CAP_BAR_NUM_INVALID 7
2568c2ecf20Sopenharmony_ci#define	ESE_GZ_CFGBAR_CONT_CAP_BAR_NUM_EXPANSION_ROM 6
2578c2ecf20Sopenharmony_ci#define	ESF_GZ_CFGBAR_ENTRY_SIZE_LBN 32
2588c2ecf20Sopenharmony_ci#define	ESF_GZ_CFGBAR_ENTRY_SIZE_WIDTH 32
2598c2ecf20Sopenharmony_ci#define	ESE_GZ_CFGBAR_ENTRY_SIZE_EF100 12
2608c2ecf20Sopenharmony_ci#define	ESE_GZ_CFGBAR_ENTRY_HEADER_SIZE 8
2618c2ecf20Sopenharmony_ci#define	ESF_GZ_CFGBAR_ENTRY_LAST_LBN 28
2628c2ecf20Sopenharmony_ci#define	ESF_GZ_CFGBAR_ENTRY_LAST_WIDTH 1
2638c2ecf20Sopenharmony_ci#define	ESF_GZ_CFGBAR_ENTRY_REV_LBN 20
2648c2ecf20Sopenharmony_ci#define	ESF_GZ_CFGBAR_ENTRY_REV_WIDTH 8
2658c2ecf20Sopenharmony_ci#define	ESE_GZ_CFGBAR_ENTRY_REV_EF100 0
2668c2ecf20Sopenharmony_ci#define	ESF_GZ_CFGBAR_ENTRY_FORMAT_LBN 0
2678c2ecf20Sopenharmony_ci#define	ESF_GZ_CFGBAR_ENTRY_FORMAT_WIDTH 20
2688c2ecf20Sopenharmony_ci#define	ESE_GZ_CFGBAR_ENTRY_LAST 0xfffff
2698c2ecf20Sopenharmony_ci#define	ESE_GZ_CFGBAR_ENTRY_CONT_CAP_ADDR 0xffffe
2708c2ecf20Sopenharmony_ci#define	ESE_GZ_CFGBAR_ENTRY_EF100 0xef100
2718c2ecf20Sopenharmony_ci#define	ESE_GZ_XIL_CFGBAR_TBL_ENTRY_STRUCT_SIZE 128
2728c2ecf20Sopenharmony_ci
2738c2ecf20Sopenharmony_ci/* XIL_CFGBAR_VSEC */
2748c2ecf20Sopenharmony_ci#define	ESF_GZ_VSEC_TBL_OFF_HI_LBN 64
2758c2ecf20Sopenharmony_ci#define	ESF_GZ_VSEC_TBL_OFF_HI_WIDTH 32
2768c2ecf20Sopenharmony_ci#define	ESE_GZ_VSEC_TBL_OFF_HI_BYTES_SHIFT 32
2778c2ecf20Sopenharmony_ci#define	ESF_GZ_VSEC_TBL_OFF_LO_LBN 36
2788c2ecf20Sopenharmony_ci#define	ESF_GZ_VSEC_TBL_OFF_LO_WIDTH 28
2798c2ecf20Sopenharmony_ci#define	ESE_GZ_VSEC_TBL_OFF_LO_BYTES_SHIFT 4
2808c2ecf20Sopenharmony_ci#define	ESF_GZ_VSEC_TBL_BAR_LBN 32
2818c2ecf20Sopenharmony_ci#define	ESF_GZ_VSEC_TBL_BAR_WIDTH 4
2828c2ecf20Sopenharmony_ci#define	ESE_GZ_VSEC_BAR_NUM_INVALID 7
2838c2ecf20Sopenharmony_ci#define	ESE_GZ_VSEC_BAR_NUM_EXPANSION_ROM 6
2848c2ecf20Sopenharmony_ci#define	ESF_GZ_VSEC_LEN_LBN 20
2858c2ecf20Sopenharmony_ci#define	ESF_GZ_VSEC_LEN_WIDTH 12
2868c2ecf20Sopenharmony_ci#define	ESE_GZ_VSEC_LEN_HIGH_OFFT 16
2878c2ecf20Sopenharmony_ci#define	ESE_GZ_VSEC_LEN_MIN 12
2888c2ecf20Sopenharmony_ci#define	ESF_GZ_VSEC_VER_LBN 16
2898c2ecf20Sopenharmony_ci#define	ESF_GZ_VSEC_VER_WIDTH 4
2908c2ecf20Sopenharmony_ci#define	ESE_GZ_VSEC_VER_XIL_CFGBAR 0
2918c2ecf20Sopenharmony_ci#define	ESF_GZ_VSEC_ID_LBN 0
2928c2ecf20Sopenharmony_ci#define	ESF_GZ_VSEC_ID_WIDTH 16
2938c2ecf20Sopenharmony_ci#define	ESE_GZ_XILINX_VSEC_ID 0x20
2948c2ecf20Sopenharmony_ci#define	ESE_GZ_XIL_CFGBAR_VSEC_STRUCT_SIZE 96
2958c2ecf20Sopenharmony_ci
2968c2ecf20Sopenharmony_ci/* rh_egres_hclass */
2978c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_PREFIX_HCLASS_TUN_OUTER_L4_CSUM_LBN 15
2988c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_PREFIX_HCLASS_TUN_OUTER_L4_CSUM_WIDTH 1
2998c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_PREFIX_HCLASS_TUN_OUTER_L3_CLASS_LBN 13
3008c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_PREFIX_HCLASS_TUN_OUTER_L3_CLASS_WIDTH 2
3018c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_PREFIX_HCLASS_NT_OR_INNER_L4_CSUM_LBN 12
3028c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_PREFIX_HCLASS_NT_OR_INNER_L4_CSUM_WIDTH 1
3038c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_PREFIX_HCLASS_NT_OR_INNER_L4_CLASS_LBN 10
3048c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_PREFIX_HCLASS_NT_OR_INNER_L4_CLASS_WIDTH 2
3058c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_PREFIX_HCLASS_NT_OR_INNER_L3_CLASS_LBN 8
3068c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_PREFIX_HCLASS_NT_OR_INNER_L3_CLASS_WIDTH 2
3078c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_PREFIX_HCLASS_TUNNEL_CLASS_LBN 5
3088c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_PREFIX_HCLASS_TUNNEL_CLASS_WIDTH 3
3098c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_PREFIX_HCLASS_L2_N_VLAN_LBN 3
3108c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_PREFIX_HCLASS_L2_N_VLAN_WIDTH 2
3118c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_PREFIX_HCLASS_L2_CLASS_LBN 2
3128c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_PREFIX_HCLASS_L2_CLASS_WIDTH 1
3138c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_PREFIX_HCLASS_L2_STATUS_LBN 0
3148c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_PREFIX_HCLASS_L2_STATUS_WIDTH 2
3158c2ecf20Sopenharmony_ci#define	ESE_GZ_RH_EGRES_HCLASS_STRUCT_SIZE 16
3168c2ecf20Sopenharmony_ci
3178c2ecf20Sopenharmony_ci/* sf_driver */
3188c2ecf20Sopenharmony_ci#define	ESF_GZ_DRIVER_E_TYPE_LBN 60
3198c2ecf20Sopenharmony_ci#define	ESF_GZ_DRIVER_E_TYPE_WIDTH 4
3208c2ecf20Sopenharmony_ci#define	ESF_GZ_DRIVER_PHASE_LBN 59
3218c2ecf20Sopenharmony_ci#define	ESF_GZ_DRIVER_PHASE_WIDTH 1
3228c2ecf20Sopenharmony_ci#define	ESF_GZ_DRIVER_DATA_LBN 0
3238c2ecf20Sopenharmony_ci#define	ESF_GZ_DRIVER_DATA_WIDTH 59
3248c2ecf20Sopenharmony_ci#define	ESE_GZ_SF_DRIVER_STRUCT_SIZE 64
3258c2ecf20Sopenharmony_ci
3268c2ecf20Sopenharmony_ci/* sf_ev_rsvd */
3278c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_RSVD_TBD_NEXT_LBN 34
3288c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_RSVD_TBD_NEXT_WIDTH 3
3298c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_RSVD_EVENT_GEN_FLAGS_LBN 30
3308c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_RSVD_EVENT_GEN_FLAGS_WIDTH 4
3318c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_RSVD_SRC_QID_LBN 18
3328c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_RSVD_SRC_QID_WIDTH 12
3338c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_RSVD_SEQ_NUM_LBN 2
3348c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_RSVD_SEQ_NUM_WIDTH 16
3358c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_RSVD_TBD_LBN 0
3368c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_RSVD_TBD_WIDTH 2
3378c2ecf20Sopenharmony_ci#define	ESE_GZ_SF_EV_RSVD_STRUCT_SIZE 37
3388c2ecf20Sopenharmony_ci
3398c2ecf20Sopenharmony_ci/* sf_flush_evnt */
3408c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_FLSH_E_TYPE_LBN 60
3418c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_FLSH_E_TYPE_WIDTH 4
3428c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_FLSH_PHASE_LBN 59
3438c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_FLSH_PHASE_WIDTH 1
3448c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_FLSH_SUB_TYPE_LBN 53
3458c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_FLSH_SUB_TYPE_WIDTH 6
3468c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_FLSH_RSVD_LBN 10
3478c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_FLSH_RSVD_WIDTH 43
3488c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_FLSH_LABEL_LBN 4
3498c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_FLSH_LABEL_WIDTH 6
3508c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_FLSH_FLUSH_TYPE_LBN 0
3518c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_FLSH_FLUSH_TYPE_WIDTH 4
3528c2ecf20Sopenharmony_ci#define	ESE_GZ_SF_FLUSH_EVNT_STRUCT_SIZE 64
3538c2ecf20Sopenharmony_ci
3548c2ecf20Sopenharmony_ci/* sf_rx_pkts */
3558c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_RXPKTS_E_TYPE_LBN 60
3568c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_RXPKTS_E_TYPE_WIDTH 4
3578c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_RXPKTS_PHASE_LBN 59
3588c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_RXPKTS_PHASE_WIDTH 1
3598c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_RXPKTS_RSVD_LBN 22
3608c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_RXPKTS_RSVD_WIDTH 37
3618c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_RXPKTS_Q_LABEL_LBN 16
3628c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_RXPKTS_Q_LABEL_WIDTH 6
3638c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_RXPKTS_NUM_PKT_LBN 0
3648c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_RXPKTS_NUM_PKT_WIDTH 16
3658c2ecf20Sopenharmony_ci#define	ESE_GZ_SF_RX_PKTS_STRUCT_SIZE 64
3668c2ecf20Sopenharmony_ci
3678c2ecf20Sopenharmony_ci/* sf_rx_prefix */
3688c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_PREFIX_VLAN_STRIP_TCI_LBN 160
3698c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_PREFIX_VLAN_STRIP_TCI_WIDTH 16
3708c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_PREFIX_CSUM_FRAME_LBN 144
3718c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_PREFIX_CSUM_FRAME_WIDTH 16
3728c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_PREFIX_INGRESS_VPORT_LBN 128
3738c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_PREFIX_INGRESS_VPORT_WIDTH 16
3748c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_PREFIX_USER_MARK_LBN 96
3758c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_PREFIX_USER_MARK_WIDTH 32
3768c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_PREFIX_RSS_HASH_LBN 64
3778c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_PREFIX_RSS_HASH_WIDTH 32
3788c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_PREFIX_PARTIAL_TSTAMP_LBN 32
3798c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_PREFIX_PARTIAL_TSTAMP_WIDTH 32
3808c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_PREFIX_CLASS_LBN 16
3818c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_PREFIX_CLASS_WIDTH 16
3828c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_PREFIX_USER_FLAG_LBN 15
3838c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_PREFIX_USER_FLAG_WIDTH 1
3848c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_PREFIX_RSS_HASH_VALID_LBN 14
3858c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_PREFIX_RSS_HASH_VALID_WIDTH 1
3868c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_PREFIX_LENGTH_LBN 0
3878c2ecf20Sopenharmony_ci#define	ESF_GZ_RX_PREFIX_LENGTH_WIDTH 14
3888c2ecf20Sopenharmony_ci#define	ESE_GZ_SF_RX_PREFIX_STRUCT_SIZE 176
3898c2ecf20Sopenharmony_ci
3908c2ecf20Sopenharmony_ci/* sf_rxtx_generic */
3918c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_BARRIER_LBN 167
3928c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_BARRIER_WIDTH 1
3938c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_RSVD_LBN 130
3948c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_RSVD_WIDTH 37
3958c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_DPRXY_LBN 129
3968c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_DPRXY_WIDTH 1
3978c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_VIRTIO_LBN 128
3988c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_VIRTIO_WIDTH 1
3998c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_COUNT_LBN 0
4008c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_COUNT_WIDTH 128
4018c2ecf20Sopenharmony_ci#define	ESE_GZ_SF_RXTX_GENERIC_STRUCT_SIZE 168
4028c2ecf20Sopenharmony_ci
4038c2ecf20Sopenharmony_ci/* sf_ts_stamp */
4048c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_TS_E_TYPE_LBN 60
4058c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_TS_E_TYPE_WIDTH 4
4068c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_TS_PHASE_LBN 59
4078c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_TS_PHASE_WIDTH 1
4088c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_TS_RSVD_LBN 56
4098c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_TS_RSVD_WIDTH 3
4108c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_TS_STATUS_LBN 54
4118c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_TS_STATUS_WIDTH 2
4128c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_TS_Q_LABEL_LBN 48
4138c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_TS_Q_LABEL_WIDTH 6
4148c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_TS_DESC_ID_LBN 32
4158c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_TS_DESC_ID_WIDTH 16
4168c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_TS_PARTIAL_STAMP_LBN 0
4178c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_TS_PARTIAL_STAMP_WIDTH 32
4188c2ecf20Sopenharmony_ci#define	ESE_GZ_SF_TS_STAMP_STRUCT_SIZE 64
4198c2ecf20Sopenharmony_ci
4208c2ecf20Sopenharmony_ci/* sf_tx_cmplt */
4218c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_TXCMPL_E_TYPE_LBN 60
4228c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_TXCMPL_E_TYPE_WIDTH 4
4238c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_TXCMPL_PHASE_LBN 59
4248c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_TXCMPL_PHASE_WIDTH 1
4258c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_TXCMPL_RSVD_LBN 22
4268c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_TXCMPL_RSVD_WIDTH 37
4278c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_TXCMPL_Q_LABEL_LBN 16
4288c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_TXCMPL_Q_LABEL_WIDTH 6
4298c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_TXCMPL_NUM_DESC_LBN 0
4308c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_TXCMPL_NUM_DESC_WIDTH 16
4318c2ecf20Sopenharmony_ci#define	ESE_GZ_SF_TX_CMPLT_STRUCT_SIZE 64
4328c2ecf20Sopenharmony_ci
4338c2ecf20Sopenharmony_ci/* sf_tx_desc2cmpt_dsc_fmt */
4348c2ecf20Sopenharmony_ci#define	ESF_GZ_D2C_TGT_VI_ID_LBN 108
4358c2ecf20Sopenharmony_ci#define	ESF_GZ_D2C_TGT_VI_ID_WIDTH 16
4368c2ecf20Sopenharmony_ci#define	ESF_GZ_D2C_CMPT2_LBN 107
4378c2ecf20Sopenharmony_ci#define	ESF_GZ_D2C_CMPT2_WIDTH 1
4388c2ecf20Sopenharmony_ci#define	ESF_GZ_D2C_ABS_VI_ID_LBN 106
4398c2ecf20Sopenharmony_ci#define	ESF_GZ_D2C_ABS_VI_ID_WIDTH 1
4408c2ecf20Sopenharmony_ci#define	ESF_GZ_D2C_ORDERED_LBN 105
4418c2ecf20Sopenharmony_ci#define	ESF_GZ_D2C_ORDERED_WIDTH 1
4428c2ecf20Sopenharmony_ci#define	ESF_GZ_D2C_SKIP_N_LBN 97
4438c2ecf20Sopenharmony_ci#define	ESF_GZ_D2C_SKIP_N_WIDTH 8
4448c2ecf20Sopenharmony_ci#define	ESF_GZ_D2C_RSVD_LBN 64
4458c2ecf20Sopenharmony_ci#define	ESF_GZ_D2C_RSVD_WIDTH 33
4468c2ecf20Sopenharmony_ci#define	ESF_GZ_D2C_COMPLETION_LBN 0
4478c2ecf20Sopenharmony_ci#define	ESF_GZ_D2C_COMPLETION_WIDTH 64
4488c2ecf20Sopenharmony_ci#define	ESE_GZ_SF_TX_DESC2CMPT_DSC_FMT_STRUCT_SIZE 124
4498c2ecf20Sopenharmony_ci
4508c2ecf20Sopenharmony_ci/* sf_tx_mem2mem_dsc_fmt */
4518c2ecf20Sopenharmony_ci#define	ESF_GZ_M2M_ADDR_SPC_EN_LBN 123
4528c2ecf20Sopenharmony_ci#define	ESF_GZ_M2M_ADDR_SPC_EN_WIDTH 1
4538c2ecf20Sopenharmony_ci#define	ESF_GZ_M2M_TRANSLATE_ADDR_LBN 122
4548c2ecf20Sopenharmony_ci#define	ESF_GZ_M2M_TRANSLATE_ADDR_WIDTH 1
4558c2ecf20Sopenharmony_ci#define	ESF_GZ_M2M_RSVD_LBN 120
4568c2ecf20Sopenharmony_ci#define	ESF_GZ_M2M_RSVD_WIDTH 2
4578c2ecf20Sopenharmony_ci#define	ESF_GZ_M2M_ADDR_SPC_LBN 108
4588c2ecf20Sopenharmony_ci#define	ESF_GZ_M2M_ADDR_SPC_WIDTH 12
4598c2ecf20Sopenharmony_ci#define	ESF_GZ_M2M_ADDR_SPC_PASID_LBN 86
4608c2ecf20Sopenharmony_ci#define	ESF_GZ_M2M_ADDR_SPC_PASID_WIDTH 22
4618c2ecf20Sopenharmony_ci#define	ESF_GZ_M2M_ADDR_SPC_MODE_LBN 84
4628c2ecf20Sopenharmony_ci#define	ESF_GZ_M2M_ADDR_SPC_MODE_WIDTH 2
4638c2ecf20Sopenharmony_ci#define	ESF_GZ_M2M_LEN_MINUS_1_LBN 64
4648c2ecf20Sopenharmony_ci#define	ESF_GZ_M2M_LEN_MINUS_1_WIDTH 20
4658c2ecf20Sopenharmony_ci#define	ESF_GZ_M2M_ADDR_LBN 0
4668c2ecf20Sopenharmony_ci#define	ESF_GZ_M2M_ADDR_WIDTH 64
4678c2ecf20Sopenharmony_ci#define	ESE_GZ_SF_TX_MEM2MEM_DSC_FMT_STRUCT_SIZE 124
4688c2ecf20Sopenharmony_ci
4698c2ecf20Sopenharmony_ci/* sf_tx_ovr_dsc_fmt */
4708c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_PREFIX_MARK_EN_LBN 123
4718c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_PREFIX_MARK_EN_WIDTH 1
4728c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_PREFIX_INGRESS_MPORT_EN_LBN 122
4738c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_PREFIX_INGRESS_MPORT_EN_WIDTH 1
4748c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_PREFIX_INLINE_CAPSULE_META_LBN 121
4758c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_PREFIX_INLINE_CAPSULE_META_WIDTH 1
4768c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_PREFIX_EGRESS_MPORT_EN_LBN 120
4778c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_PREFIX_EGRESS_MPORT_EN_WIDTH 1
4788c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_PREFIX_RSRVD_LBN 64
4798c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_PREFIX_RSRVD_WIDTH 56
4808c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_PREFIX_EGRESS_MPORT_LBN 48
4818c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_PREFIX_EGRESS_MPORT_WIDTH 16
4828c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_PREFIX_INGRESS_MPORT_LBN 32
4838c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_PREFIX_INGRESS_MPORT_WIDTH 16
4848c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_PREFIX_MARK_LBN 0
4858c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_PREFIX_MARK_WIDTH 32
4868c2ecf20Sopenharmony_ci#define	ESE_GZ_SF_TX_OVR_DSC_FMT_STRUCT_SIZE 124
4878c2ecf20Sopenharmony_ci
4888c2ecf20Sopenharmony_ci/* sf_tx_seg_dsc_fmt */
4898c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEG_ADDR_SPC_EN_LBN 123
4908c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEG_ADDR_SPC_EN_WIDTH 1
4918c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEG_TRANSLATE_ADDR_LBN 122
4928c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEG_TRANSLATE_ADDR_WIDTH 1
4938c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEG_RSVD2_LBN 120
4948c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEG_RSVD2_WIDTH 2
4958c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEG_ADDR_SPC_LBN 108
4968c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEG_ADDR_SPC_WIDTH 12
4978c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEG_ADDR_SPC_PASID_LBN 86
4988c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEG_ADDR_SPC_PASID_WIDTH 22
4998c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEG_ADDR_SPC_MODE_LBN 84
5008c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEG_ADDR_SPC_MODE_WIDTH 2
5018c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEG_RSVD_LBN 80
5028c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEG_RSVD_WIDTH 4
5038c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEG_LEN_LBN 64
5048c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEG_LEN_WIDTH 16
5058c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEG_ADDR_LBN 0
5068c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEG_ADDR_WIDTH 64
5078c2ecf20Sopenharmony_ci#define	ESE_GZ_SF_TX_SEG_DSC_FMT_STRUCT_SIZE 124
5088c2ecf20Sopenharmony_ci
5098c2ecf20Sopenharmony_ci/* sf_tx_std_dsc_fmt */
5108c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEND_VLAN_INSERT_TCI_LBN 108
5118c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEND_VLAN_INSERT_TCI_WIDTH 16
5128c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEND_VLAN_INSERT_EN_LBN 107
5138c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEND_VLAN_INSERT_EN_WIDTH 1
5148c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEND_TSTAMP_REQ_LBN 106
5158c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEND_TSTAMP_REQ_WIDTH 1
5168c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEND_CSO_OUTER_L4_LBN 105
5178c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEND_CSO_OUTER_L4_WIDTH 1
5188c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEND_CSO_OUTER_L3_LBN 104
5198c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEND_CSO_OUTER_L3_WIDTH 1
5208c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEND_CSO_INNER_L3_LBN 101
5218c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEND_CSO_INNER_L3_WIDTH 3
5228c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEND_RSVD_LBN 99
5238c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEND_RSVD_WIDTH 2
5248c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEND_CSO_PARTIAL_EN_LBN 97
5258c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEND_CSO_PARTIAL_EN_WIDTH 2
5268c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEND_CSO_PARTIAL_CSUM_W_LBN 92
5278c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEND_CSO_PARTIAL_CSUM_W_WIDTH 5
5288c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEND_CSO_PARTIAL_START_W_LBN 83
5298c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEND_CSO_PARTIAL_START_W_WIDTH 9
5308c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEND_NUM_SEGS_LBN 78
5318c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEND_NUM_SEGS_WIDTH 5
5328c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEND_LEN_LBN 64
5338c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEND_LEN_WIDTH 14
5348c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEND_ADDR_LBN 0
5358c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_SEND_ADDR_WIDTH 64
5368c2ecf20Sopenharmony_ci#define	ESE_GZ_SF_TX_STD_DSC_FMT_STRUCT_SIZE 124
5378c2ecf20Sopenharmony_ci
5388c2ecf20Sopenharmony_ci/* sf_tx_tso_dsc_fmt */
5398c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_VLAN_INSERT_TCI_LBN 108
5408c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_VLAN_INSERT_TCI_WIDTH 16
5418c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_VLAN_INSERT_EN_LBN 107
5428c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_VLAN_INSERT_EN_WIDTH 1
5438c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_TSTAMP_REQ_LBN 106
5448c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_TSTAMP_REQ_WIDTH 1
5458c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_CSO_OUTER_L4_LBN 105
5468c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_CSO_OUTER_L4_WIDTH 1
5478c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_CSO_OUTER_L3_LBN 104
5488c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_CSO_OUTER_L3_WIDTH 1
5498c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_CSO_INNER_L3_LBN 101
5508c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_CSO_INNER_L3_WIDTH 3
5518c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_RSVD_LBN 94
5528c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_RSVD_WIDTH 7
5538c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_CSO_INNER_L4_LBN 93
5548c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_CSO_INNER_L4_WIDTH 1
5558c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_INNER_L4_OFF_W_LBN 85
5568c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_INNER_L4_OFF_W_WIDTH 8
5578c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_INNER_L3_OFF_W_LBN 77
5588c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_INNER_L3_OFF_W_WIDTH 8
5598c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_OUTER_L4_OFF_W_LBN 69
5608c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_OUTER_L4_OFF_W_WIDTH 8
5618c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_OUTER_L3_OFF_W_LBN 64
5628c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_OUTER_L3_OFF_W_WIDTH 5
5638c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_PAYLOAD_LEN_LBN 42
5648c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_PAYLOAD_LEN_WIDTH 22
5658c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_HDR_LEN_W_LBN 34
5668c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_HDR_LEN_W_WIDTH 8
5678c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_ED_OUTER_UDP_LEN_LBN 33
5688c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_ED_OUTER_UDP_LEN_WIDTH 1
5698c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_ED_INNER_IP_LEN_LBN 32
5708c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_ED_INNER_IP_LEN_WIDTH 1
5718c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_ED_OUTER_IP_LEN_LBN 31
5728c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_ED_OUTER_IP_LEN_WIDTH 1
5738c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_ED_INNER_IP4_ID_LBN 29
5748c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_ED_INNER_IP4_ID_WIDTH 2
5758c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_ED_OUTER_IP4_ID_LBN 27
5768c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_ED_OUTER_IP4_ID_WIDTH 2
5778c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_PAYLOAD_NUM_SEGS_LBN 17
5788c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_PAYLOAD_NUM_SEGS_WIDTH 10
5798c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_HDR_NUM_SEGS_LBN 14
5808c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_HDR_NUM_SEGS_WIDTH 3
5818c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_MSS_LBN 0
5828c2ecf20Sopenharmony_ci#define	ESF_GZ_TX_TSO_MSS_WIDTH 14
5838c2ecf20Sopenharmony_ci#define	ESE_GZ_SF_TX_TSO_DSC_FMT_STRUCT_SIZE 124
5848c2ecf20Sopenharmony_ci
5858c2ecf20Sopenharmony_ci
5868c2ecf20Sopenharmony_ci/* Enum DESIGN_PARAMS */
5878c2ecf20Sopenharmony_ci#define	ESE_EF100_DP_GZ_RX_MAX_RUNT 17
5888c2ecf20Sopenharmony_ci#define	ESE_EF100_DP_GZ_VI_STRIDES 16
5898c2ecf20Sopenharmony_ci#define	ESE_EF100_DP_GZ_NMMU_PAGE_SIZES 15
5908c2ecf20Sopenharmony_ci#define	ESE_EF100_DP_GZ_EVQ_TIMER_TICK_NANOS 14
5918c2ecf20Sopenharmony_ci#define	ESE_EF100_DP_GZ_MEM2MEM_MAX_LEN 13
5928c2ecf20Sopenharmony_ci#define	ESE_EF100_DP_GZ_COMPAT 12
5938c2ecf20Sopenharmony_ci#define	ESE_EF100_DP_GZ_TSO_MAX_NUM_FRAMES 11
5948c2ecf20Sopenharmony_ci#define	ESE_EF100_DP_GZ_TSO_MAX_PAYLOAD_NUM_SEGS 10
5958c2ecf20Sopenharmony_ci#define	ESE_EF100_DP_GZ_TSO_MAX_PAYLOAD_LEN 9
5968c2ecf20Sopenharmony_ci#define	ESE_EF100_DP_GZ_TXQ_SIZE_GRANULARITY 8
5978c2ecf20Sopenharmony_ci#define	ESE_EF100_DP_GZ_RXQ_SIZE_GRANULARITY 7
5988c2ecf20Sopenharmony_ci#define	ESE_EF100_DP_GZ_TSO_MAX_HDR_NUM_SEGS 6
5998c2ecf20Sopenharmony_ci#define	ESE_EF100_DP_GZ_TSO_MAX_HDR_LEN 5
6008c2ecf20Sopenharmony_ci#define	ESE_EF100_DP_GZ_RX_L4_CSUM_PROTOCOLS 4
6018c2ecf20Sopenharmony_ci#define	ESE_EF100_DP_GZ_NMMU_GROUP_SIZE 3
6028c2ecf20Sopenharmony_ci#define	ESE_EF100_DP_GZ_EVQ_UNSOL_CREDIT_SEQ_BITS 2
6038c2ecf20Sopenharmony_ci#define	ESE_EF100_DP_GZ_PARTIAL_TSTAMP_SUB_NANO_BITS 1
6048c2ecf20Sopenharmony_ci#define	ESE_EF100_DP_GZ_PAD 0
6058c2ecf20Sopenharmony_ci
6068c2ecf20Sopenharmony_ci/* Enum DESIGN_PARAM_DEFAULTS */
6078c2ecf20Sopenharmony_ci#define	ESE_EF100_DP_GZ_TSO_MAX_PAYLOAD_LEN_DEFAULT 0x3fffff
6088c2ecf20Sopenharmony_ci#define	ESE_EF100_DP_GZ_TSO_MAX_NUM_FRAMES_DEFAULT 8192
6098c2ecf20Sopenharmony_ci#define	ESE_EF100_DP_GZ_MEM2MEM_MAX_LEN_DEFAULT 8192
6108c2ecf20Sopenharmony_ci#define	ESE_EF100_DP_GZ_RX_L4_CSUM_PROTOCOLS_DEFAULT 0x1106
6118c2ecf20Sopenharmony_ci#define	ESE_EF100_DP_GZ_TSO_MAX_PAYLOAD_NUM_SEGS_DEFAULT 0x3ff
6128c2ecf20Sopenharmony_ci#define	ESE_EF100_DP_GZ_RX_MAX_RUNT_DEFAULT 640
6138c2ecf20Sopenharmony_ci#define	ESE_EF100_DP_GZ_EVQ_TIMER_TICK_NANOS_DEFAULT 512
6148c2ecf20Sopenharmony_ci#define	ESE_EF100_DP_GZ_NMMU_PAGE_SIZES_DEFAULT 512
6158c2ecf20Sopenharmony_ci#define	ESE_EF100_DP_GZ_TSO_MAX_HDR_LEN_DEFAULT 192
6168c2ecf20Sopenharmony_ci#define	ESE_EF100_DP_GZ_RXQ_SIZE_GRANULARITY_DEFAULT 64
6178c2ecf20Sopenharmony_ci#define	ESE_EF100_DP_GZ_TXQ_SIZE_GRANULARITY_DEFAULT 64
6188c2ecf20Sopenharmony_ci#define	ESE_EF100_DP_GZ_NMMU_GROUP_SIZE_DEFAULT 32
6198c2ecf20Sopenharmony_ci#define	ESE_EF100_DP_GZ_VI_STRIDES_DEFAULT 16
6208c2ecf20Sopenharmony_ci#define	ESE_EF100_DP_GZ_EVQ_UNSOL_CREDIT_SEQ_BITS_DEFAULT 7
6218c2ecf20Sopenharmony_ci#define	ESE_EF100_DP_GZ_TSO_MAX_HDR_NUM_SEGS_DEFAULT 4
6228c2ecf20Sopenharmony_ci#define	ESE_EF100_DP_GZ_PARTIAL_TSTAMP_SUB_NANO_BITS_DEFAULT 2
6238c2ecf20Sopenharmony_ci#define	ESE_EF100_DP_GZ_COMPAT_DEFAULT 0
6248c2ecf20Sopenharmony_ci
6258c2ecf20Sopenharmony_ci/* Enum HOST_IF_CONSTANTS */
6268c2ecf20Sopenharmony_ci#define	ESE_GZ_FCW_LEN 0x4C
6278c2ecf20Sopenharmony_ci#define	ESE_GZ_RX_PKT_PREFIX_LEN 22
6288c2ecf20Sopenharmony_ci
6298c2ecf20Sopenharmony_ci/* Enum PCI_CONSTANTS */
6308c2ecf20Sopenharmony_ci#define	ESE_GZ_PCI_BASE_CONFIG_SPACE_SIZE 256
6318c2ecf20Sopenharmony_ci#define	ESE_GZ_PCI_EXPRESS_XCAP_HDR_SIZE 4
6328c2ecf20Sopenharmony_ci
6338c2ecf20Sopenharmony_ci/* Enum RH_HCLASS_L2_CLASS */
6348c2ecf20Sopenharmony_ci#define	ESE_GZ_RH_HCLASS_L2_CLASS_E2_0123VLAN 1
6358c2ecf20Sopenharmony_ci#define	ESE_GZ_RH_HCLASS_L2_CLASS_OTHER 0
6368c2ecf20Sopenharmony_ci
6378c2ecf20Sopenharmony_ci/* Enum RH_HCLASS_L2_STATUS */
6388c2ecf20Sopenharmony_ci#define	ESE_GZ_RH_HCLASS_L2_STATUS_RESERVED 3
6398c2ecf20Sopenharmony_ci#define	ESE_GZ_RH_HCLASS_L2_STATUS_FCS_ERR 2
6408c2ecf20Sopenharmony_ci#define	ESE_GZ_RH_HCLASS_L2_STATUS_LEN_ERR 1
6418c2ecf20Sopenharmony_ci#define	ESE_GZ_RH_HCLASS_L2_STATUS_OK 0
6428c2ecf20Sopenharmony_ci
6438c2ecf20Sopenharmony_ci/* Enum RH_HCLASS_L3_CLASS */
6448c2ecf20Sopenharmony_ci#define	ESE_GZ_RH_HCLASS_L3_CLASS_OTHER 3
6458c2ecf20Sopenharmony_ci#define	ESE_GZ_RH_HCLASS_L3_CLASS_IP6 2
6468c2ecf20Sopenharmony_ci#define	ESE_GZ_RH_HCLASS_L3_CLASS_IP4BAD 1
6478c2ecf20Sopenharmony_ci#define	ESE_GZ_RH_HCLASS_L3_CLASS_IP4GOOD 0
6488c2ecf20Sopenharmony_ci
6498c2ecf20Sopenharmony_ci/* Enum RH_HCLASS_L4_CLASS */
6508c2ecf20Sopenharmony_ci#define	ESE_GZ_RH_HCLASS_L4_CLASS_OTHER 3
6518c2ecf20Sopenharmony_ci#define	ESE_GZ_RH_HCLASS_L4_CLASS_FRAG 2
6528c2ecf20Sopenharmony_ci#define	ESE_GZ_RH_HCLASS_L4_CLASS_UDP 1
6538c2ecf20Sopenharmony_ci#define	ESE_GZ_RH_HCLASS_L4_CLASS_TCP 0
6548c2ecf20Sopenharmony_ci
6558c2ecf20Sopenharmony_ci/* Enum RH_HCLASS_L4_CSUM */
6568c2ecf20Sopenharmony_ci#define	ESE_GZ_RH_HCLASS_L4_CSUM_GOOD 1
6578c2ecf20Sopenharmony_ci#define	ESE_GZ_RH_HCLASS_L4_CSUM_BAD_OR_UNKNOWN 0
6588c2ecf20Sopenharmony_ci
6598c2ecf20Sopenharmony_ci/* Enum RH_HCLASS_TUNNEL_CLASS */
6608c2ecf20Sopenharmony_ci#define	ESE_GZ_RH_HCLASS_TUNNEL_CLASS_RESERVED_7 7
6618c2ecf20Sopenharmony_ci#define	ESE_GZ_RH_HCLASS_TUNNEL_CLASS_RESERVED_6 6
6628c2ecf20Sopenharmony_ci#define	ESE_GZ_RH_HCLASS_TUNNEL_CLASS_RESERVED_5 5
6638c2ecf20Sopenharmony_ci#define	ESE_GZ_RH_HCLASS_TUNNEL_CLASS_RESERVED_4 4
6648c2ecf20Sopenharmony_ci#define	ESE_GZ_RH_HCLASS_TUNNEL_CLASS_GENEVE 3
6658c2ecf20Sopenharmony_ci#define	ESE_GZ_RH_HCLASS_TUNNEL_CLASS_NVGRE 2
6668c2ecf20Sopenharmony_ci#define	ESE_GZ_RH_HCLASS_TUNNEL_CLASS_VXLAN 1
6678c2ecf20Sopenharmony_ci#define	ESE_GZ_RH_HCLASS_TUNNEL_CLASS_NONE 0
6688c2ecf20Sopenharmony_ci
6698c2ecf20Sopenharmony_ci/* Enum TX_DESC_CSO_PARTIAL_EN */
6708c2ecf20Sopenharmony_ci#define	ESE_GZ_TX_DESC_CSO_PARTIAL_EN_TCP 2
6718c2ecf20Sopenharmony_ci#define	ESE_GZ_TX_DESC_CSO_PARTIAL_EN_UDP 1
6728c2ecf20Sopenharmony_ci#define	ESE_GZ_TX_DESC_CSO_PARTIAL_EN_OFF 0
6738c2ecf20Sopenharmony_ci
6748c2ecf20Sopenharmony_ci/* Enum TX_DESC_CS_INNER_L3 */
6758c2ecf20Sopenharmony_ci#define	ESE_GZ_TX_DESC_CS_INNER_L3_GENEVE 3
6768c2ecf20Sopenharmony_ci#define	ESE_GZ_TX_DESC_CS_INNER_L3_NVGRE 2
6778c2ecf20Sopenharmony_ci#define	ESE_GZ_TX_DESC_CS_INNER_L3_VXLAN 1
6788c2ecf20Sopenharmony_ci#define	ESE_GZ_TX_DESC_CS_INNER_L3_OFF 0
6798c2ecf20Sopenharmony_ci
6808c2ecf20Sopenharmony_ci/* Enum TX_DESC_IP4_ID */
6818c2ecf20Sopenharmony_ci#define	ESE_GZ_TX_DESC_IP4_ID_INC_MOD16 2
6828c2ecf20Sopenharmony_ci#define	ESE_GZ_TX_DESC_IP4_ID_INC_MOD15 1
6838c2ecf20Sopenharmony_ci#define	ESE_GZ_TX_DESC_IP4_ID_NO_OP 0
6848c2ecf20Sopenharmony_ci/**************************************************************************/
6858c2ecf20Sopenharmony_ci
6868c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_DEBUG_EVENT_GEN_FLAGS_LBN 44
6878c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_DEBUG_EVENT_GEN_FLAGS_WIDTH 4
6888c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_DEBUG_SRC_QID_LBN 32
6898c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_DEBUG_SRC_QID_WIDTH 12
6908c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_DEBUG_SEQ_NUM_LBN 16
6918c2ecf20Sopenharmony_ci#define	ESF_GZ_EV_DEBUG_SEQ_NUM_WIDTH 16
6928c2ecf20Sopenharmony_ci
6938c2ecf20Sopenharmony_ci#endif /* EFX_EF100_REGS_H */
694