iPXE
Data Structures | Macros | Functions | Variables
etherfabric.c File Reference
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <assert.h>
#include <byteswap.h>
#include <ipxe/io.h>
#include <ipxe/pci.h>
#include <ipxe/malloc.h>
#include <ipxe/ethernet.h>
#include <ipxe/iobuf.h>
#include <ipxe/netdevice.h>
#include <ipxe/timer.h>
#include <mii.h>
#include "etherfabric.h"
#include "etherfabric_nic.h"

Go to the source code of this file.

Data Structures

struct  falcon_nv_config_ver2
 
struct  falcon_nv_extra
 

Macros

#define EFAB_REGDUMP(...)
 
#define EFAB_TRACE(...)   DBGP(__VA_ARGS__)
 
#define EFAB_LOG(...)   DBG(__VA_ARGS__)
 
#define EFAB_ERR(...)   DBG(__VA_ARGS__)
 
#define FALCON_USE_IO_BAR   0
 
#define HZ   100
 
#define EFAB_BYTE   1
 
#define FQS(_prefix, _x)
 
#define EFAB_MAX_FRAME_LEN(mtu)   ( ( ( ( mtu ) + 4/* FCS */ ) + 7 ) & ~7 )
 
#define GMII_PSSR   0x11 /* PHY-specific status register */
 
#define LPA_EF_1000FULL   0x00020000
 
#define LPA_EF_1000HALF   0x00010000
 
#define LPA_EF_10000FULL   0x00040000
 
#define LPA_EF_10000HALF   0x00080000
 
#define LPA_EF_1000   ( LPA_EF_1000FULL | LPA_EF_1000HALF )
 
#define LPA_EF_10000   ( LPA_EF_10000FULL | LPA_EF_10000HALF )
 
#define LPA_EF_DUPLEX
 
#define LPA_OTHER
 
#define PSSR_LSTATUS   0x0400 /* Bit 10 - link status */
 
#define MDIO_MMD_PMAPMD   (1)
 
#define MDIO_MMD_WIS   (2)
 
#define MDIO_MMD_PCS   (3)
 
#define MDIO_MMD_PHYXS   (4)
 
#define MDIO_MMD_DTEXS   (5)
 
#define MDIO_MMD_TC   (6)
 
#define MDIO_MMD_AN   (7)
 
#define MDIO_MMDREG_CTRL1   (0)
 
#define MDIO_MMDREG_STAT1   (1)
 
#define MDIO_MMDREG_DEVS0   (5)
 
#define MDIO_MMDREG_STAT2   (8)
 
#define MDIO_MMDREG_CTRL1_RESET_LBN   (15)
 
#define MDIO_MMDREG_CTRL1_RESET_WIDTH   (1)
 
#define MDIO_MMDREG_STAT1_FAULT_LBN   (7)
 
#define MDIO_MMDREG_STAT1_FAULT_WIDTH   (1)
 
#define MDIO_MMDREG_STAT1_LINK_LBN   (2)
 
#define MDIO_MMDREG_STAT1_LINK_WIDTH   (1)
 
#define DEV_PRESENT_BIT(_b)   (1 << _b)
 
#define MDIO_MMDREG_DEVS0_DTEXS   DEV_PRESENT_BIT(MDIO_MMD_DTEXS)
 
#define MDIO_MMDREG_DEVS0_PHYXS   DEV_PRESENT_BIT(MDIO_MMD_PHYXS)
 
#define MDIO_MMDREG_DEVS0_PCS   DEV_PRESENT_BIT(MDIO_MMD_PCS)
 
#define MDIO_MMDREG_DEVS0_WIS   DEV_PRESENT_BIT(MDIO_MMD_WIS)
 
#define MDIO_MMDREG_DEVS0_PMAPMD   DEV_PRESENT_BIT(MDIO_MMD_PMAPMD)
 
#define MDIO_MMDREG_DEVS0_AN   DEV_PRESENT_BIT(MDIO_MMD_AN)
 
#define MDIO_MMDREG_STAT2_PRESENT_VAL   (2)
 
#define MDIO_MMDREG_STAT2_PRESENT_LBN   (14)
 
#define MDIO_MMDREG_STAT2_PRESENT_WIDTH   (2)
 
#define MDIO_PHYXS_LANE_STATE   (0x18)
 
#define MDIO_PHYXS_LANE_ALIGNED_LBN   (12)
 
#define MDIO_PHYXS_LANE_SYNC0_LBN   (0)
 
#define MDIO_PHYXS_LANE_SYNC1_LBN   (1)
 
#define MDIO_PHYXS_LANE_SYNC2_LBN   (2)
 
#define MDIO_PHYXS_LANE_SYNC3_LBN   (3)
 
#define MDIO45_RESET_TRIES   100
 
#define MDIO45_RESET_SPINTIME   10
 
#define FCN_IOM_IND_ADR_REG   0x0
 
#define FCN_IOM_IND_DAT_REG   0x4
 
#define FCN_ADR_REGION_REG_KER   0x00
 
#define FCN_ADR_REGION0_LBN   0
 
#define FCN_ADR_REGION0_WIDTH   18
 
#define FCN_ADR_REGION1_LBN   32
 
#define FCN_ADR_REGION1_WIDTH   18
 
#define FCN_ADR_REGION2_LBN   64
 
#define FCN_ADR_REGION2_WIDTH   18
 
#define FCN_ADR_REGION3_LBN   96
 
#define FCN_ADR_REGION3_WIDTH   18
 
#define FCN_INT_EN_REG_KER   0x0010
 
#define FCN_MEM_PERR_INT_EN_KER_LBN   5
 
#define FCN_MEM_PERR_INT_EN_KER_WIDTH   1
 
#define FCN_KER_INT_CHAR_LBN   4
 
#define FCN_KER_INT_CHAR_WIDTH   1
 
#define FCN_KER_INT_KER_LBN   3
 
#define FCN_KER_INT_KER_WIDTH   1
 
#define FCN_ILL_ADR_ERR_INT_EN_KER_LBN   2
 
#define FCN_ILL_ADR_ERR_INT_EN_KER_WIDTH   1
 
#define FCN_SRM_PERR_INT_EN_KER_LBN   1
 
#define FCN_SRM_PERR_INT_EN_KER_WIDTH   1
 
#define FCN_DRV_INT_EN_KER_LBN   0
 
#define FCN_DRV_INT_EN_KER_WIDTH   1
 
#define FCN_INT_ADR_REG_KER   0x0030
 
#define FCN_INT_ADR_KER_LBN   0
 
#define FCN_INT_ADR_KER_WIDTH   EFAB_DMA_TYPE_WIDTH ( 64 )
 
#define INT_ISR0_B0   0x90
 
#define INT_ISR1_B0   0xA0
 
#define FCN_INT_ACK_KER_REG_A1   0x0050
 
#define INT_ACK_DUMMY_DATA_LBN   0
 
#define INT_ACK_DUMMY_DATA_WIDTH   32
 
#define WORK_AROUND_BROKEN_PCI_READS_REG_KER_A1   0x0070
 
#define FCN_HW_INIT_REG_KER   0x00c0
 
#define FCN_BCSR_TARGET_MASK_LBN   101
 
#define FCN_BCSR_TARGET_MASK_WIDTH   4
 
#define FCN_EE_SPI_HCMD_REG   0x0100
 
#define FCN_EE_SPI_HCMD_CMD_EN_LBN   31
 
#define FCN_EE_SPI_HCMD_CMD_EN_WIDTH   1
 
#define FCN_EE_WR_TIMER_ACTIVE_LBN   28
 
#define FCN_EE_WR_TIMER_ACTIVE_WIDTH   1
 
#define FCN_EE_SPI_HCMD_SF_SEL_LBN   24
 
#define FCN_EE_SPI_HCMD_SF_SEL_WIDTH   1
 
#define FCN_EE_SPI_EEPROM   0
 
#define FCN_EE_SPI_FLASH   1
 
#define FCN_EE_SPI_HCMD_DABCNT_LBN   16
 
#define FCN_EE_SPI_HCMD_DABCNT_WIDTH   5
 
#define FCN_EE_SPI_HCMD_READ_LBN   15
 
#define FCN_EE_SPI_HCMD_READ_WIDTH   1
 
#define FCN_EE_SPI_READ   1
 
#define FCN_EE_SPI_WRITE   0
 
#define FCN_EE_SPI_HCMD_DUBCNT_LBN   12
 
#define FCN_EE_SPI_HCMD_DUBCNT_WIDTH   2
 
#define FCN_EE_SPI_HCMD_ADBCNT_LBN   8
 
#define FCN_EE_SPI_HCMD_ADBCNT_WIDTH   2
 
#define FCN_EE_SPI_HCMD_ENC_LBN   0
 
#define FCN_EE_SPI_HCMD_ENC_WIDTH   8
 
#define FCN_EE_SPI_HADR_REG   0x0110
 
#define FCN_EE_SPI_HADR_DUBYTE_LBN   24
 
#define FCN_EE_SPI_HADR_DUBYTE_WIDTH   8
 
#define FCN_EE_SPI_HADR_ADR_LBN   0
 
#define FCN_EE_SPI_HADR_ADR_WIDTH   24
 
#define FCN_EE_SPI_HDATA_REG   0x0120
 
#define FCN_EE_SPI_HDATA3_LBN   96
 
#define FCN_EE_SPI_HDATA3_WIDTH   32
 
#define FCN_EE_SPI_HDATA2_LBN   64
 
#define FCN_EE_SPI_HDATA2_WIDTH   32
 
#define FCN_EE_SPI_HDATA1_LBN   32
 
#define FCN_EE_SPI_HDATA1_WIDTH   32
 
#define FCN_EE_SPI_HDATA0_LBN   0
 
#define FCN_EE_SPI_HDATA0_WIDTH   32
 
#define FCN_EE_VPD_CFG_REG   0x0140
 
#define FCN_EE_VPD_EN_LBN   0
 
#define FCN_EE_VPD_EN_WIDTH   1
 
#define FCN_EE_VPD_EN_AD9_MODE_LBN   1
 
#define FCN_EE_VPD_EN_AD9_MODE_WIDTH   1
 
#define FCN_EE_EE_CLOCK_DIV_LBN   112
 
#define FCN_EE_EE_CLOCK_DIV_WIDTH   7
 
#define FCN_EE_SF_CLOCK_DIV_LBN   120
 
#define FCN_EE_SF_CLOCK_DIV_WIDTH   7
 
#define FCN_NIC_STAT_REG   0x0200
 
#define FCN_ONCHIP_SRAM_LBN   16
 
#define FCN_ONCHIP_SRAM_WIDTH   1
 
#define FCN_SF_PRST_LBN   9
 
#define FCN_SF_PRST_WIDTH   1
 
#define FCN_EE_PRST_LBN   8
 
#define FCN_EE_PRST_WIDTH   1
 
#define FCN_EE_STRAP_LBN   7
 
#define FCN_EE_STRAP_WIDTH   1
 
#define FCN_PCI_PCIX_MODE_LBN   4
 
#define FCN_PCI_PCIX_MODE_WIDTH   3
 
#define FCN_PCI_PCIX_MODE_PCI33_DECODE   0
 
#define FCN_PCI_PCIX_MODE_PCI66_DECODE   1
 
#define FCN_PCI_PCIX_MODE_PCIX66_DECODE   5
 
#define FCN_PCI_PCIX_MODE_PCIX100_DECODE   6
 
#define FCN_PCI_PCIX_MODE_PCIX133_DECODE   7
 
#define FCN_STRAP_ISCSI_EN_LBN   3
 
#define FCN_STRAP_ISCSI_EN_WIDTH   1
 
#define FCN_STRAP_PINS_LBN   0
 
#define FCN_STRAP_PINS_WIDTH   3
 
#define FCN_STRAP_10G_LBN   2
 
#define FCN_STRAP_10G_WIDTH   1
 
#define FCN_STRAP_DUAL_PORT_LBN   1
 
#define FCN_STRAP_DUAL_PORT_WIDTH   1
 
#define FCN_STRAP_PCIE_LBN   0
 
#define FCN_STRAP_PCIE_WIDTH   1
 
#define FALCON_REV_A0   0
 
#define FALCON_REV_A1   1
 
#define FALCON_REV_B0   2
 
#define FCN_GPIO_CTL_REG_KER   0x0210
 
#define FCN_GPIO_CTL_REG_KER   0x0210
 
#define FCN_GPIO3_OEN_LBN   27
 
#define FCN_GPIO3_OEN_WIDTH   1
 
#define FCN_GPIO2_OEN_LBN   26
 
#define FCN_GPIO2_OEN_WIDTH   1
 
#define FCN_GPIO1_OEN_LBN   25
 
#define FCN_GPIO1_OEN_WIDTH   1
 
#define FCN_GPIO0_OEN_LBN   24
 
#define FCN_GPIO0_OEN_WIDTH   1
 
#define FCN_GPIO3_OUT_LBN   19
 
#define FCN_GPIO3_OUT_WIDTH   1
 
#define FCN_GPIO2_OUT_LBN   18
 
#define FCN_GPIO2_OUT_WIDTH   1
 
#define FCN_GPIO1_OUT_LBN   17
 
#define FCN_GPIO1_OUT_WIDTH   1
 
#define FCN_GPIO0_OUT_LBN   16
 
#define FCN_GPIO0_OUT_WIDTH   1
 
#define FCN_GPIO3_IN_LBN   11
 
#define FCN_GPIO3_IN_WIDTH   1
 
#define FCN_GPIO2_IN_LBN   10
 
#define FCN_GPIO2_IN_WIDTH   1
 
#define FCN_GPIO1_IN_LBN   9
 
#define FCN_GPIO1_IN_WIDTH   1
 
#define FCN_GPIO0_IN_LBN   8
 
#define FCN_GPIO0_IN_WIDTH   1
 
#define FCN_FLASH_PRESENT_LBN   7
 
#define FCN_FLASH_PRESENT_WIDTH   1
 
#define FCN_EEPROM_PRESENT_LBN   6
 
#define FCN_EEPROM_PRESENT_WIDTH   1
 
#define FCN_BOOTED_USING_NVDEVICE_LBN   3
 
#define FCN_BOOTED_USING_NVDEVICE_WIDTH   1
 
#define FCN_NV_MAGIC_NUMBER   0xFA1C
 
#define FCN_GLB_CTL_REG_KER   0x0220
 
#define FCN_EXT_PHY_RST_CTL_LBN   63
 
#define FCN_EXT_PHY_RST_CTL_WIDTH   1
 
#define FCN_PCIE_SD_RST_CTL_LBN   61
 
#define FCN_PCIE_SD_RST_CTL_WIDTH   1
 
#define FCN_PCIE_STCK_RST_CTL_LBN   59
 
#define FCN_PCIE_STCK_RST_CTL_WIDTH   1
 
#define FCN_PCIE_NSTCK_RST_CTL_LBN   58
 
#define FCN_PCIE_NSTCK_RST_CTL_WIDTH   1
 
#define FCN_PCIE_CORE_RST_CTL_LBN   57
 
#define FCN_PCIE_CORE_RST_CTL_WIDTH   1
 
#define FCN_EE_RST_CTL_LBN   49
 
#define FCN_EE_RST_CTL_WIDTH   1
 
#define FCN_RST_EXT_PHY_LBN   31
 
#define FCN_RST_EXT_PHY_WIDTH   1
 
#define FCN_EXT_PHY_RST_DUR_LBN   1
 
#define FCN_EXT_PHY_RST_DUR_WIDTH   3
 
#define FCN_SWRST_LBN   0
 
#define FCN_SWRST_WIDTH   1
 
#define INCLUDE_IN_RESET   0
 
#define EXCLUDE_FROM_RESET   1
 
#define FCN_ALTERA_BUILD_REG_KER   0x0300
 
#define FCN_VER_MAJOR_LBN   24
 
#define FCN_VER_MAJOR_WIDTH   8
 
#define FCN_VER_MINOR_LBN   16
 
#define FCN_VER_MINOR_WIDTH   8
 
#define FCN_VER_BUILD_LBN   0
 
#define FCN_VER_BUILD_WIDTH   16
 
#define FCN_VER_ALL_LBN   0
 
#define FCN_VER_ALL_WIDTH   32
 
#define FCN_SPARE_REG_KER   0x310
 
#define FCN_MEM_PERR_EN_TX_DATA_LBN   72
 
#define FCN_MEM_PERR_EN_TX_DATA_WIDTH   2
 
#define FCN_TIMER_CMD_REG_KER   0x420
 
#define FCN_TIMER_MODE_LBN   12
 
#define FCN_TIMER_MODE_WIDTH   2
 
#define FCN_TIMER_MODE_DIS   0
 
#define FCN_TIMER_MODE_INT_HLDOFF   1
 
#define FCN_TIMER_VAL_LBN   0
 
#define FCN_TIMER_VAL_WIDTH   12
 
#define FCN_RX_CFG_REG_KER   0x800
 
#define FCN_RX_XOFF_EN_LBN   0
 
#define FCN_RX_XOFF_EN_WIDTH   1
 
#define FCN_SRM_RX_DC_CFG_REG_KER   0x610
 
#define FCN_SRM_RX_DC_BASE_ADR_LBN   0
 
#define FCN_SRM_RX_DC_BASE_ADR_WIDTH   21
 
#define FCN_SRM_TX_DC_CFG_REG_KER   0x620
 
#define FCN_SRM_TX_DC_BASE_ADR_LBN   0
 
#define FCN_SRM_TX_DC_BASE_ADR_WIDTH   21
 
#define FCN_SRM_CFG_REG_KER   0x630
 
#define FCN_SRAM_OOB_ADR_INTEN_LBN   5
 
#define FCN_SRAM_OOB_ADR_INTEN_WIDTH   1
 
#define FCN_SRAM_OOB_BUF_INTEN_LBN   4
 
#define FCN_SRAM_OOB_BUF_INTEN_WIDTH   1
 
#define FCN_SRAM_OOB_BT_INIT_EN_LBN   3
 
#define FCN_SRAM_OOB_BT_INIT_EN_WIDTH   1
 
#define FCN_SRM_NUM_BANK_LBN   2
 
#define FCN_SRM_NUM_BANK_WIDTH   1
 
#define FCN_SRM_BANK_SIZE_LBN   0
 
#define FCN_SRM_BANK_SIZE_WIDTH   2
 
#define FCN_SRM_NUM_BANKS_AND_BANK_SIZE_LBN   0
 
#define FCN_SRM_NUM_BANKS_AND_BANK_SIZE_WIDTH   3
 
#define FCN_RX_CFG_REG_KER   0x800
 
#define FCN_RX_INGR_EN_B0_LBN   47
 
#define FCN_RX_INGR_EN_B0_WIDTH   1
 
#define FCN_RX_USR_BUF_SIZE_B0_LBN   19
 
#define FCN_RX_USR_BUF_SIZE_B0_WIDTH   9
 
#define FCN_RX_XON_MAC_TH_B0_LBN   10
 
#define FCN_RX_XON_MAC_TH_B0_WIDTH   9
 
#define FCN_RX_XOFF_MAC_TH_B0_LBN   1
 
#define FCN_RX_XOFF_MAC_TH_B0_WIDTH   9
 
#define FCN_RX_XOFF_MAC_EN_B0_LBN   0
 
#define FCN_RX_XOFF_MAC_EN_B0_WIDTH   1
 
#define FCN_RX_USR_BUF_SIZE_A1_LBN   11
 
#define FCN_RX_USR_BUF_SIZE_A1_WIDTH   9
 
#define FCN_RX_XON_MAC_TH_A1_LBN   6
 
#define FCN_RX_XON_MAC_TH_A1_WIDTH   5
 
#define FCN_RX_XOFF_MAC_TH_A1_LBN   1
 
#define FCN_RX_XOFF_MAC_TH_A1_WIDTH   5
 
#define FCN_RX_XOFF_MAC_EN_A1_LBN   0
 
#define FCN_RX_XOFF_MAC_EN_A1_WIDTH   1
 
#define FCN_RX_USR_BUF_SIZE_A1_LBN   11
 
#define FCN_RX_USR_BUF_SIZE_A1_WIDTH   9
 
#define FCN_RX_XOFF_MAC_EN_A1_LBN   0
 
#define FCN_RX_XOFF_MAC_EN_A1_WIDTH   1
 
#define FCN_RX_FILTER_CTL_REG_KER   0x810
 
#define FCN_UDP_FULL_SRCH_LIMIT_LBN   32
 
#define FCN_UDP_FULL_SRCH_LIMIT_WIDTH   8
 
#define FCN_NUM_KER_LBN   24
 
#define FCN_NUM_KER_WIDTH   2
 
#define FCN_UDP_WILD_SRCH_LIMIT_LBN   16
 
#define FCN_UDP_WILD_SRCH_LIMIT_WIDTH   8
 
#define FCN_TCP_WILD_SRCH_LIMIT_LBN   8
 
#define FCN_TCP_WILD_SRCH_LIMIT_WIDTH   8
 
#define FCN_TCP_FULL_SRCH_LIMIT_LBN   0
 
#define FCN_TCP_FULL_SRCH_LIMIT_WIDTH   8
 
#define FCN_RX_FLUSH_DESCQ_REG_KER   0x0820
 
#define FCN_RX_FLUSH_DESCQ_CMD_LBN   24
 
#define FCN_RX_FLUSH_DESCQ_CMD_WIDTH   1
 
#define FCN_RX_FLUSH_DESCQ_LBN   0
 
#define FCN_RX_FLUSH_DESCQ_WIDTH   12
 
#define FCN_RX_DESC_UPD_REG_KER   0x0830
 
#define FCN_RX_DESC_WPTR_LBN   96
 
#define FCN_RX_DESC_WPTR_WIDTH   12
 
#define FCN_RX_DESC_UPD_REG_KER_DWORD   ( FCN_RX_DESC_UPD_REG_KER + 12 )
 
#define FCN_RX_DESC_WPTR_DWORD_LBN   0
 
#define FCN_RX_DESC_WPTR_DWORD_WIDTH   12
 
#define FCN_RX_DC_CFG_REG_KER   0x840
 
#define FCN_RX_DC_SIZE_LBN   0
 
#define FCN_RX_DC_SIZE_WIDTH   2
 
#define FCN_RX_SELF_RST_REG_KER   0x890
 
#define FCN_RX_ISCSI_DIS_LBN   17
 
#define FCN_RX_ISCSI_DIS_WIDTH   1
 
#define FCN_RX_NODESC_WAIT_DIS_LBN   9
 
#define FCN_RX_NODESC_WAIT_DIS_WIDTH   1
 
#define FCN_RX_RECOVERY_EN_LBN   8
 
#define FCN_RX_RECOVERY_EN_WIDTH   1
 
#define FCN_TX_FLUSH_DESCQ_REG_KER   0x0a00
 
#define FCN_TX_FLUSH_DESCQ_CMD_LBN   12
 
#define FCN_TX_FLUSH_DESCQ_CMD_WIDTH   1
 
#define FCN_TX_FLUSH_DESCQ_LBN   0
 
#define FCN_TX_FLUSH_DESCQ_WIDTH   12
 
#define FCN_TX_CFG2_REG_KER   0xa80
 
#define FCN_TX_DIS_NON_IP_EV_LBN   17
 
#define FCN_TX_DIS_NON_IP_EV_WIDTH   1
 
#define FCN_TX_DESC_UPD_REG_KER   0x0a10
 
#define FCN_TX_DESC_WPTR_LBN   96
 
#define FCN_TX_DESC_WPTR_WIDTH   12
 
#define FCN_TX_DESC_UPD_REG_KER_DWORD   ( FCN_TX_DESC_UPD_REG_KER + 12 )
 
#define FCN_TX_DESC_WPTR_DWORD_LBN   0
 
#define FCN_TX_DESC_WPTR_DWORD_WIDTH   12
 
#define FCN_TX_DC_CFG_REG_KER   0xa20
 
#define FCN_TX_DC_SIZE_LBN   0
 
#define FCN_TX_DC_SIZE_WIDTH   2
 
#define FCN_MD_TXD_REG_KER   0xc00
 
#define FCN_MD_TXD_LBN   0
 
#define FCN_MD_TXD_WIDTH   16
 
#define FCN_MD_RXD_REG_KER   0xc10
 
#define FCN_MD_RXD_LBN   0
 
#define FCN_MD_RXD_WIDTH   16
 
#define FCN_MD_CS_REG_KER   0xc20
 
#define FCN_MD_GC_LBN   4
 
#define FCN_MD_GC_WIDTH   1
 
#define FCN_MD_RIC_LBN   2
 
#define FCN_MD_RIC_WIDTH   1
 
#define FCN_MD_RDC_LBN   1
 
#define FCN_MD_RDC_WIDTH   1
 
#define FCN_MD_WRC_LBN   0
 
#define FCN_MD_WRC_WIDTH   1
 
#define FCN_MD_PHY_ADR_REG_KER   0xc30
 
#define FCN_MD_PHY_ADR_LBN   0
 
#define FCN_MD_PHY_ADR_WIDTH   16
 
#define FCN_MD_ID_REG_KER   0xc40
 
#define FCN_MD_PRT_ADR_LBN   11
 
#define FCN_MD_PRT_ADR_WIDTH   5
 
#define FCN_MD_DEV_ADR_LBN   6
 
#define FCN_MD_DEV_ADR_WIDTH   5
 
#define FCN_MD_STAT_REG_KER   0xc50
 
#define FCN_MD_PINT_LBN   4
 
#define FCN_MD_PINT_WIDTH   1
 
#define FCN_MD_DONE_LBN   3
 
#define FCN_MD_DONE_WIDTH   1
 
#define FCN_MD_BSERR_LBN   2
 
#define FCN_MD_BSERR_WIDTH   1
 
#define FCN_MD_LNFL_LBN   1
 
#define FCN_MD_LNFL_WIDTH   1
 
#define FCN_MD_BSY_LBN   0
 
#define FCN_MD_BSY_WIDTH   1
 
#define FCN_MAC0_CTRL_REG_KER   0xc80
 
#define FCN_MAC1_CTRL_REG_KER   0xc90
 
#define FCN_MAC_XOFF_VAL_LBN   16
 
#define FCN_MAC_XOFF_VAL_WIDTH   16
 
#define FCN_MAC_BCAD_ACPT_LBN   4
 
#define FCN_MAC_BCAD_ACPT_WIDTH   1
 
#define FCN_MAC_UC_PROM_LBN   3
 
#define FCN_MAC_UC_PROM_WIDTH   1
 
#define FCN_MAC_LINK_STATUS_LBN   2
 
#define FCN_MAC_LINK_STATUS_WIDTH   1
 
#define FCN_MAC_SPEED_LBN   0
 
#define FCN_MAC_SPEED_WIDTH   2
 
#define XX_TXDRV_DEQ_DEFAULT   0xe /* deq=.6 */
 
#define XX_TXDRV_DTX_DEFAULT   0x5 /* 1.25 */
 
#define XX_SD_CTL_DRV_DEFAULT   0 /* 20mA */
 
#define FALCON_GMAC_REGBANK   0xe00
 
#define FALCON_GMAC_REGBANK_SIZE   0x200
 
#define FALCON_GMAC_REG_SIZE   0x10
 
#define FALCON_XMAC_REGBANK   0x1200
 
#define FALCON_XMAC_REGBANK_SIZE   0x200
 
#define FALCON_XMAC_REG_SIZE   0x10
 
#define FCN_XM_ADR_LO_REG_MAC   0x00
 
#define FCN_XM_ADR_3_LBN   24
 
#define FCN_XM_ADR_3_WIDTH   8
 
#define FCN_XM_ADR_2_LBN   16
 
#define FCN_XM_ADR_2_WIDTH   8
 
#define FCN_XM_ADR_1_LBN   8
 
#define FCN_XM_ADR_1_WIDTH   8
 
#define FCN_XM_ADR_0_LBN   0
 
#define FCN_XM_ADR_0_WIDTH   8
 
#define FCN_XM_ADR_HI_REG_MAC   0x01
 
#define FCN_XM_ADR_5_LBN   8
 
#define FCN_XM_ADR_5_WIDTH   8
 
#define FCN_XM_ADR_4_LBN   0
 
#define FCN_XM_ADR_4_WIDTH   8
 
#define FCN_XM_GLB_CFG_REG_MAC   0x02
 
#define FCN_XM_RX_STAT_EN_LBN   11
 
#define FCN_XM_RX_STAT_EN_WIDTH   1
 
#define FCN_XM_TX_STAT_EN_LBN   10
 
#define FCN_XM_TX_STAT_EN_WIDTH   1
 
#define FCN_XM_RX_JUMBO_MODE_LBN   6
 
#define FCN_XM_RX_JUMBO_MODE_WIDTH   1
 
#define FCN_XM_CORE_RST_LBN   0
 
#define FCN_XM_CORE_RST_WIDTH   1
 
#define FCN_XM_TX_CFG_REG_MAC   0x03
 
#define FCN_XM_IPG_LBN   16
 
#define FCN_XM_IPG_WIDTH   4
 
#define FCN_XM_FCNTL_LBN   10
 
#define FCN_XM_FCNTL_WIDTH   1
 
#define FCN_XM_TXCRC_LBN   8
 
#define FCN_XM_TXCRC_WIDTH   1
 
#define FCN_XM_AUTO_PAD_LBN   5
 
#define FCN_XM_AUTO_PAD_WIDTH   1
 
#define FCN_XM_TX_PRMBL_LBN   2
 
#define FCN_XM_TX_PRMBL_WIDTH   1
 
#define FCN_XM_TXEN_LBN   1
 
#define FCN_XM_TXEN_WIDTH   1
 
#define FCN_XM_RX_CFG_REG_MAC   0x04
 
#define FCN_XM_PASS_CRC_ERR_LBN   25
 
#define FCN_XM_PASS_CRC_ERR_WIDTH   1
 
#define FCN_XM_AUTO_DEPAD_LBN   8
 
#define FCN_XM_AUTO_DEPAD_WIDTH   1
 
#define FCN_XM_RXEN_LBN   1
 
#define FCN_XM_RXEN_WIDTH   1
 
#define FCN_XM_MGT_INT_MSK_REG_MAC_B0   0x5
 
#define FCN_XM_MSK_PRMBLE_ERR_LBN   2
 
#define FCN_XM_MSK_PRMBLE_ERR_WIDTH   1
 
#define FCN_XM_MSK_RMTFLT_LBN   1
 
#define FCN_XM_MSK_RMTFLT_WIDTH   1
 
#define FCN_XM_MSK_LCLFLT_LBN   0
 
#define FCN_XM_MSK_LCLFLT_WIDTH   1
 
#define FCN_XM_FC_REG_MAC   0x7
 
#define FCN_XM_PAUSE_TIME_LBN   16
 
#define FCN_XM_PAUSE_TIME_WIDTH   16
 
#define FCN_XM_DIS_FCNTL_LBN   0
 
#define FCN_XM_DIS_FCNTL_WIDTH   1
 
#define FCN_XM_TX_PARAM_REG_MAC   0x0d
 
#define FCN_XM_TX_JUMBO_MODE_LBN   31
 
#define FCN_XM_TX_JUMBO_MODE_WIDTH   1
 
#define FCN_XM_MAX_TX_FRM_SIZE_LBN   16
 
#define FCN_XM_MAX_TX_FRM_SIZE_WIDTH   14
 
#define FCN_XM_ACPT_ALL_MCAST_LBN   11
 
#define FCN_XM_ACPT_ALL_MCAST_WIDTH   1
 
#define FCN_XM_RX_PARAM_REG_MAC   0x0e
 
#define FCN_XM_MAX_RX_FRM_SIZE_LBN   0
 
#define FCN_XM_MAX_RX_FRM_SIZE_WIDTH   14
 
#define FCN_XM_MGT_INT_REG_MAC_B0   0x0f
 
#define FCN_XM_PRMBLE_ERR   2
 
#define FCN_XM_PRMBLE_WIDTH   1
 
#define FCN_XM_RMTFLT_LBN   1
 
#define FCN_XM_RMTFLT_WIDTH   1
 
#define FCN_XM_LCLFLT_LBN   0
 
#define FCN_XM_LCLFLT_WIDTH   1
 
#define FCN_XX_ALIGN_DONE_LBN   20
 
#define FCN_XX_ALIGN_DONE_WIDTH   1
 
#define FCN_XX_CORE_STAT_REG_MAC   0x16
 
#define FCN_XX_SYNC_STAT_LBN   16
 
#define FCN_XX_SYNC_STAT_WIDTH   4
 
#define FCN_XX_SYNC_STAT_DECODE_SYNCED   0xf
 
#define FCN_XX_COMMA_DET_LBN   12
 
#define FCN_XX_COMMA_DET_WIDTH   4
 
#define FCN_XX_COMMA_DET_RESET   0xf
 
#define FCN_XX_CHARERR_LBN   4
 
#define FCN_XX_CHARERR_WIDTH   4
 
#define FCN_XX_CHARERR_RESET   0xf
 
#define FCN_XX_DISPERR_LBN   0
 
#define FCN_XX_DISPERR_WIDTH   4
 
#define FCN_XX_DISPERR_RESET   0xf
 
#define FCN_XX_PWR_RST_REG_MAC   0x10
 
#define FCN_XX_PWRDND_EN_LBN   15
 
#define FCN_XX_PWRDND_EN_WIDTH   1
 
#define FCN_XX_PWRDNC_EN_LBN   14
 
#define FCN_XX_PWRDNC_EN_WIDTH   1
 
#define FCN_XX_PWRDNB_EN_LBN   13
 
#define FCN_XX_PWRDNB_EN_WIDTH   1
 
#define FCN_XX_PWRDNA_EN_LBN   12
 
#define FCN_XX_PWRDNA_EN_WIDTH   1
 
#define FCN_XX_RSTPLLCD_EN_LBN   9
 
#define FCN_XX_RSTPLLCD_EN_WIDTH   1
 
#define FCN_XX_RSTPLLAB_EN_LBN   8
 
#define FCN_XX_RSTPLLAB_EN_WIDTH   1
 
#define FCN_XX_RESETD_EN_LBN   7
 
#define FCN_XX_RESETD_EN_WIDTH   1
 
#define FCN_XX_RESETC_EN_LBN   6
 
#define FCN_XX_RESETC_EN_WIDTH   1
 
#define FCN_XX_RESETB_EN_LBN   5
 
#define FCN_XX_RESETB_EN_WIDTH   1
 
#define FCN_XX_RESETA_EN_LBN   4
 
#define FCN_XX_RESETA_EN_WIDTH   1
 
#define FCN_XX_RSTXGXSRX_EN_LBN   2
 
#define FCN_XX_RSTXGXSRX_EN_WIDTH   1
 
#define FCN_XX_RSTXGXSTX_EN_LBN   1
 
#define FCN_XX_RSTXGXSTX_EN_WIDTH   1
 
#define FCN_XX_RST_XX_EN_LBN   0
 
#define FCN_XX_RST_XX_EN_WIDTH   1
 
#define FCN_XX_SD_CTL_REG_MAC   0x11
 
#define FCN_XX_TERMADJ1_LBN   17
 
#define FCN_XX_TERMADJ1_WIDTH   1
 
#define FCN_XX_TERMADJ0_LBN   16
 
#define FCN_XX_TERMADJ0_WIDTH   1
 
#define FCN_XX_HIDRVD_LBN   15
 
#define FCN_XX_HIDRVD_WIDTH   1
 
#define FCN_XX_LODRVD_LBN   14
 
#define FCN_XX_LODRVD_WIDTH   1
 
#define FCN_XX_HIDRVC_LBN   13
 
#define FCN_XX_HIDRVC_WIDTH   1
 
#define FCN_XX_LODRVC_LBN   12
 
#define FCN_XX_LODRVC_WIDTH   1
 
#define FCN_XX_HIDRVB_LBN   11
 
#define FCN_XX_HIDRVB_WIDTH   1
 
#define FCN_XX_LODRVB_LBN   10
 
#define FCN_XX_LODRVB_WIDTH   1
 
#define FCN_XX_HIDRVA_LBN   9
 
#define FCN_XX_HIDRVA_WIDTH   1
 
#define FCN_XX_LODRVA_LBN   8
 
#define FCN_XX_LODRVA_WIDTH   1
 
#define FCN_XX_LPBKD_LBN   3
 
#define FCN_XX_LPBKD_WIDTH   1
 
#define FCN_XX_LPBKC_LBN   2
 
#define FCN_XX_LPBKC_WIDTH   1
 
#define FCN_XX_LPBKB_LBN   1
 
#define FCN_XX_LPBKB_WIDTH   1
 
#define FCN_XX_LPBKA_LBN   0
 
#define FCN_XX_LPBKA_WIDTH   1
 
#define FCN_XX_TXDRV_CTL_REG_MAC   0x12
 
#define FCN_XX_DEQD_LBN   28
 
#define FCN_XX_DEQD_WIDTH   4
 
#define FCN_XX_DEQC_LBN   24
 
#define FCN_XX_DEQC_WIDTH   4
 
#define FCN_XX_DEQB_LBN   20
 
#define FCN_XX_DEQB_WIDTH   4
 
#define FCN_XX_DEQA_LBN   16
 
#define FCN_XX_DEQA_WIDTH   4
 
#define FCN_XX_DTXD_LBN   12
 
#define FCN_XX_DTXD_WIDTH   4
 
#define FCN_XX_DTXC_LBN   8
 
#define FCN_XX_DTXC_WIDTH   4
 
#define FCN_XX_DTXB_LBN   4
 
#define FCN_XX_DTXB_WIDTH   4
 
#define FCN_XX_DTXA_LBN   0
 
#define FCN_XX_DTXA_WIDTH   4
 
#define FCN_RX_FILTER_TBL0   0xF00000
 
#define FCN_RX_DESC_PTR_TBL_KER_A1   0x11800
 
#define FCN_RX_DESC_PTR_TBL_KER_B0   0xF40000
 
#define FCN_RX_ISCSI_DDIG_EN_LBN   88
 
#define FCN_RX_ISCSI_DDIG_EN_WIDTH   1
 
#define FCN_RX_ISCSI_HDIG_EN_LBN   87
 
#define FCN_RX_ISCSI_HDIG_EN_WIDTH   1
 
#define FCN_RX_DESCQ_BUF_BASE_ID_LBN   36
 
#define FCN_RX_DESCQ_BUF_BASE_ID_WIDTH   20
 
#define FCN_RX_DESCQ_EVQ_ID_LBN   24
 
#define FCN_RX_DESCQ_EVQ_ID_WIDTH   12
 
#define FCN_RX_DESCQ_OWNER_ID_LBN   10
 
#define FCN_RX_DESCQ_OWNER_ID_WIDTH   14
 
#define FCN_RX_DESCQ_SIZE_LBN   3
 
#define FCN_RX_DESCQ_SIZE_WIDTH   2
 
#define FCN_RX_DESCQ_SIZE_4K   3
 
#define FCN_RX_DESCQ_SIZE_2K   2
 
#define FCN_RX_DESCQ_SIZE_1K   1
 
#define FCN_RX_DESCQ_SIZE_512   0
 
#define FCN_RX_DESCQ_TYPE_LBN   2
 
#define FCN_RX_DESCQ_TYPE_WIDTH   1
 
#define FCN_RX_DESCQ_JUMBO_LBN   1
 
#define FCN_RX_DESCQ_JUMBO_WIDTH   1
 
#define FCN_RX_DESCQ_EN_LBN   0
 
#define FCN_RX_DESCQ_EN_WIDTH   1
 
#define FCN_TX_DESC_PTR_TBL_KER_A1   0x11900
 
#define FCN_TX_DESC_PTR_TBL_KER_B0   0xF50000
 
#define FCN_TX_NON_IP_DROP_DIS_B0_LBN   91
 
#define FCN_TX_NON_IP_DROP_DIS_B0_WIDTH   1
 
#define FCN_TX_DESCQ_EN_LBN   88
 
#define FCN_TX_DESCQ_EN_WIDTH   1
 
#define FCN_TX_ISCSI_DDIG_EN_LBN   87
 
#define FCN_TX_ISCSI_DDIG_EN_WIDTH   1
 
#define FCN_TX_ISCSI_HDIG_EN_LBN   86
 
#define FCN_TX_ISCSI_HDIG_EN_WIDTH   1
 
#define FCN_TX_DESCQ_BUF_BASE_ID_LBN   36
 
#define FCN_TX_DESCQ_BUF_BASE_ID_WIDTH   20
 
#define FCN_TX_DESCQ_EVQ_ID_LBN   24
 
#define FCN_TX_DESCQ_EVQ_ID_WIDTH   12
 
#define FCN_TX_DESCQ_OWNER_ID_LBN   10
 
#define FCN_TX_DESCQ_OWNER_ID_WIDTH   14
 
#define FCN_TX_DESCQ_SIZE_LBN   3
 
#define FCN_TX_DESCQ_SIZE_WIDTH   2
 
#define FCN_TX_DESCQ_SIZE_4K   3
 
#define FCN_TX_DESCQ_SIZE_2K   2
 
#define FCN_TX_DESCQ_SIZE_1K   1
 
#define FCN_TX_DESCQ_SIZE_512   0
 
#define FCN_TX_DESCQ_TYPE_LBN   1
 
#define FCN_TX_DESCQ_TYPE_WIDTH   2
 
#define FCN_TX_DESCQ_FLUSH_LBN   0
 
#define FCN_TX_DESCQ_FLUSH_WIDTH   1
 
#define FCN_EVQ_PTR_TBL_KER_A1   0x11a00
 
#define FCN_EVQ_PTR_TBL_KER_B0   0xf60000
 
#define FCN_EVQ_EN_LBN   23
 
#define FCN_EVQ_EN_WIDTH   1
 
#define FCN_EVQ_SIZE_LBN   20
 
#define FCN_EVQ_SIZE_WIDTH   3
 
#define FCN_EVQ_SIZE_32K   6
 
#define FCN_EVQ_SIZE_16K   5
 
#define FCN_EVQ_SIZE_8K   4
 
#define FCN_EVQ_SIZE_4K   3
 
#define FCN_EVQ_SIZE_2K   2
 
#define FCN_EVQ_SIZE_1K   1
 
#define FCN_EVQ_SIZE_512   0
 
#define FCN_EVQ_BUF_BASE_ID_LBN   0
 
#define FCN_EVQ_BUF_BASE_ID_WIDTH   20
 
#define FCN_RX_RSS_INDIR_TBL_B0   0xFB0000
 
#define FCN_EVQ_RPTR_REG_KER_A1   0x11b00
 
#define FCN_EVQ_RPTR_REG_KER_B0   0xfa0000
 
#define FCN_EVQ_RPTR_LBN   0
 
#define FCN_EVQ_RPTR_WIDTH   14
 
#define FCN_EVQ_RPTR_REG_KER_DWORD_A1   ( FCN_EVQ_RPTR_REG_KER_A1 + 0 )
 
#define FCN_EVQ_RPTR_REG_KER_DWORD_B0   ( FCN_EVQ_RPTR_REG_KER_B0 + 0 )
 
#define FCN_EVQ_RPTR_DWORD_LBN   0
 
#define FCN_EVQ_RPTR_DWORD_WIDTH   14
 
#define FCN_BUF_FULL_TBL_KER_A1   0x18000
 
#define FCN_BUF_FULL_TBL_KER_B0   0x800000
 
#define FCN_IP_DAT_BUF_SIZE_LBN   50
 
#define FCN_IP_DAT_BUF_SIZE_WIDTH   1
 
#define FCN_IP_DAT_BUF_SIZE_8K   1
 
#define FCN_IP_DAT_BUF_SIZE_4K   0
 
#define FCN_BUF_ADR_FBUF_LBN   14
 
#define FCN_BUF_ADR_FBUF_WIDTH   34
 
#define FCN_BUF_OWNER_ID_FBUF_LBN   0
 
#define FCN_BUF_OWNER_ID_FBUF_WIDTH   14
 
#define FALCON_GMAC_REG(efab, mac_reg)
 Offset of a GMAC register within Falcon. More...
 
#define FALCON_XMAC_REG(efab_port, mac_reg)
 Offset of an XMAC register within Falcon. More...
 
#define FCN_MAC_DATA_LBN   0
 
#define FCN_MAC_DATA_WIDTH   32
 
#define FCN_TX_KER_PORT_LBN   63
 
#define FCN_TX_KER_PORT_WIDTH   1
 
#define FCN_TX_KER_BYTE_CNT_LBN   48
 
#define FCN_TX_KER_BYTE_CNT_WIDTH   14
 
#define FCN_TX_KER_BUF_ADR_LBN   0
 
#define FCN_TX_KER_BUF_ADR_WIDTH   EFAB_DMA_TYPE_WIDTH ( 46 )
 
#define FCN_RX_KER_BUF_SIZE_LBN   48
 
#define FCN_RX_KER_BUF_SIZE_WIDTH   14
 
#define FCN_RX_KER_BUF_ADR_LBN   0
 
#define FCN_RX_KER_BUF_ADR_WIDTH   EFAB_DMA_TYPE_WIDTH ( 46 )
 
#define FCN_EV_CODE_LBN   60
 
#define FCN_EV_CODE_WIDTH   4
 
#define FCN_RX_IP_EV_DECODE   0
 
#define FCN_TX_IP_EV_DECODE   2
 
#define FCN_DRIVER_EV_DECODE   5
 
#define FCN_RX_EV_PKT_OK_LBN   56
 
#define FCN_RX_EV_PKT_OK_WIDTH   1
 
#define FCN_RX_PORT_LBN   30
 
#define FCN_RX_PORT_WIDTH   1
 
#define FCN_RX_EV_BYTE_CNT_LBN   16
 
#define FCN_RX_EV_BYTE_CNT_WIDTH   14
 
#define FCN_RX_EV_DESC_PTR_LBN   0
 
#define FCN_RX_EV_DESC_PTR_WIDTH   12
 
#define FCN_TX_EV_DESC_PTR_LBN   0
 
#define FCN_TX_EV_DESC_PTR_WIDTH   12
 
#define FCN_REVISION_REG(efab, reg)   ( ( efab->pci_revision == FALCON_REV_B0 ) ? reg ## _B0 : reg ## _A1 )
 
#define EFAB_SET_OWORD_FIELD_VER(efab, reg, field, val)
 
#define _falcon_writel(efab, value, reg)   writel ( (value), (efab)->membase + (reg) )
 
#define _falcon_readl(efab, reg)   readl ( (efab)->membase + (reg) )
 
#define FCN_DUMP_REG(efab, _reg)
 
#define FCN_DUMP_MAC_REG(efab, _mac_reg)
 
#define FALCON_SPI_MAX_LEN   16
 Maximum length for a single SPI transaction. More...
 
#define GM_CFG1_REG_MAC   0x00
 
#define GM_SW_RST_LBN   31
 
#define GM_SW_RST_WIDTH   1
 
#define GM_RX_FC_EN_LBN   5
 
#define GM_RX_FC_EN_WIDTH   1
 
#define GM_TX_FC_EN_LBN   4
 
#define GM_TX_FC_EN_WIDTH   1
 
#define GM_RX_EN_LBN   2
 
#define GM_RX_EN_WIDTH   1
 
#define GM_TX_EN_LBN   0
 
#define GM_TX_EN_WIDTH   1
 
#define GM_CFG2_REG_MAC   0x01
 
#define GM_PAMBL_LEN_LBN   12
 
#define GM_PAMBL_LEN_WIDTH   4
 
#define GM_IF_MODE_LBN   8
 
#define GM_IF_MODE_WIDTH   2
 
#define GM_PAD_CRC_EN_LBN   2
 
#define GM_PAD_CRC_EN_WIDTH   1
 
#define GM_FD_LBN   0
 
#define GM_FD_WIDTH   1
 
#define GM_MAX_FLEN_REG_MAC   0x04
 
#define GM_MAX_FLEN_LBN   0
 
#define GM_MAX_FLEN_WIDTH   16
 
#define GM_MII_MGMT_CFG_REG_MAC   0x08
 
#define GM_MGMT_CLK_SEL_LBN   0
 
#define GM_MGMT_CLK_SEL_WIDTH   3
 
#define GM_MII_MGMT_CMD_REG_MAC   0x09
 
#define GM_MGMT_SCAN_CYC_LBN   1
 
#define GM_MGMT_SCAN_CYC_WIDTH   1
 
#define GM_MGMT_RD_CYC_LBN   0
 
#define GM_MGMT_RD_CYC_WIDTH   1
 
#define GM_MII_MGMT_ADR_REG_MAC   0x0a
 
#define GM_MGMT_PHY_ADDR_LBN   8
 
#define GM_MGMT_PHY_ADDR_WIDTH   5
 
#define GM_MGMT_REG_ADDR_LBN   0
 
#define GM_MGMT_REG_ADDR_WIDTH   5
 
#define GM_MII_MGMT_CTL_REG_MAC   0x0b
 
#define GM_MGMT_CTL_LBN   0
 
#define GM_MGMT_CTL_WIDTH   16
 
#define GM_MII_MGMT_STAT_REG_MAC   0x0c
 
#define GM_MGMT_STAT_LBN   0
 
#define GM_MGMT_STAT_WIDTH   16
 
#define GM_MII_MGMT_IND_REG_MAC   0x0d
 
#define GM_MGMT_BUSY_LBN   0
 
#define GM_MGMT_BUSY_WIDTH   1
 
#define GM_ADR1_REG_MAC   0x10
 
#define GM_HWADDR_5_LBN   24
 
#define GM_HWADDR_5_WIDTH   8
 
#define GM_HWADDR_4_LBN   16
 
#define GM_HWADDR_4_WIDTH   8
 
#define GM_HWADDR_3_LBN   8
 
#define GM_HWADDR_3_WIDTH   8
 
#define GM_HWADDR_2_LBN   0
 
#define GM_HWADDR_2_WIDTH   8
 
#define GM_ADR2_REG_MAC   0x11
 
#define GM_HWADDR_1_LBN   24
 
#define GM_HWADDR_1_WIDTH   8
 
#define GM_HWADDR_0_LBN   16
 
#define GM_HWADDR_0_WIDTH   8
 
#define GMF_CFG0_REG_MAC   0x12
 
#define GMF_FTFENREQ_LBN   12
 
#define GMF_FTFENREQ_WIDTH   1
 
#define GMF_STFENREQ_LBN   11
 
#define GMF_STFENREQ_WIDTH   1
 
#define GMF_FRFENREQ_LBN   10
 
#define GMF_FRFENREQ_WIDTH   1
 
#define GMF_SRFENREQ_LBN   9
 
#define GMF_SRFENREQ_WIDTH   1
 
#define GMF_WTMENREQ_LBN   8
 
#define GMF_WTMENREQ_WIDTH   1
 
#define GMF_CFG1_REG_MAC   0x13
 
#define GMF_CFGFRTH_LBN   16
 
#define GMF_CFGFRTH_WIDTH   5
 
#define GMF_CFGXOFFRTX_LBN   0
 
#define GMF_CFGXOFFRTX_WIDTH   16
 
#define GMF_CFG2_REG_MAC   0x14
 
#define GMF_CFGHWM_LBN   16
 
#define GMF_CFGHWM_WIDTH   6
 
#define GMF_CFGLWM_LBN   0
 
#define GMF_CFGLWM_WIDTH   6
 
#define GMF_CFG3_REG_MAC   0x15
 
#define GMF_CFGHWMFT_LBN   16
 
#define GMF_CFGHWMFT_WIDTH   6
 
#define GMF_CFGFTTH_LBN   0
 
#define GMF_CFGFTTH_WIDTH   6
 
#define GMF_CFG4_REG_MAC   0x16
 
#define GMF_HSTFLTRFRM_PAUSE_LBN   12
 
#define GMF_HSTFLTRFRM_PAUSE_WIDTH   12
 
#define GMF_CFG5_REG_MAC   0x17
 
#define GMF_CFGHDPLX_LBN   22
 
#define GMF_CFGHDPLX_WIDTH   1
 
#define GMF_CFGBYTMODE_LBN   19
 
#define GMF_CFGBYTMODE_WIDTH   1
 
#define GMF_HSTDRPLT64_LBN   18
 
#define GMF_HSTDRPLT64_WIDTH   1
 
#define GMF_HSTFLTRFRMDC_PAUSE_LBN   12
 
#define GMF_HSTFLTRFRMDC_PAUSE_WIDTH   1
 
#define XFP_REQUIRED_DEVS
 
#define TXC_GLRGS_GLCMD   (0xc004)
 
#define TXC_GLCMD_LMTSWRST_LBN   (14)
 
#define TXC_ALRGS_ATXAMP0   (0xc041)
 
#define TXC_ALRGS_ATXAMP1   (0xc042)
 
#define TXC_ATXAMP_LANE02_LBN   (3)
 
#define TXC_ATXAMP_LANE13_LBN   (11)
 
#define TXC_ATXAMP_1280_mV   (0)
 
#define TXC_ATXAMP_1200_mV   (8)
 
#define TXC_ATXAMP_1120_mV   (12)
 
#define TXC_ATXAMP_1060_mV   (14)
 
#define TXC_ATXAMP_0820_mV   (25)
 
#define TXC_ATXAMP_0720_mV   (26)
 
#define TXC_ATXAMP_0580_mV   (27)
 
#define TXC_ATXAMP_0440_mV   (28)
 
#define TXC_ATXAMP_0820_BOTH
 
#define TXC_ATXAMP_DEFAULT   (0x6060) /* From databook */
 
#define TXC_ALRGS_ATXPRE0   (0xc043)
 
#define TXC_ALRGS_ATXPRE1   (0xc044)
 
#define TXC_ATXPRE_NONE   (0)
 
#define TXC_ATXPRE_DEFAULT   (0x1010) /* From databook */
 
#define TXC_REQUIRED_DEVS
 
#define TENXPRESS_REQUIRED_DEVS
 
#define PCS_TEST_SELECT_REG   0xd807 /* PRM 10.5.8 */
 
#define CLK312_EN_LBN   3
 
#define CLK312_EN_WIDTH   1
 
#define PCS_CLOCK_CTRL_REG   0xd801
 
#define PLL312_RST_N_LBN   2
 
#define PMA_PMD_EXT_CTRL_REG   49152
 
#define PMA_PMD_EXT_SSR_LBN   15
 
#define PCS_BOOT_STATUS_REG   0xd000
 
#define PCS_BOOT_FATAL_ERR_LBN   0
 
#define PCS_BOOT_PROGRESS_LBN   1
 
#define PCS_BOOT_PROGRESS_WIDTH   2
 
#define PCS_BOOT_COMPLETE_LBN   3
 
#define PCS_SOFT_RST2_REG   0xd806
 
#define SERDES_RST_N_LBN   13
 
#define XGXS_RST_N_LBN   12
 
#define PM8358_REQUIRED_DEVS   (MDIO_MMDREG_DEVS0_DTEXS)
 
#define PMC_MASTER_REG   (0xd000)
 
#define PMC_MASTER_ANLG_CTRL   (1<< 11)
 
#define PMC_MCONF2_REG   (0xd002)
 
#define PMC_MCONF2_TEDGE   (1 << 2)
 
#define PMC_MCONF2_REDGE   (1 << 3)
 
#define PMC_ANALOG_RX_CFG0   (0xd025)
 
#define PMC_ANALOG_RX_CFG1   (0xd02d)
 
#define PMC_ANALOG_RX_CFG2   (0xd035)
 
#define PMC_ANALOG_RX_CFG3   (0xd03d)
 
#define PMC_ANALOG_RX_TERM
 
#define PMC_ANALOG_RX_EQ_MASK   (3 << 8)
 
#define PMC_ANALOG_RX_EQ_NONE   (0 << 8)
 
#define PMC_ANALOG_RX_EQ_HALF   (1 << 8)
 
#define PMC_ANALOG_RX_EQ_FULL   (2 << 8)
 
#define PMC_ANALOG_RX_EQ_RSVD   (3 << 8)
 
#define MAX_TEMP_THRESH   90
 
#define PCA9539   0x74
 
#define P0_IN   0x00
 
#define P0_OUT   0x02
 
#define P0_CONFIG   0x06
 
#define P0_EN_1V0X_LBN   0
 
#define P0_EN_1V0X_WIDTH   1
 
#define P0_EN_1V2_LBN   1
 
#define P0_EN_1V2_WIDTH   1
 
#define P0_EN_2V5_LBN   2
 
#define P0_EN_2V5_WIDTH   1
 
#define P0_EN_3V3X_LBN   3
 
#define P0_EN_3V3X_WIDTH   1
 
#define P0_EN_5V_LBN   4
 
#define P0_EN_5V_WIDTH   1
 
#define P0_X_TRST_LBN   6
 
#define P0_X_TRST_WIDTH   1
 
#define P1_IN   0x01
 
#define P1_CONFIG   0x07
 
#define P1_AFE_PWD_LBN   0
 
#define P1_AFE_PWD_WIDTH   1
 
#define P1_DSP_PWD25_LBN   1
 
#define P1_DSP_PWD25_WIDTH   1
 
#define P1_SPARE_LBN   4
 
#define P1_SPARE_WIDTH   4
 
#define MAX6647   0x4e
 
#define RSL   0x02
 
#define RLHN   0x05
 
#define WLHO   0x0b
 
#define FALCON_MAC_ADDRESS_OFFSET   0x310
 Offset of MAC address within EEPROM or Flash. More...
 
#define SF_NV_CONFIG_BASE   0x300
 
#define SF_NV_CONFIG_EXTRA   0xA0
 
#define BOARD_TYPE(_rev)   (_rev >> 8)
 

Functions

 FILE_LICENCE (GPL_ANY)
 
static void falcon_mdio_write (struct efab_nic *efab, int device, int location, int value)
 
static int falcon_mdio_read (struct efab_nic *efab, int device, int location)
 
static unsigned int gmii_autoneg_advertised (struct efab_nic *efab)
 Retrieve GMII autonegotiation advertised abilities. More...
 
static unsigned int gmii_autoneg_lpa (struct efab_nic *efab)
 Retrieve GMII autonegotiation link partner abilities. More...
 
static unsigned int gmii_nway_result (unsigned int negotiated)
 Calculate GMII autonegotiated link technology. More...
 
static int gmii_link_ok (struct efab_nic *efab)
 Check GMII PHY link status. More...
 
static int mdio_clause45_wait_reset_mmds (struct efab_nic *efab)
 
static int mdio_clause45_reset_mmd (struct efab_nic *efab, int mmd)
 
static int mdio_clause45_links_ok (struct efab_nic *efab)
 
static int mdio_clause45_check_mmds (struct efab_nic *efab)
 
static void falcon_write (struct efab_nic *efab, efab_oword_t *value, unsigned int reg)
 Write to a Falcon register. More...
 
static void falcon_write_sram (struct efab_nic *efab, efab_qword_t *value, unsigned int index)
 Write to Falcon SRAM. More...
 
static void falcon_writel (struct efab_nic *efab, efab_dword_t *value, unsigned int reg)
 Write dword to Falcon register that allows partial writes. More...
 
static void falcon_read (struct efab_nic *efab, efab_oword_t *value, unsigned int reg)
 Read from a Falcon register. More...
 
static void falcon_read_sram (struct efab_nic *efab, efab_qword_t *value, unsigned int index)
 Read from Falcon SRAM. More...
 
static void falcon_readl (struct efab_nic *efab, efab_dword_t *value, unsigned int reg)
 Read dword from a portion of a Falcon register. More...
 
static int falcon_event_present (falcon_event_t *event)
 See if an event is present. More...
 
static void falcon_eventq_read_ack (struct efab_nic *efab, struct efab_ev_queue *ev_queue)
 
static void falcon_interrupts (struct efab_nic *efab, int enabled, int force)
 
static int falcon_spi_wait (struct efab_nic *efab)
 
static int falcon_spi_rw (struct spi_bus *bus, struct spi_device *device, unsigned int command, int address, const void *data_out, void *data_in, size_t len)
 
static void falcon_i2c_bit_write (struct bit_basher *basher, unsigned int bit_id, unsigned long data)
 
static int falcon_i2c_bit_read (struct bit_basher *basher, unsigned int bit_id)
 
static int falcon_gmii_wait (struct efab_nic *efab)
 
static void falcon_reconfigure_mac_wrapper (struct efab_nic *efab)
 
static void falcon_gmac_writel (struct efab_nic *efab, efab_dword_t *value, unsigned int mac_reg)
 
static void falcon_gmac_readl (struct efab_nic *efab, efab_dword_t *value, unsigned int mac_reg)
 
static void mentormac_reset (struct efab_nic *efab)
 
static void mentormac_init (struct efab_nic *efab)
 
static int falcon_init_gmac (struct efab_nic *efab)
 
static void falcon_xmac_writel (struct efab_nic *efab, efab_dword_t *value, unsigned int mac_reg)
 Write dword to a Falcon XMAC register. More...
 
static void falcon_xmac_readl (struct efab_nic *efab, efab_dword_t *value, unsigned int mac_reg)
 Read dword from a Falcon XMAC register. More...
 
static void falcon_setup_xaui (struct efab_nic *efab)
 Configure Falcon XAUI output. More...
 
static int falcon_xgmii_status (struct efab_nic *efab)
 
static void falcon_mask_status_intr (struct efab_nic *efab, int enable)
 
static int falcon_reset_xmac (struct efab_nic *efab)
 Reset 10G MAC connected to port. More...
 
static int falcon_reset_xaui (struct efab_nic *efab)
 
static int falcon_xaui_link_ok (struct efab_nic *efab)
 
static void falcon_reconfigure_xmac (struct efab_nic *efab)
 Initialise XMAC. More...
 
static int falcon_init_xmac (struct efab_nic *efab)
 
static int falcon_xaui_phy_init (struct efab_nic *efab)
 
static int alaska_init (struct efab_nic *efab)
 Initialise Alaska PHY. More...
 
static int falcon_xfp_phy_init (struct efab_nic *efab)
 
static int falcon_txc_logic_reset (struct efab_nic *efab)
 
static int falcon_txc_phy_init (struct efab_nic *efab)
 
static int falcon_tenxpress_check_c11 (struct efab_nic *efab)
 
static int falcon_tenxpress_phy_init (struct efab_nic *efab)
 
static int falcon_pm8358_phy_init (struct efab_nic *efab)
 
static int sfe4001_init (struct efab_nic *efab)
 
static void sfe4001_fini (struct efab_nic *efab)
 
static int sfe4002_init (struct efab_nic *efab)
 
static void sfe4002_fini (struct efab_nic *efab)
 
static int sfe4003_init (struct efab_nic *efab)
 
static void sfe4003_fini (struct efab_nic *efab)
 
static void falcon_free_special_buffer (void *p)
 
static void * falcon_alloc_special_buffer (struct efab_nic *efab, int bytes, struct efab_special_buffer *entry)
 
static void clear_b0_fpga_memories (struct efab_nic *efab)
 
static int falcon_reset (struct efab_nic *efab)
 
static void falcon_probe_nic_variant (struct efab_nic *efab, struct pci_device *pci)
 
static void falcon_init_spi_device (struct efab_nic *efab, struct spi_device *spi)
 
static int falcon_probe_spi (struct efab_nic *efab)
 
static int falcon_probe_nvram (struct efab_nic *efab)
 
static int falcon_init_sram (struct efab_nic *efab)
 
static void falcon_setup_nic (struct efab_nic *efab)
 
static void falcon_init_resources (struct efab_nic *efab)
 
static void falcon_fini_resources (struct efab_nic *efab)
 
static void falcon_build_rx_desc (falcon_rx_desc_t *rxd, struct io_buffer *iob)
 
static void falcon_notify_rx_desc (struct efab_nic *efab, struct efab_rx_queue *rx_queue)
 
static void falcon_build_tx_desc (falcon_tx_desc_t *txd, struct io_buffer *iob)
 
static void falcon_notify_tx_desc (struct efab_nic *efab, struct efab_tx_queue *tx_queue)
 
static int efab_fill_rx_queue (struct efab_nic *efab, struct efab_rx_queue *rx_queue)
 
static void efab_receive (struct efab_nic *efab, unsigned int id, int len, int drop)
 
static int efab_transmit (struct net_device *netdev, struct io_buffer *iob)
 
static int efab_transmit_done (struct efab_nic *efab, int id)
 
static void falcon_clear_interrupts (struct efab_nic *efab)
 
static void falcon_handle_event (struct efab_nic *efab, falcon_event_t *evt)
 
static void efab_poll (struct net_device *netdev)
 
static void efab_irq (struct net_device *netdev, int enable)
 
static void efab_free_resources (struct efab_nic *efab)
 
static int efab_alloc_resources (struct efab_nic *efab)
 
static int efab_init_mac (struct efab_nic *efab)
 
static void efab_close (struct net_device *netdev)
 
static int efab_open (struct net_device *netdev)
 
static void efab_remove (struct pci_device *pci)
 
static int efab_probe (struct pci_device *pci)
 

Variables

int __invalid_queue_size
 
static struct bit_basher_operations falcon_i2c_bit_ops
 
static struct efab_mac_operations falcon_gmac_operations
 
static struct efab_mac_operations falcon_xmac_operations
 
static struct efab_phy_operations falcon_xaui_phy_ops
 
static struct efab_phy_operations falcon_alaska_phy_ops
 
static struct efab_phy_operations falcon_xfp_phy_ops
 
static struct efab_phy_operations falcon_txc_phy_ops
 
static struct efab_phy_operations falcon_tenxpress_phy_ops
 
static struct efab_phy_operations falcon_pm8358_phy_ops
 
static struct i2c_device i2c_pca9539
 
static struct i2c_device i2c_max6647
 
struct efab_board_operations sfe4001_ops
 
struct efab_board_operations sfe4002_ops
 
struct efab_board_operations sfe4003_ops
 
static struct net_device_operations efab_operations
 
static struct pci_device_id efab_nics []
 
struct pci_driver etherfabric_driver __pci_driver
 

Macro Definition Documentation

◆ EFAB_REGDUMP

#define EFAB_REGDUMP (   ...)

Definition at line 46 of file etherfabric.c.

◆ EFAB_TRACE

#define EFAB_TRACE (   ...)    DBGP(__VA_ARGS__)

Definition at line 47 of file etherfabric.c.

◆ EFAB_LOG

#define EFAB_LOG (   ...)    DBG(__VA_ARGS__)

Definition at line 50 of file etherfabric.c.

◆ EFAB_ERR

#define EFAB_ERR (   ...)    DBG(__VA_ARGS__)

Definition at line 51 of file etherfabric.c.

◆ FALCON_USE_IO_BAR

#define FALCON_USE_IO_BAR   0

Definition at line 53 of file etherfabric.c.

◆ HZ

#define HZ   100

Definition at line 55 of file etherfabric.c.

◆ EFAB_BYTE

#define EFAB_BYTE   1

Definition at line 56 of file etherfabric.c.

◆ FQS

#define FQS (   _prefix,
  _x 
)
Value:
( ( (_x) == 512 ) ? _prefix ## _SIZE_512 : \
( ( (_x) == 1024 ) ? _prefix ## _SIZE_1K : \
( ( (_x) == 2048 ) ? _prefix ## _SIZE_2K : \
( ( (_x) == 4096) ? _prefix ## _SIZE_4K : \
__invalid_queue_size ) ) ) )

Definition at line 65 of file etherfabric.c.

◆ EFAB_MAX_FRAME_LEN

#define EFAB_MAX_FRAME_LEN (   mtu)    ( ( ( ( mtu ) + 4/* FCS */ ) + 7 ) & ~7 )

Definition at line 73 of file etherfabric.c.

◆ GMII_PSSR

#define GMII_PSSR   0x11 /* PHY-specific status register */

Definition at line 88 of file etherfabric.c.

◆ LPA_EF_1000FULL

#define LPA_EF_1000FULL   0x00020000

Definition at line 91 of file etherfabric.c.

◆ LPA_EF_1000HALF

#define LPA_EF_1000HALF   0x00010000

Definition at line 92 of file etherfabric.c.

◆ LPA_EF_10000FULL

#define LPA_EF_10000FULL   0x00040000

Definition at line 93 of file etherfabric.c.

◆ LPA_EF_10000HALF

#define LPA_EF_10000HALF   0x00080000

Definition at line 94 of file etherfabric.c.

◆ LPA_EF_1000

#define LPA_EF_1000   ( LPA_EF_1000FULL | LPA_EF_1000HALF )

Definition at line 96 of file etherfabric.c.

◆ LPA_EF_10000

#define LPA_EF_10000   ( LPA_EF_10000FULL | LPA_EF_10000HALF )

Definition at line 97 of file etherfabric.c.

◆ LPA_EF_DUPLEX

#define LPA_EF_DUPLEX
Value:
LPA_EF_10000FULL )
#define LPA_EF_1000FULL
Definition: etherfabric.c:91
#define LPA_100FULL
Definition: mii.h:103
#define LPA_10FULL
Definition: mii.h:99

Definition at line 98 of file etherfabric.c.

◆ LPA_OTHER

#define LPA_OTHER
Value:
LPA_100HALF | LPA_EF_1000FULL | LPA_EF_1000HALF )
#define LPA_10HALF
Definition: mii.h:97
#define LPA_EF_1000HALF
Definition: etherfabric.c:92
#define LPA_EF_1000FULL
Definition: etherfabric.c:91
#define LPA_100FULL
Definition: mii.h:103
#define LPA_10FULL
Definition: mii.h:99

Definition at line 102 of file etherfabric.c.

◆ PSSR_LSTATUS

#define PSSR_LSTATUS   0x0400 /* Bit 10 - link status */

Definition at line 106 of file etherfabric.c.

◆ MDIO_MMD_PMAPMD

#define MDIO_MMD_PMAPMD   (1)

Definition at line 203 of file etherfabric.c.

◆ MDIO_MMD_WIS

#define MDIO_MMD_WIS   (2)

Definition at line 205 of file etherfabric.c.

◆ MDIO_MMD_PCS

#define MDIO_MMD_PCS   (3)

Definition at line 207 of file etherfabric.c.

◆ MDIO_MMD_PHYXS

#define MDIO_MMD_PHYXS   (4)

Definition at line 209 of file etherfabric.c.

◆ MDIO_MMD_DTEXS

#define MDIO_MMD_DTEXS   (5)

Definition at line 211 of file etherfabric.c.

◆ MDIO_MMD_TC

#define MDIO_MMD_TC   (6)

Definition at line 213 of file etherfabric.c.

◆ MDIO_MMD_AN

#define MDIO_MMD_AN   (7)

Definition at line 215 of file etherfabric.c.

◆ MDIO_MMDREG_CTRL1

#define MDIO_MMDREG_CTRL1   (0)

Definition at line 218 of file etherfabric.c.

◆ MDIO_MMDREG_STAT1

#define MDIO_MMDREG_STAT1   (1)

Definition at line 219 of file etherfabric.c.

◆ MDIO_MMDREG_DEVS0

#define MDIO_MMDREG_DEVS0   (5)

Definition at line 220 of file etherfabric.c.

◆ MDIO_MMDREG_STAT2

#define MDIO_MMDREG_STAT2   (8)

Definition at line 221 of file etherfabric.c.

◆ MDIO_MMDREG_CTRL1_RESET_LBN

#define MDIO_MMDREG_CTRL1_RESET_LBN   (15)

Definition at line 225 of file etherfabric.c.

◆ MDIO_MMDREG_CTRL1_RESET_WIDTH

#define MDIO_MMDREG_CTRL1_RESET_WIDTH   (1)

Definition at line 226 of file etherfabric.c.

◆ MDIO_MMDREG_STAT1_FAULT_LBN

#define MDIO_MMDREG_STAT1_FAULT_LBN   (7)

Definition at line 229 of file etherfabric.c.

◆ MDIO_MMDREG_STAT1_FAULT_WIDTH

#define MDIO_MMDREG_STAT1_FAULT_WIDTH   (1)

Definition at line 230 of file etherfabric.c.

◆ MDIO_MMDREG_STAT1_LINK_LBN

#define MDIO_MMDREG_STAT1_LINK_LBN   (2)

Definition at line 233 of file etherfabric.c.

◆ MDIO_MMDREG_STAT1_LINK_WIDTH

#define MDIO_MMDREG_STAT1_LINK_WIDTH   (1)

Definition at line 234 of file etherfabric.c.

◆ DEV_PRESENT_BIT

#define DEV_PRESENT_BIT (   _b)    (1 << _b)

Definition at line 237 of file etherfabric.c.

◆ MDIO_MMDREG_DEVS0_DTEXS

#define MDIO_MMDREG_DEVS0_DTEXS   DEV_PRESENT_BIT(MDIO_MMD_DTEXS)

Definition at line 239 of file etherfabric.c.

◆ MDIO_MMDREG_DEVS0_PHYXS

#define MDIO_MMDREG_DEVS0_PHYXS   DEV_PRESENT_BIT(MDIO_MMD_PHYXS)

Definition at line 240 of file etherfabric.c.

◆ MDIO_MMDREG_DEVS0_PCS

#define MDIO_MMDREG_DEVS0_PCS   DEV_PRESENT_BIT(MDIO_MMD_PCS)

Definition at line 241 of file etherfabric.c.

◆ MDIO_MMDREG_DEVS0_WIS

#define MDIO_MMDREG_DEVS0_WIS   DEV_PRESENT_BIT(MDIO_MMD_WIS)

Definition at line 242 of file etherfabric.c.

◆ MDIO_MMDREG_DEVS0_PMAPMD

#define MDIO_MMDREG_DEVS0_PMAPMD   DEV_PRESENT_BIT(MDIO_MMD_PMAPMD)

Definition at line 243 of file etherfabric.c.

◆ MDIO_MMDREG_DEVS0_AN

#define MDIO_MMDREG_DEVS0_AN   DEV_PRESENT_BIT(MDIO_MMD_AN)

Definition at line 245 of file etherfabric.c.

◆ MDIO_MMDREG_STAT2_PRESENT_VAL

#define MDIO_MMDREG_STAT2_PRESENT_VAL   (2)

Definition at line 248 of file etherfabric.c.

◆ MDIO_MMDREG_STAT2_PRESENT_LBN

#define MDIO_MMDREG_STAT2_PRESENT_LBN   (14)

Definition at line 249 of file etherfabric.c.

◆ MDIO_MMDREG_STAT2_PRESENT_WIDTH

#define MDIO_MMDREG_STAT2_PRESENT_WIDTH   (2)

Definition at line 250 of file etherfabric.c.

◆ MDIO_PHYXS_LANE_STATE

#define MDIO_PHYXS_LANE_STATE   (0x18)

Definition at line 253 of file etherfabric.c.

◆ MDIO_PHYXS_LANE_ALIGNED_LBN

#define MDIO_PHYXS_LANE_ALIGNED_LBN   (12)

Definition at line 254 of file etherfabric.c.

◆ MDIO_PHYXS_LANE_SYNC0_LBN

#define MDIO_PHYXS_LANE_SYNC0_LBN   (0)

Definition at line 255 of file etherfabric.c.

◆ MDIO_PHYXS_LANE_SYNC1_LBN

#define MDIO_PHYXS_LANE_SYNC1_LBN   (1)

Definition at line 256 of file etherfabric.c.

◆ MDIO_PHYXS_LANE_SYNC2_LBN

#define MDIO_PHYXS_LANE_SYNC2_LBN   (2)

Definition at line 257 of file etherfabric.c.

◆ MDIO_PHYXS_LANE_SYNC3_LBN

#define MDIO_PHYXS_LANE_SYNC3_LBN   (3)

Definition at line 258 of file etherfabric.c.

◆ MDIO45_RESET_TRIES

#define MDIO45_RESET_TRIES   100

Definition at line 261 of file etherfabric.c.

◆ MDIO45_RESET_SPINTIME

#define MDIO45_RESET_SPINTIME   10

Definition at line 262 of file etherfabric.c.

◆ FCN_IOM_IND_ADR_REG

#define FCN_IOM_IND_ADR_REG   0x0

Definition at line 394 of file etherfabric.c.

◆ FCN_IOM_IND_DAT_REG

#define FCN_IOM_IND_DAT_REG   0x4

Definition at line 397 of file etherfabric.c.

◆ FCN_ADR_REGION_REG_KER

#define FCN_ADR_REGION_REG_KER   0x00

Definition at line 400 of file etherfabric.c.

◆ FCN_ADR_REGION0_LBN

#define FCN_ADR_REGION0_LBN   0

Definition at line 401 of file etherfabric.c.

◆ FCN_ADR_REGION0_WIDTH

#define FCN_ADR_REGION0_WIDTH   18

Definition at line 402 of file etherfabric.c.

◆ FCN_ADR_REGION1_LBN

#define FCN_ADR_REGION1_LBN   32

Definition at line 403 of file etherfabric.c.

◆ FCN_ADR_REGION1_WIDTH

#define FCN_ADR_REGION1_WIDTH   18

Definition at line 404 of file etherfabric.c.

◆ FCN_ADR_REGION2_LBN

#define FCN_ADR_REGION2_LBN   64

Definition at line 405 of file etherfabric.c.

◆ FCN_ADR_REGION2_WIDTH

#define FCN_ADR_REGION2_WIDTH   18

Definition at line 406 of file etherfabric.c.

◆ FCN_ADR_REGION3_LBN

#define FCN_ADR_REGION3_LBN   96

Definition at line 407 of file etherfabric.c.

◆ FCN_ADR_REGION3_WIDTH

#define FCN_ADR_REGION3_WIDTH   18

Definition at line 408 of file etherfabric.c.

◆ FCN_INT_EN_REG_KER

#define FCN_INT_EN_REG_KER   0x0010

Definition at line 411 of file etherfabric.c.

◆ FCN_MEM_PERR_INT_EN_KER_LBN

#define FCN_MEM_PERR_INT_EN_KER_LBN   5

Definition at line 412 of file etherfabric.c.

◆ FCN_MEM_PERR_INT_EN_KER_WIDTH

#define FCN_MEM_PERR_INT_EN_KER_WIDTH   1

Definition at line 413 of file etherfabric.c.

◆ FCN_KER_INT_CHAR_LBN

#define FCN_KER_INT_CHAR_LBN   4

Definition at line 414 of file etherfabric.c.

◆ FCN_KER_INT_CHAR_WIDTH

#define FCN_KER_INT_CHAR_WIDTH   1

Definition at line 415 of file etherfabric.c.

◆ FCN_KER_INT_KER_LBN

#define FCN_KER_INT_KER_LBN   3

Definition at line 416 of file etherfabric.c.

◆ FCN_KER_INT_KER_WIDTH

#define FCN_KER_INT_KER_WIDTH   1

Definition at line 417 of file etherfabric.c.

◆ FCN_ILL_ADR_ERR_INT_EN_KER_LBN

#define FCN_ILL_ADR_ERR_INT_EN_KER_LBN   2

Definition at line 418 of file etherfabric.c.

◆ FCN_ILL_ADR_ERR_INT_EN_KER_WIDTH

#define FCN_ILL_ADR_ERR_INT_EN_KER_WIDTH   1

Definition at line 419 of file etherfabric.c.

◆ FCN_SRM_PERR_INT_EN_KER_LBN

#define FCN_SRM_PERR_INT_EN_KER_LBN   1

Definition at line 420 of file etherfabric.c.

◆ FCN_SRM_PERR_INT_EN_KER_WIDTH

#define FCN_SRM_PERR_INT_EN_KER_WIDTH   1

Definition at line 421 of file etherfabric.c.

◆ FCN_DRV_INT_EN_KER_LBN

#define FCN_DRV_INT_EN_KER_LBN   0

Definition at line 422 of file etherfabric.c.

◆ FCN_DRV_INT_EN_KER_WIDTH

#define FCN_DRV_INT_EN_KER_WIDTH   1

Definition at line 423 of file etherfabric.c.

◆ FCN_INT_ADR_REG_KER

#define FCN_INT_ADR_REG_KER   0x0030

Definition at line 426 of file etherfabric.c.

◆ FCN_INT_ADR_KER_LBN

#define FCN_INT_ADR_KER_LBN   0

Definition at line 427 of file etherfabric.c.

◆ FCN_INT_ADR_KER_WIDTH

#define FCN_INT_ADR_KER_WIDTH   EFAB_DMA_TYPE_WIDTH ( 64 )

Definition at line 428 of file etherfabric.c.

◆ INT_ISR0_B0

#define INT_ISR0_B0   0x90

Definition at line 431 of file etherfabric.c.

◆ INT_ISR1_B0

#define INT_ISR1_B0   0xA0

Definition at line 432 of file etherfabric.c.

◆ FCN_INT_ACK_KER_REG_A1

#define FCN_INT_ACK_KER_REG_A1   0x0050

Definition at line 435 of file etherfabric.c.

◆ INT_ACK_DUMMY_DATA_LBN

#define INT_ACK_DUMMY_DATA_LBN   0

Definition at line 436 of file etherfabric.c.

◆ INT_ACK_DUMMY_DATA_WIDTH

#define INT_ACK_DUMMY_DATA_WIDTH   32

Definition at line 437 of file etherfabric.c.

◆ WORK_AROUND_BROKEN_PCI_READS_REG_KER_A1

#define WORK_AROUND_BROKEN_PCI_READS_REG_KER_A1   0x0070

Definition at line 440 of file etherfabric.c.

◆ FCN_HW_INIT_REG_KER

#define FCN_HW_INIT_REG_KER   0x00c0

Definition at line 443 of file etherfabric.c.

◆ FCN_BCSR_TARGET_MASK_LBN

#define FCN_BCSR_TARGET_MASK_LBN   101

Definition at line 444 of file etherfabric.c.

◆ FCN_BCSR_TARGET_MASK_WIDTH

#define FCN_BCSR_TARGET_MASK_WIDTH   4

Definition at line 445 of file etherfabric.c.

◆ FCN_EE_SPI_HCMD_REG

#define FCN_EE_SPI_HCMD_REG   0x0100

Definition at line 448 of file etherfabric.c.

◆ FCN_EE_SPI_HCMD_CMD_EN_LBN

#define FCN_EE_SPI_HCMD_CMD_EN_LBN   31

Definition at line 449 of file etherfabric.c.

◆ FCN_EE_SPI_HCMD_CMD_EN_WIDTH

#define FCN_EE_SPI_HCMD_CMD_EN_WIDTH   1

Definition at line 450 of file etherfabric.c.

◆ FCN_EE_WR_TIMER_ACTIVE_LBN

#define FCN_EE_WR_TIMER_ACTIVE_LBN   28

Definition at line 451 of file etherfabric.c.

◆ FCN_EE_WR_TIMER_ACTIVE_WIDTH

#define FCN_EE_WR_TIMER_ACTIVE_WIDTH   1

Definition at line 452 of file etherfabric.c.

◆ FCN_EE_SPI_HCMD_SF_SEL_LBN

#define FCN_EE_SPI_HCMD_SF_SEL_LBN   24

Definition at line 453 of file etherfabric.c.

◆ FCN_EE_SPI_HCMD_SF_SEL_WIDTH

#define FCN_EE_SPI_HCMD_SF_SEL_WIDTH   1

Definition at line 454 of file etherfabric.c.

◆ FCN_EE_SPI_EEPROM

#define FCN_EE_SPI_EEPROM   0

Definition at line 455 of file etherfabric.c.

◆ FCN_EE_SPI_FLASH

#define FCN_EE_SPI_FLASH   1

Definition at line 456 of file etherfabric.c.

◆ FCN_EE_SPI_HCMD_DABCNT_LBN

#define FCN_EE_SPI_HCMD_DABCNT_LBN   16

Definition at line 457 of file etherfabric.c.

◆ FCN_EE_SPI_HCMD_DABCNT_WIDTH

#define FCN_EE_SPI_HCMD_DABCNT_WIDTH   5

Definition at line 458 of file etherfabric.c.

◆ FCN_EE_SPI_HCMD_READ_LBN

#define FCN_EE_SPI_HCMD_READ_LBN   15

Definition at line 459 of file etherfabric.c.

◆ FCN_EE_SPI_HCMD_READ_WIDTH

#define FCN_EE_SPI_HCMD_READ_WIDTH   1

Definition at line 460 of file etherfabric.c.

◆ FCN_EE_SPI_READ

#define FCN_EE_SPI_READ   1

Definition at line 461 of file etherfabric.c.

◆ FCN_EE_SPI_WRITE

#define FCN_EE_SPI_WRITE   0

Definition at line 462 of file etherfabric.c.

◆ FCN_EE_SPI_HCMD_DUBCNT_LBN

#define FCN_EE_SPI_HCMD_DUBCNT_LBN   12

Definition at line 463 of file etherfabric.c.

◆ FCN_EE_SPI_HCMD_DUBCNT_WIDTH

#define FCN_EE_SPI_HCMD_DUBCNT_WIDTH   2

Definition at line 464 of file etherfabric.c.

◆ FCN_EE_SPI_HCMD_ADBCNT_LBN

#define FCN_EE_SPI_HCMD_ADBCNT_LBN   8

Definition at line 465 of file etherfabric.c.

◆ FCN_EE_SPI_HCMD_ADBCNT_WIDTH

#define FCN_EE_SPI_HCMD_ADBCNT_WIDTH   2

Definition at line 466 of file etherfabric.c.

◆ FCN_EE_SPI_HCMD_ENC_LBN

#define FCN_EE_SPI_HCMD_ENC_LBN   0

Definition at line 467 of file etherfabric.c.

◆ FCN_EE_SPI_HCMD_ENC_WIDTH

#define FCN_EE_SPI_HCMD_ENC_WIDTH   8

Definition at line 468 of file etherfabric.c.

◆ FCN_EE_SPI_HADR_REG

#define FCN_EE_SPI_HADR_REG   0x0110

Definition at line 471 of file etherfabric.c.

◆ FCN_EE_SPI_HADR_DUBYTE_LBN

#define FCN_EE_SPI_HADR_DUBYTE_LBN   24

Definition at line 472 of file etherfabric.c.

◆ FCN_EE_SPI_HADR_DUBYTE_WIDTH

#define FCN_EE_SPI_HADR_DUBYTE_WIDTH   8

Definition at line 473 of file etherfabric.c.

◆ FCN_EE_SPI_HADR_ADR_LBN

#define FCN_EE_SPI_HADR_ADR_LBN   0

Definition at line 474 of file etherfabric.c.

◆ FCN_EE_SPI_HADR_ADR_WIDTH

#define FCN_EE_SPI_HADR_ADR_WIDTH   24

Definition at line 475 of file etherfabric.c.

◆ FCN_EE_SPI_HDATA_REG

#define FCN_EE_SPI_HDATA_REG   0x0120

Definition at line 478 of file etherfabric.c.

◆ FCN_EE_SPI_HDATA3_LBN

#define FCN_EE_SPI_HDATA3_LBN   96

Definition at line 479 of file etherfabric.c.

◆ FCN_EE_SPI_HDATA3_WIDTH

#define FCN_EE_SPI_HDATA3_WIDTH   32

Definition at line 480 of file etherfabric.c.

◆ FCN_EE_SPI_HDATA2_LBN

#define FCN_EE_SPI_HDATA2_LBN   64

Definition at line 481 of file etherfabric.c.

◆ FCN_EE_SPI_HDATA2_WIDTH

#define FCN_EE_SPI_HDATA2_WIDTH   32

Definition at line 482 of file etherfabric.c.

◆ FCN_EE_SPI_HDATA1_LBN

#define FCN_EE_SPI_HDATA1_LBN   32

Definition at line 483 of file etherfabric.c.

◆ FCN_EE_SPI_HDATA1_WIDTH

#define FCN_EE_SPI_HDATA1_WIDTH   32

Definition at line 484 of file etherfabric.c.

◆ FCN_EE_SPI_HDATA0_LBN

#define FCN_EE_SPI_HDATA0_LBN   0

Definition at line 485 of file etherfabric.c.

◆ FCN_EE_SPI_HDATA0_WIDTH

#define FCN_EE_SPI_HDATA0_WIDTH   32

Definition at line 486 of file etherfabric.c.

◆ FCN_EE_VPD_CFG_REG

#define FCN_EE_VPD_CFG_REG   0x0140

Definition at line 489 of file etherfabric.c.

◆ FCN_EE_VPD_EN_LBN

#define FCN_EE_VPD_EN_LBN   0

Definition at line 490 of file etherfabric.c.

◆ FCN_EE_VPD_EN_WIDTH

#define FCN_EE_VPD_EN_WIDTH   1

Definition at line 491 of file etherfabric.c.

◆ FCN_EE_VPD_EN_AD9_MODE_LBN

#define FCN_EE_VPD_EN_AD9_MODE_LBN   1

Definition at line 492 of file etherfabric.c.

◆ FCN_EE_VPD_EN_AD9_MODE_WIDTH

#define FCN_EE_VPD_EN_AD9_MODE_WIDTH   1

Definition at line 493 of file etherfabric.c.

◆ FCN_EE_EE_CLOCK_DIV_LBN

#define FCN_EE_EE_CLOCK_DIV_LBN   112

Definition at line 494 of file etherfabric.c.

◆ FCN_EE_EE_CLOCK_DIV_WIDTH

#define FCN_EE_EE_CLOCK_DIV_WIDTH   7

Definition at line 495 of file etherfabric.c.

◆ FCN_EE_SF_CLOCK_DIV_LBN

#define FCN_EE_SF_CLOCK_DIV_LBN   120

Definition at line 496 of file etherfabric.c.

◆ FCN_EE_SF_CLOCK_DIV_WIDTH

#define FCN_EE_SF_CLOCK_DIV_WIDTH   7

Definition at line 497 of file etherfabric.c.

◆ FCN_NIC_STAT_REG

#define FCN_NIC_STAT_REG   0x0200

Definition at line 501 of file etherfabric.c.

◆ FCN_ONCHIP_SRAM_LBN

#define FCN_ONCHIP_SRAM_LBN   16

Definition at line 502 of file etherfabric.c.

◆ FCN_ONCHIP_SRAM_WIDTH

#define FCN_ONCHIP_SRAM_WIDTH   1

Definition at line 503 of file etherfabric.c.

◆ FCN_SF_PRST_LBN

#define FCN_SF_PRST_LBN   9

Definition at line 504 of file etherfabric.c.

◆ FCN_SF_PRST_WIDTH

#define FCN_SF_PRST_WIDTH   1

Definition at line 505 of file etherfabric.c.

◆ FCN_EE_PRST_LBN

#define FCN_EE_PRST_LBN   8

Definition at line 506 of file etherfabric.c.

◆ FCN_EE_PRST_WIDTH

#define FCN_EE_PRST_WIDTH   1

Definition at line 507 of file etherfabric.c.

◆ FCN_EE_STRAP_LBN

#define FCN_EE_STRAP_LBN   7

Definition at line 508 of file etherfabric.c.

◆ FCN_EE_STRAP_WIDTH

#define FCN_EE_STRAP_WIDTH   1

Definition at line 509 of file etherfabric.c.

◆ FCN_PCI_PCIX_MODE_LBN

#define FCN_PCI_PCIX_MODE_LBN   4

Definition at line 510 of file etherfabric.c.

◆ FCN_PCI_PCIX_MODE_WIDTH

#define FCN_PCI_PCIX_MODE_WIDTH   3

Definition at line 511 of file etherfabric.c.

◆ FCN_PCI_PCIX_MODE_PCI33_DECODE

#define FCN_PCI_PCIX_MODE_PCI33_DECODE   0

Definition at line 512 of file etherfabric.c.

◆ FCN_PCI_PCIX_MODE_PCI66_DECODE

#define FCN_PCI_PCIX_MODE_PCI66_DECODE   1

Definition at line 513 of file etherfabric.c.

◆ FCN_PCI_PCIX_MODE_PCIX66_DECODE

#define FCN_PCI_PCIX_MODE_PCIX66_DECODE   5

Definition at line 514 of file etherfabric.c.

◆ FCN_PCI_PCIX_MODE_PCIX100_DECODE

#define FCN_PCI_PCIX_MODE_PCIX100_DECODE   6

Definition at line 515 of file etherfabric.c.

◆ FCN_PCI_PCIX_MODE_PCIX133_DECODE

#define FCN_PCI_PCIX_MODE_PCIX133_DECODE   7

Definition at line 516 of file etherfabric.c.

◆ FCN_STRAP_ISCSI_EN_LBN

#define FCN_STRAP_ISCSI_EN_LBN   3

Definition at line 517 of file etherfabric.c.

◆ FCN_STRAP_ISCSI_EN_WIDTH

#define FCN_STRAP_ISCSI_EN_WIDTH   1

Definition at line 518 of file etherfabric.c.

◆ FCN_STRAP_PINS_LBN

#define FCN_STRAP_PINS_LBN   0

Definition at line 519 of file etherfabric.c.

◆ FCN_STRAP_PINS_WIDTH

#define FCN_STRAP_PINS_WIDTH   3

Definition at line 520 of file etherfabric.c.

◆ FCN_STRAP_10G_LBN

#define FCN_STRAP_10G_LBN   2

Definition at line 521 of file etherfabric.c.

◆ FCN_STRAP_10G_WIDTH

#define FCN_STRAP_10G_WIDTH   1

Definition at line 522 of file etherfabric.c.

◆ FCN_STRAP_DUAL_PORT_LBN

#define FCN_STRAP_DUAL_PORT_LBN   1

Definition at line 523 of file etherfabric.c.

◆ FCN_STRAP_DUAL_PORT_WIDTH

#define FCN_STRAP_DUAL_PORT_WIDTH   1

Definition at line 524 of file etherfabric.c.

◆ FCN_STRAP_PCIE_LBN

#define FCN_STRAP_PCIE_LBN   0

Definition at line 525 of file etherfabric.c.

◆ FCN_STRAP_PCIE_WIDTH

#define FCN_STRAP_PCIE_WIDTH   1

Definition at line 526 of file etherfabric.c.

◆ FALCON_REV_A0

#define FALCON_REV_A0   0

Definition at line 529 of file etherfabric.c.

◆ FALCON_REV_A1

#define FALCON_REV_A1   1

Definition at line 530 of file etherfabric.c.

◆ FALCON_REV_B0

#define FALCON_REV_B0   2

Definition at line 531 of file etherfabric.c.

◆ FCN_GPIO_CTL_REG_KER [1/2]

#define FCN_GPIO_CTL_REG_KER   0x0210

Definition at line 535 of file etherfabric.c.

◆ FCN_GPIO_CTL_REG_KER [2/2]

#define FCN_GPIO_CTL_REG_KER   0x0210

Definition at line 535 of file etherfabric.c.

◆ FCN_GPIO3_OEN_LBN

#define FCN_GPIO3_OEN_LBN   27

Definition at line 537 of file etherfabric.c.

◆ FCN_GPIO3_OEN_WIDTH

#define FCN_GPIO3_OEN_WIDTH   1

Definition at line 538 of file etherfabric.c.

◆ FCN_GPIO2_OEN_LBN

#define FCN_GPIO2_OEN_LBN   26

Definition at line 539 of file etherfabric.c.

◆ FCN_GPIO2_OEN_WIDTH

#define FCN_GPIO2_OEN_WIDTH   1

Definition at line 540 of file etherfabric.c.

◆ FCN_GPIO1_OEN_LBN

#define FCN_GPIO1_OEN_LBN   25

Definition at line 541 of file etherfabric.c.

◆ FCN_GPIO1_OEN_WIDTH

#define FCN_GPIO1_OEN_WIDTH   1

Definition at line 542 of file etherfabric.c.

◆ FCN_GPIO0_OEN_LBN

#define FCN_GPIO0_OEN_LBN   24

Definition at line 543 of file etherfabric.c.

◆ FCN_GPIO0_OEN_WIDTH

#define FCN_GPIO0_OEN_WIDTH   1

Definition at line 544 of file etherfabric.c.

◆ FCN_GPIO3_OUT_LBN

#define FCN_GPIO3_OUT_LBN   19

Definition at line 546 of file etherfabric.c.

◆ FCN_GPIO3_OUT_WIDTH

#define FCN_GPIO3_OUT_WIDTH   1

Definition at line 547 of file etherfabric.c.

◆ FCN_GPIO2_OUT_LBN

#define FCN_GPIO2_OUT_LBN   18

Definition at line 548 of file etherfabric.c.

◆ FCN_GPIO2_OUT_WIDTH

#define FCN_GPIO2_OUT_WIDTH   1

Definition at line 549 of file etherfabric.c.

◆ FCN_GPIO1_OUT_LBN

#define FCN_GPIO1_OUT_LBN   17

Definition at line 550 of file etherfabric.c.

◆ FCN_GPIO1_OUT_WIDTH

#define FCN_GPIO1_OUT_WIDTH   1

Definition at line 551 of file etherfabric.c.

◆ FCN_GPIO0_OUT_LBN

#define FCN_GPIO0_OUT_LBN   16

Definition at line 552 of file etherfabric.c.

◆ FCN_GPIO0_OUT_WIDTH

#define FCN_GPIO0_OUT_WIDTH   1

Definition at line 553 of file etherfabric.c.

◆ FCN_GPIO3_IN_LBN

#define FCN_GPIO3_IN_LBN   11

Definition at line 555 of file etherfabric.c.

◆ FCN_GPIO3_IN_WIDTH

#define FCN_GPIO3_IN_WIDTH   1

Definition at line 556 of file etherfabric.c.

◆ FCN_GPIO2_IN_LBN

#define FCN_GPIO2_IN_LBN   10

Definition at line 557 of file etherfabric.c.

◆ FCN_GPIO2_IN_WIDTH

#define FCN_GPIO2_IN_WIDTH   1

Definition at line 558 of file etherfabric.c.

◆ FCN_GPIO1_IN_LBN

#define FCN_GPIO1_IN_LBN   9

Definition at line 559 of file etherfabric.c.

◆ FCN_GPIO1_IN_WIDTH

#define FCN_GPIO1_IN_WIDTH   1

Definition at line 560 of file etherfabric.c.

◆ FCN_GPIO0_IN_LBN

#define FCN_GPIO0_IN_LBN   8

Definition at line 561 of file etherfabric.c.

◆ FCN_GPIO0_IN_WIDTH

#define FCN_GPIO0_IN_WIDTH   1

Definition at line 562 of file etherfabric.c.

◆ FCN_FLASH_PRESENT_LBN

#define FCN_FLASH_PRESENT_LBN   7

Definition at line 564 of file etherfabric.c.

◆ FCN_FLASH_PRESENT_WIDTH

#define FCN_FLASH_PRESENT_WIDTH   1

Definition at line 565 of file etherfabric.c.

◆ FCN_EEPROM_PRESENT_LBN

#define FCN_EEPROM_PRESENT_LBN   6

Definition at line 566 of file etherfabric.c.

◆ FCN_EEPROM_PRESENT_WIDTH

#define FCN_EEPROM_PRESENT_WIDTH   1

Definition at line 567 of file etherfabric.c.

◆ FCN_BOOTED_USING_NVDEVICE_LBN

#define FCN_BOOTED_USING_NVDEVICE_LBN   3

Definition at line 568 of file etherfabric.c.

◆ FCN_BOOTED_USING_NVDEVICE_WIDTH

#define FCN_BOOTED_USING_NVDEVICE_WIDTH   1

Definition at line 569 of file etherfabric.c.

◆ FCN_NV_MAGIC_NUMBER

#define FCN_NV_MAGIC_NUMBER   0xFA1C

Definition at line 572 of file etherfabric.c.

◆ FCN_GLB_CTL_REG_KER

#define FCN_GLB_CTL_REG_KER   0x0220

Definition at line 575 of file etherfabric.c.

◆ FCN_EXT_PHY_RST_CTL_LBN

#define FCN_EXT_PHY_RST_CTL_LBN   63

Definition at line 576 of file etherfabric.c.

◆ FCN_EXT_PHY_RST_CTL_WIDTH

#define FCN_EXT_PHY_RST_CTL_WIDTH   1

Definition at line 577 of file etherfabric.c.

◆ FCN_PCIE_SD_RST_CTL_LBN

#define FCN_PCIE_SD_RST_CTL_LBN   61

Definition at line 578 of file etherfabric.c.

◆ FCN_PCIE_SD_RST_CTL_WIDTH

#define FCN_PCIE_SD_RST_CTL_WIDTH   1

Definition at line 579 of file etherfabric.c.

◆ FCN_PCIE_STCK_RST_CTL_LBN

#define FCN_PCIE_STCK_RST_CTL_LBN   59

Definition at line 580 of file etherfabric.c.

◆ FCN_PCIE_STCK_RST_CTL_WIDTH

#define FCN_PCIE_STCK_RST_CTL_WIDTH   1

Definition at line 581 of file etherfabric.c.

◆ FCN_PCIE_NSTCK_RST_CTL_LBN

#define FCN_PCIE_NSTCK_RST_CTL_LBN   58

Definition at line 582 of file etherfabric.c.

◆ FCN_PCIE_NSTCK_RST_CTL_WIDTH

#define FCN_PCIE_NSTCK_RST_CTL_WIDTH   1

Definition at line 583 of file etherfabric.c.

◆ FCN_PCIE_CORE_RST_CTL_LBN

#define FCN_PCIE_CORE_RST_CTL_LBN   57

Definition at line 584 of file etherfabric.c.

◆ FCN_PCIE_CORE_RST_CTL_WIDTH

#define FCN_PCIE_CORE_RST_CTL_WIDTH   1

Definition at line 585 of file etherfabric.c.

◆ FCN_EE_RST_CTL_LBN

#define FCN_EE_RST_CTL_LBN   49

Definition at line 586 of file etherfabric.c.

◆ FCN_EE_RST_CTL_WIDTH

#define FCN_EE_RST_CTL_WIDTH   1

Definition at line 587 of file etherfabric.c.

◆ FCN_RST_EXT_PHY_LBN

#define FCN_RST_EXT_PHY_LBN   31

Definition at line 588 of file etherfabric.c.

◆ FCN_RST_EXT_PHY_WIDTH

#define FCN_RST_EXT_PHY_WIDTH   1

Definition at line 589 of file etherfabric.c.

◆ FCN_EXT_PHY_RST_DUR_LBN

#define FCN_EXT_PHY_RST_DUR_LBN   1

Definition at line 590 of file etherfabric.c.

◆ FCN_EXT_PHY_RST_DUR_WIDTH

#define FCN_EXT_PHY_RST_DUR_WIDTH   3

Definition at line 591 of file etherfabric.c.

◆ FCN_SWRST_LBN

#define FCN_SWRST_LBN   0

Definition at line 592 of file etherfabric.c.

◆ FCN_SWRST_WIDTH

#define FCN_SWRST_WIDTH   1

Definition at line 593 of file etherfabric.c.

◆ INCLUDE_IN_RESET

#define INCLUDE_IN_RESET   0

Definition at line 594 of file etherfabric.c.

◆ EXCLUDE_FROM_RESET

#define EXCLUDE_FROM_RESET   1

Definition at line 595 of file etherfabric.c.

◆ FCN_ALTERA_BUILD_REG_KER

#define FCN_ALTERA_BUILD_REG_KER   0x0300

Definition at line 598 of file etherfabric.c.

◆ FCN_VER_MAJOR_LBN

#define FCN_VER_MAJOR_LBN   24

Definition at line 599 of file etherfabric.c.

◆ FCN_VER_MAJOR_WIDTH

#define FCN_VER_MAJOR_WIDTH   8

Definition at line 600 of file etherfabric.c.

◆ FCN_VER_MINOR_LBN

#define FCN_VER_MINOR_LBN   16

Definition at line 601 of file etherfabric.c.

◆ FCN_VER_MINOR_WIDTH

#define FCN_VER_MINOR_WIDTH   8

Definition at line 602 of file etherfabric.c.

◆ FCN_VER_BUILD_LBN

#define FCN_VER_BUILD_LBN   0

Definition at line 603 of file etherfabric.c.

◆ FCN_VER_BUILD_WIDTH

#define FCN_VER_BUILD_WIDTH   16

Definition at line 604 of file etherfabric.c.

◆ FCN_VER_ALL_LBN

#define FCN_VER_ALL_LBN   0

Definition at line 605 of file etherfabric.c.

◆ FCN_VER_ALL_WIDTH

#define FCN_VER_ALL_WIDTH   32

Definition at line 606 of file etherfabric.c.

◆ FCN_SPARE_REG_KER

#define FCN_SPARE_REG_KER   0x310

Definition at line 609 of file etherfabric.c.

◆ FCN_MEM_PERR_EN_TX_DATA_LBN

#define FCN_MEM_PERR_EN_TX_DATA_LBN   72

Definition at line 610 of file etherfabric.c.

◆ FCN_MEM_PERR_EN_TX_DATA_WIDTH

#define FCN_MEM_PERR_EN_TX_DATA_WIDTH   2

Definition at line 611 of file etherfabric.c.

◆ FCN_TIMER_CMD_REG_KER

#define FCN_TIMER_CMD_REG_KER   0x420

Definition at line 614 of file etherfabric.c.

◆ FCN_TIMER_MODE_LBN

#define FCN_TIMER_MODE_LBN   12

Definition at line 615 of file etherfabric.c.

◆ FCN_TIMER_MODE_WIDTH

#define FCN_TIMER_MODE_WIDTH   2

Definition at line 616 of file etherfabric.c.

◆ FCN_TIMER_MODE_DIS

#define FCN_TIMER_MODE_DIS   0

Definition at line 617 of file etherfabric.c.

◆ FCN_TIMER_MODE_INT_HLDOFF

#define FCN_TIMER_MODE_INT_HLDOFF   1

Definition at line 618 of file etherfabric.c.

◆ FCN_TIMER_VAL_LBN

#define FCN_TIMER_VAL_LBN   0

Definition at line 619 of file etherfabric.c.

◆ FCN_TIMER_VAL_WIDTH

#define FCN_TIMER_VAL_WIDTH   12

Definition at line 620 of file etherfabric.c.

◆ FCN_RX_CFG_REG_KER [1/2]

#define FCN_RX_CFG_REG_KER   0x800

Definition at line 652 of file etherfabric.c.

◆ FCN_RX_XOFF_EN_LBN

#define FCN_RX_XOFF_EN_LBN   0

Definition at line 624 of file etherfabric.c.

◆ FCN_RX_XOFF_EN_WIDTH

#define FCN_RX_XOFF_EN_WIDTH   1

Definition at line 625 of file etherfabric.c.

◆ FCN_SRM_RX_DC_CFG_REG_KER

#define FCN_SRM_RX_DC_CFG_REG_KER   0x610

Definition at line 628 of file etherfabric.c.

◆ FCN_SRM_RX_DC_BASE_ADR_LBN

#define FCN_SRM_RX_DC_BASE_ADR_LBN   0

Definition at line 629 of file etherfabric.c.

◆ FCN_SRM_RX_DC_BASE_ADR_WIDTH

#define FCN_SRM_RX_DC_BASE_ADR_WIDTH   21

Definition at line 630 of file etherfabric.c.

◆ FCN_SRM_TX_DC_CFG_REG_KER

#define FCN_SRM_TX_DC_CFG_REG_KER   0x620

Definition at line 633 of file etherfabric.c.

◆ FCN_SRM_TX_DC_BASE_ADR_LBN

#define FCN_SRM_TX_DC_BASE_ADR_LBN   0

Definition at line 634 of file etherfabric.c.

◆ FCN_SRM_TX_DC_BASE_ADR_WIDTH

#define FCN_SRM_TX_DC_BASE_ADR_WIDTH   21

Definition at line 635 of file etherfabric.c.

◆ FCN_SRM_CFG_REG_KER

#define FCN_SRM_CFG_REG_KER   0x630

Definition at line 638 of file etherfabric.c.

◆ FCN_SRAM_OOB_ADR_INTEN_LBN

#define FCN_SRAM_OOB_ADR_INTEN_LBN   5

Definition at line 639 of file etherfabric.c.

◆ FCN_SRAM_OOB_ADR_INTEN_WIDTH

#define FCN_SRAM_OOB_ADR_INTEN_WIDTH   1

Definition at line 640 of file etherfabric.c.

◆ FCN_SRAM_OOB_BUF_INTEN_LBN

#define FCN_SRAM_OOB_BUF_INTEN_LBN   4

Definition at line 641 of file etherfabric.c.

◆ FCN_SRAM_OOB_BUF_INTEN_WIDTH

#define FCN_SRAM_OOB_BUF_INTEN_WIDTH   1

Definition at line 642 of file etherfabric.c.

◆ FCN_SRAM_OOB_BT_INIT_EN_LBN

#define FCN_SRAM_OOB_BT_INIT_EN_LBN   3

Definition at line 643 of file etherfabric.c.

◆ FCN_SRAM_OOB_BT_INIT_EN_WIDTH

#define FCN_SRAM_OOB_BT_INIT_EN_WIDTH   1

Definition at line 644 of file etherfabric.c.

◆ FCN_SRM_NUM_BANK_LBN

#define FCN_SRM_NUM_BANK_LBN   2

Definition at line 645 of file etherfabric.c.

◆ FCN_SRM_NUM_BANK_WIDTH

#define FCN_SRM_NUM_BANK_WIDTH   1

Definition at line 646 of file etherfabric.c.

◆ FCN_SRM_BANK_SIZE_LBN

#define FCN_SRM_BANK_SIZE_LBN   0

Definition at line 647 of file etherfabric.c.

◆ FCN_SRM_BANK_SIZE_WIDTH

#define FCN_SRM_BANK_SIZE_WIDTH   2

Definition at line 648 of file etherfabric.c.

◆ FCN_SRM_NUM_BANKS_AND_BANK_SIZE_LBN

#define FCN_SRM_NUM_BANKS_AND_BANK_SIZE_LBN   0

Definition at line 649 of file etherfabric.c.

◆ FCN_SRM_NUM_BANKS_AND_BANK_SIZE_WIDTH

#define FCN_SRM_NUM_BANKS_AND_BANK_SIZE_WIDTH   3

Definition at line 650 of file etherfabric.c.

◆ FCN_RX_CFG_REG_KER [2/2]

#define FCN_RX_CFG_REG_KER   0x800

Definition at line 652 of file etherfabric.c.

◆ FCN_RX_INGR_EN_B0_LBN

#define FCN_RX_INGR_EN_B0_LBN   47

Definition at line 653 of file etherfabric.c.

◆ FCN_RX_INGR_EN_B0_WIDTH

#define FCN_RX_INGR_EN_B0_WIDTH   1

Definition at line 654 of file etherfabric.c.

◆ FCN_RX_USR_BUF_SIZE_B0_LBN

#define FCN_RX_USR_BUF_SIZE_B0_LBN   19

Definition at line 655 of file etherfabric.c.

◆ FCN_RX_USR_BUF_SIZE_B0_WIDTH

#define FCN_RX_USR_BUF_SIZE_B0_WIDTH   9

Definition at line 656 of file etherfabric.c.

◆ FCN_RX_XON_MAC_TH_B0_LBN

#define FCN_RX_XON_MAC_TH_B0_LBN   10

Definition at line 657 of file etherfabric.c.

◆ FCN_RX_XON_MAC_TH_B0_WIDTH

#define FCN_RX_XON_MAC_TH_B0_WIDTH   9

Definition at line 658 of file etherfabric.c.

◆ FCN_RX_XOFF_MAC_TH_B0_LBN

#define FCN_RX_XOFF_MAC_TH_B0_LBN   1

Definition at line 659 of file etherfabric.c.

◆ FCN_RX_XOFF_MAC_TH_B0_WIDTH

#define FCN_RX_XOFF_MAC_TH_B0_WIDTH   9

Definition at line 660 of file etherfabric.c.

◆ FCN_RX_XOFF_MAC_EN_B0_LBN

#define FCN_RX_XOFF_MAC_EN_B0_LBN   0

Definition at line 661 of file etherfabric.c.

◆ FCN_RX_XOFF_MAC_EN_B0_WIDTH

#define FCN_RX_XOFF_MAC_EN_B0_WIDTH   1

Definition at line 662 of file etherfabric.c.

◆ FCN_RX_USR_BUF_SIZE_A1_LBN [1/2]

#define FCN_RX_USR_BUF_SIZE_A1_LBN   11

Definition at line 672 of file etherfabric.c.

◆ FCN_RX_USR_BUF_SIZE_A1_WIDTH [1/2]

#define FCN_RX_USR_BUF_SIZE_A1_WIDTH   9

Definition at line 673 of file etherfabric.c.

◆ FCN_RX_XON_MAC_TH_A1_LBN

#define FCN_RX_XON_MAC_TH_A1_LBN   6

Definition at line 665 of file etherfabric.c.

◆ FCN_RX_XON_MAC_TH_A1_WIDTH

#define FCN_RX_XON_MAC_TH_A1_WIDTH   5

Definition at line 666 of file etherfabric.c.

◆ FCN_RX_XOFF_MAC_TH_A1_LBN

#define FCN_RX_XOFF_MAC_TH_A1_LBN   1

Definition at line 667 of file etherfabric.c.

◆ FCN_RX_XOFF_MAC_TH_A1_WIDTH

#define FCN_RX_XOFF_MAC_TH_A1_WIDTH   5

Definition at line 668 of file etherfabric.c.

◆ FCN_RX_XOFF_MAC_EN_A1_LBN [1/2]

#define FCN_RX_XOFF_MAC_EN_A1_LBN   0

Definition at line 674 of file etherfabric.c.

◆ FCN_RX_XOFF_MAC_EN_A1_WIDTH [1/2]

#define FCN_RX_XOFF_MAC_EN_A1_WIDTH   1

Definition at line 675 of file etherfabric.c.

◆ FCN_RX_USR_BUF_SIZE_A1_LBN [2/2]

#define FCN_RX_USR_BUF_SIZE_A1_LBN   11

Definition at line 672 of file etherfabric.c.

◆ FCN_RX_USR_BUF_SIZE_A1_WIDTH [2/2]

#define FCN_RX_USR_BUF_SIZE_A1_WIDTH   9

Definition at line 673 of file etherfabric.c.

◆ FCN_RX_XOFF_MAC_EN_A1_LBN [2/2]

#define FCN_RX_XOFF_MAC_EN_A1_LBN   0

Definition at line 674 of file etherfabric.c.

◆ FCN_RX_XOFF_MAC_EN_A1_WIDTH [2/2]

#define FCN_RX_XOFF_MAC_EN_A1_WIDTH   1

Definition at line 675 of file etherfabric.c.

◆ FCN_RX_FILTER_CTL_REG_KER

#define FCN_RX_FILTER_CTL_REG_KER   0x810

Definition at line 678 of file etherfabric.c.

◆ FCN_UDP_FULL_SRCH_LIMIT_LBN

#define FCN_UDP_FULL_SRCH_LIMIT_LBN   32

Definition at line 679 of file etherfabric.c.

◆ FCN_UDP_FULL_SRCH_LIMIT_WIDTH

#define FCN_UDP_FULL_SRCH_LIMIT_WIDTH   8

Definition at line 680 of file etherfabric.c.

◆ FCN_NUM_KER_LBN

#define FCN_NUM_KER_LBN   24

Definition at line 681 of file etherfabric.c.

◆ FCN_NUM_KER_WIDTH

#define FCN_NUM_KER_WIDTH   2

Definition at line 682 of file etherfabric.c.

◆ FCN_UDP_WILD_SRCH_LIMIT_LBN

#define FCN_UDP_WILD_SRCH_LIMIT_LBN   16

Definition at line 683 of file etherfabric.c.

◆ FCN_UDP_WILD_SRCH_LIMIT_WIDTH

#define FCN_UDP_WILD_SRCH_LIMIT_WIDTH   8

Definition at line 684 of file etherfabric.c.

◆ FCN_TCP_WILD_SRCH_LIMIT_LBN

#define FCN_TCP_WILD_SRCH_LIMIT_LBN   8

Definition at line 685 of file etherfabric.c.

◆ FCN_TCP_WILD_SRCH_LIMIT_WIDTH

#define FCN_TCP_WILD_SRCH_LIMIT_WIDTH   8

Definition at line 686 of file etherfabric.c.

◆ FCN_TCP_FULL_SRCH_LIMIT_LBN

#define FCN_TCP_FULL_SRCH_LIMIT_LBN   0

Definition at line 687 of file etherfabric.c.

◆ FCN_TCP_FULL_SRCH_LIMIT_WIDTH

#define FCN_TCP_FULL_SRCH_LIMIT_WIDTH   8

Definition at line 688 of file etherfabric.c.

◆ FCN_RX_FLUSH_DESCQ_REG_KER

#define FCN_RX_FLUSH_DESCQ_REG_KER   0x0820

Definition at line 691 of file etherfabric.c.

◆ FCN_RX_FLUSH_DESCQ_CMD_LBN

#define FCN_RX_FLUSH_DESCQ_CMD_LBN   24

Definition at line 692 of file etherfabric.c.

◆ FCN_RX_FLUSH_DESCQ_CMD_WIDTH

#define FCN_RX_FLUSH_DESCQ_CMD_WIDTH   1

Definition at line 693 of file etherfabric.c.

◆ FCN_RX_FLUSH_DESCQ_LBN

#define FCN_RX_FLUSH_DESCQ_LBN   0

Definition at line 694 of file etherfabric.c.

◆ FCN_RX_FLUSH_DESCQ_WIDTH

#define FCN_RX_FLUSH_DESCQ_WIDTH   12

Definition at line 695 of file etherfabric.c.

◆ FCN_RX_DESC_UPD_REG_KER

#define FCN_RX_DESC_UPD_REG_KER   0x0830

Definition at line 698 of file etherfabric.c.

◆ FCN_RX_DESC_WPTR_LBN

#define FCN_RX_DESC_WPTR_LBN   96

Definition at line 699 of file etherfabric.c.

◆ FCN_RX_DESC_WPTR_WIDTH

#define FCN_RX_DESC_WPTR_WIDTH   12

Definition at line 700 of file etherfabric.c.

◆ FCN_RX_DESC_UPD_REG_KER_DWORD

#define FCN_RX_DESC_UPD_REG_KER_DWORD   ( FCN_RX_DESC_UPD_REG_KER + 12 )

Definition at line 701 of file etherfabric.c.

◆ FCN_RX_DESC_WPTR_DWORD_LBN

#define FCN_RX_DESC_WPTR_DWORD_LBN   0

Definition at line 702 of file etherfabric.c.

◆ FCN_RX_DESC_WPTR_DWORD_WIDTH

#define FCN_RX_DESC_WPTR_DWORD_WIDTH   12

Definition at line 703 of file etherfabric.c.

◆ FCN_RX_DC_CFG_REG_KER

#define FCN_RX_DC_CFG_REG_KER   0x840

Definition at line 706 of file etherfabric.c.

◆ FCN_RX_DC_SIZE_LBN

#define FCN_RX_DC_SIZE_LBN   0

Definition at line 707 of file etherfabric.c.

◆ FCN_RX_DC_SIZE_WIDTH

#define FCN_RX_DC_SIZE_WIDTH   2

Definition at line 708 of file etherfabric.c.

◆ FCN_RX_SELF_RST_REG_KER

#define FCN_RX_SELF_RST_REG_KER   0x890

Definition at line 710 of file etherfabric.c.

◆ FCN_RX_ISCSI_DIS_LBN

#define FCN_RX_ISCSI_DIS_LBN   17

Definition at line 711 of file etherfabric.c.

◆ FCN_RX_ISCSI_DIS_WIDTH

#define FCN_RX_ISCSI_DIS_WIDTH   1

Definition at line 712 of file etherfabric.c.

◆ FCN_RX_NODESC_WAIT_DIS_LBN

#define FCN_RX_NODESC_WAIT_DIS_LBN   9

Definition at line 713 of file etherfabric.c.

◆ FCN_RX_NODESC_WAIT_DIS_WIDTH

#define FCN_RX_NODESC_WAIT_DIS_WIDTH   1

Definition at line 714 of file etherfabric.c.

◆ FCN_RX_RECOVERY_EN_LBN

#define FCN_RX_RECOVERY_EN_LBN   8

Definition at line 715 of file etherfabric.c.

◆ FCN_RX_RECOVERY_EN_WIDTH

#define FCN_RX_RECOVERY_EN_WIDTH   1

Definition at line 716 of file etherfabric.c.

◆ FCN_TX_FLUSH_DESCQ_REG_KER

#define FCN_TX_FLUSH_DESCQ_REG_KER   0x0a00

Definition at line 719 of file etherfabric.c.

◆ FCN_TX_FLUSH_DESCQ_CMD_LBN

#define FCN_TX_FLUSH_DESCQ_CMD_LBN   12

Definition at line 720 of file etherfabric.c.

◆ FCN_TX_FLUSH_DESCQ_CMD_WIDTH

#define FCN_TX_FLUSH_DESCQ_CMD_WIDTH   1

Definition at line 721 of file etherfabric.c.

◆ FCN_TX_FLUSH_DESCQ_LBN

#define FCN_TX_FLUSH_DESCQ_LBN   0

Definition at line 722 of file etherfabric.c.

◆ FCN_TX_FLUSH_DESCQ_WIDTH

#define FCN_TX_FLUSH_DESCQ_WIDTH   12

Definition at line 723 of file etherfabric.c.

◆ FCN_TX_CFG2_REG_KER

#define FCN_TX_CFG2_REG_KER   0xa80

Definition at line 726 of file etherfabric.c.

◆ FCN_TX_DIS_NON_IP_EV_LBN

#define FCN_TX_DIS_NON_IP_EV_LBN   17

Definition at line 727 of file etherfabric.c.

◆ FCN_TX_DIS_NON_IP_EV_WIDTH

#define FCN_TX_DIS_NON_IP_EV_WIDTH   1

Definition at line 728 of file etherfabric.c.

◆ FCN_TX_DESC_UPD_REG_KER

#define FCN_TX_DESC_UPD_REG_KER   0x0a10

Definition at line 731 of file etherfabric.c.

◆ FCN_TX_DESC_WPTR_LBN

#define FCN_TX_DESC_WPTR_LBN   96

Definition at line 732 of file etherfabric.c.

◆ FCN_TX_DESC_WPTR_WIDTH

#define FCN_TX_DESC_WPTR_WIDTH   12

Definition at line 733 of file etherfabric.c.

◆ FCN_TX_DESC_UPD_REG_KER_DWORD

#define FCN_TX_DESC_UPD_REG_KER_DWORD   ( FCN_TX_DESC_UPD_REG_KER + 12 )

Definition at line 734 of file etherfabric.c.

◆ FCN_TX_DESC_WPTR_DWORD_LBN

#define FCN_TX_DESC_WPTR_DWORD_LBN   0

Definition at line 735 of file etherfabric.c.

◆ FCN_TX_DESC_WPTR_DWORD_WIDTH

#define FCN_TX_DESC_WPTR_DWORD_WIDTH   12

Definition at line 736 of file etherfabric.c.

◆ FCN_TX_DC_CFG_REG_KER

#define FCN_TX_DC_CFG_REG_KER   0xa20

Definition at line 739 of file etherfabric.c.

◆ FCN_TX_DC_SIZE_LBN

#define FCN_TX_DC_SIZE_LBN   0

Definition at line 740 of file etherfabric.c.

◆ FCN_TX_DC_SIZE_WIDTH

#define FCN_TX_DC_SIZE_WIDTH   2

Definition at line 741 of file etherfabric.c.

◆ FCN_MD_TXD_REG_KER

#define FCN_MD_TXD_REG_KER   0xc00

Definition at line 744 of file etherfabric.c.

◆ FCN_MD_TXD_LBN

#define FCN_MD_TXD_LBN   0

Definition at line 745 of file etherfabric.c.

◆ FCN_MD_TXD_WIDTH

#define FCN_MD_TXD_WIDTH   16

Definition at line 746 of file etherfabric.c.

◆ FCN_MD_RXD_REG_KER

#define FCN_MD_RXD_REG_KER   0xc10

Definition at line 749 of file etherfabric.c.

◆ FCN_MD_RXD_LBN

#define FCN_MD_RXD_LBN   0

Definition at line 750 of file etherfabric.c.

◆ FCN_MD_RXD_WIDTH

#define FCN_MD_RXD_WIDTH   16

Definition at line 751 of file etherfabric.c.

◆ FCN_MD_CS_REG_KER

#define FCN_MD_CS_REG_KER   0xc20

Definition at line 754 of file etherfabric.c.

◆ FCN_MD_GC_LBN

#define FCN_MD_GC_LBN   4

Definition at line 755 of file etherfabric.c.

◆ FCN_MD_GC_WIDTH

#define FCN_MD_GC_WIDTH   1

Definition at line 756 of file etherfabric.c.

◆ FCN_MD_RIC_LBN

#define FCN_MD_RIC_LBN   2

Definition at line 757 of file etherfabric.c.

◆ FCN_MD_RIC_WIDTH

#define FCN_MD_RIC_WIDTH   1

Definition at line 758 of file etherfabric.c.

◆ FCN_MD_RDC_LBN

#define FCN_MD_RDC_LBN   1

Definition at line 759 of file etherfabric.c.

◆ FCN_MD_RDC_WIDTH

#define FCN_MD_RDC_WIDTH   1

Definition at line 760 of file etherfabric.c.

◆ FCN_MD_WRC_LBN

#define FCN_MD_WRC_LBN   0

Definition at line 761 of file etherfabric.c.

◆ FCN_MD_WRC_WIDTH

#define FCN_MD_WRC_WIDTH   1

Definition at line 762 of file etherfabric.c.

◆ FCN_MD_PHY_ADR_REG_KER

#define FCN_MD_PHY_ADR_REG_KER   0xc30

Definition at line 765 of file etherfabric.c.

◆ FCN_MD_PHY_ADR_LBN

#define FCN_MD_PHY_ADR_LBN   0

Definition at line 766 of file etherfabric.c.

◆ FCN_MD_PHY_ADR_WIDTH

#define FCN_MD_PHY_ADR_WIDTH   16

Definition at line 767 of file etherfabric.c.

◆ FCN_MD_ID_REG_KER

#define FCN_MD_ID_REG_KER   0xc40

Definition at line 770 of file etherfabric.c.

◆ FCN_MD_PRT_ADR_LBN

#define FCN_MD_PRT_ADR_LBN   11

Definition at line 771 of file etherfabric.c.

◆ FCN_MD_PRT_ADR_WIDTH

#define FCN_MD_PRT_ADR_WIDTH   5

Definition at line 772 of file etherfabric.c.

◆ FCN_MD_DEV_ADR_LBN

#define FCN_MD_DEV_ADR_LBN   6

Definition at line 773 of file etherfabric.c.

◆ FCN_MD_DEV_ADR_WIDTH

#define FCN_MD_DEV_ADR_WIDTH   5

Definition at line 774 of file etherfabric.c.

◆ FCN_MD_STAT_REG_KER

#define FCN_MD_STAT_REG_KER   0xc50

Definition at line 777 of file etherfabric.c.

◆ FCN_MD_PINT_LBN

#define FCN_MD_PINT_LBN   4

Definition at line 778 of file etherfabric.c.

◆ FCN_MD_PINT_WIDTH

#define FCN_MD_PINT_WIDTH   1

Definition at line 779 of file etherfabric.c.

◆ FCN_MD_DONE_LBN

#define FCN_MD_DONE_LBN   3

Definition at line 780 of file etherfabric.c.

◆ FCN_MD_DONE_WIDTH

#define FCN_MD_DONE_WIDTH   1

Definition at line 781 of file etherfabric.c.

◆ FCN_MD_BSERR_LBN

#define FCN_MD_BSERR_LBN   2

Definition at line 782 of file etherfabric.c.

◆ FCN_MD_BSERR_WIDTH

#define FCN_MD_BSERR_WIDTH   1

Definition at line 783 of file etherfabric.c.

◆ FCN_MD_LNFL_LBN

#define FCN_MD_LNFL_LBN   1

Definition at line 784 of file etherfabric.c.

◆ FCN_MD_LNFL_WIDTH

#define FCN_MD_LNFL_WIDTH   1

Definition at line 785 of file etherfabric.c.

◆ FCN_MD_BSY_LBN

#define FCN_MD_BSY_LBN   0

Definition at line 786 of file etherfabric.c.

◆ FCN_MD_BSY_WIDTH

#define FCN_MD_BSY_WIDTH   1

Definition at line 787 of file etherfabric.c.

◆ FCN_MAC0_CTRL_REG_KER

#define FCN_MAC0_CTRL_REG_KER   0xc80

Definition at line 790 of file etherfabric.c.

◆ FCN_MAC1_CTRL_REG_KER

#define FCN_MAC1_CTRL_REG_KER   0xc90

Definition at line 791 of file etherfabric.c.

◆ FCN_MAC_XOFF_VAL_LBN

#define FCN_MAC_XOFF_VAL_LBN   16

Definition at line 792 of file etherfabric.c.

◆ FCN_MAC_XOFF_VAL_WIDTH

#define FCN_MAC_XOFF_VAL_WIDTH   16

Definition at line 793 of file etherfabric.c.

◆ FCN_MAC_BCAD_ACPT_LBN

#define FCN_MAC_BCAD_ACPT_LBN   4

Definition at line 794 of file etherfabric.c.

◆ FCN_MAC_BCAD_ACPT_WIDTH

#define FCN_MAC_BCAD_ACPT_WIDTH   1

Definition at line 795 of file etherfabric.c.

◆ FCN_MAC_UC_PROM_LBN

#define FCN_MAC_UC_PROM_LBN   3

Definition at line 796 of file etherfabric.c.

◆ FCN_MAC_UC_PROM_WIDTH

#define FCN_MAC_UC_PROM_WIDTH   1

Definition at line 797 of file etherfabric.c.

◆ FCN_MAC_LINK_STATUS_LBN

#define FCN_MAC_LINK_STATUS_LBN   2

Definition at line 798 of file etherfabric.c.

◆ FCN_MAC_LINK_STATUS_WIDTH

#define FCN_MAC_LINK_STATUS_WIDTH   1

Definition at line 799 of file etherfabric.c.

◆ FCN_MAC_SPEED_LBN

#define FCN_MAC_SPEED_LBN   0

Definition at line 800 of file etherfabric.c.

◆ FCN_MAC_SPEED_WIDTH

#define FCN_MAC_SPEED_WIDTH   2

Definition at line 801 of file etherfabric.c.

◆ XX_TXDRV_DEQ_DEFAULT

#define XX_TXDRV_DEQ_DEFAULT   0xe /* deq=.6 */

Definition at line 804 of file etherfabric.c.

◆ XX_TXDRV_DTX_DEFAULT

#define XX_TXDRV_DTX_DEFAULT   0x5 /* 1.25 */

Definition at line 805 of file etherfabric.c.

◆ XX_SD_CTL_DRV_DEFAULT

#define XX_SD_CTL_DRV_DEFAULT   0 /* 20mA */

Definition at line 806 of file etherfabric.c.

◆ FALCON_GMAC_REGBANK

#define FALCON_GMAC_REGBANK   0xe00

Definition at line 809 of file etherfabric.c.

◆ FALCON_GMAC_REGBANK_SIZE

#define FALCON_GMAC_REGBANK_SIZE   0x200

Definition at line 810 of file etherfabric.c.

◆ FALCON_GMAC_REG_SIZE

#define FALCON_GMAC_REG_SIZE   0x10

Definition at line 811 of file etherfabric.c.

◆ FALCON_XMAC_REGBANK

#define FALCON_XMAC_REGBANK   0x1200

Definition at line 814 of file etherfabric.c.

◆ FALCON_XMAC_REGBANK_SIZE

#define FALCON_XMAC_REGBANK_SIZE   0x200

Definition at line 815 of file etherfabric.c.

◆ FALCON_XMAC_REG_SIZE

#define FALCON_XMAC_REG_SIZE   0x10

Definition at line 816 of file etherfabric.c.

◆ FCN_XM_ADR_LO_REG_MAC

#define FCN_XM_ADR_LO_REG_MAC   0x00

Definition at line 819 of file etherfabric.c.

◆ FCN_XM_ADR_3_LBN

#define FCN_XM_ADR_3_LBN   24

Definition at line 820 of file etherfabric.c.

◆ FCN_XM_ADR_3_WIDTH

#define FCN_XM_ADR_3_WIDTH   8

Definition at line 821 of file etherfabric.c.

◆ FCN_XM_ADR_2_LBN

#define FCN_XM_ADR_2_LBN   16

Definition at line 822 of file etherfabric.c.

◆ FCN_XM_ADR_2_WIDTH

#define FCN_XM_ADR_2_WIDTH   8

Definition at line 823 of file etherfabric.c.

◆ FCN_XM_ADR_1_LBN

#define FCN_XM_ADR_1_LBN   8

Definition at line 824 of file etherfabric.c.

◆ FCN_XM_ADR_1_WIDTH

#define FCN_XM_ADR_1_WIDTH   8

Definition at line 825 of file etherfabric.c.

◆ FCN_XM_ADR_0_LBN

#define FCN_XM_ADR_0_LBN   0

Definition at line 826 of file etherfabric.c.

◆ FCN_XM_ADR_0_WIDTH

#define FCN_XM_ADR_0_WIDTH   8

Definition at line 827 of file etherfabric.c.

◆ FCN_XM_ADR_HI_REG_MAC

#define FCN_XM_ADR_HI_REG_MAC   0x01

Definition at line 830 of file etherfabric.c.

◆ FCN_XM_ADR_5_LBN

#define FCN_XM_ADR_5_LBN   8

Definition at line 831 of file etherfabric.c.

◆ FCN_XM_ADR_5_WIDTH

#define FCN_XM_ADR_5_WIDTH   8

Definition at line 832 of file etherfabric.c.

◆ FCN_XM_ADR_4_LBN

#define FCN_XM_ADR_4_LBN   0

Definition at line 833 of file etherfabric.c.

◆ FCN_XM_ADR_4_WIDTH

#define FCN_XM_ADR_4_WIDTH   8

Definition at line 834 of file etherfabric.c.

◆ FCN_XM_GLB_CFG_REG_MAC

#define FCN_XM_GLB_CFG_REG_MAC   0x02

Definition at line 837 of file etherfabric.c.

◆ FCN_XM_RX_STAT_EN_LBN

#define FCN_XM_RX_STAT_EN_LBN   11

Definition at line 838 of file etherfabric.c.

◆ FCN_XM_RX_STAT_EN_WIDTH

#define FCN_XM_RX_STAT_EN_WIDTH   1

Definition at line 839 of file etherfabric.c.

◆ FCN_XM_TX_STAT_EN_LBN

#define FCN_XM_TX_STAT_EN_LBN   10

Definition at line 840 of file etherfabric.c.

◆ FCN_XM_TX_STAT_EN_WIDTH

#define FCN_XM_TX_STAT_EN_WIDTH   1

Definition at line 841 of file etherfabric.c.

◆ FCN_XM_RX_JUMBO_MODE_LBN

#define FCN_XM_RX_JUMBO_MODE_LBN   6

Definition at line 842 of file etherfabric.c.

◆ FCN_XM_RX_JUMBO_MODE_WIDTH

#define FCN_XM_RX_JUMBO_MODE_WIDTH   1

Definition at line 843 of file etherfabric.c.

◆ FCN_XM_CORE_RST_LBN

#define FCN_XM_CORE_RST_LBN   0

Definition at line 844 of file etherfabric.c.

◆ FCN_XM_CORE_RST_WIDTH

#define FCN_XM_CORE_RST_WIDTH   1

Definition at line 845 of file etherfabric.c.

◆ FCN_XM_TX_CFG_REG_MAC

#define FCN_XM_TX_CFG_REG_MAC   0x03

Definition at line 848 of file etherfabric.c.

◆ FCN_XM_IPG_LBN

#define FCN_XM_IPG_LBN   16

Definition at line 849 of file etherfabric.c.

◆ FCN_XM_IPG_WIDTH

#define FCN_XM_IPG_WIDTH   4

Definition at line 850 of file etherfabric.c.

◆ FCN_XM_FCNTL_LBN

#define FCN_XM_FCNTL_LBN   10

Definition at line 851 of file etherfabric.c.

◆ FCN_XM_FCNTL_WIDTH

#define FCN_XM_FCNTL_WIDTH   1

Definition at line 852 of file etherfabric.c.

◆ FCN_XM_TXCRC_LBN

#define FCN_XM_TXCRC_LBN   8

Definition at line 853 of file etherfabric.c.

◆ FCN_XM_TXCRC_WIDTH

#define FCN_XM_TXCRC_WIDTH   1

Definition at line 854 of file etherfabric.c.

◆ FCN_XM_AUTO_PAD_LBN

#define FCN_XM_AUTO_PAD_LBN   5

Definition at line 855 of file etherfabric.c.

◆ FCN_XM_AUTO_PAD_WIDTH

#define FCN_XM_AUTO_PAD_WIDTH   1

Definition at line 856 of file etherfabric.c.

◆ FCN_XM_TX_PRMBL_LBN

#define FCN_XM_TX_PRMBL_LBN   2

Definition at line 857 of file etherfabric.c.

◆ FCN_XM_TX_PRMBL_WIDTH

#define FCN_XM_TX_PRMBL_WIDTH   1

Definition at line 858 of file etherfabric.c.

◆ FCN_XM_TXEN_LBN

#define FCN_XM_TXEN_LBN   1

Definition at line 859 of file etherfabric.c.

◆ FCN_XM_TXEN_WIDTH

#define FCN_XM_TXEN_WIDTH   1

Definition at line 860 of file etherfabric.c.

◆ FCN_XM_RX_CFG_REG_MAC

#define FCN_XM_RX_CFG_REG_MAC   0x04

Definition at line 863 of file etherfabric.c.

◆ FCN_XM_PASS_CRC_ERR_LBN

#define FCN_XM_PASS_CRC_ERR_LBN   25

Definition at line 864 of file etherfabric.c.

◆ FCN_XM_PASS_CRC_ERR_WIDTH

#define FCN_XM_PASS_CRC_ERR_WIDTH   1

Definition at line 865 of file etherfabric.c.

◆ FCN_XM_AUTO_DEPAD_LBN

#define FCN_XM_AUTO_DEPAD_LBN   8

Definition at line 866 of file etherfabric.c.

◆ FCN_XM_AUTO_DEPAD_WIDTH

#define FCN_XM_AUTO_DEPAD_WIDTH   1

Definition at line 867 of file etherfabric.c.

◆ FCN_XM_RXEN_LBN

#define FCN_XM_RXEN_LBN   1

Definition at line 868 of file etherfabric.c.

◆ FCN_XM_RXEN_WIDTH

#define FCN_XM_RXEN_WIDTH   1

Definition at line 869 of file etherfabric.c.

◆ FCN_XM_MGT_INT_MSK_REG_MAC_B0

#define FCN_XM_MGT_INT_MSK_REG_MAC_B0   0x5

Definition at line 872 of file etherfabric.c.

◆ FCN_XM_MSK_PRMBLE_ERR_LBN

#define FCN_XM_MSK_PRMBLE_ERR_LBN   2

Definition at line 873 of file etherfabric.c.

◆ FCN_XM_MSK_PRMBLE_ERR_WIDTH

#define FCN_XM_MSK_PRMBLE_ERR_WIDTH   1

Definition at line 874 of file etherfabric.c.

◆ FCN_XM_MSK_RMTFLT_LBN

#define FCN_XM_MSK_RMTFLT_LBN   1

Definition at line 875 of file etherfabric.c.

◆ FCN_XM_MSK_RMTFLT_WIDTH

#define FCN_XM_MSK_RMTFLT_WIDTH   1

Definition at line 876 of file etherfabric.c.

◆ FCN_XM_MSK_LCLFLT_LBN

#define FCN_XM_MSK_LCLFLT_LBN   0

Definition at line 877 of file etherfabric.c.

◆ FCN_XM_MSK_LCLFLT_WIDTH

#define FCN_XM_MSK_LCLFLT_WIDTH   1

Definition at line 878 of file etherfabric.c.

◆ FCN_XM_FC_REG_MAC

#define FCN_XM_FC_REG_MAC   0x7

Definition at line 881 of file etherfabric.c.

◆ FCN_XM_PAUSE_TIME_LBN

#define FCN_XM_PAUSE_TIME_LBN   16

Definition at line 882 of file etherfabric.c.

◆ FCN_XM_PAUSE_TIME_WIDTH

#define FCN_XM_PAUSE_TIME_WIDTH   16

Definition at line 883 of file etherfabric.c.

◆ FCN_XM_DIS_FCNTL_LBN

#define FCN_XM_DIS_FCNTL_LBN   0

Definition at line 884 of file etherfabric.c.

◆ FCN_XM_DIS_FCNTL_WIDTH

#define FCN_XM_DIS_FCNTL_WIDTH   1

Definition at line 885 of file etherfabric.c.

◆ FCN_XM_TX_PARAM_REG_MAC

#define FCN_XM_TX_PARAM_REG_MAC   0x0d

Definition at line 888 of file etherfabric.c.

◆ FCN_XM_TX_JUMBO_MODE_LBN

#define FCN_XM_TX_JUMBO_MODE_LBN   31

Definition at line 889 of file etherfabric.c.

◆ FCN_XM_TX_JUMBO_MODE_WIDTH

#define FCN_XM_TX_JUMBO_MODE_WIDTH   1

Definition at line 890 of file etherfabric.c.

◆ FCN_XM_MAX_TX_FRM_SIZE_LBN

#define FCN_XM_MAX_TX_FRM_SIZE_LBN   16

Definition at line 891 of file etherfabric.c.

◆ FCN_XM_MAX_TX_FRM_SIZE_WIDTH

#define FCN_XM_MAX_TX_FRM_SIZE_WIDTH   14

Definition at line 892 of file etherfabric.c.

◆ FCN_XM_ACPT_ALL_MCAST_LBN

#define FCN_XM_ACPT_ALL_MCAST_LBN   11

Definition at line 893 of file etherfabric.c.

◆ FCN_XM_ACPT_ALL_MCAST_WIDTH

#define FCN_XM_ACPT_ALL_MCAST_WIDTH   1

Definition at line 894 of file etherfabric.c.

◆ FCN_XM_RX_PARAM_REG_MAC

#define FCN_XM_RX_PARAM_REG_MAC   0x0e

Definition at line 897 of file etherfabric.c.

◆ FCN_XM_MAX_RX_FRM_SIZE_LBN

#define FCN_XM_MAX_RX_FRM_SIZE_LBN   0

Definition at line 898 of file etherfabric.c.

◆ FCN_XM_MAX_RX_FRM_SIZE_WIDTH

#define FCN_XM_MAX_RX_FRM_SIZE_WIDTH   14

Definition at line 899 of file etherfabric.c.

◆ FCN_XM_MGT_INT_REG_MAC_B0

#define FCN_XM_MGT_INT_REG_MAC_B0   0x0f

Definition at line 902 of file etherfabric.c.

◆ FCN_XM_PRMBLE_ERR

#define FCN_XM_PRMBLE_ERR   2

Definition at line 903 of file etherfabric.c.

◆ FCN_XM_PRMBLE_WIDTH

#define FCN_XM_PRMBLE_WIDTH   1

Definition at line 904 of file etherfabric.c.

◆ FCN_XM_RMTFLT_LBN

#define FCN_XM_RMTFLT_LBN   1

Definition at line 905 of file etherfabric.c.

◆ FCN_XM_RMTFLT_WIDTH

#define FCN_XM_RMTFLT_WIDTH   1

Definition at line 906 of file etherfabric.c.

◆ FCN_XM_LCLFLT_LBN

#define FCN_XM_LCLFLT_LBN   0

Definition at line 907 of file etherfabric.c.

◆ FCN_XM_LCLFLT_WIDTH

#define FCN_XM_LCLFLT_WIDTH   1

Definition at line 908 of file etherfabric.c.

◆ FCN_XX_ALIGN_DONE_LBN

#define FCN_XX_ALIGN_DONE_LBN   20

Definition at line 911 of file etherfabric.c.

◆ FCN_XX_ALIGN_DONE_WIDTH

#define FCN_XX_ALIGN_DONE_WIDTH   1

Definition at line 912 of file etherfabric.c.

◆ FCN_XX_CORE_STAT_REG_MAC

#define FCN_XX_CORE_STAT_REG_MAC   0x16

Definition at line 913 of file etherfabric.c.

◆ FCN_XX_SYNC_STAT_LBN

#define FCN_XX_SYNC_STAT_LBN   16

Definition at line 914 of file etherfabric.c.

◆ FCN_XX_SYNC_STAT_WIDTH

#define FCN_XX_SYNC_STAT_WIDTH   4

Definition at line 915 of file etherfabric.c.

◆ FCN_XX_SYNC_STAT_DECODE_SYNCED

#define FCN_XX_SYNC_STAT_DECODE_SYNCED   0xf

Definition at line 916 of file etherfabric.c.

◆ FCN_XX_COMMA_DET_LBN

#define FCN_XX_COMMA_DET_LBN   12

Definition at line 917 of file etherfabric.c.

◆ FCN_XX_COMMA_DET_WIDTH

#define FCN_XX_COMMA_DET_WIDTH   4

Definition at line 918 of file etherfabric.c.

◆ FCN_XX_COMMA_DET_RESET

#define FCN_XX_COMMA_DET_RESET   0xf

Definition at line 919 of file etherfabric.c.

◆ FCN_XX_CHARERR_LBN

#define FCN_XX_CHARERR_LBN   4

Definition at line 920 of file etherfabric.c.

◆ FCN_XX_CHARERR_WIDTH

#define FCN_XX_CHARERR_WIDTH   4

Definition at line 921 of file etherfabric.c.

◆ FCN_XX_CHARERR_RESET

#define FCN_XX_CHARERR_RESET   0xf

Definition at line 922 of file etherfabric.c.

◆ FCN_XX_DISPERR_LBN

#define FCN_XX_DISPERR_LBN   0

Definition at line 923 of file etherfabric.c.

◆ FCN_XX_DISPERR_WIDTH

#define FCN_XX_DISPERR_WIDTH   4

Definition at line 924 of file etherfabric.c.

◆ FCN_XX_DISPERR_RESET

#define FCN_XX_DISPERR_RESET   0xf

Definition at line 925 of file etherfabric.c.

◆ FCN_XX_PWR_RST_REG_MAC

#define FCN_XX_PWR_RST_REG_MAC   0x10

Definition at line 928 of file etherfabric.c.

◆ FCN_XX_PWRDND_EN_LBN

#define FCN_XX_PWRDND_EN_LBN   15

Definition at line 929 of file etherfabric.c.

◆ FCN_XX_PWRDND_EN_WIDTH

#define FCN_XX_PWRDND_EN_WIDTH   1

Definition at line 930 of file etherfabric.c.

◆ FCN_XX_PWRDNC_EN_LBN

#define FCN_XX_PWRDNC_EN_LBN   14

Definition at line 931 of file etherfabric.c.

◆ FCN_XX_PWRDNC_EN_WIDTH

#define FCN_XX_PWRDNC_EN_WIDTH   1

Definition at line 932 of file etherfabric.c.

◆ FCN_XX_PWRDNB_EN_LBN

#define FCN_XX_PWRDNB_EN_LBN   13

Definition at line 933 of file etherfabric.c.

◆ FCN_XX_PWRDNB_EN_WIDTH

#define FCN_XX_PWRDNB_EN_WIDTH   1

Definition at line 934 of file etherfabric.c.

◆ FCN_XX_PWRDNA_EN_LBN

#define FCN_XX_PWRDNA_EN_LBN   12

Definition at line 935 of file etherfabric.c.

◆ FCN_XX_PWRDNA_EN_WIDTH

#define FCN_XX_PWRDNA_EN_WIDTH   1

Definition at line 936 of file etherfabric.c.

◆ FCN_XX_RSTPLLCD_EN_LBN

#define FCN_XX_RSTPLLCD_EN_LBN   9

Definition at line 937 of file etherfabric.c.

◆ FCN_XX_RSTPLLCD_EN_WIDTH

#define FCN_XX_RSTPLLCD_EN_WIDTH   1

Definition at line 938 of file etherfabric.c.

◆ FCN_XX_RSTPLLAB_EN_LBN

#define FCN_XX_RSTPLLAB_EN_LBN   8

Definition at line 939 of file etherfabric.c.

◆ FCN_XX_RSTPLLAB_EN_WIDTH

#define FCN_XX_RSTPLLAB_EN_WIDTH   1

Definition at line 940 of file etherfabric.c.

◆ FCN_XX_RESETD_EN_LBN

#define FCN_XX_RESETD_EN_LBN   7

Definition at line 941 of file etherfabric.c.

◆ FCN_XX_RESETD_EN_WIDTH

#define FCN_XX_RESETD_EN_WIDTH   1

Definition at line 942 of file etherfabric.c.

◆ FCN_XX_RESETC_EN_LBN

#define FCN_XX_RESETC_EN_LBN   6

Definition at line 943 of file etherfabric.c.

◆ FCN_XX_RESETC_EN_WIDTH

#define FCN_XX_RESETC_EN_WIDTH   1

Definition at line 944 of file etherfabric.c.

◆ FCN_XX_RESETB_EN_LBN

#define FCN_XX_RESETB_EN_LBN   5

Definition at line 945 of file etherfabric.c.

◆ FCN_XX_RESETB_EN_WIDTH

#define FCN_XX_RESETB_EN_WIDTH   1

Definition at line 946 of file etherfabric.c.

◆ FCN_XX_RESETA_EN_LBN

#define FCN_XX_RESETA_EN_LBN   4

Definition at line 947 of file etherfabric.c.

◆ FCN_XX_RESETA_EN_WIDTH

#define FCN_XX_RESETA_EN_WIDTH   1

Definition at line 948 of file etherfabric.c.

◆ FCN_XX_RSTXGXSRX_EN_LBN

#define FCN_XX_RSTXGXSRX_EN_LBN   2

Definition at line 949 of file etherfabric.c.

◆ FCN_XX_RSTXGXSRX_EN_WIDTH

#define FCN_XX_RSTXGXSRX_EN_WIDTH   1

Definition at line 950 of file etherfabric.c.

◆ FCN_XX_RSTXGXSTX_EN_LBN

#define FCN_XX_RSTXGXSTX_EN_LBN   1

Definition at line 951 of file etherfabric.c.

◆ FCN_XX_RSTXGXSTX_EN_WIDTH

#define FCN_XX_RSTXGXSTX_EN_WIDTH   1

Definition at line 952 of file etherfabric.c.

◆ FCN_XX_RST_XX_EN_LBN

#define FCN_XX_RST_XX_EN_LBN   0

Definition at line 953 of file etherfabric.c.

◆ FCN_XX_RST_XX_EN_WIDTH

#define FCN_XX_RST_XX_EN_WIDTH   1

Definition at line 954 of file etherfabric.c.

◆ FCN_XX_SD_CTL_REG_MAC

#define FCN_XX_SD_CTL_REG_MAC   0x11

Definition at line 958 of file etherfabric.c.

◆ FCN_XX_TERMADJ1_LBN

#define FCN_XX_TERMADJ1_LBN   17

Definition at line 959 of file etherfabric.c.

◆ FCN_XX_TERMADJ1_WIDTH

#define FCN_XX_TERMADJ1_WIDTH   1

Definition at line 960 of file etherfabric.c.

◆ FCN_XX_TERMADJ0_LBN

#define FCN_XX_TERMADJ0_LBN   16

Definition at line 961 of file etherfabric.c.

◆ FCN_XX_TERMADJ0_WIDTH

#define FCN_XX_TERMADJ0_WIDTH   1

Definition at line 962 of file etherfabric.c.

◆ FCN_XX_HIDRVD_LBN

#define FCN_XX_HIDRVD_LBN   15

Definition at line 963 of file etherfabric.c.

◆ FCN_XX_HIDRVD_WIDTH

#define FCN_XX_HIDRVD_WIDTH   1

Definition at line 964 of file etherfabric.c.

◆ FCN_XX_LODRVD_LBN

#define FCN_XX_LODRVD_LBN   14

Definition at line 965 of file etherfabric.c.

◆ FCN_XX_LODRVD_WIDTH

#define FCN_XX_LODRVD_WIDTH   1

Definition at line 966 of file etherfabric.c.

◆ FCN_XX_HIDRVC_LBN

#define FCN_XX_HIDRVC_LBN   13

Definition at line 967 of file etherfabric.c.

◆ FCN_XX_HIDRVC_WIDTH

#define FCN_XX_HIDRVC_WIDTH   1

Definition at line 968 of file etherfabric.c.

◆ FCN_XX_LODRVC_LBN

#define FCN_XX_LODRVC_LBN   12

Definition at line 969 of file etherfabric.c.

◆ FCN_XX_LODRVC_WIDTH

#define FCN_XX_LODRVC_WIDTH   1

Definition at line 970 of file etherfabric.c.

◆ FCN_XX_HIDRVB_LBN

#define FCN_XX_HIDRVB_LBN   11

Definition at line 971 of file etherfabric.c.

◆ FCN_XX_HIDRVB_WIDTH

#define FCN_XX_HIDRVB_WIDTH   1

Definition at line 972 of file etherfabric.c.

◆ FCN_XX_LODRVB_LBN

#define FCN_XX_LODRVB_LBN   10

Definition at line 973 of file etherfabric.c.

◆ FCN_XX_LODRVB_WIDTH

#define FCN_XX_LODRVB_WIDTH   1

Definition at line 974 of file etherfabric.c.

◆ FCN_XX_HIDRVA_LBN

#define FCN_XX_HIDRVA_LBN   9

Definition at line 975 of file etherfabric.c.

◆ FCN_XX_HIDRVA_WIDTH

#define FCN_XX_HIDRVA_WIDTH   1

Definition at line 976 of file etherfabric.c.

◆ FCN_XX_LODRVA_LBN

#define FCN_XX_LODRVA_LBN   8

Definition at line 977 of file etherfabric.c.

◆ FCN_XX_LODRVA_WIDTH

#define FCN_XX_LODRVA_WIDTH   1

Definition at line 978 of file etherfabric.c.

◆ FCN_XX_LPBKD_LBN

#define FCN_XX_LPBKD_LBN   3

Definition at line 979 of file etherfabric.c.

◆ FCN_XX_LPBKD_WIDTH

#define FCN_XX_LPBKD_WIDTH   1

Definition at line 980 of file etherfabric.c.

◆ FCN_XX_LPBKC_LBN

#define FCN_XX_LPBKC_LBN   2

Definition at line 981 of file etherfabric.c.

◆ FCN_XX_LPBKC_WIDTH

#define FCN_XX_LPBKC_WIDTH   1

Definition at line 982 of file etherfabric.c.

◆ FCN_XX_LPBKB_LBN

#define FCN_XX_LPBKB_LBN   1

Definition at line 983 of file etherfabric.c.

◆ FCN_XX_LPBKB_WIDTH

#define FCN_XX_LPBKB_WIDTH   1

Definition at line 984 of file etherfabric.c.

◆ FCN_XX_LPBKA_LBN

#define FCN_XX_LPBKA_LBN   0

Definition at line 985 of file etherfabric.c.

◆ FCN_XX_LPBKA_WIDTH

#define FCN_XX_LPBKA_WIDTH   1

Definition at line 986 of file etherfabric.c.

◆ FCN_XX_TXDRV_CTL_REG_MAC

#define FCN_XX_TXDRV_CTL_REG_MAC   0x12

Definition at line 988 of file etherfabric.c.

◆ FCN_XX_DEQD_LBN

#define FCN_XX_DEQD_LBN   28

Definition at line 989 of file etherfabric.c.

◆ FCN_XX_DEQD_WIDTH

#define FCN_XX_DEQD_WIDTH   4

Definition at line 990 of file etherfabric.c.

◆ FCN_XX_DEQC_LBN

#define FCN_XX_DEQC_LBN   24

Definition at line 991 of file etherfabric.c.

◆ FCN_XX_DEQC_WIDTH

#define FCN_XX_DEQC_WIDTH   4

Definition at line 992 of file etherfabric.c.

◆ FCN_XX_DEQB_LBN

#define FCN_XX_DEQB_LBN   20

Definition at line 993 of file etherfabric.c.

◆ FCN_XX_DEQB_WIDTH

#define FCN_XX_DEQB_WIDTH   4

Definition at line 994 of file etherfabric.c.

◆ FCN_XX_DEQA_LBN

#define FCN_XX_DEQA_LBN   16

Definition at line 995 of file etherfabric.c.

◆ FCN_XX_DEQA_WIDTH

#define FCN_XX_DEQA_WIDTH   4

Definition at line 996 of file etherfabric.c.

◆ FCN_XX_DTXD_LBN

#define FCN_XX_DTXD_LBN   12

Definition at line 997 of file etherfabric.c.

◆ FCN_XX_DTXD_WIDTH

#define FCN_XX_DTXD_WIDTH   4

Definition at line 998 of file etherfabric.c.

◆ FCN_XX_DTXC_LBN

#define FCN_XX_DTXC_LBN   8

Definition at line 999 of file etherfabric.c.

◆ FCN_XX_DTXC_WIDTH

#define FCN_XX_DTXC_WIDTH   4

Definition at line 1000 of file etherfabric.c.

◆ FCN_XX_DTXB_LBN

#define FCN_XX_DTXB_LBN   4

Definition at line 1001 of file etherfabric.c.

◆ FCN_XX_DTXB_WIDTH

#define FCN_XX_DTXB_WIDTH   4

Definition at line 1002 of file etherfabric.c.

◆ FCN_XX_DTXA_LBN

#define FCN_XX_DTXA_LBN   0

Definition at line 1003 of file etherfabric.c.

◆ FCN_XX_DTXA_WIDTH

#define FCN_XX_DTXA_WIDTH   4

Definition at line 1004 of file etherfabric.c.

◆ FCN_RX_FILTER_TBL0

#define FCN_RX_FILTER_TBL0   0xF00000

Definition at line 1007 of file etherfabric.c.

◆ FCN_RX_DESC_PTR_TBL_KER_A1

#define FCN_RX_DESC_PTR_TBL_KER_A1   0x11800

Definition at line 1010 of file etherfabric.c.

◆ FCN_RX_DESC_PTR_TBL_KER_B0

#define FCN_RX_DESC_PTR_TBL_KER_B0   0xF40000

Definition at line 1011 of file etherfabric.c.

◆ FCN_RX_ISCSI_DDIG_EN_LBN

#define FCN_RX_ISCSI_DDIG_EN_LBN   88

Definition at line 1012 of file etherfabric.c.

◆ FCN_RX_ISCSI_DDIG_EN_WIDTH

#define FCN_RX_ISCSI_DDIG_EN_WIDTH   1

Definition at line 1013 of file etherfabric.c.

◆ FCN_RX_ISCSI_HDIG_EN_LBN

#define FCN_RX_ISCSI_HDIG_EN_LBN   87

Definition at line 1014 of file etherfabric.c.

◆ FCN_RX_ISCSI_HDIG_EN_WIDTH

#define FCN_RX_ISCSI_HDIG_EN_WIDTH   1

Definition at line 1015 of file etherfabric.c.

◆ FCN_RX_DESCQ_BUF_BASE_ID_LBN

#define FCN_RX_DESCQ_BUF_BASE_ID_LBN   36

Definition at line 1016 of file etherfabric.c.

◆ FCN_RX_DESCQ_BUF_BASE_ID_WIDTH

#define FCN_RX_DESCQ_BUF_BASE_ID_WIDTH   20

Definition at line 1017 of file etherfabric.c.

◆ FCN_RX_DESCQ_EVQ_ID_LBN

#define FCN_RX_DESCQ_EVQ_ID_LBN   24

Definition at line 1018 of file etherfabric.c.

◆ FCN_RX_DESCQ_EVQ_ID_WIDTH

#define FCN_RX_DESCQ_EVQ_ID_WIDTH   12

Definition at line 1019 of file etherfabric.c.

◆ FCN_RX_DESCQ_OWNER_ID_LBN

#define FCN_RX_DESCQ_OWNER_ID_LBN   10

Definition at line 1020 of file etherfabric.c.

◆ FCN_RX_DESCQ_OWNER_ID_WIDTH

#define FCN_RX_DESCQ_OWNER_ID_WIDTH   14

Definition at line 1021 of file etherfabric.c.

◆ FCN_RX_DESCQ_SIZE_LBN

#define FCN_RX_DESCQ_SIZE_LBN   3

Definition at line 1022 of file etherfabric.c.

◆ FCN_RX_DESCQ_SIZE_WIDTH

#define FCN_RX_DESCQ_SIZE_WIDTH   2

Definition at line 1023 of file etherfabric.c.

◆ FCN_RX_DESCQ_SIZE_4K

#define FCN_RX_DESCQ_SIZE_4K   3

Definition at line 1024 of file etherfabric.c.

◆ FCN_RX_DESCQ_SIZE_2K

#define FCN_RX_DESCQ_SIZE_2K   2

Definition at line 1025 of file etherfabric.c.

◆ FCN_RX_DESCQ_SIZE_1K

#define FCN_RX_DESCQ_SIZE_1K   1

Definition at line 1026 of file etherfabric.c.

◆ FCN_RX_DESCQ_SIZE_512

#define FCN_RX_DESCQ_SIZE_512   0

Definition at line 1027 of file etherfabric.c.

◆ FCN_RX_DESCQ_TYPE_LBN

#define FCN_RX_DESCQ_TYPE_LBN   2

Definition at line 1028 of file etherfabric.c.

◆ FCN_RX_DESCQ_TYPE_WIDTH

#define FCN_RX_DESCQ_TYPE_WIDTH   1

Definition at line 1029 of file etherfabric.c.

◆ FCN_RX_DESCQ_JUMBO_LBN

#define FCN_RX_DESCQ_JUMBO_LBN   1

Definition at line 1030 of file etherfabric.c.

◆ FCN_RX_DESCQ_JUMBO_WIDTH

#define FCN_RX_DESCQ_JUMBO_WIDTH   1

Definition at line 1031 of file etherfabric.c.

◆ FCN_RX_DESCQ_EN_LBN

#define FCN_RX_DESCQ_EN_LBN   0

Definition at line 1032 of file etherfabric.c.

◆ FCN_RX_DESCQ_EN_WIDTH

#define FCN_RX_DESCQ_EN_WIDTH   1

Definition at line 1033 of file etherfabric.c.

◆ FCN_TX_DESC_PTR_TBL_KER_A1

#define FCN_TX_DESC_PTR_TBL_KER_A1   0x11900

Definition at line 1036 of file etherfabric.c.

◆ FCN_TX_DESC_PTR_TBL_KER_B0

#define FCN_TX_DESC_PTR_TBL_KER_B0   0xF50000

Definition at line 1037 of file etherfabric.c.

◆ FCN_TX_NON_IP_DROP_DIS_B0_LBN

#define FCN_TX_NON_IP_DROP_DIS_B0_LBN   91

Definition at line 1038 of file etherfabric.c.

◆ FCN_TX_NON_IP_DROP_DIS_B0_WIDTH

#define FCN_TX_NON_IP_DROP_DIS_B0_WIDTH   1

Definition at line 1039 of file etherfabric.c.

◆ FCN_TX_DESCQ_EN_LBN

#define FCN_TX_DESCQ_EN_LBN   88

Definition at line 1040 of file etherfabric.c.

◆ FCN_TX_DESCQ_EN_WIDTH

#define FCN_TX_DESCQ_EN_WIDTH   1

Definition at line 1041 of file etherfabric.c.

◆ FCN_TX_ISCSI_DDIG_EN_LBN

#define FCN_TX_ISCSI_DDIG_EN_LBN   87

Definition at line 1042 of file etherfabric.c.

◆ FCN_TX_ISCSI_DDIG_EN_WIDTH

#define FCN_TX_ISCSI_DDIG_EN_WIDTH   1

Definition at line 1043 of file etherfabric.c.

◆ FCN_TX_ISCSI_HDIG_EN_LBN

#define FCN_TX_ISCSI_HDIG_EN_LBN   86

Definition at line 1044 of file etherfabric.c.

◆ FCN_TX_ISCSI_HDIG_EN_WIDTH

#define FCN_TX_ISCSI_HDIG_EN_WIDTH   1

Definition at line 1045 of file etherfabric.c.

◆ FCN_TX_DESCQ_BUF_BASE_ID_LBN

#define FCN_TX_DESCQ_BUF_BASE_ID_LBN   36

Definition at line 1046 of file etherfabric.c.

◆ FCN_TX_DESCQ_BUF_BASE_ID_WIDTH

#define FCN_TX_DESCQ_BUF_BASE_ID_WIDTH   20

Definition at line 1047 of file etherfabric.c.

◆ FCN_TX_DESCQ_EVQ_ID_LBN

#define FCN_TX_DESCQ_EVQ_ID_LBN   24

Definition at line 1048 of file etherfabric.c.

◆ FCN_TX_DESCQ_EVQ_ID_WIDTH

#define FCN_TX_DESCQ_EVQ_ID_WIDTH   12

Definition at line 1049 of file etherfabric.c.

◆ FCN_TX_DESCQ_OWNER_ID_LBN

#define FCN_TX_DESCQ_OWNER_ID_LBN   10

Definition at line 1050 of file etherfabric.c.

◆ FCN_TX_DESCQ_OWNER_ID_WIDTH

#define FCN_TX_DESCQ_OWNER_ID_WIDTH   14

Definition at line 1051 of file etherfabric.c.

◆ FCN_TX_DESCQ_SIZE_LBN

#define FCN_TX_DESCQ_SIZE_LBN   3

Definition at line 1052 of file etherfabric.c.

◆ FCN_TX_DESCQ_SIZE_WIDTH

#define FCN_TX_DESCQ_SIZE_WIDTH   2

Definition at line 1053 of file etherfabric.c.

◆ FCN_TX_DESCQ_SIZE_4K

#define FCN_TX_DESCQ_SIZE_4K   3

Definition at line 1054 of file etherfabric.c.

◆ FCN_TX_DESCQ_SIZE_2K

#define FCN_TX_DESCQ_SIZE_2K   2

Definition at line 1055 of file etherfabric.c.

◆ FCN_TX_DESCQ_SIZE_1K

#define FCN_TX_DESCQ_SIZE_1K   1

Definition at line 1056 of file etherfabric.c.

◆ FCN_TX_DESCQ_SIZE_512

#define FCN_TX_DESCQ_SIZE_512   0

Definition at line 1057 of file etherfabric.c.

◆ FCN_TX_DESCQ_TYPE_LBN

#define FCN_TX_DESCQ_TYPE_LBN   1

Definition at line 1058 of file etherfabric.c.

◆ FCN_TX_DESCQ_TYPE_WIDTH

#define FCN_TX_DESCQ_TYPE_WIDTH   2

Definition at line 1059 of file etherfabric.c.

◆ FCN_TX_DESCQ_FLUSH_LBN

#define FCN_TX_DESCQ_FLUSH_LBN   0

Definition at line 1060 of file etherfabric.c.

◆ FCN_TX_DESCQ_FLUSH_WIDTH

#define FCN_TX_DESCQ_FLUSH_WIDTH   1

Definition at line 1061 of file etherfabric.c.

◆ FCN_EVQ_PTR_TBL_KER_A1

#define FCN_EVQ_PTR_TBL_KER_A1   0x11a00

Definition at line 1064 of file etherfabric.c.

◆ FCN_EVQ_PTR_TBL_KER_B0

#define FCN_EVQ_PTR_TBL_KER_B0   0xf60000

Definition at line 1065 of file etherfabric.c.

◆ FCN_EVQ_EN_LBN

#define FCN_EVQ_EN_LBN   23

Definition at line 1066 of file etherfabric.c.

◆ FCN_EVQ_EN_WIDTH

#define FCN_EVQ_EN_WIDTH   1

Definition at line 1067 of file etherfabric.c.

◆ FCN_EVQ_SIZE_LBN

#define FCN_EVQ_SIZE_LBN   20

Definition at line 1068 of file etherfabric.c.

◆ FCN_EVQ_SIZE_WIDTH

#define FCN_EVQ_SIZE_WIDTH   3

Definition at line 1069 of file etherfabric.c.

◆ FCN_EVQ_SIZE_32K

#define FCN_EVQ_SIZE_32K   6

Definition at line 1070 of file etherfabric.c.

◆ FCN_EVQ_SIZE_16K

#define FCN_EVQ_SIZE_16K   5

Definition at line 1071 of file etherfabric.c.

◆ FCN_EVQ_SIZE_8K

#define FCN_EVQ_SIZE_8K   4

Definition at line 1072 of file etherfabric.c.

◆ FCN_EVQ_SIZE_4K

#define FCN_EVQ_SIZE_4K   3

Definition at line 1073 of file etherfabric.c.

◆ FCN_EVQ_SIZE_2K

#define FCN_EVQ_SIZE_2K   2

Definition at line 1074 of file etherfabric.c.

◆ FCN_EVQ_SIZE_1K

#define FCN_EVQ_SIZE_1K   1

Definition at line 1075 of file etherfabric.c.

◆ FCN_EVQ_SIZE_512

#define FCN_EVQ_SIZE_512   0

Definition at line 1076 of file etherfabric.c.

◆ FCN_EVQ_BUF_BASE_ID_LBN

#define FCN_EVQ_BUF_BASE_ID_LBN   0

Definition at line 1077 of file etherfabric.c.

◆ FCN_EVQ_BUF_BASE_ID_WIDTH

#define FCN_EVQ_BUF_BASE_ID_WIDTH   20

Definition at line 1078 of file etherfabric.c.

◆ FCN_RX_RSS_INDIR_TBL_B0

#define FCN_RX_RSS_INDIR_TBL_B0   0xFB0000

Definition at line 1081 of file etherfabric.c.

◆ FCN_EVQ_RPTR_REG_KER_A1

#define FCN_EVQ_RPTR_REG_KER_A1   0x11b00

Definition at line 1084 of file etherfabric.c.

◆ FCN_EVQ_RPTR_REG_KER_B0

#define FCN_EVQ_RPTR_REG_KER_B0   0xfa0000

Definition at line 1085 of file etherfabric.c.

◆ FCN_EVQ_RPTR_LBN

#define FCN_EVQ_RPTR_LBN   0

Definition at line 1086 of file etherfabric.c.

◆ FCN_EVQ_RPTR_WIDTH

#define FCN_EVQ_RPTR_WIDTH   14

Definition at line 1087 of file etherfabric.c.

◆ FCN_EVQ_RPTR_REG_KER_DWORD_A1

#define FCN_EVQ_RPTR_REG_KER_DWORD_A1   ( FCN_EVQ_RPTR_REG_KER_A1 + 0 )

Definition at line 1088 of file etherfabric.c.

◆ FCN_EVQ_RPTR_REG_KER_DWORD_B0

#define FCN_EVQ_RPTR_REG_KER_DWORD_B0   ( FCN_EVQ_RPTR_REG_KER_B0 + 0 )

Definition at line 1089 of file etherfabric.c.

◆ FCN_EVQ_RPTR_DWORD_LBN

#define FCN_EVQ_RPTR_DWORD_LBN   0

Definition at line 1090 of file etherfabric.c.

◆ FCN_EVQ_RPTR_DWORD_WIDTH

#define FCN_EVQ_RPTR_DWORD_WIDTH   14

Definition at line 1091 of file etherfabric.c.

◆ FCN_BUF_FULL_TBL_KER_A1

#define FCN_BUF_FULL_TBL_KER_A1   0x18000

Definition at line 1094 of file etherfabric.c.

◆ FCN_BUF_FULL_TBL_KER_B0

#define FCN_BUF_FULL_TBL_KER_B0   0x800000

Definition at line 1095 of file etherfabric.c.

◆ FCN_IP_DAT_BUF_SIZE_LBN

#define FCN_IP_DAT_BUF_SIZE_LBN   50

Definition at line 1096 of file etherfabric.c.

◆ FCN_IP_DAT_BUF_SIZE_WIDTH

#define FCN_IP_DAT_BUF_SIZE_WIDTH   1

Definition at line 1097 of file etherfabric.c.

◆ FCN_IP_DAT_BUF_SIZE_8K

#define FCN_IP_DAT_BUF_SIZE_8K   1

Definition at line 1098 of file etherfabric.c.

◆ FCN_IP_DAT_BUF_SIZE_4K

#define FCN_IP_DAT_BUF_SIZE_4K   0

Definition at line 1099 of file etherfabric.c.

◆ FCN_BUF_ADR_FBUF_LBN

#define FCN_BUF_ADR_FBUF_LBN   14

Definition at line 1100 of file etherfabric.c.

◆ FCN_BUF_ADR_FBUF_WIDTH

#define FCN_BUF_ADR_FBUF_WIDTH   34

Definition at line 1101 of file etherfabric.c.

◆ FCN_BUF_OWNER_ID_FBUF_LBN

#define FCN_BUF_OWNER_ID_FBUF_LBN   0

Definition at line 1102 of file etherfabric.c.

◆ FCN_BUF_OWNER_ID_FBUF_WIDTH

#define FCN_BUF_OWNER_ID_FBUF_WIDTH   14

Definition at line 1103 of file etherfabric.c.

◆ FALCON_GMAC_REG

#define FALCON_GMAC_REG (   efab,
  mac_reg 
)
Value:
( (mac_reg) * FALCON_GMAC_REG_SIZE ) )
#define FALCON_GMAC_REG_SIZE
Definition: etherfabric.c:811
#define FALCON_GMAC_REGBANK
Definition: etherfabric.c:809

Offset of a GMAC register within Falcon.

Definition at line 1106 of file etherfabric.c.

◆ FALCON_XMAC_REG

#define FALCON_XMAC_REG (   efab_port,
  mac_reg 
)
Value:
( (mac_reg) * FALCON_XMAC_REG_SIZE ) )
#define FALCON_XMAC_REG_SIZE
Definition: etherfabric.c:816
#define FALCON_XMAC_REGBANK
Definition: etherfabric.c:814

Offset of an XMAC register within Falcon.

Definition at line 1111 of file etherfabric.c.

◆ FCN_MAC_DATA_LBN

#define FCN_MAC_DATA_LBN   0

Definition at line 1115 of file etherfabric.c.

◆ FCN_MAC_DATA_WIDTH

#define FCN_MAC_DATA_WIDTH   32

Definition at line 1116 of file etherfabric.c.

◆ FCN_TX_KER_PORT_LBN

#define FCN_TX_KER_PORT_LBN   63

Definition at line 1119 of file etherfabric.c.

◆ FCN_TX_KER_PORT_WIDTH

#define FCN_TX_KER_PORT_WIDTH   1

Definition at line 1120 of file etherfabric.c.

◆ FCN_TX_KER_BYTE_CNT_LBN

#define FCN_TX_KER_BYTE_CNT_LBN   48

Definition at line 1121 of file etherfabric.c.

◆ FCN_TX_KER_BYTE_CNT_WIDTH

#define FCN_TX_KER_BYTE_CNT_WIDTH   14

Definition at line 1122 of file etherfabric.c.

◆ FCN_TX_KER_BUF_ADR_LBN

#define FCN_TX_KER_BUF_ADR_LBN   0

Definition at line 1123 of file etherfabric.c.

◆ FCN_TX_KER_BUF_ADR_WIDTH

#define FCN_TX_KER_BUF_ADR_WIDTH   EFAB_DMA_TYPE_WIDTH ( 46 )

Definition at line 1124 of file etherfabric.c.

◆ FCN_RX_KER_BUF_SIZE_LBN

#define FCN_RX_KER_BUF_SIZE_LBN   48

Definition at line 1128 of file etherfabric.c.

◆ FCN_RX_KER_BUF_SIZE_WIDTH

#define FCN_RX_KER_BUF_SIZE_WIDTH   14

Definition at line 1129 of file etherfabric.c.

◆ FCN_RX_KER_BUF_ADR_LBN

#define FCN_RX_KER_BUF_ADR_LBN   0

Definition at line 1130 of file etherfabric.c.

◆ FCN_RX_KER_BUF_ADR_WIDTH

#define FCN_RX_KER_BUF_ADR_WIDTH   EFAB_DMA_TYPE_WIDTH ( 46 )

Definition at line 1131 of file etherfabric.c.

◆ FCN_EV_CODE_LBN

#define FCN_EV_CODE_LBN   60

Definition at line 1134 of file etherfabric.c.

◆ FCN_EV_CODE_WIDTH

#define FCN_EV_CODE_WIDTH   4

Definition at line 1135 of file etherfabric.c.

◆ FCN_RX_IP_EV_DECODE

#define FCN_RX_IP_EV_DECODE   0

Definition at line 1136 of file etherfabric.c.

◆ FCN_TX_IP_EV_DECODE

#define FCN_TX_IP_EV_DECODE   2

Definition at line 1137 of file etherfabric.c.

◆ FCN_DRIVER_EV_DECODE

#define FCN_DRIVER_EV_DECODE   5

Definition at line 1138 of file etherfabric.c.

◆ FCN_RX_EV_PKT_OK_LBN

#define FCN_RX_EV_PKT_OK_LBN   56

Definition at line 1141 of file etherfabric.c.

◆ FCN_RX_EV_PKT_OK_WIDTH

#define FCN_RX_EV_PKT_OK_WIDTH   1

Definition at line 1142 of file etherfabric.c.

◆ FCN_RX_PORT_LBN

#define FCN_RX_PORT_LBN   30

Definition at line 1143 of file etherfabric.c.

◆ FCN_RX_PORT_WIDTH

#define FCN_RX_PORT_WIDTH   1

Definition at line 1144 of file etherfabric.c.

◆ FCN_RX_EV_BYTE_CNT_LBN

#define FCN_RX_EV_BYTE_CNT_LBN   16

Definition at line 1145 of file etherfabric.c.

◆ FCN_RX_EV_BYTE_CNT_WIDTH

#define FCN_RX_EV_BYTE_CNT_WIDTH   14

Definition at line 1146 of file etherfabric.c.

◆ FCN_RX_EV_DESC_PTR_LBN

#define FCN_RX_EV_DESC_PTR_LBN   0

Definition at line 1147 of file etherfabric.c.

◆ FCN_RX_EV_DESC_PTR_WIDTH

#define FCN_RX_EV_DESC_PTR_WIDTH   12

Definition at line 1148 of file etherfabric.c.

◆ FCN_TX_EV_DESC_PTR_LBN

#define FCN_TX_EV_DESC_PTR_LBN   0

Definition at line 1151 of file etherfabric.c.

◆ FCN_TX_EV_DESC_PTR_WIDTH

#define FCN_TX_EV_DESC_PTR_WIDTH   12

Definition at line 1152 of file etherfabric.c.

◆ FCN_REVISION_REG

#define FCN_REVISION_REG (   efab,
  reg 
)    ( ( efab->pci_revision == FALCON_REV_B0 ) ? reg ## _B0 : reg ## _A1 )

Definition at line 1162 of file etherfabric.c.

◆ EFAB_SET_OWORD_FIELD_VER

#define EFAB_SET_OWORD_FIELD_VER (   efab,
  reg,
  field,
  val 
)
Value:
if ( efab->pci_revision == FALCON_REV_B0 ) \
EFAB_SET_OWORD_FIELD ( reg, field ## _B0, val ); \
EFAB_SET_OWORD_FIELD ( reg, field ## _A1, val );
static unsigned int unsigned int reg
Definition: myson.h:162
#define FALCON_REV_B0
Definition: etherfabric.c:531
#define EFAB_SET_OWORD_FIELD
Definition: etherfabric.h:531
void __asmcall int val
Definition: setjmp.h:28

Definition at line 1165 of file etherfabric.c.

◆ _falcon_writel

#define _falcon_writel (   efab,
  value,
  reg 
)    writel ( (value), (efab)->membase + (reg) )

Definition at line 1189 of file etherfabric.c.

◆ _falcon_readl

#define _falcon_readl (   efab,
  reg 
)    readl ( (efab)->membase + (reg) )

Definition at line 1191 of file etherfabric.c.

◆ FCN_DUMP_REG

#define FCN_DUMP_REG (   efab,
  _reg 
)
Value:
do { \
efab_oword_t reg; \
falcon_read ( efab, &reg, _reg ); \
EFAB_LOG ( #_reg " = " EFAB_OWORD_FMT "\n", \
} while ( 0 );
static unsigned int unsigned int reg
Definition: myson.h:162
#define EFAB_OWORD_VAL(oword)
printk parameters for printing an efab_oword_t
Definition: etherfabric.h:148
#define EFAB_OWORD_FMT
Format string for printing an efab_oword_t.
Definition: etherfabric.h:136

Definition at line 1291 of file etherfabric.c.

◆ FCN_DUMP_MAC_REG

#define FCN_DUMP_MAC_REG (   efab,
  _mac_reg 
)
Value:
do { \
efab_dword_t reg; \
efab->mac_op->mac_readl ( efab, &reg, _mac_reg ); \
EFAB_LOG ( #_mac_reg " = " EFAB_DWORD_FMT "\n", \
} while ( 0 );
static unsigned int unsigned int reg
Definition: myson.h:162
#define EFAB_DWORD_VAL(dword)
printk parameters for printing an efab_dword_t
Definition: etherfabric.h:139
#define EFAB_DWORD_FMT
Format string for printing an efab_dword_t.
Definition: etherfabric.h:130

Definition at line 1298 of file etherfabric.c.

◆ FALCON_SPI_MAX_LEN

#define FALCON_SPI_MAX_LEN   16

Maximum length for a single SPI transaction.

Definition at line 1397 of file etherfabric.c.

◆ GM_CFG1_REG_MAC

#define GM_CFG1_REG_MAC   0x00

Definition at line 1749 of file etherfabric.c.

◆ GM_SW_RST_LBN

#define GM_SW_RST_LBN   31

Definition at line 1750 of file etherfabric.c.

◆ GM_SW_RST_WIDTH

#define GM_SW_RST_WIDTH   1

Definition at line 1751 of file etherfabric.c.

◆ GM_RX_FC_EN_LBN

#define GM_RX_FC_EN_LBN   5

Definition at line 1752 of file etherfabric.c.

◆ GM_RX_FC_EN_WIDTH

#define GM_RX_FC_EN_WIDTH   1

Definition at line 1753 of file etherfabric.c.

◆ GM_TX_FC_EN_LBN

#define GM_TX_FC_EN_LBN   4

Definition at line 1754 of file etherfabric.c.

◆ GM_TX_FC_EN_WIDTH

#define GM_TX_FC_EN_WIDTH   1

Definition at line 1755 of file etherfabric.c.

◆ GM_RX_EN_LBN

#define GM_RX_EN_LBN   2

Definition at line 1756 of file etherfabric.c.

◆ GM_RX_EN_WIDTH

#define GM_RX_EN_WIDTH   1

Definition at line 1757 of file etherfabric.c.

◆ GM_TX_EN_LBN

#define GM_TX_EN_LBN   0

Definition at line 1758 of file etherfabric.c.

◆ GM_TX_EN_WIDTH

#define GM_TX_EN_WIDTH   1

Definition at line 1759 of file etherfabric.c.

◆ GM_CFG2_REG_MAC

#define GM_CFG2_REG_MAC   0x01

Definition at line 1762 of file etherfabric.c.

◆ GM_PAMBL_LEN_LBN

#define GM_PAMBL_LEN_LBN   12

Definition at line 1763 of file etherfabric.c.

◆ GM_PAMBL_LEN_WIDTH

#define GM_PAMBL_LEN_WIDTH   4

Definition at line 1764 of file etherfabric.c.

◆ GM_IF_MODE_LBN

#define GM_IF_MODE_LBN   8

Definition at line 1765 of file etherfabric.c.

◆ GM_IF_MODE_WIDTH

#define GM_IF_MODE_WIDTH   2

Definition at line 1766 of file etherfabric.c.

◆ GM_PAD_CRC_EN_LBN

#define GM_PAD_CRC_EN_LBN   2

Definition at line 1767 of file etherfabric.c.

◆ GM_PAD_CRC_EN_WIDTH

#define GM_PAD_CRC_EN_WIDTH   1

Definition at line 1768 of file etherfabric.c.

◆ GM_FD_LBN

#define GM_FD_LBN   0

Definition at line 1769 of file etherfabric.c.

◆ GM_FD_WIDTH

#define GM_FD_WIDTH   1

Definition at line 1770 of file etherfabric.c.

◆ GM_MAX_FLEN_REG_MAC

#define GM_MAX_FLEN_REG_MAC   0x04

Definition at line 1773 of file etherfabric.c.

◆ GM_MAX_FLEN_LBN

#define GM_MAX_FLEN_LBN   0

Definition at line 1774 of file etherfabric.c.

◆ GM_MAX_FLEN_WIDTH

#define GM_MAX_FLEN_WIDTH   16

Definition at line 1775 of file etherfabric.c.

◆ GM_MII_MGMT_CFG_REG_MAC

#define GM_MII_MGMT_CFG_REG_MAC   0x08

Definition at line 1778 of file etherfabric.c.

◆ GM_MGMT_CLK_SEL_LBN

#define GM_MGMT_CLK_SEL_LBN   0

Definition at line 1779 of file etherfabric.c.

◆ GM_MGMT_CLK_SEL_WIDTH

#define GM_MGMT_CLK_SEL_WIDTH   3

Definition at line 1780 of file etherfabric.c.

◆ GM_MII_MGMT_CMD_REG_MAC

#define GM_MII_MGMT_CMD_REG_MAC   0x09

Definition at line 1783 of file etherfabric.c.

◆ GM_MGMT_SCAN_CYC_LBN

#define GM_MGMT_SCAN_CYC_LBN   1

Definition at line 1784 of file etherfabric.c.

◆ GM_MGMT_SCAN_CYC_WIDTH

#define GM_MGMT_SCAN_CYC_WIDTH   1

Definition at line 1785 of file etherfabric.c.

◆ GM_MGMT_RD_CYC_LBN

#define GM_MGMT_RD_CYC_LBN   0

Definition at line 1786 of file etherfabric.c.

◆ GM_MGMT_RD_CYC_WIDTH

#define GM_MGMT_RD_CYC_WIDTH   1

Definition at line 1787 of file etherfabric.c.

◆ GM_MII_MGMT_ADR_REG_MAC

#define GM_MII_MGMT_ADR_REG_MAC   0x0a

Definition at line 1790 of file etherfabric.c.

◆ GM_MGMT_PHY_ADDR_LBN

#define GM_MGMT_PHY_ADDR_LBN   8

Definition at line 1791 of file etherfabric.c.

◆ GM_MGMT_PHY_ADDR_WIDTH

#define GM_MGMT_PHY_ADDR_WIDTH   5

Definition at line 1792 of file etherfabric.c.

◆ GM_MGMT_REG_ADDR_LBN

#define GM_MGMT_REG_ADDR_LBN   0

Definition at line 1793 of file etherfabric.c.

◆ GM_MGMT_REG_ADDR_WIDTH

#define GM_MGMT_REG_ADDR_WIDTH   5

Definition at line 1794 of file etherfabric.c.

◆ GM_MII_MGMT_CTL_REG_MAC

#define GM_MII_MGMT_CTL_REG_MAC   0x0b

Definition at line 1797 of file etherfabric.c.

◆ GM_MGMT_CTL_LBN

#define GM_MGMT_CTL_LBN   0

Definition at line 1798 of file etherfabric.c.

◆ GM_MGMT_CTL_WIDTH

#define GM_MGMT_CTL_WIDTH   16

Definition at line 1799 of file etherfabric.c.

◆ GM_MII_MGMT_STAT_REG_MAC

#define GM_MII_MGMT_STAT_REG_MAC   0x0c

Definition at line 1802 of file etherfabric.c.

◆ GM_MGMT_STAT_LBN

#define GM_MGMT_STAT_LBN   0

Definition at line 1803 of file etherfabric.c.

◆ GM_MGMT_STAT_WIDTH

#define GM_MGMT_STAT_WIDTH   16

Definition at line 1804 of file etherfabric.c.

◆ GM_MII_MGMT_IND_REG_MAC

#define GM_MII_MGMT_IND_REG_MAC   0x0d

Definition at line 1807 of file etherfabric.c.

◆ GM_MGMT_BUSY_LBN

#define GM_MGMT_BUSY_LBN   0

Definition at line 1808 of file etherfabric.c.

◆ GM_MGMT_BUSY_WIDTH

#define GM_MGMT_BUSY_WIDTH   1

Definition at line 1809 of file etherfabric.c.

◆ GM_ADR1_REG_MAC

#define GM_ADR1_REG_MAC   0x10

Definition at line 1812 of file etherfabric.c.

◆ GM_HWADDR_5_LBN

#define GM_HWADDR_5_LBN   24

Definition at line 1813 of file etherfabric.c.

◆ GM_HWADDR_5_WIDTH

#define GM_HWADDR_5_WIDTH   8

Definition at line 1814 of file etherfabric.c.

◆ GM_HWADDR_4_LBN

#define GM_HWADDR_4_LBN   16

Definition at line 1815 of file etherfabric.c.

◆ GM_HWADDR_4_WIDTH

#define GM_HWADDR_4_WIDTH   8

Definition at line 1816 of file etherfabric.c.

◆ GM_HWADDR_3_LBN

#define GM_HWADDR_3_LBN   8

Definition at line 1817 of file etherfabric.c.

◆ GM_HWADDR_3_WIDTH

#define GM_HWADDR_3_WIDTH   8

Definition at line 1818 of file etherfabric.c.

◆ GM_HWADDR_2_LBN

#define GM_HWADDR_2_LBN   0

Definition at line 1819 of file etherfabric.c.

◆ GM_HWADDR_2_WIDTH

#define GM_HWADDR_2_WIDTH   8

Definition at line 1820 of file etherfabric.c.

◆ GM_ADR2_REG_MAC

#define GM_ADR2_REG_MAC   0x11

Definition at line 1823 of file etherfabric.c.

◆ GM_HWADDR_1_LBN

#define GM_HWADDR_1_LBN   24

Definition at line 1824 of file etherfabric.c.

◆ GM_HWADDR_1_WIDTH

#define GM_HWADDR_1_WIDTH   8

Definition at line 1825 of file etherfabric.c.

◆ GM_HWADDR_0_LBN

#define GM_HWADDR_0_LBN   16

Definition at line 1826 of file etherfabric.c.

◆ GM_HWADDR_0_WIDTH

#define GM_HWADDR_0_WIDTH   8

Definition at line 1827 of file etherfabric.c.

◆ GMF_CFG0_REG_MAC

#define GMF_CFG0_REG_MAC   0x12

Definition at line 1830 of file etherfabric.c.

◆ GMF_FTFENREQ_LBN

#define GMF_FTFENREQ_LBN   12

Definition at line 1831 of file etherfabric.c.

◆ GMF_FTFENREQ_WIDTH

#define GMF_FTFENREQ_WIDTH   1

Definition at line 1832 of file etherfabric.c.

◆ GMF_STFENREQ_LBN

#define GMF_STFENREQ_LBN   11

Definition at line 1833 of file etherfabric.c.

◆ GMF_STFENREQ_WIDTH

#define GMF_STFENREQ_WIDTH   1

Definition at line 1834 of file etherfabric.c.

◆ GMF_FRFENREQ_LBN

#define GMF_FRFENREQ_LBN   10

Definition at line 1835 of file etherfabric.c.

◆ GMF_FRFENREQ_WIDTH

#define GMF_FRFENREQ_WIDTH   1

Definition at line 1836 of file etherfabric.c.

◆ GMF_SRFENREQ_LBN

#define GMF_SRFENREQ_LBN   9

Definition at line 1837 of file etherfabric.c.

◆ GMF_SRFENREQ_WIDTH

#define GMF_SRFENREQ_WIDTH   1

Definition at line 1838 of file etherfabric.c.

◆ GMF_WTMENREQ_LBN

#define GMF_WTMENREQ_LBN   8

Definition at line 1839 of file etherfabric.c.

◆ GMF_WTMENREQ_WIDTH

#define GMF_WTMENREQ_WIDTH   1

Definition at line 1840 of file etherfabric.c.

◆ GMF_CFG1_REG_MAC

#define GMF_CFG1_REG_MAC   0x13

Definition at line 1843 of file etherfabric.c.

◆ GMF_CFGFRTH_LBN

#define GMF_CFGFRTH_LBN   16

Definition at line 1844 of file etherfabric.c.

◆ GMF_CFGFRTH_WIDTH

#define GMF_CFGFRTH_WIDTH   5

Definition at line 1845 of file etherfabric.c.

◆ GMF_CFGXOFFRTX_LBN

#define GMF_CFGXOFFRTX_LBN   0

Definition at line 1846 of file etherfabric.c.

◆ GMF_CFGXOFFRTX_WIDTH

#define GMF_CFGXOFFRTX_WIDTH   16

Definition at line 1847 of file etherfabric.c.

◆ GMF_CFG2_REG_MAC

#define GMF_CFG2_REG_MAC   0x14

Definition at line 1850 of file etherfabric.c.

◆ GMF_CFGHWM_LBN

#define GMF_CFGHWM_LBN   16

Definition at line 1851 of file etherfabric.c.

◆ GMF_CFGHWM_WIDTH

#define GMF_CFGHWM_WIDTH   6

Definition at line 1852 of file etherfabric.c.

◆ GMF_CFGLWM_LBN

#define GMF_CFGLWM_LBN   0

Definition at line 1853 of file etherfabric.c.

◆ GMF_CFGLWM_WIDTH

#define GMF_CFGLWM_WIDTH   6

Definition at line 1854 of file etherfabric.c.

◆ GMF_CFG3_REG_MAC

#define GMF_CFG3_REG_MAC   0x15

Definition at line 1857 of file etherfabric.c.

◆ GMF_CFGHWMFT_LBN

#define GMF_CFGHWMFT_LBN   16

Definition at line 1858 of file etherfabric.c.

◆ GMF_CFGHWMFT_WIDTH

#define GMF_CFGHWMFT_WIDTH   6

Definition at line 1859 of file etherfabric.c.

◆ GMF_CFGFTTH_LBN

#define GMF_CFGFTTH_LBN   0

Definition at line 1860 of file etherfabric.c.

◆ GMF_CFGFTTH_WIDTH

#define GMF_CFGFTTH_WIDTH   6

Definition at line 1861 of file etherfabric.c.

◆ GMF_CFG4_REG_MAC

#define GMF_CFG4_REG_MAC   0x16

Definition at line 1864 of file etherfabric.c.

◆ GMF_HSTFLTRFRM_PAUSE_LBN

#define GMF_HSTFLTRFRM_PAUSE_LBN   12

Definition at line 1865 of file etherfabric.c.

◆ GMF_HSTFLTRFRM_PAUSE_WIDTH

#define GMF_HSTFLTRFRM_PAUSE_WIDTH   12

Definition at line 1866 of file etherfabric.c.

◆ GMF_CFG5_REG_MAC

#define GMF_CFG5_REG_MAC   0x17

Definition at line 1869 of file etherfabric.c.

◆ GMF_CFGHDPLX_LBN

#define GMF_CFGHDPLX_LBN   22

Definition at line 1870 of file etherfabric.c.

◆ GMF_CFGHDPLX_WIDTH

#define GMF_CFGHDPLX_WIDTH   1

Definition at line 1871 of file etherfabric.c.

◆ GMF_CFGBYTMODE_LBN

#define GMF_CFGBYTMODE_LBN   19

Definition at line 1872 of file etherfabric.c.

◆ GMF_CFGBYTMODE_WIDTH

#define GMF_CFGBYTMODE_WIDTH   1

Definition at line 1873 of file etherfabric.c.

◆ GMF_HSTDRPLT64_LBN

#define GMF_HSTDRPLT64_LBN   18

Definition at line 1874 of file etherfabric.c.

◆ GMF_HSTDRPLT64_WIDTH

#define GMF_HSTDRPLT64_WIDTH   1

Definition at line 1875 of file etherfabric.c.

◆ GMF_HSTFLTRFRMDC_PAUSE_LBN

#define GMF_HSTFLTRFRMDC_PAUSE_LBN   12

Definition at line 1876 of file etherfabric.c.

◆ GMF_HSTFLTRFRMDC_PAUSE_WIDTH

#define GMF_HSTFLTRFRMDC_PAUSE_WIDTH   1

Definition at line 1877 of file etherfabric.c.

◆ XFP_REQUIRED_DEVS

#define XFP_REQUIRED_DEVS
Value:
MDIO_MMDREG_DEVS0_PMAPMD | \
MDIO_MMDREG_DEVS0_PHYXS )
#define MDIO_MMDREG_DEVS0_PCS
Definition: etherfabric.c:241

Definition at line 2451 of file etherfabric.c.

◆ TXC_GLRGS_GLCMD

#define TXC_GLRGS_GLCMD   (0xc004)

Definition at line 2485 of file etherfabric.c.

◆ TXC_GLCMD_LMTSWRST_LBN

#define TXC_GLCMD_LMTSWRST_LBN   (14)

Definition at line 2486 of file etherfabric.c.

◆ TXC_ALRGS_ATXAMP0

#define TXC_ALRGS_ATXAMP0   (0xc041)

Definition at line 2489 of file etherfabric.c.

◆ TXC_ALRGS_ATXAMP1

#define TXC_ALRGS_ATXAMP1   (0xc042)

Definition at line 2490 of file etherfabric.c.

◆ TXC_ATXAMP_LANE02_LBN

#define TXC_ATXAMP_LANE02_LBN   (3)

Definition at line 2492 of file etherfabric.c.

◆ TXC_ATXAMP_LANE13_LBN

#define TXC_ATXAMP_LANE13_LBN   (11)

Definition at line 2493 of file etherfabric.c.

◆ TXC_ATXAMP_1280_mV

#define TXC_ATXAMP_1280_mV   (0)

Definition at line 2495 of file etherfabric.c.

◆ TXC_ATXAMP_1200_mV

#define TXC_ATXAMP_1200_mV   (8)

Definition at line 2496 of file etherfabric.c.

◆ TXC_ATXAMP_1120_mV

#define TXC_ATXAMP_1120_mV   (12)

Definition at line 2497 of file etherfabric.c.

◆ TXC_ATXAMP_1060_mV

#define TXC_ATXAMP_1060_mV   (14)

Definition at line 2498 of file etherfabric.c.

◆ TXC_ATXAMP_0820_mV

#define TXC_ATXAMP_0820_mV   (25)

Definition at line 2499 of file etherfabric.c.

◆ TXC_ATXAMP_0720_mV

#define TXC_ATXAMP_0720_mV   (26)

Definition at line 2500 of file etherfabric.c.

◆ TXC_ATXAMP_0580_mV

#define TXC_ATXAMP_0580_mV   (27)

Definition at line 2501 of file etherfabric.c.

◆ TXC_ATXAMP_0440_mV

#define TXC_ATXAMP_0440_mV   (28)

Definition at line 2502 of file etherfabric.c.

◆ TXC_ATXAMP_0820_BOTH

#define TXC_ATXAMP_0820_BOTH
Value:
#define TXC_ATXAMP_LANE13_LBN
Definition: etherfabric.c:2493
#define TXC_ATXAMP_LANE02_LBN
Definition: etherfabric.c:2492
#define TXC_ATXAMP_0820_mV
Definition: etherfabric.c:2499

Definition at line 2504 of file etherfabric.c.

◆ TXC_ATXAMP_DEFAULT

#define TXC_ATXAMP_DEFAULT   (0x6060) /* From databook */

Definition at line 2507 of file etherfabric.c.

◆ TXC_ALRGS_ATXPRE0

#define TXC_ALRGS_ATXPRE0   (0xc043)

Definition at line 2510 of file etherfabric.c.

◆ TXC_ALRGS_ATXPRE1

#define TXC_ALRGS_ATXPRE1   (0xc044)

Definition at line 2511 of file etherfabric.c.

◆ TXC_ATXPRE_NONE

#define TXC_ATXPRE_NONE   (0)

Definition at line 2513 of file etherfabric.c.

◆ TXC_ATXPRE_DEFAULT

#define TXC_ATXPRE_DEFAULT   (0x1010) /* From databook */

Definition at line 2514 of file etherfabric.c.

◆ TXC_REQUIRED_DEVS

#define TXC_REQUIRED_DEVS
Value:
MDIO_MMDREG_DEVS0_PMAPMD | \
MDIO_MMDREG_DEVS0_PHYXS )
#define MDIO_MMDREG_DEVS0_PCS
Definition: etherfabric.c:241

Definition at line 2516 of file etherfabric.c.

◆ TENXPRESS_REQUIRED_DEVS

#define TENXPRESS_REQUIRED_DEVS
Value:
MDIO_MMDREG_DEVS0_PCS | \
MDIO_MMDREG_DEVS0_PHYXS )
#define MDIO_MMDREG_DEVS0_PMAPMD
Definition: etherfabric.c:243

Definition at line 2614 of file etherfabric.c.

◆ PCS_TEST_SELECT_REG

#define PCS_TEST_SELECT_REG   0xd807 /* PRM 10.5.8 */

Definition at line 2618 of file etherfabric.c.

◆ CLK312_EN_LBN

#define CLK312_EN_LBN   3

Definition at line 2619 of file etherfabric.c.

◆ CLK312_EN_WIDTH

#define CLK312_EN_WIDTH   1

Definition at line 2620 of file etherfabric.c.

◆ PCS_CLOCK_CTRL_REG

#define PCS_CLOCK_CTRL_REG   0xd801

Definition at line 2622 of file etherfabric.c.

◆ PLL312_RST_N_LBN

#define PLL312_RST_N_LBN   2

Definition at line 2623 of file etherfabric.c.

◆ PMA_PMD_EXT_CTRL_REG

#define PMA_PMD_EXT_CTRL_REG   49152

Definition at line 2626 of file etherfabric.c.

◆ PMA_PMD_EXT_SSR_LBN

#define PMA_PMD_EXT_SSR_LBN   15

Definition at line 2627 of file etherfabric.c.

◆ PCS_BOOT_STATUS_REG

#define PCS_BOOT_STATUS_REG   0xd000

Definition at line 2630 of file etherfabric.c.

◆ PCS_BOOT_FATAL_ERR_LBN

#define PCS_BOOT_FATAL_ERR_LBN   0

Definition at line 2631 of file etherfabric.c.

◆ PCS_BOOT_PROGRESS_LBN

#define PCS_BOOT_PROGRESS_LBN   1

Definition at line 2632 of file etherfabric.c.

◆ PCS_BOOT_PROGRESS_WIDTH

#define PCS_BOOT_PROGRESS_WIDTH   2

Definition at line 2633 of file etherfabric.c.

◆ PCS_BOOT_COMPLETE_LBN

#define PCS_BOOT_COMPLETE_LBN   3

Definition at line 2634 of file etherfabric.c.

◆ PCS_SOFT_RST2_REG

#define PCS_SOFT_RST2_REG   0xd806

Definition at line 2636 of file etherfabric.c.

◆ SERDES_RST_N_LBN

#define SERDES_RST_N_LBN   13

Definition at line 2637 of file etherfabric.c.

◆ XGXS_RST_N_LBN

#define XGXS_RST_N_LBN   12

Definition at line 2638 of file etherfabric.c.

◆ PM8358_REQUIRED_DEVS

#define PM8358_REQUIRED_DEVS   (MDIO_MMDREG_DEVS0_DTEXS)

Definition at line 2710 of file etherfabric.c.

◆ PMC_MASTER_REG

#define PMC_MASTER_REG   (0xd000)

Definition at line 2714 of file etherfabric.c.

◆ PMC_MASTER_ANLG_CTRL

#define PMC_MASTER_ANLG_CTRL   (1<< 11)

Definition at line 2716 of file etherfabric.c.

◆ PMC_MCONF2_REG

#define PMC_MCONF2_REG   (0xd002)

Definition at line 2719 of file etherfabric.c.

◆ PMC_MCONF2_TEDGE

#define PMC_MCONF2_TEDGE   (1 << 2)

Definition at line 2721 of file etherfabric.c.

◆ PMC_MCONF2_REDGE

#define PMC_MCONF2_REDGE   (1 << 3)

Definition at line 2723 of file etherfabric.c.

◆ PMC_ANALOG_RX_CFG0

#define PMC_ANALOG_RX_CFG0   (0xd025)

Definition at line 2726 of file etherfabric.c.

◆ PMC_ANALOG_RX_CFG1

#define PMC_ANALOG_RX_CFG1   (0xd02d)

Definition at line 2727 of file etherfabric.c.

◆ PMC_ANALOG_RX_CFG2

#define PMC_ANALOG_RX_CFG2   (0xd035)

Definition at line 2728 of file etherfabric.c.

◆ PMC_ANALOG_RX_CFG3

#define PMC_ANALOG_RX_CFG3   (0xd03d)

Definition at line 2729 of file etherfabric.c.

◆ PMC_ANALOG_RX_TERM

#define PMC_ANALOG_RX_TERM
Value:
(1 << 15) /* Bit 15 of RX CFG: 0 for 100 ohms float,
1 for 50 to 1.2V */

Definition at line 2732 of file etherfabric.c.

◆ PMC_ANALOG_RX_EQ_MASK

#define PMC_ANALOG_RX_EQ_MASK   (3 << 8)

Definition at line 2734 of file etherfabric.c.

◆ PMC_ANALOG_RX_EQ_NONE

#define PMC_ANALOG_RX_EQ_NONE   (0 << 8)

Definition at line 2735 of file etherfabric.c.

◆ PMC_ANALOG_RX_EQ_HALF

#define PMC_ANALOG_RX_EQ_HALF   (1 << 8)

Definition at line 2736 of file etherfabric.c.

◆ PMC_ANALOG_RX_EQ_FULL

#define PMC_ANALOG_RX_EQ_FULL   (2 << 8)

Definition at line 2737 of file etherfabric.c.

◆ PMC_ANALOG_RX_EQ_RSVD

#define PMC_ANALOG_RX_EQ_RSVD   (3 << 8)

Definition at line 2738 of file etherfabric.c.

◆ MAX_TEMP_THRESH

#define MAX_TEMP_THRESH   90

Definition at line 2787 of file etherfabric.c.

◆ PCA9539

#define PCA9539   0x74

Definition at line 2790 of file etherfabric.c.

◆ P0_IN

#define P0_IN   0x00

Definition at line 2792 of file etherfabric.c.

◆ P0_OUT

#define P0_OUT   0x02

Definition at line 2793 of file etherfabric.c.

◆ P0_CONFIG

#define P0_CONFIG   0x06

Definition at line 2794 of file etherfabric.c.

◆ P0_EN_1V0X_LBN

#define P0_EN_1V0X_LBN   0

Definition at line 2796 of file etherfabric.c.

◆ P0_EN_1V0X_WIDTH

#define P0_EN_1V0X_WIDTH   1

Definition at line 2797 of file etherfabric.c.

◆ P0_EN_1V2_LBN

#define P0_EN_1V2_LBN   1

Definition at line 2798 of file etherfabric.c.

◆ P0_EN_1V2_WIDTH

#define P0_EN_1V2_WIDTH   1

Definition at line 2799 of file etherfabric.c.

◆ P0_EN_2V5_LBN

#define P0_EN_2V5_LBN   2

Definition at line 2800 of file etherfabric.c.

◆ P0_EN_2V5_WIDTH

#define P0_EN_2V5_WIDTH   1

Definition at line 2801 of file etherfabric.c.

◆ P0_EN_3V3X_LBN

#define P0_EN_3V3X_LBN   3

Definition at line 2802 of file etherfabric.c.

◆ P0_EN_3V3X_WIDTH

#define P0_EN_3V3X_WIDTH   1

Definition at line 2803 of file etherfabric.c.

◆ P0_EN_5V_LBN

#define P0_EN_5V_LBN   4

Definition at line 2804 of file etherfabric.c.

◆ P0_EN_5V_WIDTH

#define P0_EN_5V_WIDTH   1

Definition at line 2805 of file etherfabric.c.

◆ P0_X_TRST_LBN

#define P0_X_TRST_LBN   6

Definition at line 2806 of file etherfabric.c.

◆ P0_X_TRST_WIDTH

#define P0_X_TRST_WIDTH   1

Definition at line 2807 of file etherfabric.c.

◆ P1_IN

#define P1_IN   0x01

Definition at line 2809 of file etherfabric.c.

◆ P1_CONFIG

#define P1_CONFIG   0x07

Definition at line 2810 of file etherfabric.c.

◆ P1_AFE_PWD_LBN

#define P1_AFE_PWD_LBN   0

Definition at line 2812 of file etherfabric.c.

◆ P1_AFE_PWD_WIDTH

#define P1_AFE_PWD_WIDTH   1

Definition at line 2813 of file etherfabric.c.

◆ P1_DSP_PWD25_LBN

#define P1_DSP_PWD25_LBN   1

Definition at line 2814 of file etherfabric.c.

◆ P1_DSP_PWD25_WIDTH

#define P1_DSP_PWD25_WIDTH   1

Definition at line 2815 of file etherfabric.c.

◆ P1_SPARE_LBN

#define P1_SPARE_LBN   4

Definition at line 2816 of file etherfabric.c.

◆ P1_SPARE_WIDTH

#define P1_SPARE_WIDTH   4

Definition at line 2817 of file etherfabric.c.

◆ MAX6647

#define MAX6647   0x4e

Definition at line 2820 of file etherfabric.c.

◆ RSL

#define RSL   0x02

Definition at line 2822 of file etherfabric.c.

◆ RLHN

#define RLHN   0x05

Definition at line 2823 of file etherfabric.c.

◆ WLHO

#define WLHO   0x0b

Definition at line 2824 of file etherfabric.c.

◆ FALCON_MAC_ADDRESS_OFFSET

#define FALCON_MAC_ADDRESS_OFFSET   0x310

Offset of MAC address within EEPROM or Flash.

Definition at line 3141 of file etherfabric.c.

◆ SF_NV_CONFIG_BASE

#define SF_NV_CONFIG_BASE   0x300

Definition at line 3146 of file etherfabric.c.

◆ SF_NV_CONFIG_EXTRA

#define SF_NV_CONFIG_EXTRA   0xA0

Definition at line 3147 of file etherfabric.c.

◆ BOARD_TYPE

#define BOARD_TYPE (   _rev)    (_rev >> 8)

Definition at line 3169 of file etherfabric.c.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL_ANY  )

◆ falcon_mdio_write()

static void falcon_mdio_write ( struct efab_nic efab,
int  device,
int  location,
int  value 
)
static

Definition at line 1590 of file etherfabric.c.

1592 {
1593  efab_oword_t reg;
1594 
1595  EFAB_TRACE ( "Writing GMII %d register %02x with %04x\n",
1596  device, location, value );
1597 
1598  /* Check MII not currently being accessed */
1599  if ( falcon_gmii_wait ( efab ) )
1600  return;
1601 
1602  /* Write the address/ID register */
1603  EFAB_POPULATE_OWORD_1 ( reg, FCN_MD_PHY_ADR, location );
1605 
1606  if ( efab->phy_10g ) {
1607  /* clause45 */
1609  FCN_MD_PRT_ADR, efab->phy_addr,
1610  FCN_MD_DEV_ADR, device );
1611  }
1612  else {
1613  /* clause22 */
1614  assert ( device == 0 );
1615 
1617  FCN_MD_PRT_ADR, efab->phy_addr,
1618  FCN_MD_DEV_ADR, location );
1619  }
1620  falcon_write ( efab, &reg, FCN_MD_ID_REG_KER );
1621 
1622 
1623  /* Write data */
1624  EFAB_POPULATE_OWORD_1 ( reg, FCN_MD_TXD, value );
1625  falcon_write ( efab, &reg, FCN_MD_TXD_REG_KER );
1626 
1628  FCN_MD_WRC, 1,
1629  FCN_MD_GC, ( efab->phy_10g ? 0 : 1 ) );
1630  falcon_write ( efab, &reg, FCN_MD_CS_REG_KER );
1631 
1632  /* Wait for data to be written */
1633  if ( falcon_gmii_wait ( efab ) ) {
1634  /* Abort the write operation */
1636  FCN_MD_WRC, 0,
1637  FCN_MD_GC, 1);
1638  falcon_write ( efab, &reg, FCN_MD_CS_REG_KER );
1639  udelay(10);
1640  }
1641 }
#define FCN_MD_TXD_REG_KER
Definition: etherfabric.c:744
static unsigned int unsigned int reg
Definition: myson.h:162
static void falcon_write(struct efab_nic *efab, efab_oword_t *value, unsigned int reg)
Write to a Falcon register.
Definition: etherfabric.c:1200
#define EFAB_POPULATE_OWORD_2(oword,...)
Definition: etherfabric.h:399
A hardware device.
Definition: device.h:73
assert((readw(&hdr->flags) &(GTF_reading|GTF_writing))==0)
#define FCN_MD_CS_REG_KER
Definition: etherfabric.c:754
void udelay(unsigned long usecs)
Delay for a fixed number of microseconds.
Definition: timer.c:60
#define EFAB_TRACE(...)
Definition: etherfabric.c:47
pseudo_bit_t value[0x00020]
Definition: arbel.h:13
#define EFAB_POPULATE_OWORD_1(oword,...)
Definition: etherfabric.h:401
#define FCN_MD_PHY_ADR_REG_KER
Definition: etherfabric.c:765
An octword (eight-word, i.e.
Definition: etherfabric.h:122
static int falcon_gmii_wait(struct efab_nic *efab)
Definition: etherfabric.c:1564
#define FCN_MD_ID_REG_KER
Definition: etherfabric.c:770

References assert(), EFAB_POPULATE_OWORD_1, EFAB_POPULATE_OWORD_2, EFAB_TRACE, falcon_gmii_wait(), falcon_write(), FCN_MD_CS_REG_KER, FCN_MD_ID_REG_KER, FCN_MD_PHY_ADR_REG_KER, FCN_MD_TXD_REG_KER, efab_nic::phy_10g, efab_nic::phy_addr, reg, udelay(), and value.

Referenced by falcon_pm8358_phy_init(), falcon_tenxpress_phy_init(), falcon_txc_logic_reset(), falcon_txc_phy_init(), and mdio_clause45_reset_mmd().

◆ falcon_mdio_read()

static int falcon_mdio_read ( struct efab_nic efab,
int  device,
int  location 
)
static

Definition at line 1644 of file etherfabric.c.

1645 {
1646  efab_oword_t reg;
1647  int value;
1648 
1649  /* Check MII not currently being accessed */
1650  if ( falcon_gmii_wait ( efab ) )
1651  return -1;
1652 
1653  if ( efab->phy_10g ) {
1654  /* clause45 */
1655  EFAB_POPULATE_OWORD_1 ( reg, FCN_MD_PHY_ADR, location );
1657 
1659  FCN_MD_PRT_ADR, efab->phy_addr,
1660  FCN_MD_DEV_ADR, device );
1661  falcon_write ( efab, &reg, FCN_MD_ID_REG_KER);
1662 
1663  /* request data to be read */
1665  FCN_MD_RDC, 1,
1666  FCN_MD_GC, 0 );
1667  }
1668  else {
1669  /* clause22 */
1670  assert ( device == 0 );
1671 
1673  FCN_MD_PRT_ADR, efab->phy_addr,
1674  FCN_MD_DEV_ADR, location );
1675  falcon_write ( efab, &reg, FCN_MD_ID_REG_KER );
1676 
1677  /* Request data to be read */
1679  FCN_MD_RIC, 1,
1680  FCN_MD_GC, 1 );
1681  }
1682 
1683  falcon_write ( efab, &reg, FCN_MD_CS_REG_KER );
1684 
1685  /* Wait for data to become available */
1686  if ( falcon_gmii_wait ( efab ) ) {
1687  /* Abort the read operation */
1689  FCN_MD_RIC, 0,
1690  FCN_MD_GC, 1 );
1691  falcon_write ( efab, &reg, FCN_MD_CS_REG_KER );
1692  udelay ( 10 );
1693  value = -1;
1694  }
1695  else {
1696  /* Read the data */
1697  falcon_read ( efab, &reg, FCN_MD_RXD_REG_KER );
1698  value = EFAB_OWORD_FIELD ( reg, FCN_MD_RXD );
1699  }
1700 
1701  EFAB_TRACE ( "Read from GMII %d register %02x, got %04x\n",
1702  device, location, value );
1703 
1704  return value;
1705 }
#define EFAB_OWORD_FIELD
Definition: etherfabric.h:274
static unsigned int unsigned int reg
Definition: myson.h:162
static void falcon_write(struct efab_nic *efab, efab_oword_t *value, unsigned int reg)
Write to a Falcon register.
Definition: etherfabric.c:1200
#define EFAB_POPULATE_OWORD_2(oword,...)
Definition: etherfabric.h:399
static void falcon_read(struct efab_nic *efab, efab_oword_t *value, unsigned int reg)
Read from a Falcon register.
Definition: etherfabric.c:1250
A hardware device.
Definition: device.h:73
assert((readw(&hdr->flags) &(GTF_reading|GTF_writing))==0)
#define FCN_MD_CS_REG_KER
Definition: etherfabric.c:754
void udelay(unsigned long usecs)
Delay for a fixed number of microseconds.
Definition: timer.c:60
#define EFAB_TRACE(...)
Definition: etherfabric.c:47
pseudo_bit_t value[0x00020]
Definition: arbel.h:13
#define EFAB_POPULATE_OWORD_1(oword,...)
Definition: etherfabric.h:401
#define FCN_MD_PHY_ADR_REG_KER
Definition: etherfabric.c:765
An octword (eight-word, i.e.
Definition: etherfabric.h:122
static int falcon_gmii_wait(struct efab_nic *efab)
Definition: etherfabric.c:1564
#define FCN_MD_ID_REG_KER
Definition: etherfabric.c:770
#define FCN_MD_RXD_REG_KER
Definition: etherfabric.c:749

References assert(), EFAB_OWORD_FIELD, EFAB_POPULATE_OWORD_1, EFAB_POPULATE_OWORD_2, EFAB_TRACE, falcon_gmii_wait(), falcon_read(), falcon_write(), FCN_MD_CS_REG_KER, FCN_MD_ID_REG_KER, FCN_MD_PHY_ADR_REG_KER, FCN_MD_RXD_REG_KER, efab_nic::phy_10g, efab_nic::phy_addr, reg, udelay(), and value.

Referenced by falcon_pm8358_phy_init(), falcon_tenxpress_check_c11(), falcon_txc_logic_reset(), falcon_xaui_link_ok(), gmii_autoneg_advertised(), gmii_autoneg_lpa(), gmii_link_ok(), mdio_clause45_check_mmds(), mdio_clause45_links_ok(), mdio_clause45_reset_mmd(), and mdio_clause45_wait_reset_mmds().

◆ gmii_autoneg_advertised()

static unsigned int gmii_autoneg_advertised ( struct efab_nic efab)
static

Retrieve GMII autonegotiation advertised abilities.

Definition at line 113 of file etherfabric.c.

114 {
115  unsigned int mii_advertise;
116  unsigned int gmii_advertise;
117 
118  /* Extended bits are in bits 8 and 9 of MII_CTRL1000 */
119  mii_advertise = falcon_mdio_read ( efab, 0, MII_ADVERTISE );
120  gmii_advertise = ( ( falcon_mdio_read ( efab, 0, MII_CTRL1000 ) >> 8 )
121  & 0x03 );
122  return ( ( gmii_advertise << 16 ) | mii_advertise );
123 }
#define MII_ADVERTISE
Definition: atl1e.h:875
static int falcon_mdio_read(struct efab_nic *efab, int device, int location)
Definition: etherfabric.c:1644
#define MII_CTRL1000
Definition: mii.h:24

References falcon_mdio_read(), MII_ADVERTISE, and MII_CTRL1000.

Referenced by alaska_init().

◆ gmii_autoneg_lpa()

static unsigned int gmii_autoneg_lpa ( struct efab_nic efab)
static

Retrieve GMII autonegotiation link partner abilities.

Definition at line 130 of file etherfabric.c.

131 {
132  unsigned int mii_lpa;
133  unsigned int gmii_lpa;
134 
135  /* Extended bits are in bits 10 and 11 of MII_STAT1000 */
136  mii_lpa = falcon_mdio_read ( efab, 0, MII_LPA );
137  gmii_lpa = ( falcon_mdio_read ( efab, 0, MII_STAT1000 ) >> 10 ) & 0x03;
138  return ( ( gmii_lpa << 16 ) | mii_lpa );
139 }
#define MII_LPA
Definition: atl1e.h:876
static int falcon_mdio_read(struct efab_nic *efab, int device, int location)
Definition: etherfabric.c:1644
#define MII_STAT1000
Definition: mii.h:25

References falcon_mdio_read(), MII_LPA, and MII_STAT1000.

Referenced by alaska_init().

◆ gmii_nway_result()

static unsigned int gmii_nway_result ( unsigned int  negotiated)
static

Calculate GMII autonegotiated link technology.

Definition at line 146 of file etherfabric.c.

147 {
148  unsigned int other_bits;
149 
150  /* Mask out the speed and duplexity bits */
151  other_bits = negotiated & LPA_OTHER;
152 
153  if ( negotiated & LPA_EF_1000FULL )
154  return ( other_bits | LPA_EF_1000FULL );
155  else if ( negotiated & LPA_EF_1000HALF )
156  return ( other_bits | LPA_EF_1000HALF );
157  else if ( negotiated & LPA_100FULL )
158  return ( other_bits | LPA_100FULL );
159  else if ( negotiated & LPA_100BASE4 )
160  return ( other_bits | LPA_100BASE4 );
161  else if ( negotiated & LPA_100HALF )
162  return ( other_bits | LPA_100HALF );
163  else if ( negotiated & LPA_10FULL )
164  return ( other_bits | LPA_10FULL );
165  else return ( other_bits | LPA_10HALF );
166 }
#define LPA_10HALF
Definition: mii.h:97
#define LPA_OTHER
Definition: etherfabric.c:102
#define LPA_100HALF
Definition: mii.h:101
#define LPA_EF_1000HALF
Definition: etherfabric.c:92
#define LPA_EF_1000FULL
Definition: etherfabric.c:91
#define LPA_100FULL
Definition: mii.h:103
#define LPA_10FULL
Definition: mii.h:99
#define LPA_100BASE4
Definition: mii.h:105

References LPA_100BASE4, LPA_100FULL, LPA_100HALF, LPA_10FULL, LPA_10HALF, LPA_EF_1000FULL, LPA_EF_1000HALF, and LPA_OTHER.

Referenced by alaska_init().

◆ gmii_link_ok()

static int gmii_link_ok ( struct efab_nic efab)
static

Check GMII PHY link status.

Definition at line 173 of file etherfabric.c.

174 {
175  int status;
176  int phy_status;
177 
178  /* BMSR is latching - it returns "link down" if the link has
179  * been down at any point since the last read. To get a
180  * real-time status, we therefore read the register twice and
181  * use the result of the second read.
182  */
183  (void) falcon_mdio_read ( efab, 0, MII_BMSR );
184  status = falcon_mdio_read ( efab, 0, MII_BMSR );
185 
186  /* Read the PHY-specific Status Register. This is
187  * non-latching, so we need do only a single read.
188  */
189  phy_status = falcon_mdio_read ( efab, 0, GMII_PSSR );
190 
191  return ( ( status & BMSR_LSTATUS ) && ( phy_status & PSSR_LSTATUS ) );
192 }
uint8_t status
Status.
Definition: ena.h:16
static int falcon_mdio_read(struct efab_nic *efab, int device, int location)
Definition: etherfabric.c:1644
#define GMII_PSSR
Definition: etherfabric.c:88
#define BMSR_LSTATUS
Definition: mii.h:57
#define PSSR_LSTATUS
Definition: etherfabric.c:106
#define MII_BMSR
Definition: atl1e.h:872

References BMSR_LSTATUS, falcon_mdio_read(), GMII_PSSR, MII_BMSR, PSSR_LSTATUS, and status.

Referenced by alaska_init().

◆ mdio_clause45_wait_reset_mmds()

static int mdio_clause45_wait_reset_mmds ( struct efab_nic efab)
static

Definition at line 265 of file etherfabric.c.

266 {
267  int tries = MDIO45_RESET_TRIES;
268  int in_reset;
269 
270  while(tries) {
271  int mask = efab->phy_op->mmds;
272  int mmd = 0;
273  in_reset = 0;
274  while(mask) {
275  if (mask & 1) {
276  int stat = falcon_mdio_read ( efab, mmd,
278  if (stat < 0) {
279  EFAB_ERR("Failed to read status of MMD %d\n",
280  mmd );
281  in_reset = 1;
282  break;
283  }
284  if (stat & (1 << MDIO_MMDREG_CTRL1_RESET_LBN))
285  in_reset |= (1 << mmd);
286  }
287  mask = mask >> 1;
288  mmd++;
289  }
290  if (!in_reset)
291  break;
292  tries--;
294  }
295  if (in_reset != 0) {
296  EFAB_ERR("Not all MMDs came out of reset in time. MMDs "
297  "still in reset: %x\n", in_reset);
298  return -ETIMEDOUT;
299  }
300  return 0;
301 }
#define MDIO45_RESET_TRIES
Definition: etherfabric.c:261
struct efab_phy_operations * phy_op
static int falcon_mdio_read(struct efab_nic *efab, int device, int location)
Definition: etherfabric.c:1644
#define MDIO_MMDREG_CTRL1
Definition: etherfabric.c:218
void mdelay(unsigned long msecs)
Delay for a fixed number of milliseconds.
Definition: timer.c:78
#define EFAB_ERR(...)
Definition: etherfabric.c:51
#define MDIO_MMDREG_CTRL1_RESET_LBN
Definition: etherfabric.c:225
#define MDIO45_RESET_SPINTIME
Definition: etherfabric.c:262
#define ETIMEDOUT
Connection timed out.
Definition: errno.h:669

References EFAB_ERR, ETIMEDOUT, falcon_mdio_read(), mdelay(), MDIO45_RESET_SPINTIME, MDIO45_RESET_TRIES, MDIO_MMDREG_CTRL1, MDIO_MMDREG_CTRL1_RESET_LBN, efab_phy_operations::mmds, and efab_nic::phy_op.

Referenced by falcon_tenxpress_phy_init().

◆ mdio_clause45_reset_mmd()

static int mdio_clause45_reset_mmd ( struct efab_nic efab,
int  mmd 
)
static

Definition at line 304 of file etherfabric.c.

305 {
306  int tries = MDIO45_RESET_TRIES;
307  int ctrl;
308 
310  ( 1 << MDIO_MMDREG_CTRL1_RESET_LBN ) );
311 
312  /* Wait for the reset bit to clear. */
313  do {
315 
316  ctrl = falcon_mdio_read ( efab, mmd, MDIO_MMDREG_CTRL1 );
317  if ( ~ctrl & ( 1 << MDIO_MMDREG_CTRL1_RESET_LBN ) )
318  return 0;
319  } while ( --tries );
320 
321  EFAB_ERR ( "Failed to reset mmd %d\n", mmd );
322 
323  return -ETIMEDOUT;
324 }
#define MDIO45_RESET_TRIES
Definition: etherfabric.c:261
static void falcon_mdio_write(struct efab_nic *efab, int device, int location, int value)
Definition: etherfabric.c:1590
static int falcon_mdio_read(struct efab_nic *efab, int device, int location)
Definition: etherfabric.c:1644
#define MDIO_MMDREG_CTRL1
Definition: etherfabric.c:218
void mdelay(unsigned long msecs)
Delay for a fixed number of milliseconds.
Definition: timer.c:78
u8 ctrl
Definition: sky2.h:10
#define EFAB_ERR(...)
Definition: etherfabric.c:51
#define MDIO_MMDREG_CTRL1_RESET_LBN
Definition: etherfabric.c:225
#define MDIO45_RESET_SPINTIME
Definition: etherfabric.c:262
#define ETIMEDOUT
Connection timed out.
Definition: errno.h:669

References ctrl, EFAB_ERR, ETIMEDOUT, falcon_mdio_read(), falcon_mdio_write(), mdelay(), MDIO45_RESET_SPINTIME, MDIO45_RESET_TRIES, MDIO_MMDREG_CTRL1, and MDIO_MMDREG_CTRL1_RESET_LBN.

Referenced by falcon_pm8358_phy_init(), falcon_txc_phy_init(), and falcon_xfp_phy_init().

◆ mdio_clause45_links_ok()

static int mdio_clause45_links_ok ( struct efab_nic efab)
static

Definition at line 327 of file etherfabric.c.