iPXE
Data Structures | Macros | Enumerations | Functions
skge.h File Reference

Go to the source code of this file.

Data Structures

struct  skge_rx_desc
 
struct  skge_tx_desc
 
struct  skge_element
 
struct  skge_ring
 
struct  skge_hw
 
struct  skge_port
 

Macros

#define PCI_DEV_REG1   0x40
 
#define PCI_PHY_COMA   0x8000000
 
#define PCI_VIO   0x2000000
 
#define PCI_DEV_REG2   0x44
 
#define PCI_VPD_ROM_SZ   7L<<14 /* VPD ROM size 0=256, 1=512, ... */
 
#define PCI_REV_DESC   1<<2 /* Reverse Descriptor bytes */
 
#define DRV_NAME   "skge"
 
#define DRV_VERSION   "1.13"
 
#define PFX   DRV_NAME " "
 
#define NUM_TX_DESC   8
 
#define NUM_RX_DESC   8
 
#define SKGE_RING_ALIGN   8
 
#define RX_BUF_SIZE   1536
 
#define PHY_RETRIES   1000
 
#define TX_RING_SIZE   ( NUM_TX_DESC * sizeof ( struct skge_rx_desc ) )
 
#define RX_RING_SIZE   ( NUM_RX_DESC * sizeof ( struct skge_tx_desc ) )
 
#define RING_SIZE   ( TX_RING_SIZE + RX_RING_SIZE )
 
#define SKGE_REG_SIZE   0x4000
 
#define SKGE_EEPROM_MAGIC   0x9933aabb
 
#define AUTONEG_DISABLE   0x00
 
#define AUTONEG_ENABLE   0x01
 
#define DUPLEX_HALF   0x00
 
#define DUPLEX_FULL   0x01
 
#define SPEED_10   10
 
#define SPEED_100   100
 
#define SPEED_1000   1000
 
#define ADVERTISED_10baseT_Half   (1 << 0)
 
#define ADVERTISED_10baseT_Full   (1 << 1)
 
#define ADVERTISED_100baseT_Half   (1 << 2)
 
#define ADVERTISED_100baseT_Full   (1 << 3)
 
#define ADVERTISED_1000baseT_Half   (1 << 4)
 
#define ADVERTISED_1000baseT_Full   (1 << 5)
 
#define SUPPORTED_10baseT_Half   (1 << 0)
 
#define SUPPORTED_10baseT_Full   (1 << 1)
 
#define SUPPORTED_100baseT_Half   (1 << 2)
 
#define SUPPORTED_100baseT_Full   (1 << 3)
 
#define SUPPORTED_1000baseT_Half   (1 << 4)
 
#define SUPPORTED_1000baseT_Full   (1 << 5)
 
#define SUPPORTED_Autoneg   (1 << 6)
 
#define SUPPORTED_TP   (1 << 7)
 
#define SUPPORTED_FIBRE   (1 << 10)
 
#define PCI_STATUS_ERROR_BITS
 
#define RAM_ADR_RAN   0x0007ffffL /* Bit 18.. 0: RAM Address Range */
 
#define SK_MAC_TO_53   72 /* MAC arbiter timeout */
 
#define SK_PKT_TO_53   0x2000 /* Packet arbiter timeout */
 
#define SK_PKT_TO_MAX   0xffff /* Maximum value */
 
#define SK_RI_TO_53   36 /* RAM interface timeout */
 
#define PA_ENA_TO_ALL
 
#define TXA_MAX_VAL   0x00ffffffUL /* Bit 23.. 0: Max TXA Timer/Cnt Val */
 
#define Q_ADDR(reg, offs)   (B8_Q_REGS + (reg) + (offs))
 
#define RB_ADDR(offs, queue)   ((u16)B16_RAM_REGS + (u16)(queue) + (offs))
 
#define CSR_SET_RESET
 
#define CSR_CLR_RESET
 
#define RB_MSK   0x0007ffff /* Bit 18.. 0: RAM Buffer Pointer Bits */
 
#define SK_XMIT_DUR   0x002faf08UL /* 50 ms */
 
#define SK_BLK_DUR   0x01dcd650UL /* 500 ms */
 
#define SK_DPOLL_DEF   0x00ee6b28UL /* 250 ms at 62.5 MHz */
 
#define SK_DPOLL_MAX   0x00ffffffUL /* 268 ms at 62.5 MHz */
 
#define SK_FACT_62   100 /* is given in percent */
 
#define SK_FACT_53   85 /* on GENESIS: 53.12 MHz */
 
#define SK_FACT_78   125 /* on YUKON: 78.12 MHz */
 
#define WOL_REGS(port, x)   (x + (port)*0x80)
 
#define WOL_PATT_RAM_BASE(port)   (WOL_PATT_RAM_1 + (port)*0x400)
 
#define PHY_B_AS_PAUSE_MSK   (PHY_B_AS_PRR | PHY_B_AS_PRT)
 
#define PHY_B_DEF_MSK
 
#define PHY_M_PS_PAUSE_MSK   (PHY_M_PS_TX_P_EN | PHY_M_PS_RX_P_EN)
 
#define PHY_M_EC_M_DSC(x)   ((u16)(x)<<10) /* 00=1x; 01=2x; 10=3x; 11=4x */
 
#define PHY_M_EC_S_DSC(x)   ((u16)(x)<<8) /* 00=dis; 01=1x; 10=2x; 11=3x */
 
#define PHY_M_EC_MAC_S(x)   ((u16)(x)<<4) /* 01X=0; 110=2.5; 111=25 (MHz) */
 
#define PHY_M_EC_M_DSC_2(x)   ((u16)(x)<<9) /* 000=1x; 001=2x; 010=3x; 011=4x */
 
#define PHY_M_LED_PULS_DUR(x)   (((u16)(x)<<12) & PHY_M_LEDC_PULS_MSK)
 
#define PHY_M_LED_BLINK_RT(x)   (((u16)(x)<<8) & PHY_M_LEDC_BL_R_MSK)
 
#define PHY_M_LED_MO_SGMII(x)   ((x)<<14) /* Bit 15..14: SGMII AN Timer */
 
#define PHY_M_LED_MO_DUP(x)   ((x)<<10) /* Bit 11..10: Duplex */
 
#define PHY_M_LED_MO_10(x)   ((x)<<8) /* Bit 9.. 8: Link 10 */
 
#define PHY_M_LED_MO_100(x)   ((x)<<6) /* Bit 7.. 6: Link 100 */
 
#define PHY_M_LED_MO_1000(x)   ((x)<<4) /* Bit 5.. 4: Link 1000 */
 
#define PHY_M_LED_MO_RX(x)   ((x)<<2) /* Bit 3.. 2: Rx */
 
#define PHY_M_LED_MO_TX(x)   ((x)<<0) /* Bit 1.. 0: Tx */
 
#define PHY_M_FELP_LED2_CTRL(x)   (((x)<<8) & PHY_M_FELP_LED2_MSK)
 
#define PHY_M_FELP_LED1_CTRL(x)   (((x)<<4) & PHY_M_FELP_LED1_MSK)
 
#define PHY_M_FELP_LED0_CTRL(x)   (((x)<<0) & PHY_M_FELP_LED0_MSK)
 
#define PHY_M_LEDC_LOS_CTRL(x)   (((x)<<12) & PHY_M_LEDC_LOS_MSK)
 
#define PHY_M_LEDC_INIT_CTRL(x)   (((x)<<8) & PHY_M_LEDC_INIT_MSK)
 
#define PHY_M_LEDC_STA1_CTRL(x)   (((x)<<4) & PHY_M_LEDC_STA1_MSK)
 
#define PHY_M_LEDC_STA0_CTRL(x)   (((x)<<0) & PHY_M_LEDC_STA0_MSK)
 
#define GM_MIB_CNT_BASE   0x0100 /* Base Address of MIB Counters */
 
#define GM_MIB_CNT_SIZE   44 /* Number of MIB Counters */
 
#define GM_GPCR_SPEED_1000   (GM_GPCR_GIGS_ENA | GM_GPCR_SPEED_100)
 
#define GM_GPCR_AU_ALL_DIS   (GM_GPCR_AU_DUP_DIS | GM_GPCR_AU_FCT_DIS|GM_GPCR_AU_SPD_DIS)
 
#define TX_COL_THR(x)   (((x)<<10) & GM_TXCR_COL_THR_MSK)
 
#define TX_COL_DEF   0x04 /* late collision after 64 byte */
 
#define TX_JAM_LEN_VAL(x)   (((x)<<14) & GM_TXPA_JAMLEN_MSK)
 
#define TX_JAM_IPG_VAL(x)   (((x)<<9) & GM_TXPA_JAMIPG_MSK)
 
#define TX_IPG_JAM_DATA(x)   (((x)<<4) & GM_TXPA_JAMDAT_MSK)
 
#define DATA_BLIND_VAL(x)   (((x)<<11) & GM_SMOD_DATABL_MSK)
 
#define DATA_BLIND_DEF   0x04
 
#define IPG_DATA_VAL(x)   (x & GM_SMOD_IPG_MSK)
 
#define IPG_DATA_DEF   0x1e
 
#define GM_SMI_CT_PHY_AD(x)   (((x)<<11) & GM_SMI_CT_PHY_A_MSK)
 
#define GM_SMI_CT_REG_AD(x)   (((x)<<6) & GM_SMI_CT_REG_A_MSK)
 
#define GPC_HWCFG_GMII_COP   (GPC_HWCFG_M_3|GPC_HWCFG_M_2 | GPC_HWCFG_M_1 | GPC_HWCFG_M_0)
 
#define GPC_HWCFG_GMII_FIB   (GPC_HWCFG_M_2 | GPC_HWCFG_M_1 | GPC_HWCFG_M_0)
 
#define GPC_ANEG_ADV_ALL_M   (GPC_ANEG_3 | GPC_ANEG_2 | GPC_ANEG_1 | GPC_ANEG_0)
 
#define GPC_FRC10MBIT_HALF   0
 
#define GPC_FRC10MBIT_FULL   GPC_ANEG_0
 
#define GPC_FRC100MBIT_HALF   GPC_ANEG_1
 
#define GPC_FRC100MBIT_FULL   (GPC_ANEG_0 | GPC_ANEG_1)
 
#define GPC_ADV_1000_HALF   GPC_ANEG_2
 
#define GPC_ADV_1000_FULL   GPC_ANEG_3
 
#define GPC_ADV_ALL   (GPC_ANEG_2 | GPC_ANEG_3)
 
#define GPC_FORCE_MASTER   0
 
#define GPC_FORCE_SLAVE   GPC_ANEG_0
 
#define GPC_PREF_MASTER   GPC_ANEG_1
 
#define GPC_PREF_SLAVE   (GPC_ANEG_1 | GPC_ANEG_0)
 
#define GMAC_DEF_MSK   (GM_IS_RX_FF_OR | GM_IS_TX_FF_UR)
 
#define WOL_CTL_DEFAULT
 
#define WOL_CTL_PATT_ENA(x)   (1 << (x))
 
#define XM_EXM(reg)   (XM_EXM_START + ((reg) << 3))
 
#define XM_RT_LIM_MSK   0x1f /* Bit 4..0: Tx Retry Limit */
 
#define XM_STIME_MSK   0x7f /* Bit 6..0: Tx Slottime bits */
 
#define XM_IPG_MSK   0xff /* Bit 7..0: IPG value bits */
 
#define XM_TX_WM_MSK   0x01ff /* Bit 9.. 0 Tx FIFO Watermark bits */
 
#define XM_THR_MSK   0x03ff /* Bit 10.. 0 Rx/Tx Request Threshold bits */
 
#define XM_RX_WM_MSK   0x03ff /* Bit 11.. 0: Rx FIFO Watermark bits */
 
#define XM_DEV_OUI   (0x00ffffffUL<<8) /* Bit 31..8: Device OUI */
 
#define XM_DEV_REV   (0x07L << 5) /* Bit 7..5: Chip Rev Num */
 
#define XM_PAUSE_MODE   (XM_MD_SPOE_E | XM_MD_SPOL_I | XM_MD_SPOH_I)
 
#define XM_DEF_MODE
 
#define XMR_DEF_MSK   (XMR_OK_LO_OV | XMR_OK_HI_OV)
 
#define XMT_DEF_MSK   (XMT_OK_LO_OV | XMT_OK_HI_OV)
 
#define SK_REG(port, reg)   (((port)<<7)+(u16)(reg))
 
#define SK_XMAC_REG(port, reg)   ((BASE_XMAC_1 + (port) * (BASE_XMAC_2 - BASE_XMAC_1)) | (reg) << 1)
 
#define SK_GMAC_REG(port, reg)   (BASE_GMAC_1 + (port) * (BASE_GMAC_2-BASE_GMAC_1) + (reg))
 

Enumerations

enum  csr_regs {
  B0_RAP = 0x0000, B0_CTST = 0x0004, B0_LED = 0x0006, B0_POWER_CTRL = 0x0007,
  B0_ISRC = 0x0008, B0_IMSK = 0x000c, B0_HWE_ISRC = 0x0010, B0_HWE_IMSK = 0x0014,
  B0_SP_ISRC = 0x0018, B0_XM1_IMSK = 0x0020, B0_XM1_ISRC = 0x0028, B0_XM1_PHY_ADDR = 0x0030,
  B0_XM1_PHY_DATA = 0x0034, B0_XM2_IMSK = 0x0040, B0_XM2_ISRC = 0x0048, B0_XM2_PHY_ADDR = 0x0050,
  B0_XM2_PHY_DATA = 0x0054, B0_R1_CSR = 0x0060, B0_R2_CSR = 0x0064, B0_XS1_CSR = 0x0068,
  B0_XA1_CSR = 0x006c, B0_XS2_CSR = 0x0070, B0_XA2_CSR = 0x0074, B2_MAC_1 = 0x0100,
  B2_MAC_2 = 0x0108, B2_MAC_3 = 0x0110, B2_CONN_TYP = 0x0118, B2_PMD_TYP = 0x0119,
  B2_MAC_CFG = 0x011a, B2_CHIP_ID = 0x011b, B2_E_0 = 0x011c, B2_E_1 = 0x011d,
  B2_E_2 = 0x011e, B2_E_3 = 0x011f, B2_FAR = 0x0120, B2_FDP = 0x0124,
  B2_LD_CTRL = 0x0128, B2_LD_TEST = 0x0129, B2_TI_INI = 0x0130, B2_TI_VAL = 0x0134,
  B2_TI_CTRL = 0x0138, B2_TI_TEST = 0x0139, B2_IRQM_INI = 0x0140, B2_IRQM_VAL = 0x0144,
  B2_IRQM_CTRL = 0x0148, B2_IRQM_TEST = 0x0149, B2_IRQM_MSK = 0x014c, B2_IRQM_HWE_MSK = 0x0150,
  B2_TST_CTRL1 = 0x0158, B2_TST_CTRL2 = 0x0159, B2_GP_IO = 0x015c, B2_I2C_CTRL = 0x0160,
  B2_I2C_DATA = 0x0164, B2_I2C_IRQ = 0x0168, B2_I2C_SW = 0x016c, B2_BSC_INI = 0x0170,
  B2_BSC_VAL = 0x0174, B2_BSC_CTRL = 0x0178, B2_BSC_STAT = 0x0179, B2_BSC_TST = 0x017a,
  B3_RAM_ADDR = 0x0180, B3_RAM_DATA_LO = 0x0184, B3_RAM_DATA_HI = 0x0188, B3_RI_WTO_R1 = 0x0190,
  B3_RI_WTO_XA1 = 0x0191, B3_RI_WTO_XS1 = 0x0192, B3_RI_RTO_R1 = 0x0193, B3_RI_RTO_XA1 = 0x0194,
  B3_RI_RTO_XS1 = 0x0195, B3_RI_WTO_R2 = 0x0196, B3_RI_WTO_XA2 = 0x0197, B3_RI_WTO_XS2 = 0x0198,
  B3_RI_RTO_R2 = 0x0199, B3_RI_RTO_XA2 = 0x019a, B3_RI_RTO_XS2 = 0x019b, B3_RI_TO_VAL = 0x019c,
  B3_RI_CTRL = 0x01a0, B3_RI_TEST = 0x01a2, B3_MA_TOINI_RX1 = 0x01b0, B3_MA_TOINI_RX2 = 0x01b1,
  B3_MA_TOINI_TX1 = 0x01b2, B3_MA_TOINI_TX2 = 0x01b3, B3_MA_TOVAL_RX1 = 0x01b4, B3_MA_TOVAL_RX2 = 0x01b5,
  B3_MA_TOVAL_TX1 = 0x01b6, B3_MA_TOVAL_TX2 = 0x01b7, B3_MA_TO_CTRL = 0x01b8, B3_MA_TO_TEST = 0x01ba,
  B3_MA_RCINI_RX1 = 0x01c0, B3_MA_RCINI_RX2 = 0x01c1, B3_MA_RCINI_TX1 = 0x01c2, B3_MA_RCINI_TX2 = 0x01c3,
  B3_MA_RCVAL_RX1 = 0x01c4, B3_MA_RCVAL_RX2 = 0x01c5, B3_MA_RCVAL_TX1 = 0x01c6, B3_MA_RCVAL_TX2 = 0x01c7,
  B3_MA_RC_CTRL = 0x01c8, B3_MA_RC_TEST = 0x01ca, B3_PA_TOINI_RX1 = 0x01d0, B3_PA_TOINI_RX2 = 0x01d4,
  B3_PA_TOINI_TX1 = 0x01d8, B3_PA_TOINI_TX2 = 0x01dc, B3_PA_TOVAL_RX1 = 0x01e0, B3_PA_TOVAL_RX2 = 0x01e4,
  B3_PA_TOVAL_TX1 = 0x01e8, B3_PA_TOVAL_TX2 = 0x01ec, B3_PA_CTRL = 0x01f0, B3_PA_TEST = 0x01f2,
  B0_RAP = 0x0000, B0_CTST = 0x0004, B0_Y2LED = 0x0005, B0_POWER_CTRL = 0x0007,
  B0_ISRC = 0x0008, B0_IMSK = 0x000c, B0_HWE_ISRC = 0x0010, B0_HWE_IMSK = 0x0014,
  B0_Y2_SP_ISRC2 = 0x001c, B0_Y2_SP_ISRC3 = 0x0020, B0_Y2_SP_EISR = 0x0024, B0_Y2_SP_LISR = 0x0028,
  B0_Y2_SP_ICR = 0x002c, B2_MAC_1 = 0x0100, B2_MAC_2 = 0x0108, B2_MAC_3 = 0x0110,
  B2_CONN_TYP = 0x0118, B2_PMD_TYP = 0x0119, B2_MAC_CFG = 0x011a, B2_CHIP_ID = 0x011b,
  B2_E_0 = 0x011c, B2_Y2_CLK_GATE = 0x011d, B2_Y2_HW_RES = 0x011e, B2_E_3 = 0x011f,
  B2_Y2_CLK_CTRL = 0x0120, B2_TI_INI = 0x0130, B2_TI_VAL = 0x0134, B2_TI_CTRL = 0x0138,
  B2_TI_TEST = 0x0139, B2_TST_CTRL1 = 0x0158, B2_TST_CTRL2 = 0x0159, B2_GP_IO = 0x015c,
  B2_I2C_CTRL = 0x0160, B2_I2C_DATA = 0x0164, B2_I2C_IRQ = 0x0168, B2_I2C_SW = 0x016c,
  B3_RAM_ADDR = 0x0180, B3_RAM_DATA_LO = 0x0184, B3_RAM_DATA_HI = 0x0188, B3_RI_WTO_R1 = 0x0190,
  B3_RI_WTO_XA1 = 0x0191, B3_RI_WTO_XS1 = 0x0192, B3_RI_RTO_R1 = 0x0193, B3_RI_RTO_XA1 = 0x0194,
  B3_RI_RTO_XS1 = 0x0195, B3_RI_WTO_R2 = 0x0196, B3_RI_WTO_XA2 = 0x0197, B3_RI_WTO_XS2 = 0x0198,
  B3_RI_RTO_R2 = 0x0199, B3_RI_RTO_XA2 = 0x019a, B3_RI_RTO_XS2 = 0x019b, B3_RI_TO_VAL = 0x019c,
  B3_RI_CTRL = 0x01a0, B3_RI_TEST = 0x01a2, B3_MA_TOINI_RX1 = 0x01b0, B3_MA_TOINI_RX2 = 0x01b1,
  B3_MA_TOINI_TX1 = 0x01b2, B3_MA_TOINI_TX2 = 0x01b3, B3_MA_TOVAL_RX1 = 0x01b4, B3_MA_TOVAL_RX2 = 0x01b5,
  B3_MA_TOVAL_TX1 = 0x01b6, B3_MA_TOVAL_TX2 = 0x01b7, B3_MA_TO_CTRL = 0x01b8, B3_MA_TO_TEST = 0x01ba,
  B3_MA_RCINI_RX1 = 0x01c0, B3_MA_RCINI_RX2 = 0x01c1, B3_MA_RCINI_TX1 = 0x01c2, B3_MA_RCINI_TX2 = 0x01c3,
  B3_MA_RCVAL_RX1 = 0x01c4, B3_MA_RCVAL_RX2 = 0x01c5, B3_MA_RCVAL_TX1 = 0x01c6, B3_MA_RCVAL_TX2 = 0x01c7,
  B3_MA_RC_CTRL = 0x01c8, B3_MA_RC_TEST = 0x01ca, B3_PA_TOINI_RX1 = 0x01d0, B3_PA_TOINI_RX2 = 0x01d4,
  B3_PA_TOINI_TX1 = 0x01d8, B3_PA_TOINI_TX2 = 0x01dc, B3_PA_TOVAL_RX1 = 0x01e0, B3_PA_TOVAL_RX2 = 0x01e4,
  B3_PA_TOVAL_TX1 = 0x01e8, B3_PA_TOVAL_TX2 = 0x01ec, B3_PA_CTRL = 0x01f0, B3_PA_TEST = 0x01f2,
  Y2_CFG_SPC = 0x1c00, Y2_CFG_AER = 0x1d00
}
 
enum  {
  CS_CLK_RUN_HOT = 1<<13, CS_CLK_RUN_RST = 1<<12, CS_CLK_RUN_ENA = 1<<11, CS_VAUX_AVAIL = 1<<10,
  CS_BUS_CLOCK = 1<<9, CS_BUS_SLOT_SZ = 1<<8, CS_ST_SW_IRQ = 1<<7, CS_CL_SW_IRQ = 1<<6,
  CS_STOP_DONE = 1<<5, CS_STOP_MAST = 1<<4, CS_MRST_CLR = 1<<3, CS_MRST_SET = 1<<2,
  CS_RST_CLR = 1<<1, CS_RST_SET = 1, LED_STAT_ON = 1<<1, LED_STAT_OFF = 1,
  PC_VAUX_ENA = 1<<7, PC_VAUX_DIS = 1<<6, PC_VCC_ENA = 1<<5, PC_VCC_DIS = 1<<4,
  PC_VAUX_ON = 1<<3, PC_VAUX_OFF = 1<<2, PC_VCC_ON = 1<<1, PC_VCC_OFF = 1<<0
}
 
enum  {
  IS_ALL_MSK = 0xbffffffful, IS_HW_ERR = 1<<31, IS_PA_TO_RX1 = 1<<29, IS_PA_TO_RX2 = 1<<28,
  IS_PA_TO_TX1 = 1<<27, IS_PA_TO_TX2 = 1<<26, IS_I2C_READY = 1<<25, IS_IRQ_SW = 1<<24,
  IS_EXT_REG = 1<<23, IS_TIMINT = 1<<22, IS_MAC1 = 1<<21, IS_LNK_SYNC_M1 = 1<<20,
  IS_MAC2 = 1<<19, IS_LNK_SYNC_M2 = 1<<18, IS_R1_B = 1<<17, IS_R1_F = 1<<16,
  IS_R1_C = 1<<15, IS_R2_B = 1<<14, IS_R2_F = 1<<13, IS_R2_C = 1<<12,
  IS_XS1_B = 1<<11, IS_XS1_F = 1<<10, IS_XS1_C = 1<<9, IS_XA1_B = 1<<8,
  IS_XA1_F = 1<<7, IS_XA1_C = 1<<6, IS_XS2_B = 1<<5, IS_XS2_F = 1<<4,
  IS_XS2_C = 1<<3, IS_XA2_B = 1<<2, IS_XA2_F = 1<<1, IS_XA2_C = 1<<0,
  IS_TO_PORT1 = IS_PA_TO_RX1 | IS_PA_TO_TX1, IS_TO_PORT2 = IS_PA_TO_RX2 | IS_PA_TO_TX2, IS_PORT_1 = IS_XA1_F| IS_R1_F | IS_TO_PORT1 | IS_MAC1, IS_PORT_2 = IS_XA2_F| IS_R2_F | IS_TO_PORT2 | IS_MAC2
}
 
enum  {
  IS_IRQ_TIST_OV = 1<<13, IS_IRQ_SENSOR = 1<<12, IS_IRQ_MST_ERR = 1<<11, IS_IRQ_STAT = 1<<10,
  IS_NO_STAT_M1 = 1<<9, IS_NO_STAT_M2 = 1<<8, IS_NO_TIST_M1 = 1<<7, IS_NO_TIST_M2 = 1<<6,
  IS_RAM_RD_PAR = 1<<5, IS_RAM_WR_PAR = 1<<4, IS_M1_PAR_ERR = 1<<3, IS_M2_PAR_ERR = 1<<2,
  IS_R1_PAR_ERR = 1<<1, IS_R2_PAR_ERR = 1<<0, IS_ERR_MSK
}
 
enum  {
  TST_FRC_DPERR_MR = 1<<7, TST_FRC_DPERR_MW = 1<<6, TST_FRC_DPERR_TR = 1<<5, TST_FRC_DPERR_TW = 1<<4,
  TST_FRC_APERR_M = 1<<3, TST_FRC_APERR_T = 1<<2, TST_CFG_WRITE_ON = 1<<1, TST_CFG_WRITE_OFF = 1<<0
}
 
enum  { CFG_CHIP_R_MSK = 0xf<<4, CFG_DIS_M2_CLK = 1<<1, CFG_SNG_MAC = 1<<0 }
 
enum  {
  CHIP_ID_GENESIS = 0x0a, CHIP_ID_YUKON = 0xb0, CHIP_ID_YUKON_LITE = 0xb1, CHIP_ID_YUKON_LP = 0xb2,
  CHIP_ID_YUKON_XL = 0xb3, CHIP_ID_YUKON_EC = 0xb6, CHIP_ID_YUKON_FE = 0xb7, CHIP_REV_YU_LITE_A1 = 3,
  CHIP_REV_YU_LITE_A3 = 7
}
 
enum  { TIM_START = 1<<2, TIM_STOP = 1<<1, TIM_CLR_IRQ = 1<<0 }
 
enum  { TIM_T_ON = 1<<2, TIM_T_OFF = 1<<1, TIM_T_STEP = 1<<0 }
 
enum  {
  GP_DIR_9 = 1<<25, GP_DIR_8 = 1<<24, GP_DIR_7 = 1<<23, GP_DIR_6 = 1<<22,
  GP_DIR_5 = 1<<21, GP_DIR_4 = 1<<20, GP_DIR_3 = 1<<19, GP_DIR_2 = 1<<18,
  GP_DIR_1 = 1<<17, GP_DIR_0 = 1<<16, GP_IO_9 = 1<<9, GP_IO_8 = 1<<8,
  GP_IO_7 = 1<<7, GP_IO_6 = 1<<6, GP_IO_5 = 1<<5, GP_IO_4 = 1<<4,
  GP_IO_3 = 1<<3, GP_IO_2 = 1<<2, GP_IO_1 = 1<<1, GP_IO_0 = 1<<0
}
 
enum  {
  BMU_OWN = 1<<31, BMU_STF = 1<<30, BMU_EOF = 1<<29, BMU_IRQ_EOB = 1<<28,
  BMU_IRQ_EOF = 1<<27, BMU_STFWD = 1<<26, BMU_NO_FCS = 1<<25, BMU_SW = 1<<24,
  BMU_DEV_0 = 1<<26, BMU_STAT_VAL = 1<<25, BMU_TIST_VAL = 1<<24, BMU_CHECK = 0x55<<16,
  BMU_TCP_CHECK = 0x56<<16, BMU_UDP_CHECK = 0x57<<16, BMU_BBC = 0xffffL
}
 
enum  { BSC_START = 1<<1, BSC_STOP = 1<<0 }
 
enum  { BSC_SRC = 1<<0 }
 
enum  { BSC_T_ON = 1<<2, BSC_T_OFF = 1<<1, BSC_T_STEP = 1<<0 }
 
enum  { RI_CLR_RD_PERR = 1<<9, RI_CLR_WR_PERR = 1<<8, RI_RST_CLR = 1<<1, RI_RST_SET = 1<<0 }
 
enum  { MA_FOE_ON = 1<<3, MA_FOE_OFF = 1<<2, MA_RST_CLR = 1<<1, MA_RST_SET = 1<<0 }
 
enum  {
  PA_CLR_TO_TX2 = 1<<13, PA_CLR_TO_TX1 = 1<<12, PA_CLR_TO_RX2 = 1<<11, PA_CLR_TO_RX1 = 1<<10,
  PA_ENA_TO_TX2 = 1<<9, PA_DIS_TO_TX2 = 1<<8, PA_ENA_TO_TX1 = 1<<7, PA_DIS_TO_TX1 = 1<<6,
  PA_ENA_TO_RX2 = 1<<5, PA_DIS_TO_RX2 = 1<<4, PA_ENA_TO_RX1 = 1<<3, PA_DIS_TO_RX1 = 1<<2,
  PA_RST_CLR = 1<<1, PA_RST_SET = 1<<0
}
 
enum  {
  TXA_ENA_FSYNC = 1<<7, TXA_DIS_FSYNC = 1<<6, TXA_ENA_ALLOC = 1<<5, TXA_DIS_ALLOC = 1<<4,
  TXA_START_RC = 1<<3, TXA_STOP_RC = 1<<2, TXA_ENA_ARB = 1<<1, TXA_DIS_ARB = 1<<0
}
 
enum  {
  TXA_ITI_INI = 0x0200, TXA_ITI_VAL = 0x0204, TXA_LIM_INI = 0x0208, TXA_LIM_VAL = 0x020c,
  TXA_CTRL = 0x0210, TXA_TEST = 0x0211, TXA_STAT = 0x0212
}
 
enum  {
  B6_EXT_REG = 0x0300, B7_CFG_SPC = 0x0380, B8_RQ1_REGS = 0x0400, B8_RQ2_REGS = 0x0480,
  B8_TS1_REGS = 0x0600, B8_TA1_REGS = 0x0680, B8_TS2_REGS = 0x0700, B8_TA2_REGS = 0x0780,
  B16_RAM_REGS = 0x0800
}
 
enum  {
  B8_Q_REGS = 0x0400, Q_D = 0x00, Q_DA_L = 0x20, Q_DA_H = 0x24,
  Q_AC_L = 0x28, Q_AC_H = 0x2c, Q_BC = 0x30, Q_CSR = 0x34,
  Q_F = 0x38, Q_T1 = 0x3c, Q_T1_TR = 0x3c, Q_T1_WR = 0x3d,
  Q_T1_RD = 0x3e, Q_T1_SV = 0x3f, Q_T2 = 0x40, Q_T3 = 0x44
}
 
enum  {
  RB_START = 0x00, RB_END = 0x04, RB_WP = 0x08, RB_RP = 0x0c,
  RB_RX_UTPP = 0x10, RB_RX_LTPP = 0x14, RB_RX_UTHP = 0x18, RB_RX_LTHP = 0x1c,
  RB_PC = 0x20, RB_LEV = 0x24, RB_CTRL = 0x28, RB_TST1 = 0x29,
  RB_TST2 = 0x2a
}
 
enum  {
  Q_R1 = 0x0000, Q_R2 = 0x0080, Q_XS1 = 0x0200, Q_XA1 = 0x0280,
  Q_XS2 = 0x0300, Q_XA2 = 0x0380
}
 
enum  { SK_MAC_XMAC = 0, SK_MAC_GMAC = 1 }
 
enum  {
  SK_PHY_XMAC = 0, SK_PHY_BCOM = 1, SK_PHY_LONE = 2, SK_PHY_NAT = 3,
  SK_PHY_MARV_COPPER = 4, SK_PHY_MARV_FIBER = 5
}
 
enum  { PHY_ADDR_XMAC = 0<<8, PHY_ADDR_BCOM = 1<<8, PHY_ADDR_MARV = 0 }
 
enum  {
  RX_MFF_EA = 0x0c00, RX_MFF_WP = 0x0c04, RX_MFF_RP = 0x0c0c, RX_MFF_PC = 0x0c10,
  RX_MFF_LEV = 0x0c14, RX_MFF_CTRL1 = 0x0c18, RX_MFF_STAT_TO = 0x0c1a, RX_MFF_TIST_TO = 0x0c1b,
  RX_MFF_CTRL2 = 0x0c1c, RX_MFF_TST1 = 0x0c1d, RX_MFF_TST2 = 0x0c1e, RX_LED_INI = 0x0c20,
  RX_LED_VAL = 0x0c24, RX_LED_CTRL = 0x0c28, RX_LED_TST = 0x0c29, LNK_SYNC_INI = 0x0c30,
  LNK_SYNC_VAL = 0x0c34, LNK_SYNC_CTRL = 0x0c38, LNK_SYNC_TST = 0x0c39, LNK_LED_REG = 0x0c3c
}
 
enum  {
  MFF_ENA_RDY_PAT = 1<<13, MFF_DIS_RDY_PAT = 1<<12, MFF_ENA_TIM_PAT = 1<<11, MFF_DIS_TIM_PAT = 1<<10,
  MFF_ENA_ALM_FUL = 1<<9, MFF_DIS_ALM_FUL = 1<<8, MFF_ENA_PAUSE = 1<<7, MFF_DIS_PAUSE = 1<<6,
  MFF_ENA_FLUSH = 1<<5, MFF_DIS_FLUSH = 1<<4, MFF_ENA_TIST = 1<<3, MFF_DIS_TIST = 1<<2,
  MFF_CLR_INTIST = 1<<1, MFF_CLR_INSTAT = 1<<0, MFF_RX_CTRL_DEF = MFF_ENA_TIM_PAT
}
 
enum  {
  MFF_CLR_PERR = 1<<15, MFF_ENA_PKT_REC = 1<<13, MFF_DIS_PKT_REC = 1<<12, MFF_ENA_W4E = 1<<7,
  MFF_DIS_W4E = 1<<6, MFF_ENA_LOOPB = 1<<3, MFF_DIS_LOOPB = 1<<2, MFF_CLR_MAC_RST = 1<<1,
  MFF_SET_MAC_RST = 1<<0, MFF_TX_CTRL_DEF = MFF_ENA_PKT_REC | (u16) MFF_ENA_TIM_PAT | MFF_ENA_FLUSH
}
 
enum  {
  MFF_WSP_T_ON = 1<<6, MFF_WSP_T_OFF = 1<<5, MFF_WSP_INC = 1<<4, MFF_PC_DEC = 1<<3,
  MFF_PC_T_ON = 1<<2, MFF_PC_T_OFF = 1<<1, MFF_PC_INC = 1<<0
}
 
enum  {
  MFF_WP_T_ON = 1<<6, MFF_WP_T_OFF = 1<<5, MFF_WP_INC = 1<<4, MFF_RP_T_ON = 1<<2,
  MFF_RP_T_OFF = 1<<1, MFF_RP_DEC = 1<<0
}
 
enum  { MFF_ENA_OP_MD = 1<<3, MFF_DIS_OP_MD = 1<<2, MFF_RST_CLR = 1<<1, MFF_RST_SET = 1<<0 }
 
enum  { LED_START = 1<<2, LED_STOP = 1<<1, LED_STATE = 1<<0 }
 
enum  { LED_T_ON = 1<<2, LED_T_OFF = 1<<1, LED_T_STEP = 1<<0 }
 
enum  {
  LED_BLK_ON = 1<<5, LED_BLK_OFF = 1<<4, LED_SYNC_ON = 1<<3, LED_SYNC_OFF = 1<<2,
  LED_ON = 1<<1, LED_OFF = 1<<0
}
 
enum  {
  RX_GMF_EA = 0x0c40, RX_GMF_AF_THR = 0x0c44, RX_GMF_CTRL_T = 0x0c48, RX_GMF_FL_MSK = 0x0c4c,
  RX_GMF_FL_THR = 0x0c50, RX_GMF_WP = 0x0c60, RX_GMF_WLEV = 0x0c68, RX_GMF_RP = 0x0c70,
  RX_GMF_RLEV = 0x0c78
}
 
enum  {
  TXA_INT_T_ON = 1<<5, TXA_INT_T_OFF = 1<<4, TXA_INT_T_STEP = 1<<3, TXA_LIM_T_ON = 1<<2,
  TXA_LIM_T_OFF = 1<<1, TXA_LIM_T_STEP = 1<<0
}
 
enum  { TXA_PRIO_XS = 1<<0 }
 
enum  {
  CSR_SV_IDLE = 1<<24, CSR_DESC_CLR = 1<<21, CSR_DESC_SET = 1<<20, CSR_FIFO_CLR = 1<<19,
  CSR_FIFO_SET = 1<<18, CSR_HPI_RUN = 1<<17, CSR_HPI_RST = 1<<16, CSR_SV_RUN = 1<<15,
  CSR_SV_RST = 1<<14, CSR_DREAD_RUN = 1<<13, CSR_DREAD_RST = 1<<12, CSR_DWRITE_RUN = 1<<11,
  CSR_DWRITE_RST = 1<<10, CSR_TRANS_RUN = 1<<9, CSR_TRANS_RST = 1<<8, CSR_ENA_POL = 1<<7,
  CSR_DIS_POL = 1<<6, CSR_STOP = 1<<5, CSR_START = 1<<4, CSR_IRQ_CL_P = 1<<3,
  CSR_IRQ_CL_B = 1<<2, CSR_IRQ_CL_F = 1<<1, CSR_IRQ_CL_C = 1<<0
}
 
enum  {
  F_ALM_FULL = 1<<27, F_EMPTY = 1<<27, F_FIFO_EOF = 1<<26, F_WM_REACHED = 1<<25,
  F_FIFO_LEVEL = 0x1fL<<16, F_WATER_MARK = 0x0007ffL
}
 
enum  {
  RB_ENA_STFWD = 1<<5, RB_DIS_STFWD = 1<<4, RB_ENA_OP_MD = 1<<3, RB_DIS_OP_MD = 1<<2,
  RB_RST_CLR = 1<<1, RB_RST_SET = 1<<0
}
 
enum  {
  TX_MFF_EA = 0x0d00, TX_MFF_WP = 0x0d04, TX_MFF_WSP = 0x0d08, TX_MFF_RP = 0x0d0c,
  TX_MFF_PC = 0x0d10, TX_MFF_LEV = 0x0d14, TX_MFF_CTRL1 = 0x0d18, TX_MFF_WAF = 0x0d1a,
  TX_MFF_CTRL2 = 0x0d1c, TX_MFF_TST1 = 0x0d1d, TX_MFF_TST2 = 0x0d1e, TX_LED_INI = 0x0d20,
  TX_LED_VAL = 0x0d24, TX_LED_CTRL = 0x0d28, TX_LED_TST = 0x0d29
}
 
enum  {
  TX_GMF_EA = 0x0d40, TX_GMF_AE_THR = 0x0d44, TX_GMF_CTRL_T = 0x0d48, TX_GMF_WP = 0x0d60,
  TX_GMF_WSP = 0x0d64, TX_GMF_WLEV = 0x0d68, TX_GMF_RP = 0x0d70, TX_GMF_RSTP = 0x0d74,
  TX_GMF_RLEV = 0x0d78, B28_DPT_INI = 0x0e00, B28_DPT_VAL = 0x0e04, B28_DPT_CTRL = 0x0e08,
  B28_DPT_TST = 0x0e0a, GMAC_TI_ST_VAL = 0x0e14, GMAC_TI_ST_CTRL = 0x0e18, GMAC_TI_ST_TST = 0x0e1a
}
 
enum  {
  LINKLED_OFF = 0x01, LINKLED_ON = 0x02, LINKLED_LINKSYNC_OFF = 0x04, LINKLED_LINKSYNC_ON = 0x08,
  LINKLED_BLINK_OFF = 0x10, LINKLED_BLINK_ON = 0x20
}
 
enum  {
  GMAC_CTRL = 0x0f00, GPHY_CTRL = 0x0f04, GMAC_IRQ_SRC = 0x0f08, GMAC_IRQ_MSK = 0x0f0c,
  GMAC_LINK_CTRL = 0x0f10, WOL_REG_OFFS = 0x20, WOL_CTRL_STAT = 0x0f20, WOL_MATCH_CTL = 0x0f22,
  WOL_MATCH_RES = 0x0f23, WOL_MAC_ADDR = 0x0f24, WOL_PATT_RPTR = 0x0f2c, WOL_PATT_LEN_LO = 0x0f30,
  WOL_PATT_LEN_HI = 0x0f34, WOL_PATT_CNT_0 = 0x0f38, WOL_PATT_CNT_4 = 0x0f3c
}
 
enum  { WOL_PATT_RAM_1 = 0x1000, WOL_PATT_RAM_2 = 0x1400 }
 
enum  { BASE_XMAC_1 = 0x2000, BASE_GMAC_1 = 0x2800, BASE_XMAC_2 = 0x3000, BASE_GMAC_2 = 0x3800 }
 
enum  {
  XMR_FS_LEN = 0x3fff<<18, XMR_FS_LEN_SHIFT = 18, XMR_FS_2L_VLAN = 1<<17, XMR_FS_1_VLAN = 1<<16,
  XMR_FS_BC = 1<<15, XMR_FS_MC = 1<<14, XMR_FS_UC = 1<<13, XMR_FS_BURST = 1<<11,
  XMR_FS_CEX_ERR = 1<<10, XMR_FS_802_3 = 1<<9, XMR_FS_COL_ERR = 1<<8, XMR_FS_CAR_ERR = 1<<7,
  XMR_FS_LEN_ERR = 1<<6, XMR_FS_FRA_ERR = 1<<5, XMR_FS_RUNT = 1<<4, XMR_FS_LNG_ERR = 1<<3,
  XMR_FS_FCS_ERR = 1<<2, XMR_FS_ERR = 1<<1, XMR_FS_MCTRL = 1<<0
}
 
enum  {
  PHY_XMAC_CTRL = 0x00, PHY_XMAC_STAT = 0x01, PHY_XMAC_ID0 = 0x02, PHY_XMAC_ID1 = 0x03,
  PHY_XMAC_AUNE_ADV = 0x04, PHY_XMAC_AUNE_LP = 0x05, PHY_XMAC_AUNE_EXP = 0x06, PHY_XMAC_NEPG = 0x07,
  PHY_XMAC_NEPG_LP = 0x08, PHY_XMAC_EXT_STAT = 0x0f, PHY_XMAC_RES_ABI = 0x10
}
 
enum  {
  PHY_BCOM_CTRL = 0x00, PHY_BCOM_STAT = 0x01, PHY_BCOM_ID0 = 0x02, PHY_BCOM_ID1 = 0x03,
  PHY_BCOM_AUNE_ADV = 0x04, PHY_BCOM_AUNE_LP = 0x05, PHY_BCOM_AUNE_EXP = 0x06, PHY_BCOM_NEPG = 0x07,
  PHY_BCOM_NEPG_LP = 0x08, PHY_BCOM_1000T_CTRL = 0x09, PHY_BCOM_1000T_STAT = 0x0a, PHY_BCOM_EXT_STAT = 0x0f,
  PHY_BCOM_P_EXT_CTRL = 0x10, PHY_BCOM_P_EXT_STAT = 0x11, PHY_BCOM_RE_CTR = 0x12, PHY_BCOM_FC_CTR = 0x13,
  PHY_BCOM_RNO_CTR = 0x14, PHY_BCOM_AUX_CTRL = 0x18, PHY_BCOM_AUX_STAT = 0x19, PHY_BCOM_INT_STAT = 0x1a,
  PHY_BCOM_INT_MASK = 0x1b
}
 
enum  {
  PHY_MARV_CTRL = 0x00, PHY_MARV_STAT = 0x01, PHY_MARV_ID0 = 0x02, PHY_MARV_ID1 = 0x03,
  PHY_MARV_AUNE_ADV = 0x04, PHY_MARV_AUNE_LP = 0x05, PHY_MARV_AUNE_EXP = 0x06, PHY_MARV_NEPG = 0x07,
  PHY_MARV_NEPG_LP = 0x08, PHY_MARV_1000T_CTRL = 0x09, PHY_MARV_1000T_STAT = 0x0a, PHY_MARV_EXT_STAT = 0x0f,
  PHY_MARV_PHY_CTRL = 0x10, PHY_MARV_PHY_STAT = 0x11, PHY_MARV_INT_MASK = 0x12, PHY_MARV_INT_STAT = 0x13,
  PHY_MARV_EXT_CTRL = 0x14, PHY_MARV_RXE_CNT = 0x15, PHY_MARV_EXT_ADR = 0x16, PHY_MARV_PORT_IRQ = 0x17,
  PHY_MARV_LED_CTRL = 0x18, PHY_MARV_LED_OVER = 0x19, PHY_MARV_EXT_CTRL_2 = 0x1a, PHY_MARV_EXT_P_STAT = 0x1b,
  PHY_MARV_CABLE_DIAG = 0x1c, PHY_MARV_PAGE_ADDR = 0x1d, PHY_MARV_PAGE_DATA = 0x1e, PHY_MARV_FE_LED_PAR = 0x16,
  PHY_MARV_FE_LED_SER = 0x17, PHY_MARV_FE_VCT_TX = 0x1a, PHY_MARV_FE_VCT_RX = 0x1b, PHY_MARV_FE_SPEC_2 = 0x1c
}
 
enum  {
  PHY_CT_RESET = 1<<15, PHY_CT_LOOP = 1<<14, PHY_CT_SPS_LSB = 1<<13, PHY_CT_ANE = 1<<12,
  PHY_CT_PDOWN = 1<<11, PHY_CT_ISOL = 1<<10, PHY_CT_RE_CFG = 1<<9, PHY_CT_DUP_MD = 1<<8,
  PHY_CT_COL_TST = 1<<7, PHY_CT_SPS_MSB = 1<<6
}
 
enum  { PHY_CT_SP1000 = PHY_CT_SPS_MSB, PHY_CT_SP100 = PHY_CT_SPS_LSB, PHY_CT_SP10 = 0 }
 
enum  {
  PHY_ST_EXT_ST = 1<<8, PHY_ST_PRE_SUP = 1<<6, PHY_ST_AN_OVER = 1<<5, PHY_ST_REM_FLT = 1<<4,
  PHY_ST_AN_CAP = 1<<3, PHY_ST_LSYNC = 1<<2, PHY_ST_JAB_DET = 1<<1, PHY_ST_EXT_REG = 1<<0
}
 
enum  { PHY_I1_OUI_MSK = 0x3f<<10, PHY_I1_MOD_NUM = 0x3f<<4, PHY_I1_REV_MSK = 0xf }
 
enum  { PHY_BCOM_ID1_A1 = 0x6041, PHY_BCOM_ID1_B2 = 0x6043, PHY_BCOM_ID1_C0 = 0x6044, PHY_BCOM_ID1_C5 = 0x6047 }
 
enum  {
  PHY_MARV_ID0_VAL = 0x0141, PHY_MARV_ID1_B0 = 0x0C23, PHY_MARV_ID1_B2 = 0x0C25, PHY_MARV_ID1_C2 = 0x0CC2,
  PHY_MARV_ID1_Y2 = 0x0C91
}
 
enum  {
  PHY_AN_NXT_PG = 1<<15, PHY_AN_ACK = 1<<14, PHY_AN_RF = 1<<13, PHY_AN_PAUSE_ASYM = 1<<11,
  PHY_AN_PAUSE_CAP = 1<<10, PHY_AN_100BASE4 = 1<<9, PHY_AN_100FULL = 1<<8, PHY_AN_100HALF = 1<<7,
  PHY_AN_10FULL = 1<<6, PHY_AN_10HALF = 1<<5, PHY_AN_CSMA = 1<<0, PHY_AN_SEL = 0x1f,
  PHY_AN_FULL = PHY_AN_100FULL | PHY_AN_10FULL | PHY_AN_CSMA, PHY_AN_ALL
}
 
enum  {
  PHY_X_AN_NXT_PG = 1<<15, PHY_X_AN_ACK = 1<<14, PHY_X_AN_RFB = 3<<12, PHY_X_AN_PAUSE = 3<<7,
  PHY_X_AN_HD = 1<<6, PHY_X_AN_FD = 1<<5
}
 
enum  { PHY_X_P_NO_PAUSE = 0<<7, PHY_X_P_SYM_MD = 1<<7, PHY_X_P_ASYM_MD = 2<<7, PHY_X_P_BOTH_MD = 3<<7 }
 
enum  { PHY_X_EX_FD = 1<<15, PHY_X_EX_HD = 1<<14 }
 
enum  {
  PHY_X_RS_PAUSE = 3<<7, PHY_X_RS_HD = 1<<6, PHY_X_RS_FD = 1<<5, PHY_X_RS_ABLMIS = 1<<4,
  PHY_X_RS_PAUMIS = 1<<3
}
 
enum  { X_RFB_OK = 0<<12, X_RFB_LF = 1<<12, X_RFB_OFF = 2<<12, X_RFB_AN_ERR = 3<<12 }
 
enum  {
  PHY_B_1000C_TEST = 7<<13, PHY_B_1000C_MSE = 1<<12, PHY_B_1000C_MSC = 1<<11, PHY_B_1000C_RD = 1<<10,
  PHY_B_1000C_AFD = 1<<9, PHY_B_1000C_AHD = 1<<8
}
 
enum  {
  PHY_B_1000S_MSF = 1<<15, PHY_B_1000S_MSR = 1<<14, PHY_B_1000S_LRS = 1<<13, PHY_B_1000S_RRS = 1<<12,
  PHY_B_1000S_LP_FD = 1<<11, PHY_B_1000S_LP_HD = 1<<10, PHY_B_1000S_IEC = 0xff
}
 
enum  { PHY_B_ES_X_FD_CAP = 1<<15, PHY_B_ES_X_HD_CAP = 1<<14, PHY_B_ES_T_FD_CAP = 1<<13, PHY_B_ES_T_HD_CAP = 1<<12 }
 
enum  {
  PHY_B_PEC_MAC_PHY = 1<<15, PHY_B_PEC_DIS_CROSS = 1<<14, PHY_B_PEC_TX_DIS = 1<<13, PHY_B_PEC_INT_DIS = 1<<12,
  PHY_B_PEC_F_INT = 1<<11, PHY_B_PEC_BY_45 = 1<<10, PHY_B_PEC_BY_SCR = 1<<9, PHY_B_PEC_BY_MLT3 = 1<<8,
  PHY_B_PEC_BY_RXA = 1<<7, PHY_B_PEC_RES_SCR = 1<<6, PHY_B_PEC_EN_LTR = 1<<5, PHY_B_PEC_LED_ON = 1<<4,
  PHY_B_PEC_LED_OFF = 1<<3, PHY_B_PEC_EX_IPG = 1<<2, PHY_B_PEC_3_LED = 1<<1, PHY_B_PEC_HIGH_LA = 1<<0
}
 
enum  {
  PHY_B_PES_CROSS_STAT = 1<<13, PHY_B_PES_INT_STAT = 1<<12, PHY_B_PES_RRS = 1<<11, PHY_B_PES_LRS = 1<<10,
  PHY_B_PES_LOCKED = 1<<9, PHY_B_PES_LS = 1<<8, PHY_B_PES_RF = 1<<7, PHY_B_PES_CE_ER = 1<<6,
  PHY_B_PES_BAD_SSD = 1<<5, PHY_B_PES_BAD_ESD = 1<<4, PHY_B_PES_RX_ER = 1<<3, PHY_B_PES_TX_ER = 1<<2,
  PHY_B_PES_LOCK_ER = 1<<1, PHY_B_PES_MLT3_ER = 1<<0
}
 
enum  { PHY_B_AN_RF = 1<<13, PHY_B_AN_ASP = 1<<11, PHY_B_AN_PC = 1<<10 }
 
enum  {
  PHY_B_FC_CTR = 0xff, PHY_B_RC_LOC_MSK = 0xff00, PHY_B_RC_REM_MSK = 0x00ff, PHY_B_AC_L_SQE = 1<<15,
  PHY_B_AC_LONG_PACK = 1<<14, PHY_B_AC_ER_CTRL = 3<<12, PHY_B_AC_TX_TST = 1<<10, PHY_B_AC_DIS_PRF = 1<<7,
  PHY_B_AC_DIS_PM = 1<<5, PHY_B_AC_DIAG = 1<<3
}
 
enum  {
  PHY_B_AS_AN_C = 1<<15, PHY_B_AS_AN_CA = 1<<14, PHY_B_AS_ANACK_D = 1<<13, PHY_B_AS_ANAB_D = 1<<12,
  PHY_B_AS_NPW = 1<<11, PHY_B_AS_AN_RES_MSK = 7<<8, PHY_B_AS_PDF = 1<<7, PHY_B_AS_RF = 1<<6,
  PHY_B_AS_ANP_R = 1<<5, PHY_B_AS_LP_ANAB = 1<<4, PHY_B_AS_LP_NPAB = 1<<3, PHY_B_AS_LS = 1<<2,
  PHY_B_AS_PRR = 1<<1, PHY_B_AS_PRT = 1<<0
}
 
enum  {
  PHY_B_IS_PSE = 1<<14, PHY_B_IS_MDXI_SC = 1<<13, PHY_B_IS_HCT = 1<<12, PHY_B_IS_LCT = 1<<11,
  PHY_B_IS_AN_PR = 1<<10, PHY_B_IS_NO_HDCL = 1<<9, PHY_B_IS_NO_HDC = 1<<8, PHY_B_IS_NEG_USHDC = 1<<7,
  PHY_B_IS_SCR_S_ER = 1<<6, PHY_B_IS_RRS_CHANGE = 1<<5, PHY_B_IS_LRS_CHANGE = 1<<4, PHY_B_IS_DUP_CHANGE = 1<<3,
  PHY_B_IS_LSP_CHANGE = 1<<2, PHY_B_IS_LST_CHANGE = 1<<1, PHY_B_IS_CRC_ER = 1<<0
}
 
enum  { PHY_B_P_NO_PAUSE = 0<<10, PHY_B_P_SYM_MD = 1<<10, PHY_B_P_ASYM_MD = 2<<10, PHY_B_P_BOTH_MD = 3<<10 }
 
enum  { PHY_B_RES_1000FD = 7<<8, PHY_B_RES_1000HD = 6<<8 }
 
enum  {
  PHY_M_AN_NXT_PG = 1<<15, PHY_M_AN_ACK = 1<<14, PHY_M_AN_RF = 1<<13, PHY_M_AN_ASP = 1<<11,
  PHY_M_AN_PC = 1<<10, PHY_M_AN_100_T4 = 1<<9, PHY_M_AN_100_FD = 1<<8, PHY_M_AN_100_HD = 1<<7,
  PHY_M_AN_10_FD = 1<<6, PHY_M_AN_10_HD = 1<<5, PHY_M_AN_SEL_MSK =0x1f<<4
}
 Marvell-Specific. More...
 
enum  { PHY_M_AN_ASP_X = 1<<8, PHY_M_AN_PC_X = 1<<7, PHY_M_AN_1000X_AHD = 1<<6, PHY_M_AN_1000X_AFD = 1<<5 }
 
enum  { PHY_M_P_NO_PAUSE_X = 0<<7, PHY_M_P_SYM_MD_X = 1<<7, PHY_M_P_ASYM_MD_X = 2<<7, PHY_M_P_BOTH_MD_X = 3<<7 }
 
enum  {
  PHY_M_1000C_TEST = 7<<13, PHY_M_1000C_MSE = 1<<12, PHY_M_1000C_MSC = 1<<11, PHY_M_1000C_MPD = 1<<10,
  PHY_M_1000C_AFD = 1<<9, PHY_M_1000C_AHD = 1<<8
}
 
enum  {
  PHY_M_PC_TX_FFD_MSK = 3<<14, PHY_M_PC_RX_FFD_MSK = 3<<12, PHY_M_PC_ASS_CRS_TX = 1<<11, PHY_M_PC_FL_GOOD = 1<<10,
  PHY_M_PC_EN_DET_MSK = 3<<8, PHY_M_PC_ENA_EXT_D = 1<<7, PHY_M_PC_MDIX_MSK = 3<<5, PHY_M_PC_DIS_125CLK = 1<<4,
  PHY_M_PC_MAC_POW_UP = 1<<3, PHY_M_PC_SQE_T_ENA = 1<<2, PHY_M_PC_POL_R_DIS = 1<<1, PHY_M_PC_DIS_JABBER = 1<<0
}
 
enum  { PHY_M_PC_EN_DET = 2<<8, PHY_M_PC_EN_DET_PLUS = 3<<8 }
 
enum  { PHY_M_PC_MAN_MDI = 0, PHY_M_PC_MAN_MDIX = 1, PHY_M_PC_ENA_AUTO = 3 }
 
enum  {
  PHY_M_PC_ENA_DTE_DT = 1<<15, PHY_M_PC_ENA_ENE_DT = 1<<14, PHY_M_PC_DIS_NLP_CK = 1<<13, PHY_M_PC_ENA_LIP_NP = 1<<12,
  PHY_M_PC_DIS_NLP_GN = 1<<11, PHY_M_PC_DIS_SCRAMB = 1<<9, PHY_M_PC_DIS_FEFI = 1<<8, PHY_M_PC_SH_TP_SEL = 1<<6,
  PHY_M_PC_RX_FD_MSK = 3<<2
}
 
enum  {
  PHY_M_PS_SPEED_MSK = 3<<14, PHY_M_PS_SPEED_1000 = 1<<15, PHY_M_PS_SPEED_100 = 1<<14, PHY_M_PS_SPEED_10 = 0,
  PHY_M_PS_FULL_DUP = 1<<13, PHY_M_PS_PAGE_REC = 1<<12, PHY_M_PS_SPDUP_RES = 1<<11, PHY_M_PS_LINK_UP = 1<<10,
  PHY_M_PS_CABLE_MSK = 7<<7, PHY_M_PS_MDI_X_STAT = 1<<6, PHY_M_PS_DOWNS_STAT = 1<<5, PHY_M_PS_ENDET_STAT = 1<<4,
  PHY_M_PS_TX_P_EN = 1<<3, PHY_M_PS_RX_P_EN = 1<<2, PHY_M_PS_POL_REV = 1<<1, PHY_M_PS_JABBER = 1<<0
}
 
enum  { PHY_M_PS_DTE_DETECT = 1<<15, PHY_M_PS_RES_SPEED = 1<<14 }
 
enum  {
  PHY_M_IS_AN_ERROR = 1<<15, PHY_M_IS_LSP_CHANGE = 1<<14, PHY_M_IS_DUP_CHANGE = 1<<13, PHY_M_IS_AN_PR = 1<<12,
  PHY_M_IS_AN_COMPL = 1<<11, PHY_M_IS_LST_CHANGE = 1<<10, PHY_M_IS_SYMB_ERROR = 1<<9, PHY_M_IS_FALSE_CARR = 1<<8,
  PHY_M_IS_FIFO_ERROR = 1<<7, PHY_M_IS_MDI_CHANGE = 1<<6, PHY_M_IS_DOWNSH_DET = 1<<5, PHY_M_IS_END_CHANGE = 1<<4,
  PHY_M_IS_DTE_CHANGE = 1<<2, PHY_M_IS_POL_CHANGE = 1<<1, PHY_M_IS_JABBER = 1<<0, PHY_M_IS_DEF_MSK,
  PHY_M_IS_AN_MSK = PHY_M_IS_AN_ERROR | PHY_M_IS_AN_COMPL
}
 
enum  {
  PHY_M_EC_ENA_BC_EXT = 1<<15, PHY_M_EC_ENA_LIN_LB = 1<<14, PHY_M_EC_DIS_LINK_P = 1<<12, PHY_M_EC_M_DSC_MSK = 3<<10,
  PHY_M_EC_S_DSC_MSK = 3<<8, PHY_M_EC_M_DSC_MSK2 = 7<<9, PHY_M_EC_DOWN_S_ENA = 1<<8, PHY_M_EC_RX_TIM_CT = 1<<7,
  PHY_M_EC_MAC_S_MSK = 7<<4, PHY_M_EC_FIB_AN_ENA = 1<<3, PHY_M_EC_DTE_D_ENA = 1<<2, PHY_M_EC_TX_TIM_CT = 1<<1,
  PHY_M_EC_TRANS_DIS = 1<<0
}
 
enum  { MAC_TX_CLK_0_MHZ = 2, MAC_TX_CLK_2_5_MHZ = 6, MAC_TX_CLK_25_MHZ = 7 }
 
enum  {
  PHY_M_LEDC_DIS_LED = 1<<15, PHY_M_LEDC_PULS_MSK = 7<<12, PHY_M_LEDC_F_INT = 1<<11, PHY_M_LEDC_BL_R_MSK = 7<<8,
  PHY_M_LEDC_DP_C_LSB = 1<<7, PHY_M_LEDC_TX_C_LSB = 1<<6, PHY_M_LEDC_LK_C_MSK = 7<<3
}
 
enum  {
  PHY_M_LEDC_LINK_MSK = 3<<3, PHY_M_LEDC_DP_CTRL = 1<<2, PHY_M_LEDC_DP_C_MSB = 1<<2, PHY_M_LEDC_RX_CTRL = 1<<1,
  PHY_M_LEDC_TX_CTRL = 1<<0, PHY_M_LEDC_TX_C_MSB = 1<<0
}
 
enum  {
  PULS_NO_STR = 0, PULS_21MS = 1, PULS_42MS = 2, PULS_84MS = 3,
  PULS_170MS = 4, PULS_340MS = 5, PULS_670MS = 6, PULS_1300MS = 7
}
 
enum  {
  BLINK_42MS = 0, BLINK_84MS = 1, BLINK_170MS = 2, BLINK_340MS = 3,
  BLINK_670MS = 4
}
 
enum  { MO_LED_NORM = 0, MO_LED_BLINK = 1, MO_LED_OFF = 2, MO_LED_ON = 3 }
 
enum  {
  PHY_M_EC2_FI_IMPED = 1<<6, PHY_M_EC2_FO_IMPED = 1<<5, PHY_M_EC2_FO_M_CLK = 1<<4, PHY_M_EC2_FO_BOOST = 1<<3,
  PHY_M_EC2_FO_AM_MSK = 7
}
 
enum  {
  PHY_M_FC_AUTO_SEL = 1<<15, PHY_M_FC_AN_REG_ACC = 1<<14, PHY_M_FC_RESOLUTION = 1<<13, PHY_M_SER_IF_AN_BP = 1<<12,
  PHY_M_SER_IF_BP_ST = 1<<11, PHY_M_IRQ_POLARITY = 1<<10, PHY_M_DIS_AUT_MED = 1<<9, PHY_M_UNDOC1 = 1<<7,
  PHY_M_DTE_POW_STAT = 1<<4, PHY_M_MODE_MASK = 0xf
}
 
enum  {
  PHY_M_CABD_ENA_TEST = 1<<15, PHY_M_CABD_DIS_WAIT = 1<<15, PHY_M_CABD_STAT_MSK = 3<<13, PHY_M_CABD_AMPL_MSK = 0x1f<<8,
  PHY_M_CABD_DIST_MSK = 0xff
}
 
enum  { CABD_STAT_NORMAL = 0, CABD_STAT_SHORT = 1, CABD_STAT_OPEN = 2, CABD_STAT_FAIL = 3 }
 
enum  { PHY_M_FELP_LED2_MSK = 0xf<<8, PHY_M_FELP_LED1_MSK = 0xf<<4, PHY_M_FELP_LED0_MSK = 0xf }
 
enum  {
  LED_PAR_CTRL_COLX = 0x00, LED_PAR_CTRL_ERROR = 0x01, LED_PAR_CTRL_DUPLEX = 0x02, LED_PAR_CTRL_DP_COL = 0x03,
  LED_PAR_CTRL_SPEED = 0x04, LED_PAR_CTRL_LINK = 0x05, LED_PAR_CTRL_TX = 0x06, LED_PAR_CTRL_RX = 0x07,
  LED_PAR_CTRL_ACT = 0x08, LED_PAR_CTRL_LNK_RX = 0x09, LED_PAR_CTRL_LNK_AC = 0x0a, LED_PAR_CTRL_ACT_BL = 0x0b,
  LED_PAR_CTRL_TX_BL = 0x0c, LED_PAR_CTRL_RX_BL = 0x0d, LED_PAR_CTRL_COL_BL = 0x0e, LED_PAR_CTRL_INACT = 0x0f
}
 
enum  { PHY_M_FESC_DIS_WAIT = 1<<2, PHY_M_FESC_ENA_MCLK = 1<<1, PHY_M_FESC_SEL_CL_A = 1<<0 }
 
enum  { PHY_M_LEDC_LOS_MSK = 0xf<<12, PHY_M_LEDC_INIT_MSK = 0xf<<8, PHY_M_LEDC_STA1_MSK = 0xf<<4, PHY_M_LEDC_STA0_MSK = 0xf }
 
enum  {
  GM_GP_STAT = 0x0000, GM_GP_CTRL = 0x0004, GM_TX_CTRL = 0x0008, GM_RX_CTRL = 0x000c,
  GM_TX_FLOW_CTRL = 0x0010, GM_TX_PARAM = 0x0014, GM_SERIAL_MODE = 0x0018, GM_SRC_ADDR_1L = 0x001c,
  GM_SRC_ADDR_1M = 0x0020, GM_SRC_ADDR_1H = 0x0024, GM_SRC_ADDR_2L = 0x0028, GM_SRC_ADDR_2M = 0x002c,
  GM_SRC_ADDR_2H = 0x0030, GM_MC_ADDR_H1 = 0x0034, GM_MC_ADDR_H2 = 0x0038, GM_MC_ADDR_H3 = 0x003c,
  GM_MC_ADDR_H4 = 0x0040, GM_TX_IRQ_SRC = 0x0044, GM_RX_IRQ_SRC = 0x0048, GM_TR_IRQ_SRC = 0x004c,
  GM_TX_IRQ_MSK = 0x0050, GM_RX_IRQ_MSK = 0x0054, GM_TR_IRQ_MSK = 0x0058, GM_SMI_CTRL = 0x0080,
  GM_SMI_DATA = 0x0084, GM_PHY_ADDR = 0x0088
}
 
enum  {
  GM_RXF_UC_OK = GM_MIB_CNT_BASE + 0, GM_RXF_BC_OK = GM_MIB_CNT_BASE + 8, GM_RXF_MPAUSE = GM_MIB_CNT_BASE + 16, GM_RXF_MC_OK = GM_MIB_CNT_BASE + 24,
  GM_RXF_FCS_ERR = GM_MIB_CNT_BASE + 32, GM_RXO_OK_LO = GM_MIB_CNT_BASE + 48, GM_RXO_OK_HI = GM_MIB_CNT_BASE + 56, GM_RXO_ERR_LO = GM_MIB_CNT_BASE + 64,
  GM_RXO_ERR_HI = GM_MIB_CNT_BASE + 72, GM_RXF_SHT = GM_MIB_CNT_BASE + 80, GM_RXE_FRAG = GM_MIB_CNT_BASE + 88, GM_RXF_64B = GM_MIB_CNT_BASE + 96,
  GM_RXF_127B = GM_MIB_CNT_BASE + 104, GM_RXF_255B = GM_MIB_CNT_BASE + 112, GM_RXF_511B = GM_MIB_CNT_BASE + 120, GM_RXF_1023B = GM_MIB_CNT_BASE + 128,
  GM_RXF_1518B = GM_MIB_CNT_BASE + 136, GM_RXF_MAX_SZ = GM_MIB_CNT_BASE + 144, GM_RXF_LNG_ERR = GM_MIB_CNT_BASE + 152, GM_RXF_JAB_PKT = GM_MIB_CNT_BASE + 160,
  GM_RXE_FIFO_OV = GM_MIB_CNT_BASE + 176, GM_TXF_UC_OK = GM_MIB_CNT_BASE + 192, GM_TXF_BC_OK = GM_MIB_CNT_BASE + 200, GM_TXF_MPAUSE = GM_MIB_CNT_BASE + 208,
  GM_TXF_MC_OK = GM_MIB_CNT_BASE + 216, GM_TXO_OK_LO = GM_MIB_CNT_BASE + 224, GM_TXO_OK_HI = GM_MIB_CNT_BASE + 232, GM_TXF_64B = GM_MIB_CNT_BASE + 240,
  GM_TXF_127B = GM_MIB_CNT_BASE + 248, GM_TXF_255B = GM_MIB_CNT_BASE + 256, GM_TXF_511B = GM_MIB_CNT_BASE + 264, GM_TXF_1023B = GM_MIB_CNT_BASE + 272,
  GM_TXF_1518B = GM_MIB_CNT_BASE + 280, GM_TXF_MAX_SZ = GM_MIB_CNT_BASE + 288, GM_TXF_COL = GM_MIB_CNT_BASE + 304, GM_TXF_LAT_COL = GM_MIB_CNT_BASE + 312,
  GM_TXF_ABO_COL = GM_MIB_CNT_BASE + 320, GM_TXF_MUL_COL = GM_MIB_CNT_BASE + 328, GM_TXF_SNG_COL = GM_MIB_CNT_BASE + 336, GM_TXE_FIFO_UR = GM_MIB_CNT_BASE + 344
}
 
enum  {
  GM_GPSR_SPEED = 1<<15, GM_GPSR_DUPLEX = 1<<14, GM_GPSR_FC_TX_DIS = 1<<13, GM_GPSR_LINK_UP = 1<<12,
  GM_GPSR_PAUSE = 1<<11, GM_GPSR_TX_ACTIVE = 1<<10, GM_GPSR_EXC_COL = 1<<9, GM_GPSR_LAT_COL = 1<<8,
  GM_GPSR_PHY_ST_CH = 1<<5, GM_GPSR_GIG_SPEED = 1<<4, GM_GPSR_PART_MODE = 1<<3, GM_GPSR_FC_RX_DIS = 1<<2,
  GM_GPSR_PROM_EN = 1<<1
}
 
enum  {
  GM_GPCR_PROM_ENA = 1<<14, GM_GPCR_FC_TX_DIS = 1<<13, GM_GPCR_TX_ENA = 1<<12, GM_GPCR_RX_ENA = 1<<11,
  GM_GPCR_BURST_ENA = 1<<10, GM_GPCR_LOOP_ENA = 1<<9, GM_GPCR_PART_ENA = 1<<8, GM_GPCR_GIGS_ENA = 1<<7,
  GM_GPCR_FL_PASS = 1<<6, GM_GPCR_DUP_FULL = 1<<5, GM_GPCR_FC_RX_DIS = 1<<4, GM_GPCR_SPEED_100 = 1<<3,
  GM_GPCR_AU_DUP_DIS = 1<<2, GM_GPCR_AU_FCT_DIS = 1<<1, GM_GPCR_AU_SPD_DIS = 1<<0
}
 
enum  { GM_TXCR_FORCE_JAM = 1<<15, GM_TXCR_CRC_DIS = 1<<14, GM_TXCR_PAD_DIS = 1<<13, GM_TXCR_COL_THR_MSK = 7<<10 }
 
enum  { GM_RXCR_UCF_ENA = 1<<15, GM_RXCR_MCF_ENA = 1<<14, GM_RXCR_CRC_DIS = 1<<13, GM_RXCR_PASS_FC = 1<<12 }
 
enum  {
  GM_TXPA_JAMLEN_MSK = 0x03<<14, GM_TXPA_JAMIPG_MSK = 0x1f<<9, GM_TXPA_JAMDAT_MSK = 0x1f<<4, TX_JAM_LEN_DEF = 0x03,
  TX_JAM_IPG_DEF = 0x0b, TX_IPG_JAM_DEF = 0x1c
}
 
enum  {
  GM_SMOD_DATABL_MSK = 0x1f<<11, GM_SMOD_LIMIT_4 = 1<<10, GM_SMOD_VLAN_ENA = 1<<9, GM_SMOD_JUMBO_ENA = 1<<8,
  GM_SMOD_IPG_MSK = 0x1f
}
 
enum  {
  GM_SMI_CT_PHY_A_MSK = 0x1f<<11, GM_SMI_CT_REG_A_MSK = 0x1f<<6, GM_SMI_CT_OP_RD = 1<<5, GM_SMI_CT_RD_VAL = 1<<4,
  GM_SMI_CT_BUSY = 1<<3
}
 
enum  { GM_PAR_MIB_CLR = 1<<5, GM_PAR_MIB_TST = 1<<4 }
 
enum  {
  GMR_FS_LEN = 0xffff<<16, GMR_FS_LEN_SHIFT = 16, GMR_FS_VLAN = 1<<13, GMR_FS_JABBER = 1<<12,
  GMR_FS_UN_SIZE = 1<<11, GMR_FS_MC = 1<<10, GMR_FS_BC = 1<<9, GMR_FS_RX_OK = 1<<8,
  GMR_FS_GOOD_FC = 1<<7, GMR_FS_BAD_FC = 1<<6, GMR_FS_MII_ERR = 1<<5, GMR_FS_LONG_ERR = 1<<4,
  GMR_FS_FRAGMENT = 1<<3, GMR_FS_CRC_ERR = 1<<1, GMR_FS_RX_FF_OV = 1<<0, GMR_FS_ANY_ERR,
  RX_FF_FL_DEF_MSK
}
 
enum  {
  GMF_WP_TST_ON = 1<<14, GMF_WP_TST_OFF = 1<<13, GMF_WP_STEP = 1<<12, GMF_RP_TST_ON = 1<<10,
  GMF_RP_TST_OFF = 1<<9, GMF_RP_STEP = 1<<8, GMF_RX_F_FL_ON = 1<<7, GMF_RX_F_FL_OFF = 1<<6,
  GMF_CLI_RX_FO = 1<<5, GMF_CLI_RX_FC = 1<<4, GMF_OPER_ON = 1<<3, GMF_OPER_OFF = 1<<2,
  GMF_RST_CLR = 1<<1, GMF_RST_SET = 1<<0, RX_GMF_FL_THR_DEF = 0xa
}
 
enum  {
  GMF_WSP_TST_ON = 1<<18, GMF_WSP_TST_OFF = 1<<17, GMF_WSP_STEP = 1<<16, GMF_CLI_TX_FU = 1<<6,
  GMF_CLI_TX_FC = 1<<5, GMF_CLI_TX_PE = 1<<4
}
 
enum  { GMT_ST_START = 1<<2, GMT_ST_STOP = 1<<1, GMT_ST_CLR_IRQ = 1<<0 }
 
enum  {
  GMC_H_BURST_ON = 1<<7, GMC_H_BURST_OFF = 1<<6, GMC_F_LOOPB_ON = 1<<5, GMC_F_LOOPB_OFF = 1<<4,
  GMC_PAUSE_ON = 1<<3, GMC_PAUSE_OFF = 1<<2, GMC_RST_CLR = 1<<1, GMC_RST_SET = 1<<0
}
 
enum  {
  GPC_SEL_BDT = 1<<28, GPC_INT_POL_HI = 1<<27, GPC_75_OHM = 1<<26, GPC_DIS_FC = 1<<25,
  GPC_DIS_SLEEP = 1<<24, GPC_HWCFG_M_3 = 1<<23, GPC_HWCFG_M_2 = 1<<22, GPC_HWCFG_M_1 = 1<<21,
  GPC_HWCFG_M_0 = 1<<20, GPC_ANEG_0 = 1<<19, GPC_ENA_XC = 1<<18, GPC_DIS_125 = 1<<17,
  GPC_ANEG_3 = 1<<16, GPC_ANEG_2 = 1<<15, GPC_ANEG_1 = 1<<14, GPC_ENA_PAUSE = 1<<13,
  GPC_PHYADDR_4 = 1<<12, GPC_PHYADDR_3 = 1<<11, GPC_PHYADDR_2 = 1<<10, GPC_PHYADDR_1 = 1<<9,
  GPC_PHYADDR_0 = 1<<8, GPC_RST_CLR = 1<<1, GPC_RST_SET = 1<<0
}
 
enum  {
  GM_IS_TX_CO_OV = 1<<5, GM_IS_RX_CO_OV = 1<<4, GM_IS_TX_FF_UR = 1<<3, GM_IS_TX_COMPL = 1<<2,
  GM_IS_RX_FF_OR = 1<<1, GM_IS_RX_COMPL = 1<<0, GMLC_RST_CLR = 1<<1, GMLC_RST_SET = 1<<0,
  WOL_CTL_LINK_CHG_OCC = 1<<15, WOL_CTL_MAGIC_PKT_OCC = 1<<14, WOL_CTL_PATTERN_OCC = 1<<13, WOL_CTL_CLEAR_RESULT = 1<<12,
  WOL_CTL_ENA_PME_ON_LINK_CHG = 1<<11, WOL_CTL_DIS_PME_ON_LINK_CHG = 1<<10, WOL_CTL_ENA_PME_ON_MAGIC_PKT = 1<<9, WOL_CTL_DIS_PME_ON_MAGIC_PKT = 1<<8,
  WOL_CTL_ENA_PME_ON_PATTERN = 1<<7, WOL_CTL_DIS_PME_ON_PATTERN = 1<<6, WOL_CTL_ENA_LINK_CHG_UNIT = 1<<5, WOL_CTL_DIS_LINK_CHG_UNIT = 1<<4,
  WOL_CTL_ENA_MAGIC_PKT_UNIT = 1<<3, WOL_CTL_DIS_MAGIC_PKT_UNIT = 1<<2, WOL_CTL_ENA_PATTERN_UNIT = 1<<1, WOL_CTL_DIS_PATTERN_UNIT = 1<<0
}
 
enum  {
  XM_MMU_CMD = 0x0000, XM_POFF = 0x0008, XM_BURST = 0x000c, XM_1L_VLAN_TAG = 0x0010,
  XM_2L_VLAN_TAG = 0x0014, XM_TX_CMD = 0x0020, XM_TX_RT_LIM = 0x0024, XM_TX_STIME = 0x0028,
  XM_TX_IPG = 0x002c, XM_RX_CMD = 0x0030, XM_PHY_ADDR = 0x0034, XM_PHY_DATA = 0x0038,
  XM_GP_PORT = 0x0040, XM_IMSK = 0x0044, XM_ISRC = 0x0048, XM_HW_CFG = 0x004c,
  XM_TX_LO_WM = 0x0060, XM_TX_HI_WM = 0x0062, XM_TX_THR = 0x0064, XM_HT_THR = 0x0066,
  XM_PAUSE_DA = 0x0068, XM_CTL_PARA = 0x0070, XM_MAC_OPCODE = 0x0074, XM_MAC_PTIME = 0x0076,
  XM_TX_STAT = 0x0078, XM_EXM_START = 0x0080
}
 
enum  {
  XM_SRC_CHK = 0x0100, XM_SA = 0x0108, XM_HSM = 0x0110, XM_RX_LO_WM = 0x0118,
  XM_RX_HI_WM = 0x011a, XM_RX_THR = 0x011c, XM_DEV_ID = 0x0120, XM_MODE = 0x0124,
  XM_LSA = 0x0128, XM_TS_READ = 0x0130, XM_TS_LOAD = 0x0134, XM_STAT_CMD = 0x0200,
  XM_RX_CNT_EV = 0x0204, XM_TX_CNT_EV = 0x0208, XM_RX_EV_MSK = 0x020c, XM_TX_EV_MSK = 0x0210,
  XM_TXF_OK = 0x0280, XM_TXO_OK_HI = 0x0284, XM_TXO_OK_LO = 0x0288, XM_TXF_BC_OK = 0x028c,
  XM_TXF_MC_OK = 0x0290, XM_TXF_UC_OK = 0x0294, XM_TXF_LONG = 0x0298, XM_TXE_BURST = 0x029c,
  XM_TXF_MPAUSE = 0x02a0, XM_TXF_MCTRL = 0x02a4, XM_TXF_SNG_COL = 0x02a8, XM_TXF_MUL_COL = 0x02ac,
  XM_TXF_ABO_COL = 0x02b0, XM_TXF_LAT_COL = 0x02b4, XM_TXF_DEF = 0x02b8, XM_TXF_EX_DEF = 0x02bc,
  XM_TXE_FIFO_UR = 0x02c0, XM_TXE_CS_ERR = 0x02c4, XM_TXP_UTIL = 0x02c8, XM_TXF_64B = 0x02d0,
  XM_TXF_127B = 0x02d4, XM_TXF_255B = 0x02d8, XM_TXF_511B = 0x02dc, XM_TXF_1023B = 0x02e0,
  XM_TXF_MAX_SZ = 0x02e4, XM_RXF_OK = 0x0300, XM_RXO_OK_HI = 0x0304, XM_RXO_OK_LO = 0x0308,
  XM_RXF_BC_OK = 0x030c, XM_RXF_MC_OK = 0x0310, XM_RXF_UC_OK = 0x0314, XM_RXF_MPAUSE = 0x0318,
  XM_RXF_MCTRL = 0x031c, XM_RXF_INV_MP = 0x0320, XM_RXF_INV_MOC = 0x0324, XM_RXE_BURST = 0x0328,
  XM_RXE_FMISS = 0x032c, XM_RXF_FRA_ERR = 0x0330, XM_RXE_FIFO_OV = 0x0334, XM_RXF_JAB_PKT = 0x0338,
  XM_RXE_CAR_ERR = 0x033c, XM_RXF_LEN_ERR = 0x0340, XM_RXE_SYM_ERR = 0x0344, XM_RXE_SHT_ERR = 0x0348,
  XM_RXE_RUNT = 0x034c, XM_RXF_LNG_ERR = 0x0350, XM_RXF_FCS_ERR = 0x0354, XM_RXF_CEX_ERR = 0x035c,
  XM_RXP_UTIL = 0x0360, XM_RXF_64B = 0x0368, XM_RXF_127B = 0x036c, XM_RXF_255B = 0x0370,
  XM_RXF_511B = 0x0374, XM_RXF_1023B = 0x0378, XM_RXF_MAX_SZ = 0x037c
}
 
enum  {
  XM_MMU_PHY_RDY = 1<<12, XM_MMU_PHY_BUSY = 1<<11, XM_MMU_IGN_PF = 1<<10, XM_MMU_MAC_LB = 1<<9,
  XM_MMU_FRC_COL = 1<<7, XM_MMU_SIM_COL = 1<<6, XM_MMU_NO_PRE = 1<<5, XM_MMU_GMII_FD = 1<<4,
  XM_MMU_RAT_CTRL = 1<<3, XM_MMU_GMII_LOOP = 1<<2, XM_MMU_ENA_RX = 1<<1, XM_MMU_ENA_TX = 1<<0
}
 
enum  {
  XM_TX_BK2BK = 1<<6, XM_TX_ENC_BYP = 1<<5, XM_TX_SAM_LINE = 1<<4, XM_TX_NO_GIG_MD = 1<<3,
  XM_TX_NO_PRE = 1<<2, XM_TX_NO_CRC = 1<<1, XM_TX_AUTO_PAD = 1<<0
}
 
enum  {
  XM_RX_LENERR_OK = 1<<8, XM_RX_BIG_PK_OK = 1<<7, XM_RX_IPG_CAP = 1<<6, XM_RX_TP_MD = 1<<5,
  XM_RX_STRIP_FCS = 1<<4, XM_RX_SELF_RX = 1<<3, XM_RX_SAM_LINE = 1<<2, XM_RX_STRIP_PAD = 1<<1,
  XM_RX_DIS_CEXT = 1<<0
}
 
enum  {
  XM_GP_ANIP = 1<<6, XM_GP_FRC_INT = 1<<5, XM_GP_RES_MAC = 1<<3, XM_GP_RES_STAT = 1<<2,
  XM_GP_INP_ASS = 1<<0
}
 
enum  {
  XM_IS_LNK_AE = 1<<14, XM_IS_TX_ABORT = 1<<13, XM_IS_FRC_INT = 1<<12, XM_IS_INP_ASS = 1<<11,
  XM_IS_LIPA_RC = 1<<10, XM_IS_RX_PAGE = 1<<9, XM_IS_TX_PAGE = 1<<8, XM_IS_AND = 1<<7,
  XM_IS_TSC_OV = 1<<6, XM_IS_RXC_OV = 1<<5, XM_IS_TXC_OV = 1<<4, XM_IS_RXF_OV = 1<<3,
  XM_IS_TXF_UR = 1<<2, XM_IS_TX_COMP = 1<<1, XM_IS_RX_COMP = 1<<0, XM_IMSK_DISABLE = 0xffff
}
 
enum  { XM_HW_GEN_EOP = 1<<3, XM_HW_COM4SIG = 1<<2, XM_HW_GMII_MD = 1<<0 }
 
enum  {
  XM_ST_VALID = (1UL<<31), XM_ST_BYTE_CNT = (0x3fffL<<17), XM_ST_RETRY_CNT = (0x1fL<<12), XM_ST_EX_COL = 1<<11,
  XM_ST_EX_DEF = 1<<10, XM_ST_BURST = 1<<9, XM_ST_DEFER = 1<<8, XM_ST_BC = 1<<7,
  XM_ST_MC = 1<<6, XM_ST_UC = 1<<5, XM_ST_TX_UR = 1<<4, XM_ST_CS_ERR = 1<<3,
  XM_ST_LAT_COL = 1<<2, XM_ST_MUL_COL = 1<<1, XM_ST_SGN_COL = 1<<0
}
 
enum  {
  XM_MD_ENA_REJ = 1<<26, XM_MD_SPOE_E = 1<<25, XM_MD_TX_REP = 1<<24, XM_MD_SPOFF_I = 1<<23,
  XM_MD_LE_STW = 1<<22, XM_MD_TX_CONT = 1<<21, XM_MD_TX_PAUSE = 1<<20, XM_MD_ATS = 1<<19,
  XM_MD_SPOL_I = 1<<18, XM_MD_SPOH_I = 1<<17, XM_MD_CAP = 1<<16, XM_MD_ENA_HASH = 1<<15,
  XM_MD_CSA = 1<<14, XM_MD_CAA = 1<<13, XM_MD_RX_MCTRL = 1<<12, XM_MD_RX_RUNT = 1<<11,
  XM_MD_RX_IRLE = 1<<10, XM_MD_RX_LONG = 1<<9, XM_MD_RX_CRCE = 1<<8, XM_MD_RX_ERR = 1<<7,
  XM_MD_DIS_UC = 1<<6, XM_MD_DIS_MC = 1<<5, XM_MD_DIS_BC = 1<<4, XM_MD_ENA_PROM = 1<<3,
  XM_MD_ENA_BE = 1<<2, XM_MD_FTF = 1<<1, XM_MD_FRF = 1<<0
}
 
enum  {
  XM_SC_SNP_RXC = 1<<5, XM_SC_SNP_TXC = 1<<4, XM_SC_CP_RXC = 1<<3, XM_SC_CP_TXC = 1<<2,
  XM_SC_CLR_RXC = 1<<1, XM_SC_CLR_TXC = 1<<0
}
 
enum  {
  XMR_MAX_SZ_OV = 1<<31, XMR_1023B_OV = 1<<30, XMR_511B_OV = 1<<29, XMR_255B_OV = 1<<28,
  XMR_127B_OV = 1<<27, XMR_64B_OV = 1<<26, XMR_UTIL_OV = 1<<25, XMR_UTIL_UR = 1<<24,
  XMR_CEX_ERR_OV = 1<<23, XMR_FCS_ERR_OV = 1<<21, XMR_LNG_ERR_OV = 1<<20, XMR_RUNT_OV = 1<<19,
  XMR_SHT_ERR_OV = 1<<18, XMR_SYM_ERR_OV = 1<<17, XMR_CAR_ERR_OV = 1<<15, XMR_JAB_PKT_OV = 1<<14,
  XMR_FIFO_OV = 1<<13, XMR_FRA_ERR_OV = 1<<12, XMR_FMISS_OV = 1<<11, XMR_BURST = 1<<10,
  XMR_INV_MOC = 1<<9, XMR_INV_MP = 1<<8, XMR_MCTRL_OV = 1<<7, XMR_MPAUSE_OV = 1<<6,
  XMR_UC_OK_OV = 1<<5, XMR_MC_OK_OV = 1<<4, XMR_BC_OK_OV = 1<<3, XMR_OK_LO_OV = 1<<2,
  XMR_OK_HI_OV = 1<<1, XMR_OK_OV = 1<<0
}
 
enum  {
  XMT_MAX_SZ_OV = 1<<25, XMT_1023B_OV = 1<<24, XMT_511B_OV = 1<<23, XMT_255B_OV = 1<<22,
  XMT_127B_OV = 1<<21, XMT_64B_OV = 1<<20, XMT_UTIL_OV = 1<<19, XMT_UTIL_UR = 1<<18,
  XMT_CS_ERR_OV = 1<<17, XMT_FIFO_UR_OV = 1<<16, XMT_EX_DEF_OV = 1<<15, XMT_DEF = 1<<14,
  XMT_LAT_COL_OV = 1<<13, XMT_ABO_COL_OV = 1<<12, XMT_MUL_COL_OV = 1<<11, XMT_SNG_COL = 1<<10,
  XMT_MCTRL_OV = 1<<9, XMT_MPAUSE = 1<<8, XMT_BURST = 1<<7, XMT_LONG = 1<<6,
  XMT_UC_OK_OV = 1<<5, XMT_MC_OK_OV = 1<<4, XMT_BC_OK_OV = 1<<3, XMT_OK_LO_OV = 1<<2,
  XMT_OK_HI_OV = 1<<1, XMT_OK_OV = 1<<0
}
 
enum  pause_control { FLOW_MODE_NONE = 1, FLOW_MODE_LOC_SEND = 2, FLOW_MODE_SYMMETRIC = 3, FLOW_MODE_SYM_OR_REM = 4 }
 
enum  pause_status {
  FLOW_STAT_INDETERMINATED =0, FLOW_STAT_NONE, FLOW_STAT_REM_SEND, FLOW_STAT_LOC_SEND,
  FLOW_STAT_SYMMETRIC
}
 

Functions

 FILE_LICENCE (GPL2_ONLY)
 
static u32 skge_read32 (const struct skge_hw *hw, int reg)
 
static u16 skge_read16 (const struct skge_hw *hw, int reg)
 
static u8 skge_read8 (const struct skge_hw *hw, int reg)
 
static void skge_write32 (const struct skge_hw *hw, int reg, u32 val)
 
static void skge_write16 (const struct skge_hw *hw, int reg, u16 val)
 
static void skge_write8 (const struct skge_hw *hw, int reg, u8 val)
 
static u32 xm_read32 (const struct skge_hw *hw, int port, int reg)
 
static u16 xm_read16 (const struct skge_hw *hw, int port, int reg)
 
static void xm_write32 (const struct skge_hw *hw, int port, int r, u32 v)
 
static void xm_write16 (const struct skge_hw *hw, int port, int r, u16 v)
 
static void xm_outhash (const struct skge_hw *hw, int port, int reg, const u8 *hash)
 
static void xm_outaddr (const struct skge_hw *hw, int port, int reg, const u8 *addr)
 
static u16 gma_read16 (const struct skge_hw *hw, int port, int reg)
 
static u32 gma_read32 (const struct skge_hw *hw, int port, int reg)
 
static void gma_write16 (const struct skge_hw *hw, int port, int r, u16 v)
 
static void gma_set_addr (struct skge_hw *hw, int port, int reg, const u8 *addr)
 

Macro Definition Documentation

◆ PCI_DEV_REG1

#define PCI_DEV_REG1   0x40

Definition at line 10 of file skge.h.

◆ PCI_PHY_COMA

#define PCI_PHY_COMA   0x8000000

Definition at line 11 of file skge.h.

◆ PCI_VIO

#define PCI_VIO   0x2000000

Definition at line 12 of file skge.h.

◆ PCI_DEV_REG2

#define PCI_DEV_REG2   0x44

Definition at line 14 of file skge.h.

◆ PCI_VPD_ROM_SZ

#define PCI_VPD_ROM_SZ   7L<<14 /* VPD ROM size 0=256, 1=512, ... */

Definition at line 15 of file skge.h.

◆ PCI_REV_DESC

#define PCI_REV_DESC   1<<2 /* Reverse Descriptor bytes */

Definition at line 16 of file skge.h.

◆ DRV_NAME

#define DRV_NAME   "skge"

Definition at line 18 of file skge.h.

◆ DRV_VERSION

#define DRV_VERSION   "1.13"

Definition at line 19 of file skge.h.

◆ PFX

#define PFX   DRV_NAME " "

Definition at line 20 of file skge.h.

◆ NUM_TX_DESC

#define NUM_TX_DESC   8

Definition at line 22 of file skge.h.

◆ NUM_RX_DESC

#define NUM_RX_DESC   8

Definition at line 23 of file skge.h.

◆ SKGE_RING_ALIGN

#define SKGE_RING_ALIGN   8

Definition at line 26 of file skge.h.

◆ RX_BUF_SIZE

#define RX_BUF_SIZE   1536

Definition at line 27 of file skge.h.

◆ PHY_RETRIES

#define PHY_RETRIES   1000

Definition at line 28 of file skge.h.

◆ TX_RING_SIZE

#define TX_RING_SIZE   ( NUM_TX_DESC * sizeof ( struct skge_rx_desc ) )

Definition at line 30 of file skge.h.

◆ RX_RING_SIZE

#define RX_RING_SIZE   ( NUM_RX_DESC * sizeof ( struct skge_tx_desc ) )

Definition at line 31 of file skge.h.

◆ RING_SIZE

#define RING_SIZE   ( TX_RING_SIZE + RX_RING_SIZE )

Definition at line 32 of file skge.h.

◆ SKGE_REG_SIZE

#define SKGE_REG_SIZE   0x4000

Definition at line 34 of file skge.h.

◆ SKGE_EEPROM_MAGIC

#define SKGE_EEPROM_MAGIC   0x9933aabb

Definition at line 36 of file skge.h.

◆ AUTONEG_DISABLE

#define AUTONEG_DISABLE   0x00

Definition at line 41 of file skge.h.

◆ AUTONEG_ENABLE

#define AUTONEG_ENABLE   0x01

Definition at line 42 of file skge.h.

◆ DUPLEX_HALF

#define DUPLEX_HALF   0x00

Definition at line 44 of file skge.h.

◆ DUPLEX_FULL

#define DUPLEX_FULL   0x01

Definition at line 45 of file skge.h.

◆ SPEED_10

#define SPEED_10   10

Definition at line 47 of file skge.h.

◆ SPEED_100

#define SPEED_100   100

Definition at line 48 of file skge.h.

◆ SPEED_1000

#define SPEED_1000   1000

Definition at line 49 of file skge.h.

◆ ADVERTISED_10baseT_Half

#define ADVERTISED_10baseT_Half   (1 << 0)

Definition at line 51 of file skge.h.

◆ ADVERTISED_10baseT_Full

#define ADVERTISED_10baseT_Full   (1 << 1)

Definition at line 52 of file skge.h.

◆ ADVERTISED_100baseT_Half

#define ADVERTISED_100baseT_Half   (1 << 2)

Definition at line 53 of file skge.h.

◆ ADVERTISED_100baseT_Full

#define ADVERTISED_100baseT_Full   (1 << 3)

Definition at line 54 of file skge.h.

◆ ADVERTISED_1000baseT_Half

#define ADVERTISED_1000baseT_Half   (1 << 4)

Definition at line 55 of file skge.h.

◆ ADVERTISED_1000baseT_Full

#define ADVERTISED_1000baseT_Full   (1 << 5)

Definition at line 56 of file skge.h.

◆ SUPPORTED_10baseT_Half

#define SUPPORTED_10baseT_Half   (1 << 0)

Definition at line 58 of file skge.h.

◆ SUPPORTED_10baseT_Full

#define SUPPORTED_10baseT_Full   (1 << 1)

Definition at line 59 of file skge.h.

◆ SUPPORTED_100baseT_Half

#define SUPPORTED_100baseT_Half   (1 << 2)

Definition at line 60 of file skge.h.

◆ SUPPORTED_100baseT_Full

#define SUPPORTED_100baseT_Full   (1 << 3)

Definition at line 61 of file skge.h.

◆ SUPPORTED_1000baseT_Half

#define SUPPORTED_1000baseT_Half   (1 << 4)

Definition at line 62 of file skge.h.

◆ SUPPORTED_1000baseT_Full

#define SUPPORTED_1000baseT_Full   (1 << 5)

Definition at line 63 of file skge.h.

◆ SUPPORTED_Autoneg

#define SUPPORTED_Autoneg   (1 << 6)

Definition at line 64 of file skge.h.

◆ SUPPORTED_TP

#define SUPPORTED_TP   (1 << 7)

Definition at line 65 of file skge.h.

◆ SUPPORTED_FIBRE

#define SUPPORTED_FIBRE   (1 << 10)

Definition at line 66 of file skge.h.

◆ PCI_STATUS_ERROR_BITS

#define PCI_STATUS_ERROR_BITS
Value:
PCI_STATUS_SIG_SYSTEM_ERROR | \
PCI_STATUS_REC_MASTER_ABORT | \
PCI_STATUS_REC_TARGET_ABORT | \
PCI_STATUS_PARITY)
#define PCI_STATUS_DETECTED_PARITY
Detected parity error.
Definition: pci.h:41

Definition at line 70 of file skge.h.

◆ RAM_ADR_RAN

#define RAM_ADR_RAN   0x0007ffffL /* Bit 18.. 0: RAM Address Range */

Definition at line 416 of file skge.h.

◆ SK_MAC_TO_53

#define SK_MAC_TO_53   72 /* MAC arbiter timeout */

Definition at line 439 of file skge.h.

◆ SK_PKT_TO_53

#define SK_PKT_TO_53   0x2000 /* Packet arbiter timeout */

Definition at line 440 of file skge.h.

◆ SK_PKT_TO_MAX

#define SK_PKT_TO_MAX   0xffff /* Maximum value */

Definition at line 441 of file skge.h.

◆ SK_RI_TO_53

#define SK_RI_TO_53   36 /* RAM interface timeout */

Definition at line 442 of file skge.h.

◆ PA_ENA_TO_ALL

#define PA_ENA_TO_ALL
Value:

Definition at line 463 of file skge.h.

◆ TXA_MAX_VAL

#define TXA_MAX_VAL   0x00ffffffUL /* Bit 23.. 0: Max TXA Timer/Cnt Val */

Definition at line 473 of file skge.h.

◆ Q_ADDR

#define Q_ADDR (   reg,
  offs 
)    (B8_Q_REGS + (reg) + (offs))

Definition at line 534 of file skge.h.

◆ RB_ADDR

#define RB_ADDR (   offs,
  queue 
)    ((u16)B16_RAM_REGS + (u16)(queue) + (offs))

Definition at line 590 of file skge.h.

◆ CSR_SET_RESET

#define CSR_SET_RESET
Value:

Definition at line 790 of file skge.h.

◆ CSR_CLR_RESET

#define CSR_CLR_RESET
Value:

Definition at line 793 of file skge.h.

◆ RB_MSK

#define RB_MSK   0x0007ffff /* Bit 18.. 0: RAM Buffer Pointer Bits */

Definition at line 820 of file skge.h.

◆ SK_XMIT_DUR

#define SK_XMIT_DUR   0x002faf08UL /* 50 ms */

Definition at line 856 of file skge.h.

◆ SK_BLK_DUR

#define SK_BLK_DUR   0x01dcd650UL /* 500 ms */

Definition at line 857 of file skge.h.

◆ SK_DPOLL_DEF

#define SK_DPOLL_DEF   0x00ee6b28UL /* 250 ms at 62.5 MHz */

Definition at line 859 of file skge.h.

◆ SK_DPOLL_MAX

#define SK_DPOLL_MAX   0x00ffffffUL /* 268 ms at 62.5 MHz */

Definition at line 861 of file skge.h.

◆ SK_FACT_62

#define SK_FACT_62   100 /* is given in percent */

Definition at line 864 of file skge.h.

◆ SK_FACT_53

#define SK_FACT_53   85 /* on GENESIS: 53.12 MHz */

Definition at line 865 of file skge.h.

◆ SK_FACT_78

#define SK_FACT_78   125 /* on YUKON: 78.12 MHz */

Definition at line 866 of file skge.h.

◆ WOL_REGS

#define WOL_REGS (   port,
 
)    (x + (port)*0x80)

Definition at line 934 of file skge.h.

◆ WOL_PATT_RAM_BASE

#define WOL_PATT_RAM_BASE (   port)    (WOL_PATT_RAM_1 + (port)*0x400)

Definition at line 940 of file skge.h.

◆ PHY_B_AS_PAUSE_MSK

#define PHY_B_AS_PAUSE_MSK   (PHY_B_AS_PRR | PHY_B_AS_PRT)

Definition at line 1307 of file skge.h.

◆ PHY_B_DEF_MSK

#define PHY_B_DEF_MSK
Value:

Definition at line 1328 of file skge.h.

◆ PHY_M_PS_PAUSE_MSK

#define PHY_M_PS_PAUSE_MSK   (PHY_M_PS_TX_P_EN | PHY_M_PS_RX_P_EN)

Definition at line 1451 of file skge.h.

◆ PHY_M_EC_M_DSC

#define PHY_M_EC_M_DSC (   x)    ((u16)(x)<<10) /* 00=1x; 01=2x; 10=3x; 11=4x */

Definition at line 1504 of file skge.h.

◆ PHY_M_EC_S_DSC

#define PHY_M_EC_S_DSC (   x)    ((u16)(x)<<8) /* 00=dis; 01=1x; 10=2x; 11=3x */

Definition at line 1505 of file skge.h.

◆ PHY_M_EC_MAC_S

#define PHY_M_EC_MAC_S (   x)    ((u16)(x)<<4) /* 01X=0; 110=2.5; 111=25 (MHz) */

Definition at line 1506 of file skge.h.

◆ PHY_M_EC_M_DSC_2

#define PHY_M_EC_M_DSC_2 (   x)    ((u16)(x)<<9) /* 000=1x; 001=2x; 010=3x; 011=4x */

Definition at line 1508 of file skge.h.

◆ PHY_M_LED_PULS_DUR

#define PHY_M_LED_PULS_DUR (   x)    (((u16)(x)<<12) & PHY_M_LEDC_PULS_MSK)

Definition at line 1527 of file skge.h.

◆ PHY_M_LED_BLINK_RT

#define PHY_M_LED_BLINK_RT (   x)    (((u16)(x)<<8) & PHY_M_LEDC_BL_R_MSK)

Definition at line 1528 of file skge.h.

◆ PHY_M_LED_MO_SGMII

#define PHY_M_LED_MO_SGMII (   x)    ((x)<<14) /* Bit 15..14: SGMII AN Timer */

Definition at line 1561 of file skge.h.

◆ PHY_M_LED_MO_DUP

#define PHY_M_LED_MO_DUP (   x)    ((x)<<10) /* Bit 11..10: Duplex */

Definition at line 1563 of file skge.h.

◆ PHY_M_LED_MO_10

#define PHY_M_LED_MO_10 (   x)    ((x)<<8) /* Bit 9.. 8: Link 10 */

Definition at line 1564 of file skge.h.

◆ PHY_M_LED_MO_100

#define PHY_M_LED_MO_100 (   x)    ((x)<<6) /* Bit 7.. 6: Link 100 */

Definition at line 1565 of file skge.h.

◆ PHY_M_LED_MO_1000

#define PHY_M_LED_MO_1000 (   x)    ((x)<<4) /* Bit 5.. 4: Link 1000 */

Definition at line 1566 of file skge.h.

◆ PHY_M_LED_MO_RX

#define PHY_M_LED_MO_RX (   x)    ((x)<<2) /* Bit 3.. 2: Rx */

Definition at line 1567 of file skge.h.

◆ PHY_M_LED_MO_TX

#define PHY_M_LED_MO_TX (   x)    ((x)<<0) /* Bit 1.. 0: Tx */

Definition at line 1568 of file skge.h.

◆ PHY_M_FELP_LED2_CTRL

#define PHY_M_FELP_LED2_CTRL (   x)    (((x)<<8) & PHY_M_FELP_LED2_MSK)

Definition at line 1630 of file skge.h.

◆ PHY_M_FELP_LED1_CTRL

#define PHY_M_FELP_LED1_CTRL (   x)    (((x)<<4) & PHY_M_FELP_LED1_MSK)

Definition at line 1631 of file skge.h.

◆ PHY_M_FELP_LED0_CTRL

#define PHY_M_FELP_LED0_CTRL (   x)    (((x)<<0) & PHY_M_FELP_LED0_MSK)

Definition at line 1632 of file skge.h.

◆ PHY_M_LEDC_LOS_CTRL

#define PHY_M_LEDC_LOS_CTRL (   x)    (((x)<<12) & PHY_M_LEDC_LOS_MSK)

Definition at line 1669 of file skge.h.

◆ PHY_M_LEDC_INIT_CTRL

#define PHY_M_LEDC_INIT_CTRL (   x)    (((x)<<8) & PHY_M_LEDC_INIT_MSK)

Definition at line 1670 of file skge.h.

◆ PHY_M_LEDC_STA1_CTRL

#define PHY_M_LEDC_STA1_CTRL (   x)    (((x)<<4) & PHY_M_LEDC_STA1_MSK)

Definition at line 1671 of file skge.h.

◆ PHY_M_LEDC_STA0_CTRL

#define PHY_M_LEDC_STA0_CTRL (   x)    (((x)<<0) & PHY_M_LEDC_STA0_MSK)

Definition at line 1672 of file skge.h.

◆ GM_MIB_CNT_BASE

#define GM_MIB_CNT_BASE   0x0100 /* Base Address of MIB Counters */

Definition at line 1715 of file skge.h.

◆ GM_MIB_CNT_SIZE

#define GM_MIB_CNT_SIZE   44 /* Number of MIB Counters */

Definition at line 1716 of file skge.h.

◆ GM_GPCR_SPEED_1000

#define GM_GPCR_SPEED_1000   (GM_GPCR_GIGS_ENA | GM_GPCR_SPEED_100)

Definition at line 1807 of file skge.h.

◆ GM_GPCR_AU_ALL_DIS

#define GM_GPCR_AU_ALL_DIS   (GM_GPCR_AU_DUP_DIS | GM_GPCR_AU_FCT_DIS|GM_GPCR_AU_SPD_DIS)

Definition at line 1808 of file skge.h.

◆ TX_COL_THR

#define TX_COL_THR (   x)    (((x)<<10) & GM_TXCR_COL_THR_MSK)

Definition at line 1818 of file skge.h.

◆ TX_COL_DEF

#define TX_COL_DEF   0x04 /* late collision after 64 byte */

Definition at line 1819 of file skge.h.

◆ TX_JAM_LEN_VAL

#define TX_JAM_LEN_VAL (   x)    (((x)<<14) & GM_TXPA_JAMLEN_MSK)

Definition at line 1840 of file skge.h.

◆ TX_JAM_IPG_VAL

#define TX_JAM_IPG_VAL (   x)    (((x)<<9) & GM_TXPA_JAMIPG_MSK)

Definition at line 1841 of file skge.h.

◆ TX_IPG_JAM_DATA

#define TX_IPG_JAM_DATA (   x)    (((x)<<4) & GM_TXPA_JAMDAT_MSK)

Definition at line 1842 of file skge.h.

◆ DATA_BLIND_VAL

#define DATA_BLIND_VAL (   x)    (((x)<<11) & GM_SMOD_DATABL_MSK)

Definition at line 1854 of file skge.h.

◆ DATA_BLIND_DEF

#define DATA_BLIND_DEF   0x04

Definition at line 1855 of file skge.h.

◆ IPG_DATA_VAL

#define IPG_DATA_VAL (   x)    (x & GM_SMOD_IPG_MSK)

Definition at line 1857 of file skge.h.

◆ IPG_DATA_DEF

#define IPG_DATA_DEF   0x1e

Definition at line 1858 of file skge.h.

◆ GM_SMI_CT_PHY_AD

#define GM_SMI_CT_PHY_AD (   x)    (((x)<<11) & GM_SMI_CT_PHY_A_MSK)

Definition at line 1869 of file skge.h.

◆ GM_SMI_CT_REG_AD

#define GM_SMI_CT_REG_AD (   x)    (((x)<<6) & GM_SMI_CT_REG_A_MSK)

Definition at line 1870 of file skge.h.

◆ GPC_HWCFG_GMII_COP

#define GPC_HWCFG_GMII_COP   (GPC_HWCFG_M_3|GPC_HWCFG_M_2 | GPC_HWCFG_M_1 | GPC_HWCFG_M_0)

Definition at line 1988 of file skge.h.

◆ GPC_HWCFG_GMII_FIB

#define GPC_HWCFG_GMII_FIB   (GPC_HWCFG_M_2 | GPC_HWCFG_M_1 | GPC_HWCFG_M_0)

Definition at line 1989 of file skge.h.

◆ GPC_ANEG_ADV_ALL_M

#define GPC_ANEG_ADV_ALL_M   (GPC_ANEG_3 | GPC_ANEG_2 | GPC_ANEG_1 | GPC_ANEG_0)

Definition at line 1990 of file skge.h.

◆ GPC_FRC10MBIT_HALF

#define GPC_FRC10MBIT_HALF   0

Definition at line 1993 of file skge.h.

◆ GPC_FRC10MBIT_FULL

#define GPC_FRC10MBIT_FULL   GPC_ANEG_0

Definition at line 1994 of file skge.h.

◆ GPC_FRC100MBIT_HALF

#define GPC_FRC100MBIT_HALF   GPC_ANEG_1

Definition at line 1995 of file skge.h.

◆ GPC_FRC100MBIT_FULL

#define GPC_FRC100MBIT_FULL   (GPC_ANEG_0 | GPC_ANEG_1)

Definition at line 1996 of file skge.h.

◆ GPC_ADV_1000_HALF

#define GPC_ADV_1000_HALF   GPC_ANEG_2

Definition at line 2000 of file skge.h.

◆ GPC_ADV_1000_FULL

#define GPC_ADV_1000_FULL   GPC_ANEG_3

Definition at line 2001 of file skge.h.

◆ GPC_ADV_ALL

#define GPC_ADV_ALL   (GPC_ANEG_2 | GPC_ANEG_3)

Definition at line 2002 of file skge.h.

◆ GPC_FORCE_MASTER

#define GPC_FORCE_MASTER   0

Definition at line 2006 of file skge.h.

◆ GPC_FORCE_SLAVE

#define GPC_FORCE_SLAVE   GPC_ANEG_0

Definition at line 2007 of file skge.h.

◆ GPC_PREF_MASTER

#define GPC_PREF_MASTER   GPC_ANEG_1

Definition at line 2008 of file skge.h.

◆ GPC_PREF_SLAVE

#define GPC_PREF_SLAVE   (GPC_ANEG_1 | GPC_ANEG_0)

Definition at line 2009 of file skge.h.

◆ GMAC_DEF_MSK

#define GMAC_DEF_MSK   (GM_IS_RX_FF_OR | GM_IS_TX_FF_UR)

Definition at line 2021 of file skge.h.

◆ WOL_CTL_DEFAULT

#define WOL_CTL_DEFAULT
Value:
WOL_CTL_DIS_PME_ON_PATTERN | \
WOL_CTL_DIS_PME_ON_MAGIC_PKT | \
WOL_CTL_DIS_LINK_CHG_UNIT | \
WOL_CTL_DIS_PATTERN_UNIT | \
WOL_CTL_DIS_MAGIC_PKT_UNIT)

Definition at line 2048 of file skge.h.

◆ WOL_CTL_PATT_ENA

#define WOL_CTL_PATT_ENA (   x)    (1 << (x))

Definition at line 2057 of file skge.h.

◆ XM_EXM

#define XM_EXM (   reg)    (XM_EXM_START + ((reg) << 3))

Definition at line 2089 of file skge.h.

◆ XM_RT_LIM_MSK

#define XM_RT_LIM_MSK   0x1f /* Bit 4..0: Tx Retry Limit */

Definition at line 2195 of file skge.h.

◆ XM_STIME_MSK

#define XM_STIME_MSK   0x7f /* Bit 6..0: Tx Slottime bits */

Definition at line 2199 of file skge.h.

◆ XM_IPG_MSK

#define XM_IPG_MSK   0xff /* Bit 7..0: IPG value bits */

Definition at line 2203 of file skge.h.

◆ XM_TX_WM_MSK

#define XM_TX_WM_MSK   0x01ff /* Bit 9.. 0 Tx FIFO Watermark bits */

Definition at line 2264 of file skge.h.

◆ XM_THR_MSK

#define XM_THR_MSK   0x03ff /* Bit 10.. 0 Rx/Tx Request Threshold bits */

Definition at line 2269 of file skge.h.

◆ XM_RX_WM_MSK

#define XM_RX_WM_MSK   0x03ff /* Bit 11.. 0: Rx FIFO Watermark bits */

Definition at line 2293 of file skge.h.

◆ XM_DEV_OUI

#define XM_DEV_OUI   (0x00ffffffUL<<8) /* Bit 31..8: Device OUI */

Definition at line 2297 of file skge.h.

◆ XM_DEV_REV

#define XM_DEV_REV   (0x07L << 5) /* Bit 7..5: Chip Rev Num */

Definition at line 2298 of file skge.h.

◆ XM_PAUSE_MODE

#define XM_PAUSE_MODE   (XM_MD_SPOE_E | XM_MD_SPOL_I | XM_MD_SPOH_I)

Definition at line 2336 of file skge.h.

◆ XM_DEF_MODE

#define XM_DEF_MODE
Value:

Definition at line 2337 of file skge.h.

◆ XMR_DEF_MSK

#define XMR_DEF_MSK   (XMR_OK_LO_OV | XMR_OK_HI_OV)

Definition at line 2386 of file skge.h.

◆ XMT_DEF_MSK

#define XMT_DEF_MSK   (XMT_OK_LO_OV | XMT_OK_HI_OV)

Definition at line 2420 of file skge.h.

◆ SK_REG

#define SK_REG (   port,
  reg 
)    (((port)<<7)+(u16)(reg))

Definition at line 2548 of file skge.h.

◆ SK_XMAC_REG

#define SK_XMAC_REG (   port,
  reg 
)    ((BASE_XMAC_1 + (port) * (BASE_XMAC_2 - BASE_XMAC_1)) | (reg) << 1)

Definition at line 2549 of file skge.h.

◆ SK_GMAC_REG

#define SK_GMAC_REG (   port,
  reg 
)    (BASE_GMAC_1 + (port) * (BASE_GMAC_2-BASE_GMAC_1) + (reg))

Definition at line 2593 of file skge.h.

Enumeration Type Documentation

◆ csr_regs

enum csr_regs
Enumerator
B0_RAP 
B0_CTST 
B0_LED 
B0_POWER_CTRL 
B0_ISRC 
B0_IMSK 
B0_HWE_ISRC 
B0_HWE_IMSK 
B0_SP_ISRC 
B0_XM1_IMSK 
B0_XM1_ISRC 
B0_XM1_PHY_ADDR 
B0_XM1_PHY_DATA 
B0_XM2_IMSK 
B0_XM2_ISRC 
B0_XM2_PHY_ADDR 
B0_XM2_PHY_DATA 
B0_R1_CSR 
B0_R2_CSR 
B0_XS1_CSR 
B0_XA1_CSR 
B0_XS2_CSR 
B0_XA2_CSR 
B2_MAC_1 
B2_MAC_2 
B2_MAC_3 
B2_CONN_TYP 
B2_PMD_TYP 
B2_MAC_CFG 
B2_CHIP_ID 
B2_E_0 
B2_E_1 
B2_E_2 
B2_E_3 
B2_FAR 
B2_FDP 
B2_LD_CTRL 
B2_LD_TEST 
B2_TI_INI 
B2_TI_VAL 
B2_TI_CTRL 
B2_TI_TEST 
B2_IRQM_INI 
B2_IRQM_VAL 
B2_IRQM_CTRL 
B2_IRQM_TEST 
B2_IRQM_MSK 
B2_IRQM_HWE_MSK 
B2_TST_CTRL1 
B2_TST_CTRL2 
B2_GP_IO 
B2_I2C_CTRL 
B2_I2C_DATA 
B2_I2C_IRQ 
B2_I2C_SW 
B2_BSC_INI 
B2_BSC_VAL 
B2_BSC_CTRL 
B2_BSC_STAT 
B2_BSC_TST 
B3_RAM_ADDR 
B3_RAM_DATA_LO 
B3_RAM_DATA_HI 
B3_RI_WTO_R1 
B3_RI_WTO_XA1 
B3_RI_WTO_XS1 
B3_RI_RTO_R1 
B3_RI_RTO_XA1 
B3_RI_RTO_XS1 
B3_RI_WTO_R2 
B3_RI_WTO_XA2 
B3_RI_WTO_XS2 
B3_RI_RTO_R2 
B3_RI_RTO_XA2 
B3_RI_RTO_XS2 
B3_RI_TO_VAL 
B3_RI_CTRL 
B3_RI_TEST 
B3_MA_TOINI_RX1 
B3_MA_TOINI_RX2 
B3_MA_TOINI_TX1 
B3_MA_TOINI_TX2 
B3_MA_TOVAL_RX1 
B3_MA_TOVAL_RX2 
B3_MA_TOVAL_TX1 
B3_MA_TOVAL_TX2 
B3_MA_TO_CTRL 
B3_MA_TO_TEST 
B3_MA_RCINI_RX1 
B3_MA_RCINI_RX2 
B3_MA_RCINI_TX1 
B3_MA_RCINI_TX2 
B3_MA_RCVAL_RX1 
B3_MA_RCVAL_RX2 
B3_MA_RCVAL_TX1 
B3_MA_RCVAL_TX2 
B3_MA_RC_CTRL 
B3_MA_RC_TEST 
B3_PA_TOINI_RX1 
B3_PA_TOINI_RX2 
B3_PA_TOINI_TX1 
B3_PA_TOINI_TX2 
B3_PA_TOVAL_RX1 
B3_PA_TOVAL_RX2 
B3_PA_TOVAL_TX1 
B3_PA_TOVAL_TX2 
B3_PA_CTRL 
B3_PA_TEST 
B0_RAP 
B0_CTST 
B0_Y2LED 
B0_POWER_CTRL 
B0_ISRC 
B0_IMSK 
B0_HWE_ISRC 
B0_HWE_IMSK 
B0_Y2_SP_ISRC2 
B0_Y2_SP_ISRC3 
B0_Y2_SP_EISR 
B0_Y2_SP_LISR 
B0_Y2_SP_ICR 
B2_MAC_1 
B2_MAC_2 
B2_MAC_3 
B2_CONN_TYP 
B2_PMD_TYP 
B2_MAC_CFG 
B2_CHIP_ID 
B2_E_0 
B2_Y2_CLK_GATE 
B2_Y2_HW_RES 
B2_E_3 
B2_Y2_CLK_CTRL 
B2_TI_INI 
B2_TI_VAL 
B2_TI_CTRL 
B2_TI_TEST 
B2_TST_CTRL1 
B2_TST_CTRL2 
B2_GP_IO 
B2_I2C_CTRL 
B2_I2C_DATA 
B2_I2C_IRQ 
B2_I2C_SW 
B3_RAM_ADDR 
B3_RAM_DATA_LO 
B3_RAM_DATA_HI 
B3_RI_WTO_R1 
B3_RI_WTO_XA1 
B3_RI_WTO_XS1 
B3_RI_RTO_R1 
B3_RI_RTO_XA1 
B3_RI_RTO_XS1 
B3_RI_WTO_R2 
B3_RI_WTO_XA2 
B3_RI_WTO_XS2 
B3_RI_RTO_R2 
B3_RI_RTO_XA2 
B3_RI_RTO_XS2 
B3_RI_TO_VAL 
B3_RI_CTRL 
B3_RI_TEST 
B3_MA_TOINI_RX1 
B3_MA_TOINI_RX2 
B3_MA_TOINI_TX1 
B3_MA_TOINI_TX2 
B3_MA_TOVAL_RX1 
B3_MA_TOVAL_RX2 
B3_MA_TOVAL_TX1 
B3_MA_TOVAL_TX2 
B3_MA_TO_CTRL 
B3_MA_TO_TEST 
B3_MA_RCINI_RX1 
B3_MA_RCINI_RX2 
B3_MA_RCINI_TX1 
B3_MA_RCINI_TX2 
B3_MA_RCVAL_RX1 
B3_MA_RCVAL_RX2 
B3_MA_RCVAL_TX1 
B3_MA_RCVAL_TX2 
B3_MA_RC_CTRL 
B3_MA_RC_TEST 
B3_PA_TOINI_RX1 
B3_PA_TOINI_RX2 
B3_PA_TOINI_TX1 
B3_PA_TOINI_TX2 
B3_PA_TOVAL_RX1 
B3_PA_TOVAL_RX2 
B3_PA_TOVAL_TX1 
B3_PA_TOVAL_TX2 
B3_PA_CTRL 
B3_PA_TEST 
Y2_CFG_SPC 
Y2_CFG_AER 

Definition at line 76 of file skge.h.

76  {
77  B0_RAP = 0x0000,
78  B0_CTST = 0x0004,
79  B0_LED = 0x0006,
80  B0_POWER_CTRL = 0x0007,
81  B0_ISRC = 0x0008,
82  B0_IMSK = 0x000c,
83  B0_HWE_ISRC = 0x0010,
84  B0_HWE_IMSK = 0x0014,
85  B0_SP_ISRC = 0x0018,
86  B0_XM1_IMSK = 0x0020,
87  B0_XM1_ISRC = 0x0028,
88  B0_XM1_PHY_ADDR = 0x0030,
89  B0_XM1_PHY_DATA = 0x0034,
90  B0_XM2_IMSK = 0x0040,
91  B0_XM2_ISRC = 0x0048,
92  B0_XM2_PHY_ADDR = 0x0050,
93  B0_XM2_PHY_DATA = 0x0054,
94  B0_R1_CSR = 0x0060,
95  B0_R2_CSR = 0x0064,
96  B0_XS1_CSR = 0x0068,
97  B0_XA1_CSR = 0x006c,
98  B0_XS2_CSR = 0x0070,
99  B0_XA2_CSR = 0x0074,
100 
101  B2_MAC_1 = 0x0100,
102  B2_MAC_2 = 0x0108,
103  B2_MAC_3 = 0x0110,
104  B2_CONN_TYP = 0x0118,
105  B2_PMD_TYP = 0x0119,
106  B2_MAC_CFG = 0x011a,
107  B2_CHIP_ID = 0x011b,
108  B2_E_0 = 0x011c,
109  B2_E_1 = 0x011d,
110  B2_E_2 = 0x011e,
111  B2_E_3 = 0x011f,
112  B2_FAR = 0x0120,
113  B2_FDP = 0x0124,
114  B2_LD_CTRL = 0x0128,
115  B2_LD_TEST = 0x0129,
116  B2_TI_INI = 0x0130,
117  B2_TI_VAL = 0x0134,
118  B2_TI_CTRL = 0x0138,
119  B2_TI_TEST = 0x0139,
120  B2_IRQM_INI = 0x0140,
121  B2_IRQM_VAL = 0x0144,
122  B2_IRQM_CTRL = 0x0148,
123  B2_IRQM_TEST = 0x0149,
124  B2_IRQM_MSK = 0x014c,
125  B2_IRQM_HWE_MSK = 0x0150,
126  B2_TST_CTRL1 = 0x0158,
127  B2_TST_CTRL2 = 0x0159,
128  B2_GP_IO = 0x015c,
129  B2_I2C_CTRL = 0x0160,
130  B2_I2C_DATA = 0x0164,
131  B2_I2C_IRQ = 0x0168,
132  B2_I2C_SW = 0x016c,
133  B2_BSC_INI = 0x0170,
134  B2_BSC_VAL = 0x0174,
135  B2_BSC_CTRL = 0x0178,
136  B2_BSC_STAT = 0x0179,
137  B2_BSC_TST = 0x017a,
138 
139  B3_RAM_ADDR = 0x0180,
140  B3_RAM_DATA_LO = 0x0184,
141  B3_RAM_DATA_HI = 0x0188,
142  B3_RI_WTO_R1 = 0x0190,
143  B3_RI_WTO_XA1 = 0x0191,
144  B3_RI_WTO_XS1 = 0x0192,
145  B3_RI_RTO_R1 = 0x0193,
146  B3_RI_RTO_XA1 = 0x0194,
147  B3_RI_RTO_XS1 = 0x0195,
148  B3_RI_WTO_R2 = 0x0196,
149  B3_RI_WTO_XA2 = 0x0197,
150  B3_RI_WTO_XS2 = 0x0198,
151  B3_RI_RTO_R2 = 0x0199,
152  B3_RI_RTO_XA2 = 0x019a,
153  B3_RI_RTO_XS2 = 0x019b,
154  B3_RI_TO_VAL = 0x019c,
155  B3_RI_CTRL = 0x01a0,
156  B3_RI_TEST = 0x01a2,
157  B3_MA_TOINI_RX1 = 0x01b0,
158  B3_MA_TOINI_RX2 = 0x01b1,
159  B3_MA_TOINI_TX1 = 0x01b2,
160  B3_MA_TOINI_TX2 = 0x01b3,
161  B3_MA_TOVAL_RX1 = 0x01b4,
162  B3_MA_TOVAL_RX2 = 0x01b5,
163  B3_MA_TOVAL_TX1 = 0x01b6,
164  B3_MA_TOVAL_TX2 = 0x01b7,
165  B3_MA_TO_CTRL = 0x01b8,
166  B3_MA_TO_TEST = 0x01ba,
167  B3_MA_RCINI_RX1 = 0x01c0,
168  B3_MA_RCINI_RX2 = 0x01c1,
169  B3_MA_RCINI_TX1 = 0x01c2,
170  B3_MA_RCINI_TX2 = 0x01c3,
171  B3_MA_RCVAL_RX1 = 0x01c4,
172  B3_MA_RCVAL_RX2 = 0x01c5,
173  B3_MA_RCVAL_TX1 = 0x01c6,
174  B3_MA_RCVAL_TX2 = 0x01c7,
175  B3_MA_RC_CTRL = 0x01c8,
176  B3_MA_RC_TEST = 0x01ca,
177  B3_PA_TOINI_RX1 = 0x01d0,
178  B3_PA_TOINI_RX2 = 0x01d4,
179  B3_PA_TOINI_TX1 = 0x01d8,
180  B3_PA_TOINI_TX2 = 0x01dc,
181  B3_PA_TOVAL_RX1 = 0x01e0,
182  B3_PA_TOVAL_RX2 = 0x01e4,
183  B3_PA_TOVAL_TX1 = 0x01e8,
184  B3_PA_TOVAL_TX2 = 0x01ec,
185  B3_PA_CTRL = 0x01f0,
186  B3_PA_TEST = 0x01f2,
187 };
Definition: skge.h:108
Definition: skge.h:77
Definition: skge.h:81
Definition: skge.h:102
Definition: skge.h:110
Definition: skge.h:82
Definition: skge.h:109
Definition: skge.h:79
Definition: skge.h:94
Definition: skge.h:111
Definition: skge.h:113
Definition: skge.h:78
Definition: skge.h:103
Definition: skge.h:95
Definition: skge.h:128
Definition: skge.h:112
Definition: skge.h:101

◆ anonymous enum

anonymous enum
Enumerator
CS_CLK_RUN_HOT 
CS_CLK_RUN_RST 
CS_CLK_RUN_ENA 
CS_VAUX_AVAIL 
CS_BUS_CLOCK 
CS_BUS_SLOT_SZ 
CS_ST_SW_IRQ 
CS_CL_SW_IRQ 
CS_STOP_DONE 
CS_STOP_MAST 
CS_MRST_CLR 
CS_MRST_SET 
CS_RST_CLR 
CS_RST_SET 
LED_STAT_ON 
LED_STAT_OFF 
PC_VAUX_ENA 
PC_VAUX_DIS 
PC_VCC_ENA 
PC_VCC_DIS 
PC_VAUX_ON 
PC_VAUX_OFF 
PC_VCC_ON 
PC_VCC_OFF 

Definition at line 190 of file skge.h.

190  {
191  CS_CLK_RUN_HOT = 1<<13,/* CLK_RUN hot m. (YUKON-Lite only) */
192  CS_CLK_RUN_RST = 1<<12,/* CLK_RUN reset (YUKON-Lite only) */
193  CS_CLK_RUN_ENA = 1<<11,/* CLK_RUN enable (YUKON-Lite only) */
194  CS_VAUX_AVAIL = 1<<10,/* VAUX available (YUKON only) */
195  CS_BUS_CLOCK = 1<<9, /* Bus Clock 0/1 = 33/66 MHz */
196  CS_BUS_SLOT_SZ = 1<<8, /* Slot Size 0/1 = 32/64 bit slot */
197  CS_ST_SW_IRQ = 1<<7, /* Set IRQ SW Request */
198  CS_CL_SW_IRQ = 1<<6, /* Clear IRQ SW Request */
199  CS_STOP_DONE = 1<<5, /* Stop Master is finished */
200  CS_STOP_MAST = 1<<4, /* Command Bit to stop the master */
201  CS_MRST_CLR = 1<<3, /* Clear Master reset */
202  CS_MRST_SET = 1<<2, /* Set Master reset */
203  CS_RST_CLR = 1<<1, /* Clear Software reset */
204  CS_RST_SET = 1, /* Set Software reset */
205 
206 /* B0_LED 8 Bit LED register */
207 /* Bit 7.. 2: reserved */
208  LED_STAT_ON = 1<<1, /* Status LED on */
209  LED_STAT_OFF = 1, /* Status LED off */
210 
211 /* B0_POWER_CTRL 8 Bit Power Control reg (YUKON only) */
212  PC_VAUX_ENA = 1<<7, /* Switch VAUX Enable */
213  PC_VAUX_DIS = 1<<6, /* Switch VAUX Disable */
214  PC_VCC_ENA = 1<<5, /* Switch VCC Enable */
215  PC_VCC_DIS = 1<<4, /* Switch VCC Disable */
216  PC_VAUX_ON = 1<<3, /* Switch VAUX On */
217  PC_VAUX_OFF = 1<<2, /* Switch VAUX Off */
218  PC_VCC_ON = 1<<1, /* Switch VCC On */
219  PC_VCC_OFF = 1<<0, /* Switch VCC Off */
220 };

◆ anonymous enum

anonymous enum
Enumerator
IS_ALL_MSK 
IS_HW_ERR 
IS_PA_TO_RX1 
IS_PA_TO_RX2 
IS_PA_TO_TX1 
IS_PA_TO_TX2 
IS_I2C_READY 
IS_IRQ_SW 
IS_EXT_REG 
IS_TIMINT 
IS_MAC1 
IS_LNK_SYNC_M1 
IS_MAC2 
IS_LNK_SYNC_M2 
IS_R1_B 
IS_R1_F 
IS_R1_C 
IS_R2_B 
IS_R2_F 
IS_R2_C 
IS_XS1_B 
IS_XS1_F 
IS_XS1_C 
IS_XA1_B 
IS_XA1_F 
IS_XA1_C 
IS_XS2_B 
IS_XS2_F 
IS_XS2_C 
IS_XA2_B 
IS_XA2_F 
IS_XA2_C 
IS_TO_PORT1 
IS_TO_PORT2 
IS_PORT_1 
IS_PORT_2 

Definition at line 223 of file skge.h.

223  {
224  IS_ALL_MSK = 0xbffffffful, /* All Interrupt bits */
225  IS_HW_ERR = 1<<31, /* Interrupt HW Error */
226  /* Bit 30: reserved */
227  IS_PA_TO_RX1 = 1<<29, /* Packet Arb Timeout Rx1 */
228  IS_PA_TO_RX2 = 1<<28, /* Packet Arb Timeout Rx2 */
229  IS_PA_TO_TX1 = 1<<27, /* Packet Arb Timeout Tx1 */
230  IS_PA_TO_TX2 = 1<<26, /* Packet Arb Timeout Tx2 */
231  IS_I2C_READY = 1<<25, /* IRQ on end of I2C Tx */
232  IS_IRQ_SW = 1<<24, /* SW forced IRQ */
233  IS_EXT_REG = 1<<23, /* IRQ from LM80 or PHY (GENESIS only) */
234  /* IRQ from PHY (YUKON only) */
235  IS_TIMINT = 1<<22, /* IRQ from Timer */
236  IS_MAC1 = 1<<21, /* IRQ from MAC 1 */
237  IS_LNK_SYNC_M1 = 1<<20, /* Link Sync Cnt wrap MAC 1 */
238  IS_MAC2 = 1<<19, /* IRQ from MAC 2 */
239  IS_LNK_SYNC_M2 = 1<<18, /* Link Sync Cnt wrap MAC 2 */
240 /* Receive Queue 1 */
241  IS_R1_B = 1<<17, /* Q_R1 End of Buffer */
242  IS_R1_F = 1<<16, /* Q_R1 End of Frame */
243  IS_R1_C = 1<<15, /* Q_R1 Encoding Error */
244 /* Receive Queue 2 */
245  IS_R2_B = 1<<14, /* Q_R2 End of Buffer */
246  IS_R2_F = 1<<13, /* Q_R2 End of Frame */
247  IS_R2_C = 1<<12, /* Q_R2 Encoding Error */
248 /* Synchronous Transmit Queue 1 */
249  IS_XS1_B = 1<<11, /* Q_XS1 End of Buffer */
250  IS_XS1_F = 1<<10, /* Q_XS1 End of Frame */
251  IS_XS1_C = 1<<9, /* Q_XS1 Encoding Error */
252 /* Asynchronous Transmit Queue 1 */
253  IS_XA1_B = 1<<8, /* Q_XA1 End of Buffer */
254  IS_XA1_F = 1<<7, /* Q_XA1 End of Frame */
255  IS_XA1_C = 1<<6, /* Q_XA1 Encoding Error */
256 /* Synchronous Transmit Queue 2 */
257  IS_XS2_B = 1<<5, /* Q_XS2 End of Buffer */
258  IS_XS2_F = 1<<4, /* Q_XS2 End of Frame */
259  IS_XS2_C = 1<<3, /* Q_XS2 Encoding Error */
260 /* Asynchronous Transmit Queue 2 */
261  IS_XA2_B = 1<<2, /* Q_XA2 End of Buffer */
262  IS_XA2_F = 1<<1, /* Q_XA2 End of Frame */
263  IS_XA2_C = 1<<0, /* Q_XA2 Encoding Error */
264 
267 
270 };
Definition: skge.h:254
Definition: skge.h:250
Definition: skge.h:259
Definition: skge.h:263
Definition: skge.h:253
Definition: skge.h:243
Definition: skge.h:245
Definition: skge.h:236
Definition: skge.h:261
Definition: skge.h:249
Definition: skge.h:262
Definition: skge.h:258
Definition: skge.h:242
Definition: skge.h:257
Definition: skge.h:238
Definition: skge.h:255
Definition: skge.h:251
Definition: skge.h:247
Definition: skge.h:246
Definition: skge.h:241

◆ anonymous enum

anonymous enum
Enumerator
IS_IRQ_TIST_OV 
IS_IRQ_SENSOR 
IS_IRQ_MST_ERR 
IS_IRQ_STAT 
IS_NO_STAT_M1 
IS_NO_STAT_M2 
IS_NO_TIST_M1 
IS_NO_TIST_M2 
IS_RAM_RD_PAR 
IS_RAM_WR_PAR 
IS_M1_PAR_ERR 
IS_M2_PAR_ERR 
IS_R1_PAR_ERR 
IS_R2_PAR_ERR 
IS_ERR_MSK 

Definition at line 274 of file skge.h.

274  {
275  IS_IRQ_TIST_OV = 1<<13, /* Time Stamp Timer Overflow (YUKON only) */
276  IS_IRQ_SENSOR = 1<<12, /* IRQ from Sensor (YUKON only) */
277  IS_IRQ_MST_ERR = 1<<11, /* IRQ master error detected */
278  IS_IRQ_STAT = 1<<10, /* IRQ status exception */
279  IS_NO_STAT_M1 = 1<<9, /* No Rx Status from MAC 1 */
280  IS_NO_STAT_M2 = 1<<8, /* No Rx Status from MAC 2 */
281  IS_NO_TIST_M1 = 1<<7, /* No Time Stamp from MAC 1 */
282  IS_NO_TIST_M2 = 1<<6, /* No Time Stamp from MAC 2 */
283  IS_RAM_RD_PAR = 1<<5, /* RAM Read Parity Error */
284  IS_RAM_WR_PAR = 1<<4, /* RAM Write Parity Error */
285  IS_M1_PAR_ERR = 1<<3, /* MAC 1 Parity Error */
286  IS_M2_PAR_ERR = 1<<2, /* MAC 2 Parity Error */
287  IS_R1_PAR_ERR = 1<<1, /* Queue R1 Parity Error */
288  IS_R2_PAR_ERR = 1<<0, /* Queue R2 Parity Error */
289 
294 };

◆ anonymous enum

anonymous enum
Enumerator
TST_FRC_DPERR_MR 
TST_FRC_DPERR_MW 
TST_FRC_DPERR_TR 
TST_FRC_DPERR_TW 
TST_FRC_APERR_M 
TST_FRC_APERR_T 
TST_CFG_WRITE_ON 
TST_CFG_WRITE_OFF 

Definition at line 297 of file skge.h.

297  {
298  TST_FRC_DPERR_MR = 1<<7, /* force DATAPERR on MST RD */
299  TST_FRC_DPERR_MW = 1<<6, /* force DATAPERR on MST WR */
300  TST_FRC_DPERR_TR = 1<<5, /* force DATAPERR on TRG RD */
301  TST_FRC_DPERR_TW = 1<<4, /* force DATAPERR on TRG WR */
302  TST_FRC_APERR_M = 1<<3, /* force ADDRPERR on MST */
303  TST_FRC_APERR_T = 1<<2, /* force ADDRPERR on TRG */
304  TST_CFG_WRITE_ON = 1<<1, /* Enable Config Reg WR */
305  TST_CFG_WRITE_OFF= 1<<0, /* Disable Config Reg WR */
306 };

◆ anonymous enum

anonymous enum
Enumerator
CFG_CHIP_R_MSK 
CFG_DIS_M2_CLK 
CFG_SNG_MAC 

Definition at line 309 of file skge.h.

309  {
310  CFG_CHIP_R_MSK = 0xf<<4, /* Bit 7.. 4: Chip Revision */
311  /* Bit 3.. 2: reserved */
312  CFG_DIS_M2_CLK = 1<<1, /* Disable Clock for 2nd MAC */
313  CFG_SNG_MAC = 1<<0, /* MAC Config: 0=2 MACs / 1=1 MAC*/
314 };

◆ anonymous enum

anonymous enum
Enumerator
CHIP_ID_GENESIS 
CHIP_ID_YUKON 
CHIP_ID_YUKON_LITE 
CHIP_ID_YUKON_LP 
CHIP_ID_YUKON_XL 
CHIP_ID_YUKON_EC 
CHIP_ID_YUKON_FE 
CHIP_REV_YU_LITE_A1 
CHIP_REV_YU_LITE_A3 

Definition at line 317 of file skge.h.

317  {
318  CHIP_ID_GENESIS = 0x0a, /* Chip ID for GENESIS */
319  CHIP_ID_YUKON = 0xb0, /* Chip ID for YUKON */
320  CHIP_ID_YUKON_LITE = 0xb1, /* Chip ID for YUKON-Lite (Rev. A1-A3) */
321  CHIP_ID_YUKON_LP = 0xb2, /* Chip ID for YUKON-LP */
322  CHIP_ID_YUKON_XL = 0xb3, /* Chip ID for YUKON-2 XL */
323  CHIP_ID_YUKON_EC = 0xb6, /* Chip ID for YUKON-2 EC */
324  CHIP_ID_YUKON_FE = 0xb7, /* Chip ID for YUKON-2 FE */
325 
326  CHIP_REV_YU_LITE_A1 = 3, /* Chip Rev. for YUKON-Lite A1,A2 */
327  CHIP_REV_YU_LITE_A3 = 7, /* Chip Rev. for YUKON-Lite A3 */
328 };

◆ anonymous enum

anonymous enum
Enumerator
TIM_START 
TIM_STOP 
TIM_CLR_IRQ 

Definition at line 332 of file skge.h.

332  {
333  TIM_START = 1<<2, /* Start Timer */
334  TIM_STOP = 1<<1, /* Stop Timer */
335  TIM_CLR_IRQ = 1<<0, /* Clear Timer IRQ (!IRQM) */
336 };
Definition: skge.h:334

◆ anonymous enum

anonymous enum
Enumerator
TIM_T_ON 
TIM_T_OFF 
TIM_T_STEP 

Definition at line 341 of file skge.h.

341  {
342  TIM_T_ON = 1<<2, /* Test mode on */
343  TIM_T_OFF = 1<<1, /* Test mode off */
344  TIM_T_STEP = 1<<0, /* Test step */
345 };
Definition: skge.h:342

◆ anonymous enum

anonymous enum
Enumerator
GP_DIR_9 
GP_DIR_8 
GP_DIR_7 
GP_DIR_6 
GP_DIR_5 
GP_DIR_4 
GP_DIR_3 
GP_DIR_2 
GP_DIR_1 
GP_DIR_0 
GP_IO_9 
GP_IO_8 
GP_IO_7 
GP_IO_6 
GP_IO_5 
GP_IO_4 
GP_IO_3 
GP_IO_2 
GP_IO_1 
GP_IO_0 

Definition at line 348 of file skge.h.

348  {
349  GP_DIR_9 = 1<<25, /* IO_9 direct, 0=In/1=Out */
350  GP_DIR_8 = 1<<24, /* IO_8 direct, 0=In/1=Out */
351  GP_DIR_7 = 1<<23, /* IO_7 direct, 0=In/1=Out */
352  GP_DIR_6 = 1<<22, /* IO_6 direct, 0=In/1=Out */
353  GP_DIR_5 = 1<<21, /* IO_5 direct, 0=In/1=Out */
354  GP_DIR_4 = 1<<20, /* IO_4 direct, 0=In/1=Out */
355  GP_DIR_3 = 1<<19, /* IO_3 direct, 0=In/1=Out */
356  GP_DIR_2 = 1<<18, /* IO_2 direct, 0=In/1=Out */
357  GP_DIR_1 = 1<<17, /* IO_1 direct, 0=In/1=Out */
358  GP_DIR_0 = 1<<16, /* IO_0 direct, 0=In/1=Out */
359 
360  GP_IO_9 = 1<<9, /* IO_9 pin */
361  GP_IO_8 = 1<<8, /* IO_8 pin */
362  GP_IO_7 = 1<<7, /* IO_7 pin */
363  GP_IO_6 = 1<<6, /* IO_6 pin */
364  GP_IO_5 = 1<<5, /* IO_5 pin */
365  GP_IO_4 = 1<<4, /* IO_4 pin */
366  GP_IO_3 = 1<<3, /* IO_3 pin */
367  GP_IO_2 = 1<<2, /* IO_2 pin */
368  GP_IO_1 = 1<<1, /* IO_1 pin */
369  GP_IO_0 = 1<<0, /* IO_0 pin */
370 };
Definition: skge.h:364
Definition: skge.h:362
Definition: skge.h:363
Definition: skge.h:366
Definition: skge.h:353
Definition: skge.h:367
Definition: skge.h:355
Definition: skge.h:349
Definition: skge.h:350
Definition: skge.h:360
Definition: skge.h:352
Definition: skge.h:358
Definition: skge.h:365
Definition: skge.h:369
Definition: skge.h:368
Definition: skge.h:351
Definition: skge.h:356
Definition: skge.h:354
Definition: skge.h:357
Definition: skge.h:361

◆ anonymous enum

anonymous enum
Enumerator
BMU_OWN 
BMU_STF 
BMU_EOF 
BMU_IRQ_EOB 
BMU_IRQ_EOF 
BMU_STFWD 
BMU_NO_FCS 
BMU_SW 
BMU_DEV_0 
BMU_STAT_VAL 
BMU_TIST_VAL 
BMU_CHECK 
BMU_TCP_CHECK 
BMU_UDP_CHECK 
BMU_BBC 

Definition at line 375 of file skge.h.

375  {
376  BMU_OWN = 1<<31, /* OWN bit: 0=host/1=BMU */
377  BMU_STF = 1<<30, /* Start of Frame */
378  BMU_EOF = 1<<29, /* End of Frame */
379  BMU_IRQ_EOB = 1<<28, /* Req "End of Buffer" IRQ */
380  BMU_IRQ_EOF = 1<<27, /* Req "End of Frame" IRQ */
381  /* TxCtrl specific bits */
382  BMU_STFWD = 1<<26, /* (Tx) Store & Forward Frame */
383  BMU_NO_FCS = 1<<25, /* (Tx) Disable MAC FCS (CRC) generation */
384  BMU_SW = 1<<24, /* (Tx) 1 bit res. for SW use */
385  /* RxCtrl specific bits */
386  BMU_DEV_0 = 1<<26, /* (Rx) Transfer data to Dev0 */
387  BMU_STAT_VAL = 1<<25, /* (Rx) Rx Status Valid */
388  BMU_TIST_VAL = 1<<24, /* (Rx) Rx TimeStamp Valid */
389  /* Bit 23..16: BMU Check Opcodes */
390  BMU_CHECK = 0x55<<16, /* Default BMU check */
391  BMU_TCP_CHECK = 0x56<<16, /* Descr with TCP ext */
392  BMU_UDP_CHECK = 0x57<<16, /* Descr with UDP ext (YUKON only) */
393  BMU_BBC = 0xffffL, /* Bit 15.. 0: Buffer Byte Counter */
394 };
Definition: skge.h:377
Definition: skge.h:384
Definition: skge.h:393
Definition: skge.h:378
Definition: skge.h:376

◆ anonymous enum

anonymous enum
Enumerator
BSC_START 
BSC_STOP 

Definition at line 397 of file skge.h.

397  {
398  BSC_START = 1<<1, /* Start Blink Source Counter */
399  BSC_STOP = 1<<0, /* Stop Blink Source Counter */
400 };
Definition: skge.h:399

◆ anonymous enum

anonymous enum
Enumerator
BSC_SRC 

Definition at line 403 of file skge.h.

403  {
404  BSC_SRC = 1<<0, /* Blink Source, 0=Off / 1=On */
405 };
Definition: skge.h:404

◆ anonymous enum

anonymous enum
Enumerator
BSC_T_ON 
BSC_T_OFF 
BSC_T_STEP 

Definition at line 408 of file skge.h.

408  {
409  BSC_T_ON = 1<<2, /* Test mode on */
410  BSC_T_OFF = 1<<1, /* Test mode off */
411  BSC_T_STEP = 1<<0, /* Test step */
412 };
Definition: skge.h:409

◆ anonymous enum

anonymous enum
Enumerator
RI_CLR_RD_PERR 
RI_CLR_WR_PERR 
RI_RST_CLR 
RI_RST_SET 

Definition at line 420 of file skge.h.

420  {
421  RI_CLR_RD_PERR = 1<<9, /* Clear IRQ RAM Read Parity Err */
422  RI_CLR_WR_PERR = 1<<8, /* Clear IRQ RAM Write Parity Err*/
423 
424  RI_RST_CLR = 1<<1, /* Clear RAM Interface Reset */
425  RI_RST_SET = 1<<0, /* Set RAM Interface Reset */
426 };

◆ anonymous enum

anonymous enum
Enumerator
MA_FOE_ON 
MA_FOE_OFF 
MA_RST_CLR 
MA_RST_SET 

Definition at line 430 of file skge.h.

430  {
431  MA_FOE_ON = 1<<3, /* XMAC Fast Output Enable ON */
432  MA_FOE_OFF = 1<<2, /* XMAC Fast Output Enable OFF */
433  MA_RST_CLR = 1<<1, /* Clear MAC Arbiter Reset */
434  MA_RST_SET = 1<<0, /* Set MAC Arbiter Reset */
435 
436 };

◆ anonymous enum

anonymous enum
Enumerator
PA_CLR_TO_TX2 
PA_CLR_TO_TX1 
PA_CLR_TO_RX2 
PA_CLR_TO_RX1 
PA_ENA_TO_TX2 
PA_DIS_TO_TX2 
PA_ENA_TO_TX1 
PA_DIS_TO_TX1 
PA_ENA_TO_RX2 
PA_DIS_TO_RX2 
PA_ENA_TO_RX1 
PA_DIS_TO_RX1 
PA_RST_CLR 
PA_RST_SET 

Definition at line 446 of file skge.h.

446  {
447  PA_CLR_TO_TX2 = 1<<13,/* Clear IRQ Packet Timeout TX2 */
448  PA_CLR_TO_TX1 = 1<<12,/* Clear IRQ Packet Timeout TX1 */
449  PA_CLR_TO_RX2 = 1<<11,/* Clear IRQ Packet Timeout RX2 */
450  PA_CLR_TO_RX1 = 1<<10,/* Clear IRQ Packet Timeout RX1 */
451  PA_ENA_TO_TX2 = 1<<9, /* Enable Timeout Timer TX2 */
452  PA_DIS_TO_TX2 = 1<<8, /* Disable Timeout Timer TX2 */
453  PA_ENA_TO_TX1 = 1<<7, /* Enable Timeout Timer TX1 */
454  PA_DIS_TO_TX1 = 1<<6, /* Disable Timeout Timer TX1 */
455  PA_ENA_TO_RX2 = 1<<5, /* Enable Timeout Timer RX2 */
456  PA_DIS_TO_RX2 = 1<<4, /* Disable Timeout Timer RX2 */
457  PA_ENA_TO_RX1 = 1<<3, /* Enable Timeout Timer RX1 */
458  PA_DIS_TO_RX1 = 1<<2, /* Disable Timeout Timer RX1 */
459  PA_RST_CLR = 1<<1, /* Clear MAC Arbiter Reset */
460  PA_RST_SET = 1<<0, /* Set MAC Arbiter Reset */
461 };

◆ anonymous enum

anonymous enum
Enumerator
TXA_ENA_FSYNC 
TXA_DIS_FSYNC 
TXA_ENA_ALLOC 
TXA_DIS_ALLOC 
TXA_START_RC 
TXA_STOP_RC 
TXA_ENA_ARB 
TXA_DIS_ARB 

Definition at line 476 of file skge.h.

476  {
477  TXA_ENA_FSYNC = 1<<7, /* Enable force of sync Tx queue */
478  TXA_DIS_FSYNC = 1<<6, /* Disable force of sync Tx queue */
479  TXA_ENA_ALLOC = 1<<5, /* Enable alloc of free bandwidth */
480  TXA_DIS_ALLOC = 1<<4, /* Disable alloc of free bandwidth */
481  TXA_START_RC = 1<<3, /* Start sync Rate Control */
482  TXA_STOP_RC = 1<<2, /* Stop sync Rate Control */
483  TXA_ENA_ARB = 1<<1, /* Enable Tx Arbiter */
484  TXA_DIS_ARB = 1<<0, /* Disable Tx Arbiter */
485 };

◆ anonymous enum

anonymous enum
Enumerator
TXA_ITI_INI 
TXA_ITI_VAL 
TXA_LIM_INI 
TXA_LIM_VAL 
TXA_CTRL 
TXA_TEST 
TXA_STAT 

Definition at line 491 of file skge.h.

491  {
492  TXA_ITI_INI = 0x0200,/* 32 bit Tx Arb Interval Timer Init Val*/
493  TXA_ITI_VAL = 0x0204,/* 32 bit Tx Arb Interval Timer Value */
494  TXA_LIM_INI = 0x0208,/* 32 bit Tx Arb Limit Counter Init Val */
495  TXA_LIM_VAL = 0x020c,/* 32 bit Tx Arb Limit Counter Value */
496  TXA_CTRL = 0x0210,/* 8 bit Tx Arbiter Control Register */
497  TXA_TEST = 0x0211,/* 8 bit Tx Arbiter Test Register */
498  TXA_STAT = 0x0212,/* 8 bit Tx Arbiter Status Register */
499 };
Definition: skge.h:496
Definition: skge.h:497
Definition: skge.h:498

◆ anonymous enum

anonymous enum
Enumerator
B6_EXT_REG 
B7_CFG_SPC 
B8_RQ1_REGS 
B8_RQ2_REGS 
B8_TS1_REGS 
B8_TA1_REGS 
B8_TS2_REGS 
B8_TA2_REGS 
B16_RAM_REGS 

Definition at line 502 of file skge.h.

502  {
503  B6_EXT_REG = 0x0300,/* External registers (GENESIS only) */
504  B7_CFG_SPC = 0x0380,/* copy of the Configuration register */
505  B8_RQ1_REGS = 0x0400,/* Receive Queue 1 */
506  B8_RQ2_REGS = 0x0480,/* Receive Queue 2 */
507  B8_TS1_REGS = 0x0600,/* Transmit sync queue 1 */
508  B8_TA1_REGS = 0x0680,/* Transmit async queue 1 */
509  B8_TS2_REGS = 0x0700,/* Transmit sync queue 2 */
510  B8_TA2_REGS = 0x0780,/* Transmit sync queue 2 */
511  B16_RAM_REGS = 0x0800,/* RAM Buffer Registers */
512 };

◆ anonymous enum

anonymous enum
Enumerator
B8_Q_REGS 
Q_D 
Q_DA_L 
Q_DA_H 
Q_AC_L 
Q_AC_H 
Q_BC 
Q_CSR 
Q_F 
Q_T1 
Q_T1_TR 
Q_T1_WR 
Q_T1_RD 
Q_T1_SV 
Q_T2 
Q_T3 

Definition at line 515 of file skge.h.

515  {
516  B8_Q_REGS = 0x0400, /* base of Queue registers */
517  Q_D = 0x00, /* 8*32 bit Current Descriptor */
518  Q_DA_L = 0x20, /* 32 bit Current Descriptor Address Low dWord */
519  Q_DA_H = 0x24, /* 32 bit Current Descriptor Address High dWord */
520  Q_AC_L = 0x28, /* 32 bit Current Address Counter Low dWord */
521  Q_AC_H = 0x2c, /* 32 bit Current Address Counter High dWord */
522  Q_BC = 0x30, /* 32 bit Current Byte Counter */
523  Q_CSR = 0x34, /* 32 bit BMU Control/Status Register */
524  Q_F = 0x38, /* 32 bit Flag Register */
525  Q_T1 = 0x3c, /* 32 bit Test Register 1 */
526  Q_T1_TR = 0x3c, /* 8 bit Test Register 1 Transfer SM */
527  Q_T1_WR = 0x3d, /* 8 bit Test Register 1 Write Descriptor SM */
528  Q_T1_RD = 0x3e, /* 8 bit Test Register 1 Read Descriptor SM */
529  Q_T1_SV = 0x3f, /* 8 bit Test Register 1 Supervisor SM */
530  Q_T2 = 0x40, /* 32 bit Test Register 2 */
531  Q_T3 = 0x44, /* 32 bit Test Register 3 */
532 
533 };
Definition: skge.h:530
Definition: skge.h:524
Definition: skge.h:519
Definition: skge.h:523
Definition: skge.h:526
Definition: skge.h:531
Definition: skge.h:522
Definition: skge.h:528
Definition: skge.h:517
Definition: skge.h:521
Definition: skge.h:520
Definition: skge.h:527
Definition: skge.h:529
Definition: skge.h:525
Definition: skge.h:518

◆ anonymous enum

anonymous enum
Enumerator
RB_START 
RB_END 
RB_WP 
RB_RP 
RB_RX_UTPP 
RB_RX_LTPP 
RB_RX_UTHP 
RB_RX_LTHP 
RB_PC 
RB_LEV 
RB_CTRL 
RB_TST1 
RB_TST2 

Definition at line 537 of file skge.h.

537  {
538 
539  RB_START= 0x00,/* 32 bit RAM Buffer Start Address */
540  RB_END = 0x04,/* 32 bit RAM Buffer End Address */
541  RB_WP = 0x08,/* 32 bit RAM Buffer Write Pointer */
542  RB_RP = 0x0c,/* 32 bit RAM Buffer Read Pointer */
543  RB_RX_UTPP= 0x10,/* 32 bit Rx Upper Threshold, Pause Packet */
544  RB_RX_LTPP= 0x14,/* 32 bit Rx Lower Threshold, Pause Packet */
545  RB_RX_UTHP= 0x18,/* 32 bit Rx Upper Threshold, High Prio */
546  RB_RX_LTHP= 0x1c,/* 32 bit Rx Lower Threshold, High Prio */
547  /* 0x10 - 0x1f: reserved at Tx RAM Buffer Registers */
548  RB_PC = 0x20,/* 32 bit RAM Buffer Packet Counter */
549  RB_LEV = 0x24,/* 32 bit RAM Buffer Level Register */
550  RB_CTRL = 0x28,/* 32 bit RAM Buffer Control Register */
551  RB_TST1 = 0x29,/* 8 bit RAM Buffer Test Register 1 */
552  RB_TST2 = 0x2a,/* 8 bit RAM Buffer Test Register 2 */
553 };
Definition: skge.h:550
Definition: skge.h:549
Definition: skge.h:539
Definition: skge.h:541
Definition: skge.h:548
Definition: skge.h:542
Definition: skge.h:551
Definition: skge.h:552
Definition: skge.h:540

◆ anonymous enum

anonymous enum
Enumerator
Q_R1 
Q_R2 
Q_XS1 
Q_XA1 
Q_XS2 
Q_XA2 

Definition at line 556 of file skge.h.

556  {
557  Q_R1 = 0x0000, /* Receive Queue 1 */
558  Q_R2 = 0x0080, /* Receive Queue 2 */
559  Q_XS1 = 0x0200, /* Synchronous Transmit Queue 1 */
560  Q_XA1 = 0x0280, /* Asynchronous Transmit Queue 1 */
561  Q_XS2 = 0x0300, /* Synchronous Transmit Queue 2 */
562  Q_XA2 = 0x0380, /* Asynchronous Transmit Queue 2 */
563 };
Definition: skge.h:558
Definition: skge.h:559
Definition: skge.h:557
Definition: skge.h:560
Definition: skge.h:561
Definition: skge.h:562

◆ anonymous enum

anonymous enum
Enumerator
SK_MAC_XMAC 
SK_MAC_GMAC 

Definition at line 566 of file skge.h.

566  {
567  SK_MAC_XMAC = 0, /* Xaqti XMAC II */
568  SK_MAC_GMAC = 1, /* Marvell GMAC */
569 };

◆ anonymous enum

anonymous enum
Enumerator
SK_PHY_XMAC 
SK_PHY_BCOM 
SK_PHY_LONE 
SK_PHY_NAT 
SK_PHY_MARV_COPPER 
SK_PHY_MARV_FIBER 

Definition at line 572 of file skge.h.

572  {
573  SK_PHY_XMAC = 0,/* integrated in XMAC II */
574  SK_PHY_BCOM = 1,/* Broadcom BCM5400 */
575  SK_PHY_LONE = 2,/* Level One LXT1000 [not supported]*/
576  SK_PHY_NAT = 3,/* National DP83891 [not supported] */
577  SK_PHY_MARV_COPPER= 4,/* Marvell 88E1011S */
578  SK_PHY_MARV_FIBER = 5,/* Marvell 88E1011S working on fiber */
579 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_ADDR_XMAC 
PHY_ADDR_BCOM 
PHY_ADDR_MARV 

Definition at line 582 of file skge.h.

582  {
583  PHY_ADDR_XMAC = 0<<8,
584  PHY_ADDR_BCOM = 1<<8,
585 
586 /* GPHY address (bits 15..11 of SMI control reg) */
587  PHY_ADDR_MARV = 0,
588 };

◆ anonymous enum

anonymous enum
Enumerator
RX_MFF_EA 
RX_MFF_WP 
RX_MFF_RP 
RX_MFF_PC 
RX_MFF_LEV 
RX_MFF_CTRL1 
RX_MFF_STAT_TO 
RX_MFF_TIST_TO 
RX_MFF_CTRL2 
RX_MFF_TST1 
RX_MFF_TST2 
RX_LED_INI 
RX_LED_VAL 
RX_LED_CTRL 
RX_LED_TST 
LNK_SYNC_INI 
LNK_SYNC_VAL 
LNK_SYNC_CTRL 
LNK_SYNC_TST 
LNK_LED_REG 

Definition at line 593 of file skge.h.

593  {
594  RX_MFF_EA = 0x0c00,/* 32 bit Receive MAC FIFO End Address */
595  RX_MFF_WP = 0x0c04,/* 32 bit Receive MAC FIFO Write Pointer */
596 
597  RX_MFF_RP = 0x0c0c,/* 32 bit Receive MAC FIFO Read Pointer */
598  RX_MFF_PC = 0x0c10,/* 32 bit Receive MAC FIFO Packet Cnt */
599  RX_MFF_LEV = 0x0c14,/* 32 bit Receive MAC FIFO Level */
600  RX_MFF_CTRL1 = 0x0c18,/* 16 bit Receive MAC FIFO Control Reg 1*/
601  RX_MFF_STAT_TO = 0x0c1a,/* 8 bit Receive MAC Status Timeout */
602  RX_MFF_TIST_TO = 0x0c1b,/* 8 bit Receive MAC Time Stamp Timeout */
603  RX_MFF_CTRL2 = 0x0c1c,/* 8 bit Receive MAC FIFO Control Reg 2*/
604  RX_MFF_TST1 = 0x0c1d,/* 8 bit Receive MAC FIFO Test Reg 1 */
605  RX_MFF_TST2 = 0x0c1e,/* 8 bit Receive MAC FIFO Test Reg 2 */
606 
607  RX_LED_INI = 0x0c20,/* 32 bit Receive LED Cnt Init Value */
608  RX_LED_VAL = 0x0c24,/* 32 bit Receive LED Cnt Current Value */
609  RX_LED_CTRL = 0x0c28,/* 8 bit Receive LED Cnt Control Reg */
610  RX_LED_TST = 0x0c29,/* 8 bit Receive LED Cnt Test Register */
611 
612  LNK_SYNC_INI = 0x0c30,/* 32 bit Link Sync Cnt Init Value */
613  LNK_SYNC_VAL = 0x0c34,/* 32 bit Link Sync Cnt Current Value */
614  LNK_SYNC_CTRL = 0x0c38,/* 8 bit Link Sync Cnt Control Register */
615  LNK_SYNC_TST = 0x0c39,/* 8 bit Link Sync Cnt Test Register */
616  LNK_LED_REG = 0x0c3c,/* 8 bit Link LED Register */
617 };

◆ anonymous enum

anonymous enum
Enumerator
MFF_ENA_RDY_PAT 
MFF_DIS_RDY_PAT 
MFF_ENA_TIM_PAT 
MFF_DIS_TIM_PAT 
MFF_ENA_ALM_FUL 
MFF_DIS_ALM_FUL 
MFF_ENA_PAUSE 
MFF_DIS_PAUSE 
MFF_ENA_FLUSH 
MFF_DIS_FLUSH 
MFF_ENA_TIST 
MFF_DIS_TIST 
MFF_CLR_INTIST 
MFF_CLR_INSTAT 
MFF_RX_CTRL_DEF 

Definition at line 621 of file skge.h.

621  {
622  MFF_ENA_RDY_PAT = 1<<13, /* Enable Ready Patch */
623  MFF_DIS_RDY_PAT = 1<<12, /* Disable Ready Patch */
624  MFF_ENA_TIM_PAT = 1<<11, /* Enable Timing Patch */
625  MFF_DIS_TIM_PAT = 1<<10, /* Disable Timing Patch */
626  MFF_ENA_ALM_FUL = 1<<9, /* Enable AlmostFull Sign */
627  MFF_DIS_ALM_FUL = 1<<8, /* Disable AlmostFull Sign */
628  MFF_ENA_PAUSE = 1<<7, /* Enable Pause Signaling */
629  MFF_DIS_PAUSE = 1<<6, /* Disable Pause Signaling */
630  MFF_ENA_FLUSH = 1<<5, /* Enable Frame Flushing */
631  MFF_DIS_FLUSH = 1<<4, /* Disable Frame Flushing */
632  MFF_ENA_TIST = 1<<3, /* Enable Time Stamp Gener */
633  MFF_DIS_TIST = 1<<2, /* Disable Time Stamp Gener */
634  MFF_CLR_INTIST = 1<<1, /* Clear IRQ No Time Stamp */
635  MFF_CLR_INSTAT = 1<<0, /* Clear IRQ No Status */
637 };

◆ anonymous enum

anonymous enum
Enumerator
MFF_CLR_PERR 
MFF_ENA_PKT_REC 
MFF_DIS_PKT_REC 
MFF_ENA_W4E 
MFF_DIS_W4E 
MFF_ENA_LOOPB 
MFF_DIS_LOOPB 
MFF_CLR_MAC_RST 
MFF_SET_MAC_RST 
MFF_TX_CTRL_DEF 

Definition at line 640 of file skge.h.

640  {
641  MFF_CLR_PERR = 1<<15, /* Clear Parity Error IRQ */
642 
643  MFF_ENA_PKT_REC = 1<<13, /* Enable Packet Recovery */
644  MFF_DIS_PKT_REC = 1<<12, /* Disable Packet Recovery */
645 
646  MFF_ENA_W4E = 1<<7, /* Enable Wait for Empty */
647  MFF_DIS_W4E = 1<<6, /* Disable Wait for Empty */
648 
649  MFF_ENA_LOOPB = 1<<3, /* Enable Loopback */
650  MFF_DIS_LOOPB = 1<<2, /* Disable Loopback */
651  MFF_CLR_MAC_RST = 1<<1, /* Clear XMAC Reset */
652  MFF_SET_MAC_RST = 1<<0, /* Set XMAC Reset */
653 
655 };
#define u16
Definition: vga.h:20

◆ anonymous enum

anonymous enum
Enumerator
MFF_WSP_T_ON 
MFF_WSP_T_OFF 
MFF_WSP_INC 
MFF_PC_DEC 
MFF_PC_T_ON 
MFF_PC_T_OFF 
MFF_PC_INC 

Definition at line 660 of file skge.h.

660  {
661  MFF_WSP_T_ON = 1<<6, /* Tx: Write Shadow Ptr TestOn */
662  MFF_WSP_T_OFF = 1<<5, /* Tx: Write Shadow Ptr TstOff */
663  MFF_WSP_INC = 1<<4, /* Tx: Write Shadow Ptr Increment */
664  MFF_PC_DEC = 1<<3, /* Packet Counter Decrement */
665  MFF_PC_T_ON = 1<<2, /* Packet Counter Test On */
666  MFF_PC_T_OFF = 1<<1, /* Packet Counter Test Off */
667  MFF_PC_INC = 1<<0, /* Packet Counter Increment */
668 };

◆ anonymous enum

anonymous enum
Enumerator
MFF_WP_T_ON 
MFF_WP_T_OFF 
MFF_WP_INC 
MFF_RP_T_ON 
MFF_RP_T_OFF 
MFF_RP_DEC 

Definition at line 672 of file skge.h.

672  {
673  MFF_WP_T_ON = 1<<6, /* Write Pointer Test On */
674  MFF_WP_T_OFF = 1<<5, /* Write Pointer Test Off */
675  MFF_WP_INC = 1<<4, /* Write Pointer Increm */
676 
677  MFF_RP_T_ON = 1<<2, /* Read Pointer Test On */
678  MFF_RP_T_OFF = 1<<1, /* Read Pointer Test Off */
679  MFF_RP_DEC = 1<<0, /* Read Pointer Decrement */
680 };

◆ anonymous enum

anonymous enum
Enumerator
MFF_ENA_OP_MD 
MFF_DIS_OP_MD 
MFF_RST_CLR 
MFF_RST_SET 

Definition at line 684 of file skge.h.

684  {
685  MFF_ENA_OP_MD = 1<<3, /* Enable Operation Mode */
686  MFF_DIS_OP_MD = 1<<2, /* Disable Operation Mode */
687  MFF_RST_CLR = 1<<1, /* Clear MAC FIFO Reset */
688  MFF_RST_SET = 1<<0, /* Set MAC FIFO Reset */
689 };

◆ anonymous enum

anonymous enum
Enumerator
LED_START 
LED_STOP 
LED_STATE 

Definition at line 697 of file skge.h.

697  {
698  LED_START = 1<<2, /* Start Timer */
699  LED_STOP = 1<<1, /* Stop Timer */
700  LED_STATE = 1<<0, /* Rx/Tx: LED State, 1=LED on */
701 };
Definition: skge.h:699

◆ anonymous enum

anonymous enum
Enumerator
LED_T_ON 
LED_T_OFF 
LED_T_STEP 

Definition at line 706 of file skge.h.

706  {
707  LED_T_ON = 1<<2, /* LED Counter Test mode On */
708  LED_T_OFF = 1<<1, /* LED Counter Test mode Off */
709  LED_T_STEP = 1<<0, /* LED Counter Step */
710 };
Definition: skge.h:707

◆ anonymous enum

anonymous enum
Enumerator
LED_BLK_ON 
LED_BLK_OFF 
LED_SYNC_ON 
LED_SYNC_OFF 
LED_ON 
LED_OFF 

Definition at line 713 of file skge.h.

713  {
714  LED_BLK_ON = 1<<5, /* Link LED Blinking On */
715  LED_BLK_OFF = 1<<4, /* Link LED Blinking Off */
716  LED_SYNC_ON = 1<<3, /* Use Sync Wire to switch LED */
717  LED_SYNC_OFF = 1<<2, /* Disable Sync Wire Input */
718  LED_ON = 1<<1, /* switch LED on */
719  LED_OFF = 1<<0, /* switch LED off */
720 };
Definition: skge.h:719
Definition: skge.h:718

◆ anonymous enum

anonymous enum
Enumerator
RX_GMF_EA 
RX_GMF_AF_THR 
RX_GMF_CTRL_T 
RX_GMF_FL_MSK 
RX_GMF_FL_THR 
RX_GMF_WP 
RX_GMF_WLEV 
RX_GMF_RP 
RX_GMF_RLEV 

Definition at line 723 of file skge.h.

723  {
724  RX_GMF_EA = 0x0c40,/* 32 bit Rx GMAC FIFO End Address */
725  RX_GMF_AF_THR = 0x0c44,/* 32 bit Rx GMAC FIFO Almost Full Thresh. */
726  RX_GMF_CTRL_T = 0x0c48,/* 32 bit Rx GMAC FIFO Control/Test */
727  RX_GMF_FL_MSK = 0x0c4c,/* 32 bit Rx GMAC FIFO Flush Mask */
728  RX_GMF_FL_THR = 0x0c50,/* 32 bit Rx GMAC FIFO Flush Threshold */
729  RX_GMF_WP = 0x0c60,/* 32 bit Rx GMAC FIFO Write Pointer */
730  RX_GMF_WLEV = 0x0c68,/* 32 bit Rx GMAC FIFO Write Level */
731  RX_GMF_RP = 0x0c70,/* 32 bit Rx GMAC FIFO Read Pointer */
732  RX_GMF_RLEV = 0x0c78,/* 32 bit Rx GMAC FIFO Read Level */
733 };

◆ anonymous enum

anonymous enum
Enumerator
TXA_INT_T_ON 
TXA_INT_T_OFF 
TXA_INT_T_STEP 
TXA_LIM_T_ON 
TXA_LIM_T_OFF 
TXA_LIM_T_STEP 

Definition at line 737 of file skge.h.

737  {
738  TXA_INT_T_ON = 1<<5, /* Tx Arb Interval Timer Test On */
739  TXA_INT_T_OFF = 1<<4, /* Tx Arb Interval Timer Test Off */
740  TXA_INT_T_STEP = 1<<3, /* Tx Arb Interval Timer Step */
741  TXA_LIM_T_ON = 1<<2, /* Tx Arb Limit Timer Test On */
742  TXA_LIM_T_OFF = 1<<1, /* Tx Arb Limit Timer Test Off */
743  TXA_LIM_T_STEP = 1<<0, /* Tx Arb Limit Timer Step */
744 };

◆ anonymous enum

anonymous enum
Enumerator
TXA_PRIO_XS 

Definition at line 747 of file skge.h.

747  {
748  TXA_PRIO_XS = 1<<0, /* sync queue has prio to send */
749 };

◆ anonymous enum

anonymous enum
Enumerator
CSR_SV_IDLE 
CSR_DESC_CLR 
CSR_DESC_SET 
CSR_FIFO_CLR 
CSR_FIFO_SET 
CSR_HPI_RUN 
CSR_HPI_RST 
CSR_SV_RUN 
CSR_SV_RST 
CSR_DREAD_RUN 
CSR_DREAD_RST 
CSR_DWRITE_RUN 
CSR_DWRITE_RST 
CSR_TRANS_RUN 
CSR_TRANS_RST 
CSR_ENA_POL 
CSR_DIS_POL 
CSR_STOP 
CSR_START 
CSR_IRQ_CL_P 
CSR_IRQ_CL_B 
CSR_IRQ_CL_F 
CSR_IRQ_CL_C 

Definition at line 763 of file skge.h.

763  {
764  CSR_SV_IDLE = 1<<24, /* BMU SM Idle */
765 
766  CSR_DESC_CLR = 1<<21, /* Clear Reset for Descr */
767  CSR_DESC_SET = 1<<20, /* Set Reset for Descr */
768  CSR_FIFO_CLR = 1<<19, /* Clear Reset for FIFO */
769  CSR_FIFO_SET = 1<<18, /* Set Reset for FIFO */
770  CSR_HPI_RUN = 1<<17, /* Release HPI SM */
771  CSR_HPI_RST = 1<<16, /* Reset HPI SM to Idle */
772  CSR_SV_RUN = 1<<15, /* Release Supervisor SM */
773  CSR_SV_RST = 1<<14, /* Reset Supervisor SM */
774  CSR_DREAD_RUN = 1<<13, /* Release Descr Read SM */
775  CSR_DREAD_RST = 1<<12, /* Reset Descr Read SM */
776  CSR_DWRITE_RUN = 1<<11, /* Release Descr Write SM */
777  CSR_DWRITE_RST = 1<<10, /* Reset Descr Write SM */
778  CSR_TRANS_RUN = 1<<9, /* Release Transfer SM */
779  CSR_TRANS_RST = 1<<8, /* Reset Transfer SM */
780  CSR_ENA_POL = 1<<7, /* Enable Descr Polling */
781  CSR_DIS_POL = 1<<6, /* Disable Descr Polling */
782  CSR_STOP = 1<<5, /* Stop Rx/Tx Queue */
783  CSR_START = 1<<4, /* Start Rx/Tx Queue */
784  CSR_IRQ_CL_P = 1<<3, /* (Rx) Clear Parity IRQ */
785  CSR_IRQ_CL_B = 1<<2, /* Clear EOB IRQ */
786  CSR_IRQ_CL_F = 1<<1, /* Clear EOF IRQ */
787  CSR_IRQ_CL_C = 1<<0, /* Clear ERR IRQ */
788 };
Definition: skge.h:782

◆ anonymous enum

anonymous enum
Enumerator
F_ALM_FULL 
F_EMPTY 
F_FIFO_EOF 
F_WM_REACHED 
F_FIFO_LEVEL 
F_WATER_MARK 

Definition at line 798 of file skge.h.

798  {
799  F_ALM_FULL = 1<<27, /* Rx FIFO: almost full */
800  F_EMPTY = 1<<27, /* Tx FIFO: empty flag */
801  F_FIFO_EOF = 1<<26, /* Tag (EOF Flag) bit in FIFO */
802  F_WM_REACHED = 1<<25, /* Watermark reached */
803 
804  F_FIFO_LEVEL = 0x1fL<<16, /* Bit 23..16: # of Qwords in FIFO */
805  F_WATER_MARK = 0x0007ffL, /* Bit 10.. 0: Watermark */
806 };
Definition: skge.h:800

◆ anonymous enum

anonymous enum
Enumerator
RB_ENA_STFWD 
RB_DIS_STFWD 
RB_ENA_OP_MD 
RB_DIS_OP_MD 
RB_RST_CLR 
RB_RST_SET 

Definition at line 825 of file skge.h.

825  {
826  RB_ENA_STFWD = 1<<5, /* Enable Store & Forward */
827  RB_DIS_STFWD = 1<<4, /* Disable Store & Forward */
828  RB_ENA_OP_MD = 1<<3, /* Enable Operation Mode */
829  RB_DIS_OP_MD = 1<<2, /* Disable Operation Mode */
830  RB_RST_CLR = 1<<1, /* Clear RAM Buf STM Reset */
831  RB_RST_SET = 1<<0, /* Set RAM Buf STM Reset */
832 };

◆ anonymous enum

anonymous enum
Enumerator
TX_MFF_EA 
TX_MFF_WP 
TX_MFF_WSP 
TX_MFF_RP 
TX_MFF_PC 
TX_MFF_LEV 
TX_MFF_CTRL1 
TX_MFF_WAF 
TX_MFF_CTRL2 
TX_MFF_TST1 
TX_MFF_TST2 
TX_LED_INI 
TX_LED_VAL 
TX_LED_CTRL 
TX_LED_TST 

Definition at line 835 of file skge.h.

835  {
836  TX_MFF_EA = 0x0d00,/* 32 bit Transmit MAC FIFO End Address */
837  TX_MFF_WP = 0x0d04,/* 32 bit Transmit MAC FIFO WR Pointer */
838  TX_MFF_WSP = 0x0d08,/* 32 bit Transmit MAC FIFO WR Shadow Ptr */
839  TX_MFF_RP = 0x0d0c,/* 32 bit Transmit MAC FIFO RD Pointer */
840  TX_MFF_PC = 0x0d10,/* 32 bit Transmit MAC FIFO Packet Cnt */
841  TX_MFF_LEV = 0x0d14,/* 32 bit Transmit MAC FIFO Level */
842  TX_MFF_CTRL1 = 0x0d18,/* 16 bit Transmit MAC FIFO Ctrl Reg 1 */
843  TX_MFF_WAF = 0x0d1a,/* 8 bit Transmit MAC Wait after flush */
844 
845  TX_MFF_CTRL2 = 0x0d1c,/* 8 bit Transmit MAC FIFO Ctrl Reg 2 */
846  TX_MFF_TST1 = 0x0d1d,/* 8 bit Transmit MAC FIFO Test Reg 1 */
847  TX_MFF_TST2 = 0x0d1e,/* 8 bit Transmit MAC FIFO Test Reg 2 */
848 
849  TX_LED_INI = 0x0d20,/* 32 bit Transmit LED Cnt Init Value */
850  TX_LED_VAL = 0x0d24,/* 32 bit Transmit LED Cnt Current Val */
851  TX_LED_CTRL = 0x0d28,/* 8 bit Transmit LED Cnt Control Reg */
852  TX_LED_TST = 0x0d29,/* 8 bit Transmit LED Cnt Test Reg */
853 };

◆ anonymous enum

anonymous enum
Enumerator
TX_GMF_EA 
TX_GMF_AE_THR 
TX_GMF_CTRL_T 
TX_GMF_WP 
TX_GMF_WSP 
TX_GMF_WLEV 
TX_GMF_RP 
TX_GMF_RSTP 
TX_GMF_RLEV 
B28_DPT_INI 
B28_DPT_VAL 
B28_DPT_CTRL 
B28_DPT_TST 
GMAC_TI_ST_VAL 
GMAC_TI_ST_CTRL 
GMAC_TI_ST_TST 

Definition at line 870 of file skge.h.

870  {
871  TX_GMF_EA = 0x0d40,/* 32 bit Tx GMAC FIFO End Address */
872  TX_GMF_AE_THR = 0x0d44,/* 32 bit Tx GMAC FIFO Almost Empty Thresh.*/
873  TX_GMF_CTRL_T = 0x0d48,/* 32 bit Tx GMAC FIFO Control/Test */
874 
875  TX_GMF_WP = 0x0d60,/* 32 bit Tx GMAC FIFO Write Pointer */
876  TX_GMF_WSP = 0x0d64,/* 32 bit Tx GMAC FIFO Write Shadow Ptr. */
877  TX_GMF_WLEV = 0x0d68,/* 32 bit Tx GMAC FIFO Write Level */
878 
879  TX_GMF_RP = 0x0d70,/* 32 bit Tx GMAC FIFO Read Pointer */
880  TX_GMF_RSTP = 0x0d74,/* 32 bit Tx GMAC FIFO Restart Pointer */
881  TX_GMF_RLEV = 0x0d78,/* 32 bit Tx GMAC FIFO Read Level */
882 
883  /* Descriptor Poll Timer Registers */
884  B28_DPT_INI = 0x0e00,/* 24 bit Descriptor Poll Timer Init Val */
885  B28_DPT_VAL = 0x0e04,/* 24 bit Descriptor Poll Timer Curr Val */
886  B28_DPT_CTRL = 0x0e08,/* 8 bit Descriptor Poll Timer Ctrl Reg */
887 
888  B28_DPT_TST = 0x0e0a,/* 8 bit Descriptor Poll Timer Test Reg */
889 
890  /* Time Stamp Timer Registers (YUKON only) */
891  GMAC_TI_ST_VAL = 0x0e14,/* 32 bit Time Stamp Timer Curr Val */
892  GMAC_TI_ST_CTRL = 0x0e18,/* 8 bit Time Stamp Timer Ctrl Reg */
893  GMAC_TI_ST_TST = 0x0e1a,/* 8 bit Time Stamp Timer Test Reg */
894 };

◆ anonymous enum

anonymous enum
Enumerator
LINKLED_OFF 
LINKLED_ON 
LINKLED_LINKSYNC_OFF 
LINKLED_LINKSYNC_ON 
LINKLED_BLINK_OFF 
LINKLED_BLINK_ON 

Definition at line 897 of file skge.h.

897  {
898  LINKLED_OFF = 0x01,
899  LINKLED_ON = 0x02,
900  LINKLED_LINKSYNC_OFF = 0x04,
901  LINKLED_LINKSYNC_ON = 0x08,
902  LINKLED_BLINK_OFF = 0x10,
903  LINKLED_BLINK_ON = 0x20,
904 };

◆ anonymous enum

anonymous enum
Enumerator
GMAC_CTRL 
GPHY_CTRL 
GMAC_IRQ_SRC 
GMAC_IRQ_MSK 
GMAC_LINK_CTRL 
WOL_REG_OFFS 
WOL_CTRL_STAT 
WOL_MATCH_CTL 
WOL_MATCH_RES 
WOL_MAC_ADDR 
WOL_PATT_RPTR 
WOL_PATT_LEN_LO 
WOL_PATT_LEN_HI 
WOL_PATT_CNT_0 
WOL_PATT_CNT_4 

Definition at line 907 of file skge.h.

907  {
908  GMAC_CTRL = 0x0f00,/* 32 bit GMAC Control Reg */
909  GPHY_CTRL = 0x0f04,/* 32 bit GPHY Control Reg */
910  GMAC_IRQ_SRC = 0x0f08,/* 8 bit GMAC Interrupt Source Reg */
911  GMAC_IRQ_MSK = 0x0f0c,/* 8 bit GMAC Interrupt Mask Reg */
912  GMAC_LINK_CTRL = 0x0f10,/* 16 bit Link Control Reg */
913 
914 /* Wake-up Frame Pattern Match Control Registers (YUKON only) */
915 
916  WOL_REG_OFFS = 0x20,/* HW-Bug: Address is + 0x20 against spec. */
917 
918  WOL_CTRL_STAT = 0x0f20,/* 16 bit WOL Control/Status Reg */
919  WOL_MATCH_CTL = 0x0f22,/* 8 bit WOL Match Control Reg */
920  WOL_MATCH_RES = 0x0f23,/* 8 bit WOL Match Result Reg */
921  WOL_MAC_ADDR = 0x0f24,/* 32 bit WOL MAC Address */
922  WOL_PATT_RPTR = 0x0f2c,/* 8 bit WOL Pattern Read Pointer */
923 
924 /* WOL Pattern Length Registers (YUKON only) */
925 
926  WOL_PATT_LEN_LO = 0x0f30,/* 32 bit WOL Pattern Length 3..0 */
927  WOL_PATT_LEN_HI = 0x0f34,/* 24 bit WOL Pattern Length 6..4 */
928 
929 /* WOL Pattern Counter Registers (YUKON only) */
930 
931  WOL_PATT_CNT_0 = 0x0f38,/* 32 bit WOL Pattern Counter 3..0 */
932  WOL_PATT_CNT_4 = 0x0f3c,/* 24 bit WOL Pattern Counter 6..4 */
933 };

◆ anonymous enum

anonymous enum
Enumerator
WOL_PATT_RAM_1 
WOL_PATT_RAM_2 

Definition at line 936 of file skge.h.

936  {
937  WOL_PATT_RAM_1 = 0x1000,/* WOL Pattern RAM Link 1 */
938  WOL_PATT_RAM_2 = 0x1400,/* WOL Pattern RAM Link 2 */
939 };

◆ anonymous enum

anonymous enum
Enumerator
BASE_XMAC_1 
BASE_GMAC_1 
BASE_XMAC_2 
BASE_GMAC_2 

Definition at line 942 of file skge.h.

942  {
943  BASE_XMAC_1 = 0x2000,/* XMAC 1 registers */
944  BASE_GMAC_1 = 0x2800,/* GMAC 1 registers */
945  BASE_XMAC_2 = 0x3000,/* XMAC 2 registers */
946  BASE_GMAC_2 = 0x3800,/* GMAC 2 registers */
947 };

◆ anonymous enum

anonymous enum
Enumerator
XMR_FS_LEN 
XMR_FS_LEN_SHIFT 
XMR_FS_2L_VLAN 
XMR_FS_1_VLAN 
XMR_FS_BC 
XMR_FS_MC 
XMR_FS_UC 
XMR_FS_BURST 
XMR_FS_CEX_ERR 
XMR_FS_802_3 
XMR_FS_COL_ERR 
XMR_FS_CAR_ERR 
XMR_FS_LEN_ERR 
XMR_FS_FRA_ERR 
XMR_FS_RUNT 
XMR_FS_LNG_ERR 
XMR_FS_FCS_ERR 
XMR_FS_ERR 
XMR_FS_MCTRL 

Definition at line 952 of file skge.h.

952  {
953  XMR_FS_LEN = 0x3fff<<18, /* Bit 31..18: Rx Frame Length */
954  XMR_FS_LEN_SHIFT = 18,
955  XMR_FS_2L_VLAN = 1<<17, /* Bit 17: tagged wh 2Lev VLAN ID*/
956  XMR_FS_1_VLAN = 1<<16, /* Bit 16: tagged wh 1ev VLAN ID*/
957  XMR_FS_BC = 1<<15, /* Bit 15: Broadcast Frame */
958  XMR_FS_MC = 1<<14, /* Bit 14: Multicast Frame */
959  XMR_FS_UC = 1<<13, /* Bit 13: Unicast Frame */
960 
961  XMR_FS_BURST = 1<<11, /* Bit 11: Burst Mode */
962  XMR_FS_CEX_ERR = 1<<10, /* Bit 10: Carrier Ext. Error */
963  XMR_FS_802_3 = 1<<9, /* Bit 9: 802.3 Frame */
964  XMR_FS_COL_ERR = 1<<8, /* Bit 8: Collision Error */
965  XMR_FS_CAR_ERR = 1<<7, /* Bit 7: Carrier Event Error */
966  XMR_FS_LEN_ERR = 1<<6, /* Bit 6: In-Range Length Error */
967  XMR_FS_FRA_ERR = 1<<5, /* Bit 5: Framing Error */
968  XMR_FS_RUNT = 1<<4, /* Bit 4: Runt Frame */
969  XMR_FS_LNG_ERR = 1<<3, /* Bit 3: Giant (Jumbo) Frame */
970  XMR_FS_FCS_ERR = 1<<2, /* Bit 2: Frame Check Sequ Err */
971  XMR_FS_ERR = 1<<1, /* Bit 1: Frame Error */
972  XMR_FS_MCTRL = 1<<0, /* Bit 0: MAC Control Packet */
973 
974 /*
975  * XMR_FS_ERR will be set if
976  * XMR_FS_FCS_ERR, XMR_FS_LNG_ERR, XMR_FS_RUNT,
977  * XMR_FS_FRA_ERR, XMR_FS_LEN_ERR, or XMR_FS_CEX_ERR
978  * is set. XMR_FS_LNG_ERR and XMR_FS_LEN_ERR will issue
979  * XMR_FS_ERR unless the corresponding bit in the Receive Command
980  * Register is set.
981  */
982 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_XMAC_CTRL 
PHY_XMAC_STAT 
PHY_XMAC_ID0 
PHY_XMAC_ID1 
PHY_XMAC_AUNE_ADV 
PHY_XMAC_AUNE_LP 
PHY_XMAC_AUNE_EXP 
PHY_XMAC_NEPG 
PHY_XMAC_NEPG_LP 
PHY_XMAC_EXT_STAT 
PHY_XMAC_RES_ABI 

Definition at line 987 of file skge.h.

987  {
988  PHY_XMAC_CTRL = 0x00,/* 16 bit r/w PHY Control Register */
989  PHY_XMAC_STAT = 0x01,/* 16 bit r/w PHY Status Register */
990  PHY_XMAC_ID0 = 0x02,/* 16 bit r/o PHY ID0 Register */
991  PHY_XMAC_ID1 = 0x03,/* 16 bit r/o PHY ID1 Register */
992  PHY_XMAC_AUNE_ADV = 0x04,/* 16 bit r/w Auto-Neg. Advertisement */
993  PHY_XMAC_AUNE_LP = 0x05,/* 16 bit r/o Link Partner Abi Reg */
994  PHY_XMAC_AUNE_EXP = 0x06,/* 16 bit r/o Auto-Neg. Expansion Reg */
995  PHY_XMAC_NEPG = 0x07,/* 16 bit r/w Next Page Register */
996  PHY_XMAC_NEPG_LP = 0x08,/* 16 bit r/o Next Page Link Partner */
997 
998  PHY_XMAC_EXT_STAT = 0x0f,/* 16 bit r/o Ext Status Register */
999  PHY_XMAC_RES_ABI = 0x10,/* 16 bit r/o PHY Resolved Ability */
1000 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_BCOM_CTRL 
PHY_BCOM_STAT 
PHY_BCOM_ID0 
PHY_BCOM_ID1 
PHY_BCOM_AUNE_ADV 
PHY_BCOM_AUNE_LP 
PHY_BCOM_AUNE_EXP 
PHY_BCOM_NEPG 
PHY_BCOM_NEPG_LP 
PHY_BCOM_1000T_CTRL 
PHY_BCOM_1000T_STAT 
PHY_BCOM_EXT_STAT 
PHY_BCOM_P_EXT_CTRL 
PHY_BCOM_P_EXT_STAT 
PHY_BCOM_RE_CTR 
PHY_BCOM_FC_CTR 
PHY_BCOM_RNO_CTR 
PHY_BCOM_AUX_CTRL 
PHY_BCOM_AUX_STAT 
PHY_BCOM_INT_STAT 
PHY_BCOM_INT_MASK 

Definition at line 1004 of file skge.h.

1004  {
1005  PHY_BCOM_CTRL = 0x00,/* 16 bit r/w PHY Control Register */
1006  PHY_BCOM_STAT = 0x01,/* 16 bit r/o PHY Status Register */
1007  PHY_BCOM_ID0 = 0x02,/* 16 bit r/o PHY ID0 Register */
1008  PHY_BCOM_ID1 = 0x03,/* 16 bit r/o PHY ID1 Register */
1009  PHY_BCOM_AUNE_ADV = 0x04,/* 16 bit r/w Auto-Neg. Advertisement */
1010  PHY_BCOM_AUNE_LP = 0x05,/* 16 bit r/o Link Part Ability Reg */
1011  PHY_BCOM_AUNE_EXP = 0x06,/* 16 bit r/o Auto-Neg. Expansion Reg */
1012  PHY_BCOM_NEPG = 0x07,/* 16 bit r/w Next Page Register */
1013  PHY_BCOM_NEPG_LP = 0x08,/* 16 bit r/o Next Page Link Partner */
1014  /* Broadcom-specific registers */
1015  PHY_BCOM_1000T_CTRL = 0x09,/* 16 bit r/w 1000Base-T Control Reg */
1016  PHY_BCOM_1000T_STAT = 0x0a,/* 16 bit r/o 1000Base-T Status Reg */
1017  PHY_BCOM_EXT_STAT = 0x0f,/* 16 bit r/o Extended Status Reg */
1018  PHY_BCOM_P_EXT_CTRL = 0x10,/* 16 bit r/w PHY Extended Ctrl Reg */
1019  PHY_BCOM_P_EXT_STAT = 0x11,/* 16 bit r/o PHY Extended Stat Reg */
1020  PHY_BCOM_RE_CTR = 0x12,/* 16 bit r/w Receive Error Counter */
1021  PHY_BCOM_FC_CTR = 0x13,/* 16 bit r/w False Carrier Sense Cnt */
1022  PHY_BCOM_RNO_CTR = 0x14,/* 16 bit r/w Receiver NOT_OK Cnt */
1023 
1024  PHY_BCOM_AUX_CTRL = 0x18,/* 16 bit r/w Auxiliary Control Reg */
1025  PHY_BCOM_AUX_STAT = 0x19,/* 16 bit r/o Auxiliary Stat Summary */
1026  PHY_BCOM_INT_STAT = 0x1a,/* 16 bit r/o Interrupt Status Reg */
1027  PHY_BCOM_INT_MASK = 0x1b,/* 16 bit r/w Interrupt Mask Reg */
1028 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_MARV_CTRL 
PHY_MARV_STAT 
PHY_MARV_ID0 
PHY_MARV_ID1 
PHY_MARV_AUNE_ADV 
PHY_MARV_AUNE_LP 
PHY_MARV_AUNE_EXP 
PHY_MARV_NEPG 
PHY_MARV_NEPG_LP 
PHY_MARV_1000T_CTRL 
PHY_MARV_1000T_STAT 
PHY_MARV_EXT_STAT 
PHY_MARV_PHY_CTRL 
PHY_MARV_PHY_STAT 
PHY_MARV_INT_MASK 
PHY_MARV_INT_STAT 
PHY_MARV_EXT_CTRL 
PHY_MARV_RXE_CNT 
PHY_MARV_EXT_ADR 
PHY_MARV_PORT_IRQ 
PHY_MARV_LED_CTRL 
PHY_MARV_LED_OVER 
PHY_MARV_EXT_CTRL_2 
PHY_MARV_EXT_P_STAT 
PHY_MARV_CABLE_DIAG 
PHY_MARV_PAGE_ADDR 
PHY_MARV_PAGE_DATA 
PHY_MARV_FE_LED_PAR 
PHY_MARV_FE_LED_SER 
PHY_MARV_FE_VCT_TX 
PHY_MARV_FE_VCT_RX 
PHY_MARV_FE_SPEC_2 

Definition at line 1033 of file skge.h.

1033  {
1034  PHY_MARV_CTRL = 0x00,/* 16 bit r/w PHY Control Register */
1035  PHY_MARV_STAT = 0x01,/* 16 bit r/o PHY Status Register */
1036  PHY_MARV_ID0 = 0x02,/* 16 bit r/o PHY ID0 Register */
1037  PHY_MARV_ID1 = 0x03,/* 16 bit r/o PHY ID1 Register */
1038  PHY_MARV_AUNE_ADV = 0x04,/* 16 bit r/w Auto-Neg. Advertisement */
1039  PHY_MARV_AUNE_LP = 0x05,/* 16 bit r/o Link Part Ability Reg */
1040  PHY_MARV_AUNE_EXP = 0x06,/* 16 bit r/o Auto-Neg. Expansion Reg */
1041  PHY_MARV_NEPG = 0x07,/* 16 bit r/w Next Page Register */
1042  PHY_MARV_NEPG_LP = 0x08,/* 16 bit r/o Next Page Link Partner */
1043  /* Marvel-specific registers */
1044  PHY_MARV_1000T_CTRL = 0x09,/* 16 bit r/w 1000Base-T Control Reg */
1045  PHY_MARV_1000T_STAT = 0x0a,/* 16 bit r/o 1000Base-T Status Reg */
1046  PHY_MARV_EXT_STAT = 0x0f,/* 16 bit r/o Extended Status Reg */
1047  PHY_MARV_PHY_CTRL = 0x10,/* 16 bit r/w PHY Specific Ctrl Reg */
1048  PHY_MARV_PHY_STAT = 0x11,/* 16 bit r/o PHY Specific Stat Reg */
1049  PHY_MARV_INT_MASK = 0x12,/* 16 bit r/w Interrupt Mask Reg */
1050  PHY_MARV_INT_STAT = 0x13,/* 16 bit r/o Interrupt Status Reg */
1051  PHY_MARV_EXT_CTRL = 0x14,/* 16 bit r/w Ext. PHY Specific Ctrl */
1052  PHY_MARV_RXE_CNT = 0x15,/* 16 bit r/w Receive Error Counter */
1053  PHY_MARV_EXT_ADR = 0x16,/* 16 bit r/w Ext. Ad. for Cable Diag. */
1054  PHY_MARV_PORT_IRQ = 0x17,/* 16 bit r/o Port 0 IRQ (88E1111 only) */
1055  PHY_MARV_LED_CTRL = 0x18,/* 16 bit r/w LED Control Reg */
1056  PHY_MARV_LED_OVER = 0x19,/* 16 bit r/w Manual LED Override Reg */
1057  PHY_MARV_EXT_CTRL_2 = 0x1a,/* 16 bit r/w Ext. PHY Specific Ctrl 2 */
1058  PHY_MARV_EXT_P_STAT = 0x1b,/* 16 bit r/w Ext. PHY Spec. Stat Reg */
1059  PHY_MARV_CABLE_DIAG = 0x1c,/* 16 bit r/o Cable Diagnostic Reg */
1060  PHY_MARV_PAGE_ADDR = 0x1d,/* 16 bit r/w Extended Page Address Reg */
1061  PHY_MARV_PAGE_DATA = 0x1e,/* 16 bit r/w Extended Page Data Reg */
1062 
1063 /* for 10/100 Fast Ethernet PHY (88E3082 only) */
1064  PHY_MARV_FE_LED_PAR = 0x16,/* 16 bit r/w LED Parallel Select Reg. */
1065  PHY_MARV_FE_LED_SER = 0x17,/* 16 bit r/w LED Stream Select S. LED */
1066  PHY_MARV_FE_VCT_TX = 0x1a,/* 16 bit r/w VCT Reg. for TXP/N Pins */
1067  PHY_MARV_FE_VCT_RX = 0x1b,/* 16 bit r/o VCT Reg. for RXP/N Pins */
1068  PHY_MARV_FE_SPEC_2 = 0x1c,/* 16 bit r/w Specific Control Reg. 2 */
1069 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_CT_RESET 
PHY_CT_LOOP 
PHY_CT_SPS_LSB 
PHY_CT_ANE 
PHY_CT_PDOWN 
PHY_CT_ISOL 
PHY_CT_RE_CFG 
PHY_CT_DUP_MD 
PHY_CT_COL_TST 
PHY_CT_SPS_MSB 

Definition at line 1071 of file skge.h.

1071  {
1072  PHY_CT_RESET = 1<<15, /* Bit 15: (sc) clear all PHY related regs */
1073  PHY_CT_LOOP = 1<<14, /* Bit 14: enable Loopback over PHY */
1074  PHY_CT_SPS_LSB = 1<<13, /* Bit 13: Speed select, lower bit */
1075  PHY_CT_ANE = 1<<12, /* Bit 12: Auto-Negotiation Enabled */
1076  PHY_CT_PDOWN = 1<<11, /* Bit 11: Power Down Mode */
1077  PHY_CT_ISOL = 1<<10, /* Bit 10: Isolate Mode */
1078  PHY_CT_RE_CFG = 1<<9, /* Bit 9: (sc) Restart Auto-Negotiation */
1079  PHY_CT_DUP_MD = 1<<8, /* Bit 8: Duplex Mode */
1080  PHY_CT_COL_TST = 1<<7, /* Bit 7: Collision Test enabled */
1081  PHY_CT_SPS_MSB = 1<<6, /* Bit 6: Speed select, upper bit */
1082 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_CT_SP1000 
PHY_CT_SP100 
PHY_CT_SP10 

Definition at line 1084 of file skge.h.

1084  {
1085  PHY_CT_SP1000 = PHY_CT_SPS_MSB, /* enable speed of 1000 Mbps */
1086  PHY_CT_SP100 = PHY_CT_SPS_LSB, /* enable speed of 100 Mbps */
1087  PHY_CT_SP10 = 0, /* enable speed of 10 Mbps */
1088 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_ST_EXT_ST 
PHY_ST_PRE_SUP 
PHY_ST_AN_OVER 
PHY_ST_REM_FLT 
PHY_ST_AN_CAP 
PHY_ST_LSYNC 
PHY_ST_JAB_DET 
PHY_ST_EXT_REG 

Definition at line 1090 of file skge.h.

1090  {
1091  PHY_ST_EXT_ST = 1<<8, /* Bit 8: Extended Status Present */
1092 
1093  PHY_ST_PRE_SUP = 1<<6, /* Bit 6: Preamble Suppression */
1094  PHY_ST_AN_OVER = 1<<5, /* Bit 5: Auto-Negotiation Over */
1095  PHY_ST_REM_FLT = 1<<4, /* Bit 4: Remote Fault Condition Occurred */
1096  PHY_ST_AN_CAP = 1<<3, /* Bit 3: Auto-Negotiation Capability */
1097  PHY_ST_LSYNC = 1<<2, /* Bit 2: Link Synchronized */
1098  PHY_ST_JAB_DET = 1<<1, /* Bit 1: Jabber Detected */
1099  PHY_ST_EXT_REG = 1<<0, /* Bit 0: Extended Register available */
1100 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_I1_OUI_MSK 
PHY_I1_MOD_NUM 
PHY_I1_REV_MSK 

Definition at line 1102 of file skge.h.

1102  {
1103  PHY_I1_OUI_MSK = 0x3f<<10, /* Bit 15..10: Organization Unique ID */
1104  PHY_I1_MOD_NUM = 0x3f<<4, /* Bit 9.. 4: Model Number */
1105  PHY_I1_REV_MSK = 0xf, /* Bit 3.. 0: Revision Number */
1106 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_BCOM_ID1_A1 
PHY_BCOM_ID1_B2 
PHY_BCOM_ID1_C0 
PHY_BCOM_ID1_C5 

Definition at line 1109 of file skge.h.

1109  {
1110  PHY_BCOM_ID1_A1 = 0x6041,
1111  PHY_BCOM_ID1_B2 = 0x6043,
1112  PHY_BCOM_ID1_C0 = 0x6044,
1113  PHY_BCOM_ID1_C5 = 0x6047,
1114 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_MARV_ID0_VAL 
PHY_MARV_ID1_B0 
PHY_MARV_ID1_B2 
PHY_MARV_ID1_C2 
PHY_MARV_ID1_Y2 

Definition at line 1117 of file skge.h.

1117  {
1118  PHY_MARV_ID0_VAL= 0x0141, /* Marvell Unique Identifier */
1119  PHY_MARV_ID1_B0 = 0x0C23, /* Yukon (PHY 88E1011) */
1120  PHY_MARV_ID1_B2 = 0x0C25, /* Yukon-Plus (PHY 88E1011) */
1121  PHY_MARV_ID1_C2 = 0x0CC2, /* Yukon-EC (PHY 88E1111) */
1122  PHY_MARV_ID1_Y2 = 0x0C91, /* Yukon-2 (PHY 88E1112) */
1123 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_AN_NXT_PG 
PHY_AN_ACK 
PHY_AN_RF 
PHY_AN_PAUSE_ASYM 
PHY_AN_PAUSE_CAP 
PHY_AN_100BASE4 
PHY_AN_100FULL 
PHY_AN_100HALF 
PHY_AN_10FULL 
PHY_AN_10HALF 
PHY_AN_CSMA 
PHY_AN_SEL 
PHY_AN_FULL 
PHY_AN_ALL 

Definition at line 1126 of file skge.h.

1126  {
1127  PHY_AN_NXT_PG = 1<<15, /* Bit 15: Request Next Page */
1128  PHY_AN_ACK = 1<<14, /* Bit 14: (ro) Acknowledge Received */
1129  PHY_AN_RF = 1<<13, /* Bit 13: Remote Fault Bits */
1130 
1131  PHY_AN_PAUSE_ASYM = 1<<11,/* Bit 11: Try for asymmetric */
1132  PHY_AN_PAUSE_CAP = 1<<10, /* Bit 10: Try for pause */
1133  PHY_AN_100BASE4 = 1<<9, /* Bit 9: Try for 100mbps 4k packets */
1134  PHY_AN_100FULL = 1<<8, /* Bit 8: Try for 100mbps full-duplex */
1135  PHY_AN_100HALF = 1<<7, /* Bit 7: Try for 100mbps half-duplex */
1136  PHY_AN_10FULL = 1<<6, /* Bit 6: Try for 10mbps full-duplex */
1137  PHY_AN_10HALF = 1<<5, /* Bit 5: Try for 10mbps half-duplex */
1138  PHY_AN_CSMA = 1<<0, /* Bit 0: Only selector supported */
1139  PHY_AN_SEL = 0x1f, /* Bit 4..0: Selector Field, 00001=Ethernet*/
1143 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_X_AN_NXT_PG 
PHY_X_AN_ACK 
PHY_X_AN_RFB 
PHY_X_AN_PAUSE 
PHY_X_AN_HD 
PHY_X_AN_FD 

Definition at line 1146 of file skge.h.

1146  {
1147  PHY_X_AN_NXT_PG = 1<<15, /* Bit 15: Request Next Page */
1148  PHY_X_AN_ACK = 1<<14, /* Bit 14: (ro) Acknowledge Received */
1149  PHY_X_AN_RFB = 3<<12,/* Bit 13..12: Remote Fault Bits */
1150 
1151  PHY_X_AN_PAUSE = 3<<7,/* Bit 8.. 7: Pause Bits */
1152  PHY_X_AN_HD = 1<<6, /* Bit 6: Half Duplex */
1153  PHY_X_AN_FD = 1<<5, /* Bit 5: Full Duplex */
1154 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_X_P_NO_PAUSE 
PHY_X_P_SYM_MD 
PHY_X_P_ASYM_MD 
PHY_X_P_BOTH_MD 

Definition at line 1157 of file skge.h.

1157  {
1158  PHY_X_P_NO_PAUSE= 0<<7,/* Bit 8..7: no Pause Mode */
1159  PHY_X_P_SYM_MD = 1<<7, /* Bit 8..7: symmetric Pause Mode */
1160  PHY_X_P_ASYM_MD = 2<<7,/* Bit 8..7: asymmetric Pause Mode */
1161  PHY_X_P_BOTH_MD = 3<<7,/* Bit 8..7: both Pause Mode */
1162 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_X_EX_FD 
PHY_X_EX_HD 

Definition at line 1166 of file skge.h.

1166  {
1167  PHY_X_EX_FD = 1<<15, /* Bit 15: Device Supports Full Duplex */
1168  PHY_X_EX_HD = 1<<14, /* Bit 14: Device Supports Half Duplex */
1169 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_X_RS_PAUSE 
PHY_X_RS_HD 
PHY_X_RS_FD 
PHY_X_RS_ABLMIS 
PHY_X_RS_PAUMIS 

Definition at line 1172 of file skge.h.

1172  {
1173  PHY_X_RS_PAUSE = 3<<7, /* Bit 8..7: selected Pause Mode */
1174  PHY_X_RS_HD = 1<<6, /* Bit 6: Half Duplex Mode selected */
1175  PHY_X_RS_FD = 1<<5, /* Bit 5: Full Duplex Mode selected */
1176  PHY_X_RS_ABLMIS = 1<<4, /* Bit 4: duplex or pause cap mismatch */
1177  PHY_X_RS_PAUMIS = 1<<3, /* Bit 3: pause capability mismatch */
1178 };

◆ anonymous enum

anonymous enum
Enumerator
X_RFB_OK 
X_RFB_LF 
X_RFB_OFF 
X_RFB_AN_ERR 

Definition at line 1181 of file skge.h.

1181  {
1182  X_RFB_OK = 0<<12,/* Bit 13..12 No errors, Link OK */
1183  X_RFB_LF = 1<<12,/* Bit 13..12 Link Failure */
1184  X_RFB_OFF = 2<<12,/* Bit 13..12 Offline */
1185  X_RFB_AN_ERR = 3<<12,/* Bit 13..12 Auto-Negotiation Error */
1186 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_B_1000C_TEST 
PHY_B_1000C_MSE 
PHY_B_1000C_MSC 
PHY_B_1000C_RD 
PHY_B_1000C_AFD 
PHY_B_1000C_AHD 

Definition at line 1190 of file skge.h.

1190  {
1191  PHY_B_1000C_TEST = 7<<13,/* Bit 15..13: Test Modes */
1192  PHY_B_1000C_MSE = 1<<12, /* Bit 12: Master/Slave Enable */
1193  PHY_B_1000C_MSC = 1<<11, /* Bit 11: M/S Configuration */
1194  PHY_B_1000C_RD = 1<<10, /* Bit 10: Repeater/DTE */
1195  PHY_B_1000C_AFD = 1<<9, /* Bit 9: Advertise Full Duplex */
1196  PHY_B_1000C_AHD = 1<<8, /* Bit 8: Advertise Half Duplex */
1197 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_B_1000S_MSF 
PHY_B_1000S_MSR 
PHY_B_1000S_LRS 
PHY_B_1000S_RRS 
PHY_B_1000S_LP_FD 
PHY_B_1000S_LP_HD 
PHY_B_1000S_IEC 

Definition at line 1201 of file skge.h.

1201  {
1202  PHY_B_1000S_MSF = 1<<15, /* Bit 15: Master/Slave Fault */
1203  PHY_B_1000S_MSR = 1<<14, /* Bit 14: Master/Slave Result */
1204  PHY_B_1000S_LRS = 1<<13, /* Bit 13: Local Receiver Status */
1205  PHY_B_1000S_RRS = 1<<12, /* Bit 12: Remote Receiver Status */
1206  PHY_B_1000S_LP_FD = 1<<11, /* Bit 11: Link Partner can FD */
1207  PHY_B_1000S_LP_HD = 1<<10, /* Bit 10: Link Partner can HD */
1208  /* Bit 9..8: reserved */
1209  PHY_B_1000S_IEC = 0xff, /* Bit 7..0: Idle Error Count */
1210 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_B_ES_X_FD_CAP 
PHY_B_ES_X_HD_CAP 
PHY_B_ES_T_FD_CAP 
PHY_B_ES_T_HD_CAP 

Definition at line 1213 of file skge.h.

1213  {
1214  PHY_B_ES_X_FD_CAP = 1<<15, /* Bit 15: 1000Base-X FD capable */
1215  PHY_B_ES_X_HD_CAP = 1<<14, /* Bit 14: 1000Base-X HD capable */
1216  PHY_B_ES_T_FD_CAP = 1<<13, /* Bit 13: 1000Base-T FD capable */
1217  PHY_B_ES_T_HD_CAP = 1<<12, /* Bit 12: 1000Base-T HD capable */
1218 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_B_PEC_MAC_PHY 
PHY_B_PEC_DIS_CROSS 
PHY_B_PEC_TX_DIS 
PHY_B_PEC_INT_DIS 
PHY_B_PEC_F_INT 
PHY_B_PEC_BY_45 
PHY_B_PEC_BY_SCR 
PHY_B_PEC_BY_MLT3 
PHY_B_PEC_BY_RXA 
PHY_B_PEC_RES_SCR 
PHY_B_PEC_EN_LTR 
PHY_B_PEC_LED_ON 
PHY_B_PEC_LED_OFF 
PHY_B_PEC_EX_IPG 
PHY_B_PEC_3_LED 
PHY_B_PEC_HIGH_LA 

Definition at line 1221 of file skge.h.

1221  {
1222  PHY_B_PEC_MAC_PHY = 1<<15, /* Bit 15: 10BIT/GMI-Interface */
1223  PHY_B_PEC_DIS_CROSS = 1<<14, /* Bit 14: Disable MDI Crossover */
1224  PHY_B_PEC_TX_DIS = 1<<13, /* Bit 13: Tx output Disabled */
1225  PHY_B_PEC_INT_DIS = 1<<12, /* Bit 12: Interrupts Disabled */
1226  PHY_B_PEC_F_INT = 1<<11, /* Bit 11: Force Interrupt */
1227  PHY_B_PEC_BY_45 = 1<<10, /* Bit 10: Bypass 4B5B-Decoder */
1228  PHY_B_PEC_BY_SCR = 1<<9, /* Bit 9: Bypass Scrambler */
1229  PHY_B_PEC_BY_MLT3 = 1<<8, /* Bit 8: Bypass MLT3 Encoder */
1230  PHY_B_PEC_BY_RXA = 1<<7, /* Bit 7: Bypass Rx Alignm. */
1231  PHY_B_PEC_RES_SCR = 1<<6, /* Bit 6: Reset Scrambler */
1232  PHY_B_PEC_EN_LTR = 1<<5, /* Bit 5: Ena LED Traffic Mode */
1233  PHY_B_PEC_LED_ON = 1<<4, /* Bit 4: Force LED's on */
1234  PHY_B_PEC_LED_OFF = 1<<3, /* Bit 3: Force LED's off */
1235  PHY_B_PEC_EX_IPG = 1<<2, /* Bit 2: Extend Tx IPG Mode */
1236  PHY_B_PEC_3_LED = 1<<1, /* Bit 1: Three Link LED mode */
1237  PHY_B_PEC_HIGH_LA = 1<<0, /* Bit 0: GMII FIFO Elasticy */
1238 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_B_PES_CROSS_STAT 
PHY_B_PES_INT_STAT 
PHY_B_PES_RRS 
PHY_B_PES_LRS 
PHY_B_PES_LOCKED 
PHY_B_PES_LS 
PHY_B_PES_RF 
PHY_B_PES_CE_ER 
PHY_B_PES_BAD_SSD 
PHY_B_PES_BAD_ESD 
PHY_B_PES_RX_ER 
PHY_B_PES_TX_ER 
PHY_B_PES_LOCK_ER 
PHY_B_PES_MLT3_ER 

Definition at line 1241 of file skge.h.

1241  {
1242  PHY_B_PES_CROSS_STAT = 1<<13, /* Bit 13: MDI Crossover Status */
1243  PHY_B_PES_INT_STAT = 1<<12, /* Bit 12: Interrupt Status */
1244  PHY_B_PES_RRS = 1<<11, /* Bit 11: Remote Receiver Stat. */
1245  PHY_B_PES_LRS = 1<<10, /* Bit 10: Local Receiver Stat. */
1246  PHY_B_PES_LOCKED = 1<<9, /* Bit 9: Locked */
1247  PHY_B_PES_LS = 1<<8, /* Bit 8: Link Status */
1248  PHY_B_PES_RF = 1<<7, /* Bit 7: Remote Fault */
1249  PHY_B_PES_CE_ER = 1<<6, /* Bit 6: Carrier Ext Error */
1250  PHY_B_PES_BAD_SSD = 1<<5, /* Bit 5: Bad SSD */
1251  PHY_B_PES_BAD_ESD = 1<<4, /* Bit 4: Bad ESD */
1252  PHY_B_PES_RX_ER = 1<<3, /* Bit 3: Receive Error */
1253  PHY_B_PES_TX_ER = 1<<2, /* Bit 2: Transmit Error */
1254  PHY_B_PES_LOCK_ER = 1<<1, /* Bit 1: Lock Error */
1255  PHY_B_PES_MLT3_ER = 1<<0, /* Bit 0: MLT3 code Error */
1256 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_B_AN_RF 
PHY_B_AN_ASP 
PHY_B_AN_PC 

Definition at line 1260 of file skge.h.

1260  {
1261  PHY_B_AN_RF = 1<<13, /* Bit 13: Remote Fault */
1262 
1263  PHY_B_AN_ASP = 1<<11, /* Bit 11: Asymmetric Pause */
1264  PHY_B_AN_PC = 1<<10, /* Bit 10: Pause Capable */
1265 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_B_FC_CTR 
PHY_B_RC_LOC_MSK 
PHY_B_RC_REM_MSK 
PHY_B_AC_L_SQE 
PHY_B_AC_LONG_PACK 
PHY_B_AC_ER_CTRL 
PHY_B_AC_TX_TST 
PHY_B_AC_DIS_PRF 
PHY_B_AC_DIS_PM 
PHY_B_AC_DIAG 

Definition at line 1269 of file skge.h.

1269  {
1270  PHY_B_FC_CTR = 0xff, /* Bit 7..0: False Carrier Counter */
1271 
1272 /***** PHY_BCOM_RNO_CTR 16 bit r/w Receive NOT_OK Counter *****/
1273  PHY_B_RC_LOC_MSK = 0xff00, /* Bit 15..8: Local Rx NOT_OK cnt */
1274  PHY_B_RC_REM_MSK = 0x00ff, /* Bit 7..0: Remote Rx NOT_OK cnt */
1275 
1276 /***** PHY_BCOM_AUX_CTRL 16 bit r/w Auxiliary Control Reg *****/
1277  PHY_B_AC_L_SQE = 1<<15, /* Bit 15: Low Squelch */
1278  PHY_B_AC_LONG_PACK = 1<<14, /* Bit 14: Rx Long Packets */
1279  PHY_B_AC_ER_CTRL = 3<<12,/* Bit 13..12: Edgerate Control */
1280  /* Bit 11: reserved */
1281  PHY_B_AC_TX_TST = 1<<10, /* Bit 10: Tx test bit, always 1 */
1282  /* Bit 9.. 8: reserved */
1283  PHY_B_AC_DIS_PRF = 1<<7, /* Bit 7: dis part resp filter */
1284  /* Bit 6: reserved */
1285  PHY_B_AC_DIS_PM = 1<<5, /* Bit 5: dis power management */
1286  /* Bit 4: reserved */
1287  PHY_B_AC_DIAG = 1<<3, /* Bit 3: Diagnostic Mode */
1288 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_B_AS_AN_C 
PHY_B_AS_AN_CA 
PHY_B_AS_ANACK_D 
PHY_B_AS_ANAB_D 
PHY_B_AS_NPW 
PHY_B_AS_AN_RES_MSK 
PHY_B_AS_PDF 
PHY_B_AS_RF 
PHY_B_AS_ANP_R 
PHY_B_AS_LP_ANAB 
PHY_B_AS_LP_NPAB 
PHY_B_AS_LS 
PHY_B_AS_PRR 
PHY_B_AS_PRT 

Definition at line 1291 of file skge.h.

1291  {
1292  PHY_B_AS_AN_C = 1<<15, /* Bit 15: AutoNeg complete */
1293  PHY_B_AS_AN_CA = 1<<14, /* Bit 14: AN Complete Ack */
1294  PHY_B_AS_ANACK_D = 1<<13, /* Bit 13: AN Ack Detect */
1295  PHY_B_AS_ANAB_D = 1<<12, /* Bit 12: AN Ability Detect */
1296  PHY_B_AS_NPW = 1<<11, /* Bit 11: AN Next Page Wait */
1297  PHY_B_AS_AN_RES_MSK = 7<<8,/* Bit 10..8: AN HDC */
1298  PHY_B_AS_PDF = 1<<7, /* Bit 7: Parallel Detect. Fault */
1299  PHY_B_AS_RF = 1<<6, /* Bit 6: Remote Fault */
1300  PHY_B_AS_ANP_R = 1<<5, /* Bit 5: AN Page Received */
1301  PHY_B_AS_LP_ANAB = 1<<4, /* Bit 4: LP AN Ability */
1302  PHY_B_AS_LP_NPAB = 1<<3, /* Bit 3: LP Next Page Ability */
1303  PHY_B_AS_LS = 1<<2, /* Bit 2: Link Status */
1304  PHY_B_AS_PRR = 1<<1, /* Bit 1: Pause Resolution-Rx */
1305  PHY_B_AS_PRT = 1<<0, /* Bit 0: Pause Resolution-Tx */
1306 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_B_IS_PSE 
PHY_B_IS_MDXI_SC 
PHY_B_IS_HCT 
PHY_B_IS_LCT 
PHY_B_IS_AN_PR 
PHY_B_IS_NO_HDCL 
PHY_B_IS_NO_HDC 
PHY_B_IS_NEG_USHDC 
PHY_B_IS_SCR_S_ER 
PHY_B_IS_RRS_CHANGE 
PHY_B_IS_LRS_CHANGE 
PHY_B_IS_DUP_CHANGE 
PHY_B_IS_LSP_CHANGE 
PHY_B_IS_LST_CHANGE 
PHY_B_IS_CRC_ER 

Definition at line 1311 of file skge.h.

1311  {
1312  PHY_B_IS_PSE = 1<<14, /* Bit 14: Pair Swap Error */
1313  PHY_B_IS_MDXI_SC = 1<<13, /* Bit 13: MDIX Status Change */
1314  PHY_B_IS_HCT = 1<<12, /* Bit 12: counter above 32k */
1315  PHY_B_IS_LCT = 1<<11, /* Bit 11: counter above 128 */
1316  PHY_B_IS_AN_PR = 1<<10, /* Bit 10: Page Received */
1317  PHY_B_IS_NO_HDCL = 1<<9, /* Bit 9: No HCD Link */
1318  PHY_B_IS_NO_HDC = 1<<8, /* Bit 8: No HCD */
1319  PHY_B_IS_NEG_USHDC = 1<<7, /* Bit 7: Negotiated Unsup. HCD */
1320  PHY_B_IS_SCR_S_ER = 1<<6, /* Bit 6: Scrambler Sync Error */
1321  PHY_B_IS_RRS_CHANGE = 1<<5, /* Bit 5: Remote Rx Stat Change */
1322  PHY_B_IS_LRS_CHANGE = 1<<4, /* Bit 4: Local Rx Stat Change */
1323  PHY_B_IS_DUP_CHANGE = 1<<3, /* Bit 3: Duplex Mode Change */
1324  PHY_B_IS_LSP_CHANGE = 1<<2, /* Bit 2: Link Speed Change */
1325  PHY_B_IS_LST_CHANGE = 1<<1, /* Bit 1: Link Status Changed */
1326  PHY_B_IS_CRC_ER = 1<<0, /* Bit 0: CRC Error */
1327 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_B_P_NO_PAUSE 
PHY_B_P_SYM_MD 
PHY_B_P_ASYM_MD 
PHY_B_P_BOTH_MD 

Definition at line 1333 of file skge.h.

1333  {
1334  PHY_B_P_NO_PAUSE = 0<<10,/* Bit 11..10: no Pause Mode */
1335  PHY_B_P_SYM_MD = 1<<10, /* Bit 11..10: symmetric Pause Mode */
1336  PHY_B_P_ASYM_MD = 2<<10,/* Bit 11..10: asymmetric Pause Mode */
1337  PHY_B_P_BOTH_MD = 3<<10,/* Bit 11..10: both Pause Mode */
1338 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_B_RES_1000FD 
PHY_B_RES_1000HD 

Definition at line 1342 of file skge.h.

1342  {
1343  PHY_B_RES_1000FD = 7<<8,/* Bit 10..8: 1000Base-T Full Dup. */
1344  PHY_B_RES_1000HD = 6<<8,/* Bit 10..8: 1000Base-T Half Dup. */
1345 };

◆ anonymous enum

anonymous enum

Marvell-Specific.

Enumerator
PHY_M_AN_NXT_PG 
PHY_M_AN_ACK 
PHY_M_AN_RF 
PHY_M_AN_ASP 
PHY_M_AN_PC 
PHY_M_AN_100_T4 
PHY_M_AN_100_FD 
PHY_M_AN_100_HD 
PHY_M_AN_10_FD 
PHY_M_AN_10_HD 
PHY_M_AN_SEL_MSK 

Definition at line 1348 of file skge.h.

1348  {
1349  PHY_M_AN_NXT_PG = 1<<15, /* Request Next Page */
1350  PHY_M_AN_ACK = 1<<14, /* (ro) Acknowledge Received */
1351  PHY_M_AN_RF = 1<<13, /* Remote Fault */
1352 
1353  PHY_M_AN_ASP = 1<<11, /* Asymmetric Pause */
1354  PHY_M_AN_PC = 1<<10, /* MAC Pause implemented */
1355  PHY_M_AN_100_T4 = 1<<9, /* Not cap. 100Base-T4 (always 0) */
1356  PHY_M_AN_100_FD = 1<<8, /* Advertise 100Base-TX Full Duplex */
1357  PHY_M_AN_100_HD = 1<<7, /* Advertise 100Base-TX Half Duplex */
1358  PHY_M_AN_10_FD = 1<<6, /* Advertise 10Base-TX Full Duplex */
1359  PHY_M_AN_10_HD = 1<<5, /* Advertise 10Base-TX Half Duplex */
1360  PHY_M_AN_SEL_MSK =0x1f<<4, /* Bit 4.. 0: Selector Field Mask */
1361 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_M_AN_ASP_X 
PHY_M_AN_PC_X 
PHY_M_AN_1000X_AHD 
PHY_M_AN_1000X_AFD 

Definition at line 1364 of file skge.h.

1364  {
1365  PHY_M_AN_ASP_X = 1<<8, /* Asymmetric Pause */
1366  PHY_M_AN_PC_X = 1<<7, /* MAC Pause implemented */
1367  PHY_M_AN_1000X_AHD = 1<<6, /* Advertise 10000Base-X Half Duplex */
1368  PHY_M_AN_1000X_AFD = 1<<5, /* Advertise 10000Base-X Full Duplex */
1369 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_M_P_NO_PAUSE_X 
PHY_M_P_SYM_MD_X 
PHY_M_P_ASYM_MD_X 
PHY_M_P_BOTH_MD_X 

Definition at line 1372 of file skge.h.

1372  {
1373  PHY_M_P_NO_PAUSE_X = 0<<7,/* Bit 8.. 7: no Pause Mode */
1374  PHY_M_P_SYM_MD_X = 1<<7, /* Bit 8.. 7: symmetric Pause Mode */
1375  PHY_M_P_ASYM_MD_X = 2<<7,/* Bit 8.. 7: asymmetric Pause Mode */
1376  PHY_M_P_BOTH_MD_X = 3<<7,/* Bit 8.. 7: both Pause Mode */
1377 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_M_1000C_TEST 
PHY_M_1000C_MSE 
PHY_M_1000C_MSC 
PHY_M_1000C_MPD 
PHY_M_1000C_AFD 
PHY_M_1000C_AHD 

Definition at line 1380 of file skge.h.

1380  {
1381  PHY_M_1000C_TEST= 7<<13,/* Bit 15..13: Test Modes */
1382  PHY_M_1000C_MSE = 1<<12, /* Manual Master/Slave Enable */
1383  PHY_M_1000C_MSC = 1<<11, /* M/S Configuration (1=Master) */
1384  PHY_M_1000C_MPD = 1<<10, /* Multi-Port Device */
1385  PHY_M_1000C_AFD = 1<<9, /* Advertise Full Duplex */
1386  PHY_M_1000C_AHD = 1<<8, /* Advertise Half Duplex */
1387 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_M_PC_TX_FFD_MSK 
PHY_M_PC_RX_FFD_MSK 
PHY_M_PC_ASS_CRS_TX 
PHY_M_PC_FL_GOOD 
PHY_M_PC_EN_DET_MSK 
PHY_M_PC_ENA_EXT_D 
PHY_M_PC_MDIX_MSK 
PHY_M_PC_DIS_125CLK 
PHY_M_PC_MAC_POW_UP 
PHY_M_PC_SQE_T_ENA 
PHY_M_PC_POL_R_DIS 
PHY_M_PC_DIS_JABBER 

Definition at line 1390 of file skge.h.

1390  {
1391  PHY_M_PC_TX_FFD_MSK = 3<<14,/* Bit 15..14: Tx FIFO Depth Mask */
1392  PHY_M_PC_RX_FFD_MSK = 3<<12,/* Bit 13..12: Rx FIFO Depth Mask */
1393  PHY_M_PC_ASS_CRS_TX = 1<<11, /* Assert CRS on Transmit */
1394  PHY_M_PC_FL_GOOD = 1<<10, /* Force Link Good */
1395  PHY_M_PC_EN_DET_MSK = 3<<8,/* Bit 9.. 8: Energy Detect Mask */
1396  PHY_M_PC_ENA_EXT_D = 1<<7, /* Enable Ext. Distance (10BT) */
1397  PHY_M_PC_MDIX_MSK = 3<<5,/* Bit 6.. 5: MDI/MDIX Config. Mask */
1398  PHY_M_PC_DIS_125CLK = 1<<4, /* Disable 125 CLK */
1399  PHY_M_PC_MAC_POW_UP = 1<<3, /* MAC Power up */
1400  PHY_M_PC_SQE_T_ENA = 1<<2, /* SQE Test Enabled */
1401  PHY_M_PC_POL_R_DIS = 1<<1, /* Polarity Reversal Disabled */
1402  PHY_M_PC_DIS_JABBER = 1<<0, /* Disable Jabber */
1403 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_M_PC_EN_DET 
PHY_M_PC_EN_DET_PLUS 

Definition at line 1405 of file skge.h.

1405  {
1406  PHY_M_PC_EN_DET = 2<<8, /* Energy Detect (Mode 1) */
1407  PHY_M_PC_EN_DET_PLUS = 3<<8, /* Energy Detect Plus (Mode 2) */
1408 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_M_PC_MAN_MDI 
PHY_M_PC_MAN_MDIX 
PHY_M_PC_ENA_AUTO 

Definition at line 1410 of file skge.h.

1410  {
1411  PHY_M_PC_MAN_MDI = 0, /* 00 = Manual MDI configuration */
1412  PHY_M_PC_MAN_MDIX = 1, /* 01 = Manual MDIX configuration */
1413  PHY_M_PC_ENA_AUTO = 3, /* 11 = Enable Automatic Crossover */
1414 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_M_PC_ENA_DTE_DT 
PHY_M_PC_ENA_ENE_DT 
PHY_M_PC_DIS_NLP_CK 
PHY_M_PC_ENA_LIP_NP 
PHY_M_PC_DIS_NLP_GN 
PHY_M_PC_DIS_SCRAMB 
PHY_M_PC_DIS_FEFI 
PHY_M_PC_SH_TP_SEL 
PHY_M_PC_RX_FD_MSK 

Definition at line 1417 of file skge.h.

1417  {
1418  PHY_M_PC_ENA_DTE_DT = 1<<15, /* Enable Data Terminal Equ. (DTE) Detect */
1419  PHY_M_PC_ENA_ENE_DT = 1<<14, /* Enable Energy Detect (sense & pulse) */
1420  PHY_M_PC_DIS_NLP_CK = 1<<13, /* Disable Normal Link Puls (NLP) Check */
1421  PHY_M_PC_ENA_LIP_NP = 1<<12, /* Enable Link Partner Next Page Reg. */
1422  PHY_M_PC_DIS_NLP_GN = 1<<11, /* Disable Normal Link Puls Generation */
1423 
1424  PHY_M_PC_DIS_SCRAMB = 1<<9, /* Disable Scrambler */
1425  PHY_M_PC_DIS_FEFI = 1<<8, /* Disable Far End Fault Indic. (FEFI) */
1426 
1427  PHY_M_PC_SH_TP_SEL = 1<<6, /* Shielded Twisted Pair Select */
1428  PHY_M_PC_RX_FD_MSK = 3<<2,/* Bit 3.. 2: Rx FIFO Depth Mask */
1429 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_M_PS_SPEED_MSK 
PHY_M_PS_SPEED_1000 
PHY_M_PS_SPEED_100 
PHY_M_PS_SPEED_10 
PHY_M_PS_FULL_DUP 
PHY_M_PS_PAGE_REC 
PHY_M_PS_SPDUP_RES 
PHY_M_PS_LINK_UP 
PHY_M_PS_CABLE_MSK 
PHY_M_PS_MDI_X_STAT 
PHY_M_PS_DOWNS_STAT 
PHY_M_PS_ENDET_STAT 
PHY_M_PS_TX_P_EN 
PHY_M_PS_RX_P_EN 
PHY_M_PS_POL_REV 
PHY_M_PS_JABBER 

Definition at line 1432 of file skge.h.

1432  {
1433  PHY_M_PS_SPEED_MSK = 3<<14, /* Bit 15..14: Speed Mask */
1434  PHY_M_PS_SPEED_1000 = 1<<15, /* 10 = 1000 Mbps */
1435  PHY_M_PS_SPEED_100 = 1<<14, /* 01 = 100 Mbps */
1436  PHY_M_PS_SPEED_10 = 0, /* 00 = 10 Mbps */
1437  PHY_M_PS_FULL_DUP = 1<<13, /* Full Duplex */
1438  PHY_M_PS_PAGE_REC = 1<<12, /* Page Received */
1439  PHY_M_PS_SPDUP_RES = 1<<11, /* Speed & Duplex Resolved */
1440  PHY_M_PS_LINK_UP = 1<<10, /* Link Up */
1441  PHY_M_PS_CABLE_MSK = 7<<7, /* Bit 9.. 7: Cable Length Mask */
1442  PHY_M_PS_MDI_X_STAT = 1<<6, /* MDI Crossover Stat (1=MDIX) */
1443  PHY_M_PS_DOWNS_STAT = 1<<5, /* Downshift Status (1=downsh.) */
1444  PHY_M_PS_ENDET_STAT = 1<<4, /* Energy Detect Status (1=act) */
1445  PHY_M_PS_TX_P_EN = 1<<3, /* Tx Pause Enabled */
1446  PHY_M_PS_RX_P_EN = 1<<2, /* Rx Pause Enabled */
1447  PHY_M_PS_POL_REV = 1<<1, /* Polarity Reversed */
1448  PHY_M_PS_JABBER = 1<<0, /* Jabber */
1449 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_M_PS_DTE_DETECT 
PHY_M_PS_RES_SPEED 

Definition at line 1454 of file skge.h.

1454  {
1455  PHY_M_PS_DTE_DETECT = 1<<15, /* Data Terminal Equipment (DTE) Detected */
1456  PHY_M_PS_RES_SPEED = 1<<14, /* Resolved Speed (1=100 Mbps, 0=10 Mbps */
1457 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_M_IS_AN_ERROR 
PHY_M_IS_LSP_CHANGE 
PHY_M_IS_DUP_CHANGE 
PHY_M_IS_AN_PR 
PHY_M_IS_AN_COMPL 
PHY_M_IS_LST_CHANGE 
PHY_M_IS_SYMB_ERROR 
PHY_M_IS_FALSE_CARR 
PHY_M_IS_FIFO_ERROR 
PHY_M_IS_MDI_CHANGE 
PHY_M_IS_DOWNSH_DET 
PHY_M_IS_END_CHANGE 
PHY_M_IS_DTE_CHANGE 
PHY_M_IS_POL_CHANGE 
PHY_M_IS_JABBER 
PHY_M_IS_DEF_MSK 
PHY_M_IS_AN_MSK 

Definition at line 1459 of file skge.h.

1459  {
1460  PHY_M_IS_AN_ERROR = 1<<15, /* Auto-Negotiation Error */
1461  PHY_M_IS_LSP_CHANGE = 1<<14, /* Link Speed Changed */
1462  PHY_M_IS_DUP_CHANGE = 1<<13, /* Duplex Mode Changed */
1463  PHY_M_IS_AN_PR = 1<<12, /* Page Received */
1464  PHY_M_IS_AN_COMPL = 1<<11, /* Auto-Negotiation Completed */
1465  PHY_M_IS_LST_CHANGE = 1<<10, /* Link Status Changed */
1466  PHY_M_IS_SYMB_ERROR = 1<<9, /* Symbol Error */
1467  PHY_M_IS_FALSE_CARR = 1<<8, /* False Carrier */
1468  PHY_M_IS_FIFO_ERROR = 1<<7, /* FIFO Overflow/Underrun Error */
1469  PHY_M_IS_MDI_CHANGE = 1<<6, /* MDI Crossover Changed */
1470  PHY_M_IS_DOWNSH_DET = 1<<5, /* Downshift Detected */
1471  PHY_M_IS_END_CHANGE = 1<<4, /* Energy Detect Changed */
1472 
1473  PHY_M_IS_DTE_CHANGE = 1<<2, /* DTE Power Det. Status Changed */
1474  PHY_M_IS_POL_CHANGE = 1<<1, /* Polarity Changed */
1475  PHY_M_IS_JABBER = 1<<0, /* Jabber */
1476 
1479 
1481 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_M_EC_ENA_BC_EXT 
PHY_M_EC_ENA_LIN_LB 
PHY_M_EC_DIS_LINK_P 
PHY_M_EC_M_DSC_MSK 
PHY_M_EC_S_DSC_MSK 
PHY_M_EC_M_DSC_MSK2 
PHY_M_EC_DOWN_S_ENA 
PHY_M_EC_RX_TIM_CT 
PHY_M_EC_MAC_S_MSK 
PHY_M_EC_FIB_AN_ENA 
PHY_M_EC_DTE_D_ENA 
PHY_M_EC_TX_TIM_CT 
PHY_M_EC_TRANS_DIS 

Definition at line 1484 of file skge.h.

1484  {
1485  PHY_M_EC_ENA_BC_EXT = 1<<15, /* Enable Block Carr. Ext. (88E1111 only) */
1486  PHY_M_EC_ENA_LIN_LB = 1<<14, /* Enable Line Loopback (88E1111 only) */
1487 
1488  PHY_M_EC_DIS_LINK_P = 1<<12, /* Disable Link Pulses (88E1111 only) */
1489  PHY_M_EC_M_DSC_MSK = 3<<10, /* Bit 11..10: Master Downshift Counter */
1490  /* (88E1011 only) */
1491  PHY_M_EC_S_DSC_MSK = 3<<8, /* Bit 9.. 8: Slave Downshift Counter */
1492  /* (88E1011 only) */
1493  PHY_M_EC_M_DSC_MSK2 = 7<<9, /* Bit 11.. 9: Master Downshift Counter */
1494  /* (88E1111 only) */
1495  PHY_M_EC_DOWN_S_ENA = 1<<8, /* Downshift Enable (88E1111 only) */
1496  /* !!! Errata in spec. (1 = disable) */
1497  PHY_M_EC_RX_TIM_CT = 1<<7, /* RGMII Rx Timing Control*/
1498  PHY_M_EC_MAC_S_MSK = 7<<4, /* Bit 6.. 4: Def. MAC interface speed */
1499  PHY_M_EC_FIB_AN_ENA = 1<<3, /* Fiber Auto-Neg. Enable (88E1011S only) */
1500  PHY_M_EC_DTE_D_ENA = 1<<2, /* DTE Detect Enable (88E1111 only) */
1501  PHY_M_EC_TX_TIM_CT = 1<<1, /* RGMII Tx Timing Control */
1502  PHY_M_EC_TRANS_DIS = 1<<0, /* Transmitter Disable (88E1111 only) */};

◆ anonymous enum

anonymous enum
Enumerator
MAC_TX_CLK_0_MHZ 
MAC_TX_CLK_2_5_MHZ 
MAC_TX_CLK_25_MHZ 

Definition at line 1510 of file skge.h.

1510  {
1511  MAC_TX_CLK_0_MHZ = 2,
1512  MAC_TX_CLK_2_5_MHZ = 6,
1513  MAC_TX_CLK_25_MHZ = 7,
1514 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_M_LEDC_DIS_LED 
PHY_M_LEDC_PULS_MSK 
PHY_M_LEDC_F_INT 
PHY_M_LEDC_BL_R_MSK 
PHY_M_LEDC_DP_C_LSB 
PHY_M_LEDC_TX_C_LSB 
PHY_M_LEDC_LK_C_MSK 

Definition at line 1517 of file skge.h.

1517  {
1518  PHY_M_LEDC_DIS_LED = 1<<15, /* Disable LED */
1519  PHY_M_LEDC_PULS_MSK = 7<<12,/* Bit 14..12: Pulse Stretch Mask */
1520  PHY_M_LEDC_F_INT = 1<<11, /* Force Interrupt */
1521  PHY_M_LEDC_BL_R_MSK = 7<<8,/* Bit 10.. 8: Blink Rate Mask */
1522  PHY_M_LEDC_DP_C_LSB = 1<<7, /* Duplex Control (LSB, 88E1111 only) */
1523  PHY_M_LEDC_TX_C_LSB = 1<<6, /* Tx Control (LSB, 88E1111 only) */
1524  PHY_M_LEDC_LK_C_MSK = 7<<3,/* Bit 5.. 3: Link Control Mask */
1525  /* (88E1111 only) */
1526 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_M_LEDC_LINK_MSK 
PHY_M_LEDC_DP_CTRL 
PHY_M_LEDC_DP_C_MSB 
PHY_M_LEDC_RX_CTRL 
PHY_M_LEDC_TX_CTRL 
PHY_M_LEDC_TX_C_MSB 

Definition at line 1530 of file skge.h.

1530  {
1531  PHY_M_LEDC_LINK_MSK = 3<<3, /* Bit 4.. 3: Link Control Mask */
1532  /* (88E1011 only) */
1533  PHY_M_LEDC_DP_CTRL = 1<<2, /* Duplex Control */
1534  PHY_M_LEDC_DP_C_MSB = 1<<2, /* Duplex Control (MSB, 88E1111 only) */
1535  PHY_M_LEDC_RX_CTRL = 1<<1, /* Rx Activity / Link */
1536  PHY_M_LEDC_TX_CTRL = 1<<0, /* Tx Activity / Link */
1537  PHY_M_LEDC_TX_C_MSB = 1<<0, /* Tx Control (MSB, 88E1111 only) */
1538 };

◆ anonymous enum

anonymous enum
Enumerator
PULS_NO_STR 
PULS_21MS 
PULS_42MS 
PULS_84MS 
PULS_170MS 
PULS_340MS 
PULS_670MS 
PULS_1300MS 

Definition at line 1540 of file skge.h.

1540  {
1541  PULS_NO_STR = 0, /* no pulse stretching */
1542  PULS_21MS = 1, /* 21 ms to 42 ms */
1543  PULS_42MS = 2, /* 42 ms to 84 ms */
1544  PULS_84MS = 3, /* 84 ms to 170 ms */
1545  PULS_170MS = 4, /* 170 ms to 340 ms */
1546  PULS_340MS = 5, /* 340 ms to 670 ms */
1547  PULS_670MS = 6, /* 670 ms to 1.3 s */
1548  PULS_1300MS = 7, /* 1.3 s to 2.7 s */
1549 };

◆ anonymous enum

anonymous enum
Enumerator
BLINK_42MS 
BLINK_84MS 
BLINK_170MS 
BLINK_340MS 
BLINK_670MS 

Definition at line 1552 of file skge.h.

1552  {
1553  BLINK_42MS = 0, /* 42 ms */
1554  BLINK_84MS = 1, /* 84 ms */
1555  BLINK_170MS = 2, /* 170 ms */
1556  BLINK_340MS = 3, /* 340 ms */
1557  BLINK_670MS = 4, /* 670 ms */
1558 };

◆ anonymous enum

anonymous enum
Enumerator
MO_LED_NORM 
MO_LED_BLINK 
MO_LED_OFF 
MO_LED_ON 

Definition at line 1570 of file skge.h.

1570  {
1571  MO_LED_NORM = 0,
1572  MO_LED_BLINK = 1,
1573  MO_LED_OFF = 2,
1574  MO_LED_ON = 3,
1575 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_M_EC2_FI_IMPED 
PHY_M_EC2_FO_IMPED 
PHY_M_EC2_FO_M_CLK 
PHY_M_EC2_FO_BOOST 
PHY_M_EC2_FO_AM_MSK 

Definition at line 1578 of file skge.h.

1578  {
1579  PHY_M_EC2_FI_IMPED = 1<<6, /* Fiber Input Impedance */
1580  PHY_M_EC2_FO_IMPED = 1<<5, /* Fiber Output Impedance */
1581  PHY_M_EC2_FO_M_CLK = 1<<4, /* Fiber Mode Clock Enable */
1582  PHY_M_EC2_FO_BOOST = 1<<3, /* Fiber Output Boost */
1583  PHY_M_EC2_FO_AM_MSK = 7, /* Bit 2.. 0: Fiber Output Amplitude */
1584 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_M_FC_AUTO_SEL 
PHY_M_FC_AN_REG_ACC 
PHY_M_FC_RESOLUTION 
PHY_M_SER_IF_AN_BP 
PHY_M_SER_IF_BP_ST 
PHY_M_IRQ_POLARITY 
PHY_M_DIS_AUT_MED 
PHY_M_UNDOC1 
PHY_M_DTE_POW_STAT 
PHY_M_MODE_MASK 

Definition at line 1587 of file skge.h.

1587  {
1588  PHY_M_FC_AUTO_SEL = 1<<15, /* Fiber/Copper Auto Sel. Dis. */
1589  PHY_M_FC_AN_REG_ACC = 1<<14, /* Fiber/Copper AN Reg. Access */
1590  PHY_M_FC_RESOLUTION = 1<<13, /* Fiber/Copper Resolution */
1591  PHY_M_SER_IF_AN_BP = 1<<12, /* Ser. IF AN Bypass Enable */
1592  PHY_M_SER_IF_BP_ST = 1<<11, /* Ser. IF AN Bypass Status */
1593  PHY_M_IRQ_POLARITY = 1<<10, /* IRQ polarity */
1594  PHY_M_DIS_AUT_MED = 1<<9, /* Disable Aut. Medium Reg. Selection */
1595  /* (88E1111 only) */
1596  /* Bit 9.. 4: reserved (88E1011 only) */
1597  PHY_M_UNDOC1 = 1<<7, /* undocumented bit !! */
1598  PHY_M_DTE_POW_STAT = 1<<4, /* DTE Power Status (88E1111 only) */
1599  PHY_M_MODE_MASK = 0xf, /* Bit 3.. 0: copy of HWCFG MODE[3:0] */
1600 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_M_CABD_ENA_TEST 
PHY_M_CABD_DIS_WAIT 
PHY_M_CABD_STAT_MSK 
PHY_M_CABD_AMPL_MSK 
PHY_M_CABD_DIST_MSK 

Definition at line 1603 of file skge.h.

1603  {
1604  PHY_M_CABD_ENA_TEST = 1<<15, /* Enable Test (Page 0) */
1605  PHY_M_CABD_DIS_WAIT = 1<<15, /* Disable Waiting Period (Page 1) */
1606  /* (88E1111 only) */
1607  PHY_M_CABD_STAT_MSK = 3<<13, /* Bit 14..13: Status Mask */
1608  PHY_M_CABD_AMPL_MSK = 0x1f<<8, /* Bit 12.. 8: Amplitude Mask */
1609  /* (88E1111 only) */
1610  PHY_M_CABD_DIST_MSK = 0xff, /* Bit 7.. 0: Distance Mask */
1611 };

◆ anonymous enum

anonymous enum
Enumerator
CABD_STAT_NORMAL 
CABD_STAT_SHORT 
CABD_STAT_OPEN 
CABD_STAT_FAIL 

Definition at line 1614 of file skge.h.

1614  {
1615  CABD_STAT_NORMAL= 0,
1616  CABD_STAT_SHORT = 1,
1617  CABD_STAT_OPEN = 2,
1618  CABD_STAT_FAIL = 3,
1619 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_M_FELP_LED2_MSK 
PHY_M_FELP_LED1_MSK 
PHY_M_FELP_LED0_MSK 

Definition at line 1624 of file skge.h.

1624  {
1625  PHY_M_FELP_LED2_MSK = 0xf<<8, /* Bit 11.. 8: LED2 Mask (LINK) */
1626  PHY_M_FELP_LED1_MSK = 0xf<<4, /* Bit 7.. 4: LED1 Mask (ACT) */
1627  PHY_M_FELP_LED0_MSK = 0xf, /* Bit 3.. 0: LED0 Mask (SPEED) */
1628 };

◆ anonymous enum

anonymous enum
Enumerator
LED_PAR_CTRL_COLX 
LED_PAR_CTRL_ERROR 
LED_PAR_CTRL_DUPLEX 
LED_PAR_CTRL_DP_COL 
LED_PAR_CTRL_SPEED 
LED_PAR_CTRL_LINK 
LED_PAR_CTRL_TX 
LED_PAR_CTRL_RX 
LED_PAR_CTRL_ACT 
LED_PAR_CTRL_LNK_RX 
LED_PAR_CTRL_LNK_AC 
LED_PAR_CTRL_ACT_BL 
LED_PAR_CTRL_TX_BL 
LED_PAR_CTRL_RX_BL 
LED_PAR_CTRL_COL_BL 
LED_PAR_CTRL_INACT 

Definition at line 1634 of file skge.h.

◆ anonymous enum

anonymous enum
Enumerator
PHY_M_FESC_DIS_WAIT 
PHY_M_FESC_ENA_MCLK 
PHY_M_FESC_SEL_CL_A 

Definition at line 1654 of file skge.h.

1654  {
1655  PHY_M_FESC_DIS_WAIT = 1<<2, /* Disable TDR Waiting Period */
1656  PHY_M_FESC_ENA_MCLK = 1<<1, /* Enable MAC Rx Clock in sleep mode */
1657  PHY_M_FESC_SEL_CL_A = 1<<0, /* Select Class A driver (100B-TX) */
1658 };

◆ anonymous enum

anonymous enum
Enumerator
PHY_M_LEDC_LOS_MSK 
PHY_M_LEDC_INIT_MSK 
PHY_M_LEDC_STA1_MSK 
PHY_M_LEDC_STA0_MSK 

Definition at line 1662 of file skge.h.

1662  {
1663  PHY_M_LEDC_LOS_MSK = 0xf<<12, /* Bit 15..12: LOS LED Ctrl. Mask */
1664  PHY_M_LEDC_INIT_MSK = 0xf<<8, /* Bit 11.. 8: INIT LED Ctrl. Mask */
1665  PHY_M_LEDC_STA1_MSK = 0xf<<4, /* Bit 7.. 4: STAT1 LED Ctrl. Mask */
1666  PHY_M_LEDC_STA0_MSK = 0xf, /* Bit 3.. 0: STAT0 LED Ctrl. Mask */
1667 };

◆ anonymous enum

anonymous enum
Enumerator
GM_GP_STAT 
GM_GP_CTRL 
GM_TX_CTRL 
GM_RX_CTRL 
GM_TX_FLOW_CTRL 
GM_TX_PARAM 
GM_SERIAL_MODE 
GM_SRC_ADDR_1L 
GM_SRC_ADDR_1M 
GM_SRC_ADDR_1H 
GM_SRC_ADDR_2L 
GM_SRC_ADDR_2M 
GM_SRC_ADDR_2H 
GM_MC_ADDR_H1 
GM_MC_ADDR_H2 
GM_MC_ADDR_H3 
GM_MC_ADDR_H4 
GM_TX_IRQ_SRC 
GM_RX_IRQ_SRC 
GM_TR_IRQ_SRC 
GM_TX_IRQ_MSK 
GM_RX_IRQ_MSK 
GM_TR_IRQ_MSK 
GM_SMI_CTRL 
GM_SMI_DATA 
GM_PHY_ADDR 

Definition at line 1676 of file skge.h.

1676  {
1677  GM_GP_STAT = 0x0000, /* 16 bit r/o General Purpose Status */
1678  GM_GP_CTRL = 0x0004, /* 16 bit r/w General Purpose Control */
1679  GM_TX_CTRL = 0x0008, /* 16 bit r/w Transmit Control Reg. */
1680  GM_RX_CTRL = 0x000c, /* 16 bit r/w Receive Control Reg. */
1681  GM_TX_FLOW_CTRL = 0x0010, /* 16 bit r/w Transmit Flow-Control */
1682  GM_TX_PARAM = 0x0014, /* 16 bit r/w Transmit Parameter Reg. */
1683  GM_SERIAL_MODE = 0x0018, /* 16 bit r/w Serial Mode Register */
1684 /* Source Address Registers */
1685  GM_SRC_ADDR_1L = 0x001c, /* 16 bit r/w Source Address 1 (low) */
1686  GM_SRC_ADDR_1M = 0x0020, /* 16 bit r/w Source Address 1 (middle) */
1687  GM_SRC_ADDR_1H = 0x0024, /* 16 bit r/w Source Address 1 (high) */
1688  GM_SRC_ADDR_2L = 0x0028, /* 16 bit r/w Source Address 2 (low) */
1689  GM_SRC_ADDR_2M = 0x002c, /* 16 bit r/w Source Address 2 (middle) */
1690  GM_SRC_ADDR_2H = 0x0030, /* 16 bit r/w Source Address 2 (high) */
1691 
1692 /* Multicast Address Hash Registers */
1693  GM_MC_ADDR_H1 = 0x0034, /* 16 bit r/w Multicast Address Hash 1 */
1694  GM_MC_ADDR_H2 = 0x0038, /* 16 bit r/w Multicast Address Hash 2 */
1695  GM_MC_ADDR_H3 = 0x003c, /* 16 bit r/w Multicast Address Hash 3 */
1696  GM_MC_ADDR_H4 = 0x0040, /* 16 bit r/w Multicast Address Hash 4 */
1697 
1698 /* Interrupt Source Registers */
1699  GM_TX_IRQ_SRC = 0x0044, /* 16 bit r/o Tx Overflow IRQ Source */
1700  GM_RX_IRQ_SRC = 0x0048, /* 16 bit r/o Rx Overflow IRQ Source */
1701  GM_TR_IRQ_SRC = 0x004c, /* 16 bit r/o Tx/Rx Over. IRQ Source */
1702 
1703 /* Interrupt Mask Registers */
1704  GM_TX_IRQ_MSK = 0x0050, /* 16 bit r/w Tx Overflow IRQ Mask */
1705  GM_RX_IRQ_MSK = 0x0054, /* 16 bit r/w Rx Overflow IRQ Mask */
1706  GM_TR_IRQ_MSK = 0x0058, /* 16 bit r/w Tx/Rx Over. IRQ Mask */
1707 
1708 /* Serial Management Interface (SMI) Registers */
1709  GM_SMI_CTRL = 0x0080, /* 16 bit r/w SMI Control Register */
1710  GM_SMI_DATA = 0x0084, /* 16 bit r/w SMI Data Register */
1711  GM_PHY_ADDR = 0x0088, /* 16 bit r/w GPHY Address Register */
1712 };

◆ anonymous enum

anonymous enum
Enumerator
GM_RXF_UC_OK 
GM_RXF_BC_OK 
GM_RXF_MPAUSE 
GM_RXF_MC_OK 
GM_RXF_FCS_ERR 
GM_RXO_OK_LO 
GM_RXO_OK_HI 
GM_RXO_ERR_LO 
GM_RXO_ERR_HI 
GM_RXF_SHT 
GM_RXE_FRAG 
GM_RXF_64B 
GM_RXF_127B 
GM_RXF_255B 
GM_RXF_511B 
GM_RXF_1023B 
GM_RXF_1518B 
GM_RXF_MAX_SZ 
GM_RXF_LNG_ERR 
GM_RXF_JAB_PKT 
GM_RXE_FIFO_OV 
GM_TXF_UC_OK 
GM_TXF_BC_OK 
GM_TXF_MPAUSE 
GM_TXF_MC_OK 
GM_TXO_OK_LO 
GM_TXO_OK_HI 
GM_TXF_64B 
GM_TXF_127B 
GM_TXF_255B 
GM_TXF_511B 
GM_TXF_1023B 
GM_TXF_1518B 
GM_TXF_MAX_SZ 
GM_TXF_COL 
GM_TXF_LAT_COL 
GM_TXF_ABO_COL 
GM_TXF_MUL_COL 
GM_TXF_SNG_COL 
GM_TXE_FIFO_UR 

Definition at line 1722 of file skge.h.

1722  {
1723  GM_RXF_UC_OK = GM_MIB_CNT_BASE + 0, /* Unicast Frames Received OK */
1724  GM_RXF_BC_OK = GM_MIB_CNT_BASE + 8, /* Broadcast Frames Received OK */
1725  GM_RXF_MPAUSE = GM_MIB_CNT_BASE + 16, /* Pause MAC Ctrl Frames Received */
1726  GM_RXF_MC_OK = GM_MIB_CNT_BASE + 24, /* Multicast Frames Received OK */
1727  GM_RXF_FCS_ERR = GM_MIB_CNT_BASE + 32, /* Rx Frame Check Seq. Error */
1728  /* GM_MIB_CNT_BASE + 40: reserved */
1729  GM_RXO_OK_LO = GM_MIB_CNT_BASE + 48, /* Octets Received OK Low */
1730  GM_RXO_OK_HI = GM_MIB_CNT_BASE + 56, /* Octets Received OK High */
1731  GM_RXO_ERR_LO = GM_MIB_CNT_BASE + 64, /* Octets Received Invalid Low */
1732  GM_RXO_ERR_HI = GM_MIB_CNT_BASE + 72, /* Octets Received Invalid High */
1733  GM_RXF_SHT = GM_MIB_CNT_BASE + 80, /* Frames <64 Byte Received OK */
1734  GM_RXE_FRAG = GM_MIB_CNT_BASE + 88, /* Frames <64 Byte Received with FCS Err */
1735  GM_RXF_64B = GM_MIB_CNT_BASE + 96, /* 64 Byte Rx Frame */
1736  GM_RXF_127B = GM_MIB_CNT_BASE + 104, /* 65-127 Byte Rx Frame */
1737  GM_RXF_255B = GM_MIB_CNT_BASE + 112, /* 128-255 Byte Rx Frame */
1738  GM_RXF_511B = GM_MIB_CNT_BASE + 120, /* 256-511 Byte Rx Frame */
1739  GM_RXF_1023B = GM_MIB_CNT_BASE + 128, /* 512-1023 Byte Rx Frame */
1740  GM_RXF_1518B = GM_MIB_CNT_BASE + 136, /* 1024-1518 Byte Rx Frame */
1741  GM_RXF_MAX_SZ = GM_MIB_CNT_BASE + 144, /* 1519-MaxSize Byte Rx Frame */
1742  GM_RXF_LNG_ERR = GM_MIB_CNT_BASE + 152, /* Rx Frame too Long Error */
1743  GM_RXF_JAB_PKT = GM_MIB_CNT_BASE + 160, /* Rx Jabber Packet Frame */
1744  /* GM_MIB_CNT_BASE + 168: reserved */
1745  GM_RXE_FIFO_OV = GM_MIB_CNT_BASE + 176, /* Rx FIFO overflow Event */
1746  /* GM_MIB_CNT_BASE + 184: reserved */
1747  GM_TXF_UC_OK = GM_MIB_CNT_BASE + 192, /* Unicast Frames Xmitted OK */
1748  GM_TXF_BC_OK = GM_MIB_CNT_BASE + 200, /* Broadcast Frames Xmitted OK */
1749  GM_TXF_MPAUSE = GM_MIB_CNT_BASE + 208, /* Pause MAC Ctrl Frames Xmitted */
1750  GM_TXF_MC_OK = GM_MIB_CNT_BASE + 216, /* Multicast Frames Xmitted OK */
1751  GM_TXO_OK_LO = GM_MIB_CNT_BASE + 224, /* Octets Transmitted OK Low */
1752  GM_TXO_OK_HI = GM_MIB_CNT_BASE + 232, /* Octets Transmitted OK High */
1753  GM_TXF_64B = GM_MIB_CNT_BASE + 240, /* 64 Byte Tx Frame */
1754  GM_TXF_127B = GM_MIB_CNT_BASE + 248, /* 65-127 Byte Tx Frame */
1755  GM_TXF_255B = GM_MIB_CNT_BASE + 256, /* 128-255 Byte Tx Frame */
1756  GM_TXF_511B = GM_MIB_CNT_BASE + 264, /* 256-511 Byte Tx Frame */
1757  GM_TXF_1023B = GM_MIB_CNT_BASE + 272, /* 512-1023 Byte Tx Frame */
1758  GM_TXF_1518B = GM_MIB_CNT_BASE + 280, /* 1024-1518 Byte Tx Frame */
1759  GM_TXF_MAX_SZ = GM_MIB_CNT_BASE + 288, /* 1519-MaxSize Byte Tx Frame */
1760 
1761  GM_TXF_COL = GM_MIB_CNT_BASE + 304, /* Tx Collision */
1762  GM_TXF_LAT_COL = GM_MIB_CNT_BASE + 312, /* Tx Late Collision */
1763  GM_TXF_ABO_COL = GM_MIB_CNT_BASE + 320, /* Tx aborted due to Exces. Col. */
1764  GM_TXF_MUL_COL = GM_MIB_CNT_BASE + 328, /* Tx Multiple Collision */
1765  GM_TXF_SNG_COL = GM_MIB_CNT_BASE + 336, /* Tx Single Collision */
1766  GM_TXE_FIFO_UR = GM_MIB_CNT_BASE + 344, /* Tx FIFO Underrun Event */
1767 };
#define GM_MIB_CNT_BASE
Definition: skge.h:1715

◆ anonymous enum

anonymous enum
Enumerator
GM_GPSR_SPEED 
GM_GPSR_DUPLEX 
GM_GPSR_FC_TX_DIS 
GM_GPSR_LINK_UP 
GM_GPSR_PAUSE 
GM_GPSR_TX_ACTIVE 
GM_GPSR_EXC_COL 
GM_GPSR_LAT_COL 
GM_GPSR_PHY_ST_CH 
GM_GPSR_GIG_SPEED 
GM_GPSR_PART_MODE 
GM_GPSR_FC_RX_DIS 
GM_GPSR_PROM_EN 

Definition at line 1771 of file skge.h.

1771  {
1772  GM_GPSR_SPEED = 1<<15, /* Bit 15: Port Speed (1 = 100 Mbps) */
1773  GM_GPSR_DUPLEX = 1<<14, /* Bit 14: Duplex Mode (1 = Full) */
1774  GM_GPSR_FC_TX_DIS = 1<<13, /* Bit 13: Tx Flow-Control Mode Disabled */
1775  GM_GPSR_LINK_UP = 1<<12, /* Bit 12: Link Up Status */
1776  GM_GPSR_PAUSE = 1<<11, /* Bit 11: Pause State */
1777  GM_GPSR_TX_ACTIVE = 1<<10, /* Bit 10: Tx in Progress */
1778  GM_GPSR_EXC_COL = 1<<9, /* Bit 9: Excessive Collisions Occurred */
1779  GM_GPSR_LAT_COL = 1<<8, /* Bit 8: Late Collisions Occurred */
1780 
1781  GM_GPSR_PHY_ST_CH = 1<<5, /* Bit 5: PHY Status Change */
1782  GM_GPSR_GIG_SPEED = 1<<4, /* Bit 4: Gigabit Speed (1 = 1000 Mbps) */
1783  GM_GPSR_PART_MODE = 1<<3, /* Bit 3: Partition mode */
1784  GM_GPSR_FC_RX_DIS = 1<<2, /* Bit 2: Rx Flow-Control Mode Disabled */
1785  GM_GPSR_PROM_EN = 1<<1, /* Bit 1: Promiscuous Mode Enabled */
1786 };

◆ anonymous enum

anonymous enum
Enumerator
GM_GPCR_PROM_ENA 
GM_GPCR_FC_TX_DIS 
GM_GPCR_TX_ENA 
GM_GPCR_RX_ENA 
GM_GPCR_BURST_ENA 
GM_GPCR_LOOP_ENA 
GM_GPCR_PART_ENA 
GM_GPCR_GIGS_ENA 
GM_GPCR_FL_PASS 
GM_GPCR_DUP_FULL 
GM_GPCR_FC_RX_DIS 
GM_GPCR_SPEED_100 
GM_GPCR_AU_DUP_DIS 
GM_GPCR_AU_FCT_DIS 
GM_GPCR_AU_SPD_DIS 

Definition at line 1789 of file skge.h.

1789  {
1790  GM_GPCR_PROM_ENA = 1<<14, /* Bit 14: Enable Promiscuous Mode */
1791  GM_GPCR_FC_TX_DIS = 1<<13, /* Bit 13: Disable Tx Flow-Control Mode */
1792  GM_GPCR_TX_ENA = 1<<12, /* Bit 12: Enable Transmit */
1793  GM_GPCR_RX_ENA = 1<<11, /* Bit 11: Enable Receive */
1794  GM_GPCR_BURST_ENA = 1<<10, /* Bit 10: Enable Burst Mode */
1795  GM_GPCR_LOOP_ENA = 1<<9, /* Bit 9: Enable MAC Loopback Mode */
1796  GM_GPCR_PART_ENA = 1<<8, /* Bit 8: Enable Partition Mode */
1797  GM_GPCR_GIGS_ENA = 1<<7, /* Bit 7: Gigabit Speed (1000 Mbps) */
1798  GM_GPCR_FL_PASS = 1<<6, /* Bit 6: Force Link Pass */
1799  GM_GPCR_DUP_FULL = 1<<5, /* Bit 5: Full Duplex Mode */
1800  GM_GPCR_FC_RX_DIS = 1<<4, /* Bit 4: Disable Rx Flow-Control Mode */
1801  GM_GPCR_SPEED_100 = 1<<3, /* Bit 3: Port Speed 100 Mbps */
1802  GM_GPCR_AU_DUP_DIS = 1<<2, /* Bit 2: Disable Auto-Update Duplex */
1803  GM_GPCR_AU_FCT_DIS = 1<<1, /* Bit 1: Disable Auto-Update Flow-C. */
1804  GM_GPCR_AU_SPD_DIS = 1<<0, /* Bit 0: Disable Auto-Update Speed */
1805 };

◆ anonymous enum

anonymous enum
Enumerator
GM_TXCR_FORCE_JAM 
GM_TXCR_CRC_DIS 
GM_TXCR_PAD_DIS 
GM_TXCR_COL_THR_MSK 

Definition at line 1811 of file skge.h.

1811  {
1812  GM_TXCR_FORCE_JAM = 1<<15, /* Bit 15: Force Jam / Flow-Control */
1813  GM_TXCR_CRC_DIS = 1<<14, /* Bit 14: Disable insertion of CRC */
1814  GM_TXCR_PAD_DIS = 1<<13, /* Bit 13: Disable padding of packets */
1815  GM_TXCR_COL_THR_MSK = 7<<10, /* Bit 12..10: Collision Threshold */
1816 };

◆ anonymous enum

anonymous enum
Enumerator
GM_RXCR_UCF_ENA 
GM_RXCR_MCF_ENA 
GM_RXCR_CRC_DIS 
GM_RXCR_PASS_FC 

Definition at line 1822 of file skge.h.

1822  {
1823  GM_RXCR_UCF_ENA = 1<<15, /* Bit 15: Enable Unicast filtering */
1824  GM_RXCR_MCF_ENA = 1<<14, /* Bit 14: Enable Multicast filtering */
1825  GM_RXCR_CRC_DIS = 1<<13, /* Bit 13: Remove 4-byte CRC */
1826  GM_RXCR_PASS_FC = 1<<12, /* Bit 12: Pass FC packets to FIFO */
1827 };

◆ anonymous enum

anonymous enum
Enumerator
GM_TXPA_JAMLEN_MSK 
GM_TXPA_JAMIPG_MSK 
GM_TXPA_JAMDAT_MSK 
TX_JAM_LEN_DEF 
TX_JAM_IPG_DEF 
TX_IPG_JAM_DEF 

Definition at line 1830 of file skge.h.

1830  {
1831  GM_TXPA_JAMLEN_MSK = 0x03<<14, /* Bit 15..14: Jam Length */
1832  GM_TXPA_JAMIPG_MSK = 0x1f<<9, /* Bit 13..9: Jam IPG */
1833  GM_TXPA_JAMDAT_MSK = 0x1f<<4, /* Bit 8..4: IPG Jam to Data */
1834 
1835  TX_JAM_LEN_DEF = 0x03,
1836  TX_JAM_IPG_DEF = 0x0b,
1837  TX_IPG_JAM_DEF = 0x1c,
1838 };

◆ anonymous enum

anonymous enum
Enumerator
GM_SMOD_DATABL_MSK 
GM_SMOD_LIMIT_4 
GM_SMOD_VLAN_ENA 
GM_SMOD_JUMBO_ENA 
GM_SMOD_IPG_MSK 

Definition at line 1846 of file skge.h.

1846  {
1847  GM_SMOD_DATABL_MSK = 0x1f<<11, /* Bit 15..11: Data Blinder (r/o) */
1848  GM_SMOD_LIMIT_4 = 1<<10, /* Bit 10: 4 consecutive Tx trials */
1849  GM_SMOD_VLAN_ENA = 1<<9, /* Bit 9: Enable VLAN (Max. Frame Len) */
1850  GM_SMOD_JUMBO_ENA = 1<<8, /* Bit 8: Enable Jumbo (Max. Frame Len) */
1851  GM_SMOD_IPG_MSK = 0x1f /* Bit 4..0: Inter-Packet Gap (IPG) */
1852 };

◆ anonymous enum

anonymous enum
Enumerator
GM_SMI_CT_PHY_A_MSK 
GM_SMI_CT_REG_A_MSK 
GM_SMI_CT_OP_RD 
GM_SMI_CT_RD_VAL 
GM_SMI_CT_BUSY 

Definition at line 1861 of file skge.h.

1861  {
1862  GM_SMI_CT_PHY_A_MSK = 0x1f<<11, /* Bit 15..11: PHY Device Address */
1863  GM_SMI_CT_REG_A_MSK = 0x1f<<6, /* Bit 10.. 6: PHY Register Address */
1864  GM_SMI_CT_OP_RD = 1<<5, /* Bit 5: OpCode Read (0=Write)*/
1865  GM_SMI_CT_RD_VAL = 1<<4, /* Bit 4: Read Valid (Read completed) */
1866  GM_SMI_CT_BUSY = 1<<3, /* Bit 3: Busy (Operation in progress) */
1867 };

◆ anonymous enum

anonymous enum
Enumerator
GM_PAR_MIB_CLR 
GM_PAR_MIB_TST 

Definition at line 1873 of file skge.h.

1873  {
1874  GM_PAR_MIB_CLR = 1<<5, /* Bit 5: Set MIB Clear Counter Mode */
1875  GM_PAR_MIB_TST = 1<<4, /* Bit 4: MIB Load Counter (Test Mode) */
1876 };

◆ anonymous enum

anonymous enum
Enumerator
GMR_FS_LEN 
GMR_FS_LEN_SHIFT 
GMR_FS_VLAN 
GMR_FS_JABBER 
GMR_FS_UN_SIZE 
GMR_FS_MC 
GMR_FS_BC 
GMR_FS_RX_OK 
GMR_FS_GOOD_FC 
GMR_FS_BAD_FC 
GMR_FS_MII_ERR 
GMR_FS_LONG_ERR 
GMR_FS_FRAGMENT 
GMR_FS_CRC_ERR 
GMR_FS_RX_FF_OV 
GMR_FS_ANY_ERR 
RX_FF_FL_DEF_MSK 

Definition at line 1879 of file skge.h.

1879  {
1880  GMR_FS_LEN = 0xffff<<16, /* Bit 31..16: Rx Frame Length */
1881  GMR_FS_LEN_SHIFT = 16,
1882  GMR_FS_VLAN = 1<<13, /* Bit 13: VLAN Packet */
1883  GMR_FS_JABBER = 1<<12, /* Bit 12: Jabber Packet */
1884  GMR_FS_UN_SIZE = 1<<11, /* Bit 11: Undersize Packet */
1885  GMR_FS_MC = 1<<10, /* Bit 10: Multicast Packet */
1886  GMR_FS_BC = 1<<9, /* Bit 9: Broadcast Packet */
1887  GMR_FS_RX_OK = 1<<8, /* Bit 8: Receive OK (Good Packet) */
1888  GMR_FS_GOOD_FC = 1<<7, /* Bit 7: Good Flow-Control Packet */
1889  GMR_FS_BAD_FC = 1<<6, /* Bit 6: Bad Flow-Control Packet */
1890  GMR_FS_MII_ERR = 1<<5, /* Bit 5: MII Error */
1891  GMR_FS_LONG_ERR = 1<<4, /* Bit 4: Too Long Packet */
1892  GMR_FS_FRAGMENT = 1<<3, /* Bit 3: Fragment */
1893 
1894  GMR_FS_CRC_ERR = 1<<1, /* Bit 1: CRC Error */
1895  GMR_FS_RX_FF_OV = 1<<0, /* Bit 0: Rx FIFO Overflow */
1896 
1897 /*
1898  * GMR_FS_ANY_ERR (analogous to XMR_FS_ANY_ERR)
1899  */
1902  GMR_FS_JABBER,
1903 /* Rx GMAC FIFO Flush Mask (default) */
1906 };

◆ anonymous enum

anonymous enum
Enumerator
GMF_WP_TST_ON 
GMF_WP_TST_OFF 
GMF_WP_STEP 
GMF_RP_TST_ON 
GMF_RP_TST_OFF 
GMF_RP_STEP 
GMF_RX_F_FL_ON 
GMF_RX_F_FL_OFF 
GMF_CLI_RX_FO 
GMF_CLI_RX_FC 
GMF_OPER_ON 
GMF_OPER_OFF 
GMF_RST_CLR 
GMF_RST_SET 
RX_GMF_FL_THR_DEF 

Definition at line 1909 of file skge.h.

1909  {
1910  GMF_WP_TST_ON = 1<<14, /* Write Pointer Test On */
1911  GMF_WP_TST_OFF = 1<<13, /* Write Pointer Test Off */
1912  GMF_WP_STEP = 1<<12, /* Write Pointer Step/Increment */
1913 
1914  GMF_RP_TST_ON = 1<<10, /* Read Pointer Test On */
1915  GMF_RP_TST_OFF = 1<<9, /* Read Pointer Test Off */
1916  GMF_RP_STEP = 1<<8, /* Read Pointer Step/Increment */
1917  GMF_RX_F_FL_ON = 1<<7, /* Rx FIFO Flush Mode On */
1918  GMF_RX_F_FL_OFF = 1<<6, /* Rx FIFO Flush Mode Off */
1919  GMF_CLI_RX_FO = 1<<5, /* Clear IRQ Rx FIFO Overrun */
1920  GMF_CLI_RX_FC = 1<<4, /* Clear IRQ Rx Frame Complete */
1921  GMF_OPER_ON = 1<<3, /* Operational Mode On */
1922  GMF_OPER_OFF = 1<<2, /* Operational Mode Off */
1923  GMF_RST_CLR = 1<<1, /* Clear GMAC FIFO Reset */
1924  GMF_RST_SET = 1<<0, /* Set GMAC FIFO Reset */
1925 
1926  RX_GMF_FL_THR_DEF = 0xa, /* flush threshold (default) */
1927 };

◆ anonymous enum

anonymous enum
Enumerator
GMF_WSP_TST_ON 
GMF_WSP_TST_OFF 
GMF_WSP_STEP 
GMF_CLI_TX_FU 
GMF_CLI_TX_FC 
GMF_CLI_TX_PE 

Definition at line 1931 of file skge.h.

1931  {
1932  GMF_WSP_TST_ON = 1<<18, /* Write Shadow Pointer Test On */
1933  GMF_WSP_TST_OFF = 1<<17, /* Write Shadow Pointer Test Off */
1934  GMF_WSP_STEP = 1<<16, /* Write Shadow Pointer Step/Increment */
1935 
1936  GMF_CLI_TX_FU = 1<<6, /* Clear IRQ Tx FIFO Underrun */
1937  GMF_CLI_TX_FC = 1<<5, /* Clear IRQ Tx Frame Complete */
1938  GMF_CLI_TX_PE = 1<<4, /* Clear IRQ Tx Parity Error */
1939 };

◆ anonymous enum

anonymous enum
Enumerator
GMT_ST_START 
GMT_ST_STOP 
GMT_ST_CLR_IRQ 

Definition at line 1942 of file skge.h.

1942  {
1943  GMT_ST_START = 1<<2, /* Start Time Stamp Timer */
1944  GMT_ST_STOP = 1<<1, /* Stop Time Stamp Timer */
1945  GMT_ST_CLR_IRQ = 1<<0, /* Clear Time Stamp Timer IRQ */
1946 };

◆ anonymous enum

anonymous enum
Enumerator
GMC_H_BURST_ON 
GMC_H_BURST_OFF 
GMC_F_LOOPB_ON 
GMC_F_LOOPB_OFF 
GMC_PAUSE_ON 
GMC_PAUSE_OFF 
GMC_RST_CLR 
GMC_RST_SET 

Definition at line 1949 of file skge.h.

1949  {
1950  GMC_H_BURST_ON = 1<<7, /* Half Duplex Burst Mode On */
1951  GMC_H_BURST_OFF = 1<<6, /* Half Duplex Burst Mode Off */
1952  GMC_F_LOOPB_ON = 1<<5, /* FIFO Loopback On */
1953  GMC_F_LOOPB_OFF = 1<<4, /* FIFO Loopback Off */
1954  GMC_PAUSE_ON = 1<<3, /* Pause On */
1955  GMC_PAUSE_OFF = 1<<2, /* Pause Off */
1956  GMC_RST_CLR = 1<<1, /* Clear GMAC Reset */
1957  GMC_RST_SET = 1<<0, /* Set GMAC Reset */
1958 };

◆ anonymous enum

anonymous enum
Enumerator
GPC_SEL_BDT 
GPC_INT_POL_HI 
GPC_75_OHM 
GPC_DIS_FC 
GPC_DIS_SLEEP 
GPC_HWCFG_M_3 
GPC_HWCFG_M_2 
GPC_HWCFG_M_1 
GPC_HWCFG_M_0 
GPC_ANEG_0 
GPC_ENA_XC 
GPC_DIS_125 
GPC_ANEG_3 
GPC_ANEG_2 
GPC_ANEG_1 
GPC_ENA_PAUSE 
GPC_PHYADDR_4 
GPC_PHYADDR_3 
GPC_PHYADDR_2 
GPC_PHYADDR_1 
GPC_PHYADDR_0 
GPC_RST_CLR 
GPC_RST_SET 

Definition at line 1961 of file skge.h.

1961  {
1962  GPC_SEL_BDT = 1<<28, /* Select Bi-Dir. Transfer for MDC/MDIO */
1963  GPC_INT_POL_HI = 1<<27, /* IRQ Polarity is Active HIGH */
1964  GPC_75_OHM = 1<<26, /* Use 75 Ohm Termination instead of 50 */
1965  GPC_DIS_FC = 1<<25, /* Disable Automatic Fiber/Copper Detection */
1966  GPC_DIS_SLEEP = 1<<24, /* Disable Energy Detect */
1967  GPC_HWCFG_M_3 = 1<<23, /* HWCFG_MODE[3] */
1968  GPC_HWCFG_M_2 = 1<<22, /* HWCFG_MODE[2] */
1969  GPC_HWCFG_M_1 = 1<<21, /* HWCFG_MODE[1] */
1970  GPC_HWCFG_M_0 = 1<<20, /* HWCFG_MODE[0] */
1971  GPC_ANEG_0 = 1<<19, /* ANEG[0] */
1972  GPC_ENA_XC = 1<<18, /* Enable MDI crossover */
1973  GPC_DIS_125 = 1<<17, /* Disable 125 MHz clock */
1974  GPC_ANEG_3 = 1<<16, /* ANEG[3] */
1975  GPC_ANEG_2 = 1<<15, /* ANEG[2] */
1976  GPC_ANEG_1 = 1<<14, /* ANEG[1] */
1977  GPC_ENA_PAUSE = 1<<13, /* Enable Pause (SYM_OR_REM) */
1978  GPC_PHYADDR_4 = 1<<12, /* Bit 4 of Phy Addr */
1979  GPC_PHYADDR_3 = 1<<11, /* Bit 3 of Phy Addr */
1980  GPC_PHYADDR_2 = 1<<10, /* Bit 2 of Phy Addr */
1981  GPC_PHYADDR_1 = 1<<9, /* Bit 1 of Phy Addr */
1982  GPC_PHYADDR_0 = 1<<8, /* Bit 0 of Phy Addr */
1983  /* Bits 7..2: reserved */
1984  GPC_RST_CLR = 1<<1, /* Clear GPHY Reset */
1985  GPC_RST_SET = 1<<0, /* Set GPHY Reset */
1986 };

◆ anonymous enum

anonymous enum
Enumerator
GM_IS_TX_CO_OV 
GM_IS_RX_CO_OV 
GM_IS_TX_FF_UR 
GM_IS_TX_COMPL 
GM_IS_RX_FF_OR 
GM_IS_RX_COMPL 
GMLC_RST_CLR 
GMLC_RST_SET 
WOL_CTL_LINK_CHG_OCC 
WOL_CTL_MAGIC_PKT_OCC 
WOL_CTL_PATTERN_OCC 
WOL_CTL_CLEAR_RESULT 
WOL_CTL_ENA_PME_ON_LINK_CHG 
WOL_CTL_DIS_PME_ON_LINK_CHG 
WOL_CTL_ENA_PME_ON_MAGIC_PKT 
WOL_CTL_DIS_PME_ON_MAGIC_PKT 
WOL_CTL_ENA_PME_ON_PATTERN 
WOL_CTL_DIS_PME_ON_PATTERN 
WOL_CTL_ENA_LINK_CHG_UNIT 
WOL_CTL_DIS_LINK_CHG_UNIT 
WOL_CTL_ENA_MAGIC_PKT_UNIT 
WOL_CTL_DIS_MAGIC_PKT_UNIT 
WOL_CTL_ENA_PATTERN_UNIT 
WOL_CTL_DIS_PATTERN_UNIT 

Definition at line 2013 of file skge.h.

2013  {
2014  GM_IS_TX_CO_OV = 1<<5, /* Transmit Counter Overflow IRQ */
2015  GM_IS_RX_CO_OV = 1<<4, /* Receive Counter Overflow IRQ */
2016  GM_IS_TX_FF_UR = 1<<3, /* Transmit FIFO Underrun */
2017  GM_IS_TX_COMPL = 1<<2, /* Frame Transmission Complete */
2018  GM_IS_RX_FF_OR = 1<<1, /* Receive FIFO Overrun */
2019  GM_IS_RX_COMPL = 1<<0, /* Frame Reception Complete */
2020 
2021 #define GMAC_DEF_MSK (GM_IS_RX_FF_OR | GM_IS_TX_FF_UR)
2022 
2023 /* GMAC_LINK_CTRL 16 bit GMAC Link Control Reg (YUKON only) */
2024  /* Bits 15.. 2: reserved */
2025  GMLC_RST_CLR = 1<<1, /* Clear GMAC Link Reset */
2026  GMLC_RST_SET = 1<<0, /* Set GMAC Link Reset */
2027 
2028 
2029 /* WOL_CTRL_STAT 16 bit WOL Control/Status Reg */
2030  WOL_CTL_LINK_CHG_OCC = 1<<15,
2031  WOL_CTL_MAGIC_PKT_OCC = 1<<14,
2032  WOL_CTL_PATTERN_OCC = 1<<13,
2033  WOL_CTL_CLEAR_RESULT = 1<<12,
2044  WOL_CTL_ENA_PATTERN_UNIT = 1<<1,
2045  WOL_CTL_DIS_PATTERN_UNIT = 1<<0,
2046 };

◆ anonymous enum

anonymous enum
Enumerator
XM_MMU_CMD 
XM_POFF 
XM_BURST 
XM_1L_VLAN_TAG 
XM_2L_VLAN_TAG 
XM_TX_CMD 
XM_TX_RT_LIM 
XM_TX_STIME 
XM_TX_IPG 
XM_RX_CMD 
XM_PHY_ADDR 
XM_PHY_DATA 
XM_GP_PORT 
XM_IMSK 
XM_ISRC 
XM_HW_CFG 
XM_TX_LO_WM 
XM_TX_HI_WM 
XM_TX_THR 
XM_HT_THR 
XM_PAUSE_DA 
XM_CTL_PARA 
XM_MAC_OPCODE 
XM_MAC_PTIME 
XM_TX_STAT 
XM_EXM_START 

Definition at line 2061 of file skge.h.

2061  {
2062  XM_MMU_CMD = 0x0000, /* 16 bit r/w MMU Command Register */
2063  XM_POFF = 0x0008, /* 32 bit r/w Packet Offset Register */
2064  XM_BURST = 0x000c, /* 32 bit r/w Burst Register for half duplex*/
2065  XM_1L_VLAN_TAG = 0x0010, /* 16 bit r/w One Level VLAN Tag ID */
2066  XM_2L_VLAN_TAG = 0x0014, /* 16 bit r/w Two Level VLAN Tag ID */
2067  XM_TX_CMD = 0x0020, /* 16 bit r/w Transmit Command Register */
2068  XM_TX_RT_LIM = 0x0024, /* 16 bit r/w Transmit Retry Limit Register */
2069  XM_TX_STIME = 0x0028, /* 16 bit r/w Transmit Slottime Register */
2070  XM_TX_IPG = 0x002c, /* 16 bit r/w Transmit Inter Packet Gap */
2071  XM_RX_CMD = 0x0030, /* 16 bit r/w Receive Command Register */
2072  XM_PHY_ADDR = 0x0034, /* 16 bit r/w PHY Address Register */
2073  XM_PHY_DATA = 0x0038, /* 16 bit r/w PHY Data Register */
2074  XM_GP_PORT = 0x0040, /* 32 bit r/w General Purpose Port Register */
2075  XM_IMSK = 0x0044, /* 16 bit r/w Interrupt Mask Register */
2076  XM_ISRC = 0x0048, /* 16 bit r/o Interrupt Status Register */
2077  XM_HW_CFG = 0x004c, /* 16 bit r/w Hardware Config Register */
2078  XM_TX_LO_WM = 0x0060, /* 16 bit r/w Tx FIFO Low Water Mark */
2079  XM_TX_HI_WM = 0x0062, /* 16 bit r/w Tx FIFO High Water Mark */
2080  XM_TX_THR = 0x0064, /* 16 bit r/w Tx Request Threshold */
2081  XM_HT_THR = 0x0066, /* 16 bit r/w Host Request Threshold */
2082  XM_PAUSE_DA = 0x0068, /* NA reg r/w Pause Destination Address */
2083  XM_CTL_PARA = 0x0070, /* 32 bit r/w Control Parameter Register */
2084  XM_MAC_OPCODE = 0x0074, /* 16 bit r/w Opcode for MAC control frames */
2085  XM_MAC_PTIME = 0x0076, /* 16 bit r/w Pause time for MAC ctrl frames*/
2086  XM_TX_STAT = 0x0078, /* 32 bit r/o Tx Status LIFO Register */
2087 
2088  XM_EXM_START = 0x0080, /* r/w Start Address of the EXM Regs */
2089 #define XM_EXM(reg) (XM_EXM_START + ((reg) << 3))
2090 };
Definition: skge.h:2076
Definition: skge.h:2075
Definition: skge.h:2063

◆ anonymous enum

anonymous enum
Enumerator
XM_SRC_CHK 
XM_SA 
XM_HSM 
XM_RX_LO_WM 
XM_RX_HI_WM 
XM_RX_THR 
XM_DEV_ID 
XM_MODE 
XM_LSA 
XM_TS_READ 
XM_TS_LOAD 
XM_STAT_CMD 
XM_RX_CNT_EV 
XM_TX_CNT_EV 
XM_RX_EV_MSK 
XM_TX_EV_MSK 
XM_TXF_OK 
XM_TXO_OK_HI 
XM_TXO_OK_LO 
XM_TXF_BC_OK 
XM_TXF_MC_OK 
XM_TXF_UC_OK 
XM_TXF_LONG 
XM_TXE_BURST 
XM_TXF_MPAUSE 
XM_TXF_MCTRL 
XM_TXF_SNG_COL 
XM_TXF_MUL_COL 
XM_TXF_ABO_COL 
XM_TXF_LAT_COL 
XM_TXF_DEF 
XM_TXF_EX_DEF 
XM_TXE_FIFO_UR 
XM_TXE_CS_ERR 
XM_TXP_UTIL 
XM_TXF_64B 
XM_TXF_127B 
XM_TXF_255B 
XM_TXF_511B 
XM_TXF_1023B 
XM_TXF_MAX_SZ 
XM_RXF_OK 
XM_RXO_OK_HI 
XM_RXO_OK_LO 
XM_RXF_BC_OK 
XM_RXF_MC_OK 
XM_RXF_UC_OK 
XM_RXF_MPAUSE 
XM_RXF_MCTRL 
XM_RXF_INV_MP 
XM_RXF_INV_MOC 
XM_RXE_BURST 
XM_RXE_FMISS 
XM_RXF_FRA_ERR 
XM_RXE_FIFO_OV 
XM_RXF_JAB_PKT 
XM_RXE_CAR_ERR 
XM_RXF_LEN_ERR 
XM_RXE_SYM_ERR 
XM_RXE_SHT_ERR 
XM_RXE_RUNT 
XM_RXF_LNG_ERR 
XM_RXF_FCS_ERR 
XM_RXF_CEX_ERR 
XM_RXP_UTIL 
XM_RXF_64B 
XM_RXF_127B 
XM_RXF_255B 
XM_RXF_511B 
XM_RXF_1023B 
XM_RXF_MAX_SZ 

Definition at line 2092 of file skge.h.

2092  {
2093  XM_SRC_CHK = 0x0100, /* NA reg r/w Source Check Address Register */
2094  XM_SA = 0x0108, /* NA reg r/w Station Address Register */
2095  XM_HSM = 0x0110, /* 64 bit r/w Hash Match Address Registers */
2096  XM_RX_LO_WM = 0x0118, /* 16 bit r/w Receive Low Water Mark */
2097  XM_RX_HI_WM = 0x011a, /* 16 bit r/w Receive High Water Mark */
2098  XM_RX_THR = 0x011c, /* 32 bit r/w Receive Request Threshold */
2099  XM_DEV_ID = 0x0120, /* 32 bit r/o Device ID Register */
2100  XM_MODE = 0x0124, /* 32 bit r/w Mode Register */
2101  XM_LSA = 0x0128, /* NA reg r/o Last Source Register */
2102  XM_TS_READ = 0x0130, /* 32 bit r/o Time Stamp Read Register */
2103  XM_TS_LOAD = 0x0134, /* 32 bit r/o Time Stamp Load Value */
2104  XM_STAT_CMD = 0x0200, /* 16 bit r/w Statistics Command Register */
2105  XM_RX_CNT_EV = 0x0204, /* 32 bit r/o Rx Counter Event Register */
2106  XM_TX_CNT_EV = 0x0208, /* 32 bit r/o Tx Counter Event Register */
2107  XM_RX_EV_MSK = 0x020c, /* 32 bit r/w Rx Counter Event Mask */
2108  XM_TX_EV_MSK = 0x0210, /* 32 bit r/w Tx Counter Event Mask */
2109  XM_TXF_OK = 0x0280, /* 32 bit r/o Frames Transmitted OK Conuter */
2110  XM_TXO_OK_HI = 0x0284, /* 32 bit r/o Octets Transmitted OK High Cnt*/
2111  XM_TXO_OK_LO = 0x0288, /* 32 bit r/o Octets Transmitted OK Low Cnt */
2112  XM_TXF_BC_OK = 0x028c, /* 32 bit r/o Broadcast Frames Xmitted OK */
2113  XM_TXF_MC_OK = 0x0290, /* 32 bit r/o Multicast Frames Xmitted OK */
2114  XM_TXF_UC_OK = 0x0294, /* 32 bit r/o Unicast Frames Xmitted OK */
2115  XM_TXF_LONG = 0x0298, /* 32 bit r/o Tx Long Frame Counter */
2116  XM_TXE_BURST = 0x029c, /* 32 bit r/o Tx Burst Event Counter */
2117  XM_TXF_MPAUSE = 0x02a0, /* 32 bit r/o Tx Pause MAC Ctrl Frame Cnt */
2118  XM_TXF_MCTRL = 0x02a4, /* 32 bit r/o Tx MAC Ctrl Frame Counter */
2119  XM_TXF_SNG_COL = 0x02a8, /* 32 bit r/o Tx Single Collision Counter */
2120  XM_TXF_MUL_COL = 0x02ac, /* 32 bit r/o Tx Multiple Collision Counter */
2121  XM_TXF_ABO_COL = 0x02b0, /* 32 bit r/o Tx aborted due to Exces. Col. */
2122  XM_TXF_LAT_COL = 0x02b4, /* 32 bit r/o Tx Late Collision Counter */
2123  XM_TXF_DEF = 0x02b8, /* 32 bit r/o Tx Deferred Frame Counter */
2124  XM_TXF_EX_DEF = 0x02bc, /* 32 bit r/o Tx Excessive Deferall Counter */
2125  XM_TXE_FIFO_UR = 0x02c0, /* 32 bit r/o Tx FIFO Underrun Event Cnt */
2126  XM_TXE_CS_ERR = 0x02c4, /* 32 bit r/o Tx Carrier Sense Error Cnt */
2127  XM_TXP_UTIL = 0x02c8, /* 32 bit r/o Tx Utilization in % */
2128  XM_TXF_64B = 0x02d0, /* 32 bit r/o 64 Byte Tx Frame Counter */
2129  XM_TXF_127B = 0x02d4, /* 32 bit r/o 65-127 Byte Tx Frame Counter */
2130  XM_TXF_255B = 0x02d8, /* 32 bit r/o 128-255 Byte Tx Frame Counter */
2131  XM_TXF_511B = 0x02dc, /* 32 bit r/o 256-511 Byte Tx Frame Counter */
2132  XM_TXF_1023B = 0x02e0, /* 32 bit r/o 512-1023 Byte Tx Frame Counter*/
2133  XM_TXF_MAX_SZ = 0x02e4, /* 32 bit r/o 1024-MaxSize Byte Tx Frame Cnt*/
2134  XM_RXF_OK = 0x0300, /* 32 bit r/o Frames Received OK */
2135  XM_RXO_OK_HI = 0x0304, /* 32 bit r/o Octets Received OK High Cnt */
2136  XM_RXO_OK_LO = 0x0308, /* 32 bit r/o Octets Received OK Low Counter*/
2137  XM_RXF_BC_OK = 0x030c, /* 32 bit r/o Broadcast Frames Received OK */
2138  XM_RXF_MC_OK = 0x0310, /* 32 bit r/o Multicast Frames Received OK */
2139  XM_RXF_UC_OK = 0x0314, /* 32 bit r/o Unicast Frames Received OK */
2140  XM_RXF_MPAUSE = 0x0318, /* 32 bit r/o Rx Pause MAC Ctrl Frame Cnt */
2141  XM_RXF_MCTRL = 0x031c, /* 32 bit r/o Rx MAC Ctrl Frame Counter */
2142  XM_RXF_INV_MP = 0x0320, /* 32 bit r/o Rx invalid Pause Frame Cnt */
2143  XM_RXF_INV_MOC = 0x0324, /* 32 bit r/o Rx Frames with inv. MAC Opcode*/
2144  XM_RXE_BURST = 0x0328, /* 32 bit r/o Rx Burst Event Counter */
2145  XM_RXE_FMISS = 0x032c, /* 32 bit r/o Rx Missed Frames Event Cnt */
2146  XM_RXF_FRA_ERR = 0x0330, /* 32 bit r/o Rx Framing Error Counter */
2147  XM_RXE_FIFO_OV = 0x0334, /* 32 bit r/o Rx FIFO overflow Event Cnt */
2148  XM_RXF_JAB_PKT = 0x0338, /* 32 bit r/o Rx Jabber Packet Frame Cnt */
2149  XM_RXE_CAR_ERR = 0x033c, /* 32 bit r/o Rx Carrier Event Error Cnt */
2150  XM_RXF_LEN_ERR = 0x0340, /* 32 bit r/o Rx in Range Length Error */
2151  XM_RXE_SYM_ERR = 0x0344, /* 32 bit r/o Rx Symbol Error Counter */
2152  XM_RXE_SHT_ERR = 0x0348, /* 32 bit r/o Rx Short Event Error Cnt */
2153  XM_RXE_RUNT = 0x034c, /* 32 bit r/o Rx Runt Event Counter */
2154  XM_RXF_LNG_ERR = 0x0350, /* 32 bit r/o Rx Frame too Long Error Cnt */
2155  XM_RXF_FCS_ERR = 0x0354, /* 32 bit r/o Rx Frame Check Seq. Error Cnt */
2156  XM_RXF_CEX_ERR = 0x035c, /* 32 bit r/o Rx Carrier Ext Error Frame Cnt*/
2157  XM_RXP_UTIL = 0x0360, /* 32 bit r/o Rx Utilization in % */
2158  XM_RXF_64B = 0x0368, /* 32 bit r/o 64 Byte Rx Frame Counter */
2159  XM_RXF_127B = 0x036c, /* 32 bit r/o 65-127 Byte Rx Frame Counter */
2160  XM_RXF_255B = 0x0370, /* 32 bit r/o 128-255 Byte Rx Frame Counter */
2161  XM_RXF_511B = 0x0374, /* 32 bit r/o 256-511 Byte Rx Frame Counter */
2162  XM_RXF_1023B = 0x0378, /* 32 bit r/o 512-1023 Byte Rx Frame Counter*/
2163  XM_RXF_MAX_SZ = 0x037c, /* 32 bit r/o 1024-MaxSize Byte Rx Frame Cnt*/
2164 };
Definition: skge.h:2094
Definition: skge.h:2095
Definition: skge.h:2101
Definition: skge.h:2100

◆ anonymous enum

anonymous enum
Enumerator
XM_MMU_PHY_RDY 
XM_MMU_PHY_BUSY 
XM_MMU_IGN_PF 
XM_MMU_MAC_LB 
XM_MMU_FRC_COL 
XM_MMU_SIM_COL 
XM_MMU_NO_PRE 
XM_MMU_GMII_FD 
XM_MMU_RAT_CTRL 
XM_MMU_GMII_LOOP 
XM_MMU_ENA_RX 
XM_MMU_ENA_TX 

Definition at line 2167 of file skge.h.

2167  {
2168  XM_MMU_PHY_RDY = 1<<12, /* Bit 12: PHY Read Ready */
2169  XM_MMU_PHY_BUSY = 1<<11, /* Bit 11: PHY Busy */
2170  XM_MMU_IGN_PF = 1<<10, /* Bit 10: Ignore Pause Frame */
2171  XM_MMU_MAC_LB = 1<<9, /* Bit 9: Enable MAC Loopback */
2172  XM_MMU_FRC_COL = 1<<7, /* Bit 7: Force Collision */
2173  XM_MMU_SIM_COL = 1<<6, /* Bit 6: Simulate Collision */
2174  XM_MMU_NO_PRE = 1<<5, /* Bit 5: No MDIO Preamble */
2175  XM_MMU_GMII_FD = 1<<4, /* Bit 4: GMII uses Full Duplex */
2176  XM_MMU_RAT_CTRL = 1<<3, /* Bit 3: Enable Rate Control */
2177  XM_MMU_GMII_LOOP= 1<<2, /* Bit 2: PHY is in Loopback Mode */
2178  XM_MMU_ENA_RX = 1<<1, /* Bit 1: Enable Receiver */
2179  XM_MMU_ENA_TX = 1<<0, /* Bit 0: Enable Transmitter */
2180 };

◆ anonymous enum

anonymous enum
Enumerator
XM_TX_BK2BK 
XM_TX_ENC_BYP 
XM_TX_SAM_LINE 
XM_TX_NO_GIG_MD 
XM_TX_NO_PRE 
XM_TX_NO_CRC 
XM_TX_AUTO_PAD 

Definition at line 2184 of file skge.h.

2184  {
2185  XM_TX_BK2BK = 1<<6, /* Bit 6: Ignor Carrier Sense (Tx Bk2Bk)*/
2186  XM_TX_ENC_BYP = 1<<5, /* Bit 5: Set Encoder in Bypass Mode */
2187  XM_TX_SAM_LINE = 1<<4, /* Bit 4: (sc) Start utilization calculation */
2188  XM_TX_NO_GIG_MD = 1<<3, /* Bit 3: Disable Carrier Extension */
2189  XM_TX_NO_PRE = 1<<2, /* Bit 2: Disable Preamble Generation */
2190  XM_TX_NO_CRC = 1<<1, /* Bit 1: Disable CRC Generation */
2191  XM_TX_AUTO_PAD = 1<<0, /* Bit 0: Enable Automatic Padding */
2192 };

◆ anonymous enum

anonymous enum
Enumerator
XM_RX_LENERR_OK 
XM_RX_BIG_PK_OK 
XM_RX_IPG_CAP 
XM_RX_TP_MD 
XM_RX_STRIP_FCS 
XM_RX_SELF_RX 
XM_RX_SAM_LINE 
XM_RX_STRIP_PAD 
XM_RX_DIS_CEXT 

Definition at line 2207 of file skge.h.

2207  {
2208  XM_RX_LENERR_OK = 1<<8, /* Bit 8 don't set Rx Err bit for */
2209  /* inrange error packets */
2210  XM_RX_BIG_PK_OK = 1<<7, /* Bit 7 don't set Rx Err bit for */
2211  /* jumbo packets */
2212  XM_RX_IPG_CAP = 1<<6, /* Bit 6 repl. type field with IPG */
2213  XM_RX_TP_MD = 1<<5, /* Bit 5: Enable transparent Mode */
2214  XM_RX_STRIP_FCS = 1<<4, /* Bit 4: Enable FCS Stripping */
2215  XM_RX_SELF_RX = 1<<3, /* Bit 3: Enable Rx of own packets */
2216  XM_RX_SAM_LINE = 1<<2, /* Bit 2: (sc) Start utilization calculation */
2217  XM_RX_STRIP_PAD = 1<<1, /* Bit 1: Strip pad bytes of Rx frames */
2218  XM_RX_DIS_CEXT = 1<<0, /* Bit 0: Disable carrier ext. check */
2219 };

◆ anonymous enum

anonymous enum
Enumerator
XM_GP_ANIP 
XM_GP_FRC_INT 
XM_GP_RES_MAC 
XM_GP_RES_STAT 
XM_GP_INP_ASS 

Definition at line 2223 of file skge.h.

2223  {
2224  XM_GP_ANIP = 1<<6, /* Bit 6: (ro) Auto-Neg. in progress */
2225  XM_GP_FRC_INT = 1<<5, /* Bit 5: (sc) Force Interrupt */
2226  XM_GP_RES_MAC = 1<<3, /* Bit 3: (sc) Reset MAC and FIFOs */
2227  XM_GP_RES_STAT = 1<<2, /* Bit 2: (sc) Reset the statistics module */
2228  XM_GP_INP_ASS = 1<<0, /* Bit 0: (ro) GP Input Pin asserted */
2229 };

◆ anonymous enum

anonymous enum
Enumerator
XM_IS_LNK_AE 
XM_IS_TX_ABORT 
XM_IS_FRC_INT 
XM_IS_INP_ASS 
XM_IS_LIPA_RC 
XM_IS_RX_PAGE 
XM_IS_TX_PAGE 
XM_IS_AND 
XM_IS_TSC_OV 
XM_IS_RXC_OV 
XM_IS_TXC_OV 
XM_IS_RXF_OV 
XM_IS_TXF_UR 
XM_IS_TX_COMP 
XM_IS_RX_COMP 
XM_IMSK_DISABLE 

Definition at line 2234 of file skge.h.

2234  {
2235  XM_IS_LNK_AE = 1<<14, /* Bit 14: Link Asynchronous Event */
2236  XM_IS_TX_ABORT = 1<<13, /* Bit 13: Transmit Abort, late Col. etc */
2237  XM_IS_FRC_INT = 1<<12, /* Bit 12: Force INT bit set in GP */
2238  XM_IS_INP_ASS = 1<<11, /* Bit 11: Input Asserted, GP bit 0 set */
2239  XM_IS_LIPA_RC = 1<<10, /* Bit 10: Link Partner requests config */
2240  XM_IS_RX_PAGE = 1<<9, /* Bit 9: Page Received */
2241  XM_IS_TX_PAGE = 1<<8, /* Bit 8: Next Page Loaded for Transmit */
2242  XM_IS_AND = 1<<7, /* Bit 7: Auto-Negotiation Done */
2243  XM_IS_TSC_OV = 1<<6, /* Bit 6: Time Stamp Counter Overflow */
2244  XM_IS_RXC_OV = 1<<5, /* Bit 5: Rx Counter Event Overflow */
2245  XM_IS_TXC_OV = 1<<4, /* Bit 4: Tx Counter Event Overflow */
2246  XM_IS_RXF_OV = 1<<3, /* Bit 3: Receive FIFO Overflow */
2247  XM_IS_TXF_UR = 1<<2, /* Bit 2: Transmit FIFO Underrun */
2248  XM_IS_TX_COMP = 1<<1, /* Bit 1: Frame Tx Complete */
2249  XM_IS_RX_COMP = 1<<0, /* Bit 0: Frame Rx Complete */
2250 
2251  XM_IMSK_DISABLE = 0xffff,
2252 };

◆ anonymous enum

anonymous enum
Enumerator
XM_HW_GEN_EOP 
XM_HW_COM4SIG 
XM_HW_GMII_MD 

Definition at line 2255 of file skge.h.

2255  {
2256  XM_HW_GEN_EOP = 1<<3, /* Bit 3: generate End of Packet pulse */
2257  XM_HW_COM4SIG = 1<<2, /* Bit 2: use Comma Detect for Sig. Det.*/
2258  XM_HW_GMII_MD = 1<<0, /* Bit 0: GMII Interface selected */
2259 };

◆ anonymous enum

anonymous enum
Enumerator
XM_ST_VALID 
XM_ST_BYTE_CNT 
XM_ST_RETRY_CNT 
XM_ST_EX_COL 
XM_ST_EX_DEF 
XM_ST_BURST 
XM_ST_DEFER 
XM_ST_BC 
XM_ST_MC 
XM_ST_UC 
XM_ST_TX_UR 
XM_ST_CS_ERR 
XM_ST_LAT_COL 
XM_ST_MUL_COL 
XM_ST_SGN_COL 

Definition at line 2273 of file skge.h.

2273  {
2274  XM_ST_VALID = (1UL<<31), /* Bit 31: Status Valid */
2275  XM_ST_BYTE_CNT = (0x3fffL<<17), /* Bit 30..17: Tx frame Length */
2276  XM_ST_RETRY_CNT = (0x1fL<<12), /* Bit 16..12: Retry Count */
2277  XM_ST_EX_COL = 1<<11, /* Bit 11: Excessive Collisions */
2278  XM_ST_EX_DEF = 1<<10, /* Bit 10: Excessive Deferral */
2279  XM_ST_BURST = 1<<9, /* Bit 9: p. xmitted in burst md*/
2280  XM_ST_DEFER = 1<<8, /* Bit 8: packet was defered */
2281  XM_ST_BC = 1<<7, /* Bit 7: Broadcast packet */
2282  XM_ST_MC = 1<<6, /* Bit 6: Multicast packet */
2283  XM_ST_UC = 1<<5, /* Bit 5: Unicast packet */
2284  XM_ST_TX_UR = 1<<4, /* Bit 4: FIFO Underrun occurred */
2285  XM_ST_CS_ERR = 1<<3, /* Bit 3: Carrier Sense Error */
2286  XM_ST_LAT_COL = 1<<2, /* Bit 2: Late Collision Error */
2287  XM_ST_MUL_COL = 1<<1, /* Bit 1: Multiple Collisions */
2288  XM_ST_SGN_COL = 1<<0, /* Bit 0: Single Collision */
2289 };

◆ anonymous enum

anonymous enum
Enumerator
XM_MD_ENA_REJ 
XM_MD_SPOE_E 
XM_MD_TX_REP 
XM_MD_SPOFF_I 
XM_MD_LE_STW 
XM_MD_TX_CONT 
XM_MD_TX_PAUSE 
XM_MD_ATS 
XM_MD_SPOL_I 
XM_MD_SPOH_I 
XM_MD_CAP 
XM_MD_ENA_HASH 
XM_MD_CSA 
XM_MD_CAA 
XM_MD_RX_MCTRL 
XM_MD_RX_RUNT 
XM_MD_RX_IRLE 
XM_MD_RX_LONG 
XM_MD_RX_CRCE 
XM_MD_RX_ERR 
XM_MD_DIS_UC 
XM_MD_DIS_MC 
XM_MD_DIS_BC 
XM_MD_ENA_PROM 
XM_MD_ENA_BE 
XM_MD_FTF 
XM_MD_FRF 

Definition at line 2302 of file skge.h.

2302  {
2303  XM_MD_ENA_REJ = 1<<26, /* Bit 26: Enable Frame Reject */
2304  XM_MD_SPOE_E = 1<<25, /* Bit 25: Send Pause on Edge */
2305  /* extern generated */
2306  XM_MD_TX_REP = 1<<24, /* Bit 24: Transmit Repeater Mode */
2307  XM_MD_SPOFF_I = 1<<23, /* Bit 23: Send Pause on FIFO full */
2308  /* intern generated */
2309  XM_MD_LE_STW = 1<<22, /* Bit 22: Rx Stat Word in Little Endian */
2310  XM_MD_TX_CONT = 1<<21, /* Bit 21: Send Continuous */
2311  XM_MD_TX_PAUSE = 1<<20, /* Bit 20: (sc) Send Pause Frame */
2312  XM_MD_ATS = 1<<19, /* Bit 19: Append Time Stamp */
2313  XM_MD_SPOL_I = 1<<18, /* Bit 18: Send Pause on Low */
2314  /* intern generated */
2315  XM_MD_SPOH_I = 1<<17, /* Bit 17: Send Pause on High */
2316  /* intern generated */
2317  XM_MD_CAP = 1<<16, /* Bit 16: Check Address Pair */
2318  XM_MD_ENA_HASH = 1<<15, /* Bit 15: Enable Hashing */
2319  XM_MD_CSA = 1<<14, /* Bit 14: Check Station Address */
2320  XM_MD_CAA = 1<<13, /* Bit 13: Check Address Array */
2321  XM_MD_RX_MCTRL = 1<<12, /* Bit 12: Rx MAC Control Frame */
2322  XM_MD_RX_RUNT = 1<<11, /* Bit 11: Rx Runt Frames */
2323  XM_MD_RX_IRLE = 1<<10, /* Bit 10: Rx in Range Len Err Frame */
2324  XM_MD_RX_LONG = 1<<9, /* Bit 9: Rx Long Frame */
2325  XM_MD_RX_CRCE = 1<<8, /* Bit 8: Rx CRC Error Frame */
2326  XM_MD_RX_ERR = 1<<7, /* Bit 7: Rx Error Frame */
2327  XM_MD_DIS_UC = 1<<6, /* Bit 6: Disable Rx Unicast */
2328  XM_MD_DIS_MC = 1<<5, /* Bit 5: Disable Rx Multicast */
2329  XM_MD_DIS_BC = 1<<4, /* Bit 4: Disable Rx Broadcast */
2330  XM_MD_ENA_PROM = 1<<3, /* Bit 3: Enable Promiscuous */
2331  XM_MD_ENA_BE = 1<<2, /* Bit 2: Enable Big Endian */
2332  XM_MD_FTF = 1<<1, /* Bit 1: (sc) Flush Tx FIFO */
2333  XM_MD_FRF = 1<<0, /* Bit 0: (sc) Flush Rx FIFO */
2334 };

◆ anonymous enum

anonymous enum
Enumerator
XM_SC_SNP_RXC 
XM_SC_SNP_TXC 
XM_SC_CP_RXC 
XM_SC_CP_TXC 
XM_SC_CLR_RXC 
XM_SC_CLR_TXC 

Definition at line 2341 of file skge.h.

2341  {
2342  XM_SC_SNP_RXC = 1<<5, /* Bit 5: (sc) Snap Rx Counters */
2343  XM_SC_SNP_TXC = 1<<4, /* Bit 4: (sc) Snap Tx Counters */
2344  XM_SC_CP_RXC = 1<<3, /* Bit 3: Copy Rx Counters Continuously */
2345  XM_SC_CP_TXC = 1<<2, /* Bit 2: Copy Tx Counters Continuously */
2346  XM_SC_CLR_RXC = 1<<1, /* Bit 1: (sc) Clear Rx Counters */
2347  XM_SC_CLR_TXC = 1<<0, /* Bit 0: (sc) Clear Tx Counters */
2348 };

◆ anonymous enum

anonymous enum
Enumerator
XMR_MAX_SZ_OV 
XMR_1023B_OV 
XMR_511B_OV 
XMR_255B_OV 
XMR_127B_OV 
XMR_64B_OV 
XMR_UTIL_OV 
XMR_UTIL_UR 
XMR_CEX_ERR_OV 
XMR_FCS_ERR_OV 
XMR_LNG_ERR_OV 
XMR_RUNT_OV 
XMR_SHT_ERR_OV 
XMR_SYM_ERR_OV 
XMR_CAR_ERR_OV 
XMR_JAB_PKT_OV 
XMR_FIFO_OV 
XMR_FRA_ERR_OV 
XMR_FMISS_OV 
XMR_BURST 
XMR_INV_MOC 
XMR_INV_MP 
XMR_MCTRL_OV 
XMR_MPAUSE_OV 
XMR_UC_OK_OV 
XMR_MC_OK_OV 
XMR_BC_OK_OV 
XMR_OK_LO_OV 
XMR_OK_HI_OV 
XMR_OK_OV 

Definition at line 2353 of file skge.h.

2353  {
2354  XMR_MAX_SZ_OV = 1<<31, /* Bit 31: 1024-MaxSize Rx Cnt Ov*/
2355  XMR_1023B_OV = 1<<30, /* Bit 30: 512-1023Byte Rx Cnt Ov*/
2356  XMR_511B_OV = 1<<29, /* Bit 29: 256-511 Byte Rx Cnt Ov*/
2357  XMR_255B_OV = 1<<28, /* Bit 28: 128-255 Byte Rx Cnt Ov*/
2358  XMR_127B_OV = 1<<27, /* Bit 27: 65-127 Byte Rx Cnt Ov */
2359  XMR_64B_OV = 1<<26, /* Bit 26: 64 Byte Rx Cnt Ov */
2360  XMR_UTIL_OV = 1<<25, /* Bit 25: Rx Util Cnt Overflow */
2361  XMR_UTIL_UR = 1<<24, /* Bit 24: Rx Util Cnt Underrun */
2362  XMR_CEX_ERR_OV = 1<<23, /* Bit 23: CEXT Err Cnt Ov */
2363  XMR_FCS_ERR_OV = 1<<21, /* Bit 21: Rx FCS Error Cnt Ov */
2364  XMR_LNG_ERR_OV = 1<<20, /* Bit 20: Rx too Long Err Cnt Ov*/
2365  XMR_RUNT_OV = 1<<19, /* Bit 19: Runt Event Cnt Ov */
2366  XMR_SHT_ERR_OV = 1<<18, /* Bit 18: Rx Short Ev Err Cnt Ov*/
2367  XMR_SYM_ERR_OV = 1<<17, /* Bit 17: Rx Sym Err Cnt Ov */
2368  XMR_CAR_ERR_OV = 1<<15, /* Bit 15: Rx Carr Ev Err Cnt Ov */
2369  XMR_JAB_PKT_OV = 1<<14, /* Bit 14: Rx Jabb Packet Cnt Ov */
2370  XMR_FIFO_OV = 1<<13, /* Bit 13: Rx FIFO Ov Ev Cnt Ov */
2371  XMR_FRA_ERR_OV = 1<<12, /* Bit 12: Rx Framing Err Cnt Ov */
2372  XMR_FMISS_OV = 1<<11, /* Bit 11: Rx Missed Ev Cnt Ov */
2373  XMR_BURST = 1<<10, /* Bit 10: Rx Burst Event Cnt Ov */
2374  XMR_INV_MOC = 1<<9, /* Bit 9: Rx with inv. MAC OC Ov*/
2375  XMR_INV_MP = 1<<8, /* Bit 8: Rx inv Pause Frame Ov */
2376  XMR_MCTRL_OV = 1<<7, /* Bit 7: Rx MAC Ctrl-F Cnt Ov */
2377  XMR_MPAUSE_OV = 1<<6, /* Bit 6: Rx Pause MAC Ctrl-F Ov*/
2378  XMR_UC_OK_OV = 1<<5, /* Bit 5: Rx Unicast Frame CntOv*/
2379  XMR_MC_OK_OV = 1<<4, /* Bit 4: Rx Multicast Cnt Ov */
2380  XMR_BC_OK_OV = 1<<3, /* Bit 3: Rx Broadcast Cnt Ov */
2381  XMR_OK_LO_OV = 1<<2, /* Bit 2: Octets Rx OK Low CntOv*/
2382  XMR_OK_HI_OV = 1<<1, /* Bit 1: Octets Rx OK Hi Cnt Ov*/
2383  XMR_OK_OV = 1<<0, /* Bit 0: Frames Received Ok Ov */
2384 };

◆ anonymous enum

anonymous enum
Enumerator
XMT_MAX_SZ_OV 
XMT_1023B_OV 
XMT_511B_OV 
XMT_255B_OV 
XMT_127B_OV 
XMT_64B_OV 
XMT_UTIL_OV 
XMT_UTIL_UR 
XMT_CS_ERR_OV 
XMT_FIFO_UR_OV 
XMT_EX_DEF_OV 
XMT_DEF 
XMT_LAT_COL_OV 
XMT_ABO_COL_OV 
XMT_MUL_COL_OV 
XMT_SNG_COL 
XMT_MCTRL_OV 
XMT_MPAUSE 
XMT_BURST 
XMT_LONG 
XMT_UC_OK_OV 
XMT_MC_OK_OV 
XMT_BC_OK_OV 
XMT_OK_LO_OV 
XMT_OK_HI_OV 
XMT_OK_OV 

Definition at line 2390 of file skge.h.

2390  {
2391  XMT_MAX_SZ_OV = 1<<25, /* Bit 25: 1024-MaxSize Tx Cnt Ov*/
2392  XMT_1023B_OV = 1<<24, /* Bit 24: 512-1023Byte Tx Cnt Ov*/
2393  XMT_511B_OV = 1<<23, /* Bit 23: 256-511 Byte Tx Cnt Ov*/
2394  XMT_255B_OV = 1<<22, /* Bit 22: 128-255 Byte Tx Cnt Ov*/
2395  XMT_127B_OV = 1<<21, /* Bit 21: 65-127 Byte Tx Cnt Ov */
2396  XMT_64B_OV = 1<<20, /* Bit 20: 64 Byte Tx Cnt Ov */
2397  XMT_UTIL_OV = 1<<19, /* Bit 19: Tx Util Cnt Overflow */
2398  XMT_UTIL_UR = 1<<18, /* Bit 18: Tx Util Cnt Underrun */
2399  XMT_CS_ERR_OV = 1<<17, /* Bit 17: Tx Carr Sen Err Cnt Ov*/
2400  XMT_FIFO_UR_OV = 1<<16, /* Bit 16: Tx FIFO Ur Ev Cnt Ov */
2401  XMT_EX_DEF_OV = 1<<15, /* Bit 15: Tx Ex Deferall Cnt Ov */
2402  XMT_DEF = 1<<14, /* Bit 14: Tx Deferred Cnt Ov */
2403  XMT_LAT_COL_OV = 1<<13, /* Bit 13: Tx Late Col Cnt Ov */
2404  XMT_ABO_COL_OV = 1<<12, /* Bit 12: Tx abo dueto Ex Col Ov*/
2405  XMT_MUL_COL_OV = 1<<11, /* Bit 11: Tx Mult Col Cnt Ov */
2406  XMT_SNG_COL = 1<<10, /* Bit 10: Tx Single Col Cnt Ov */
2407  XMT_MCTRL_OV = 1<<9, /* Bit 9: Tx MAC Ctrl Counter Ov*/
2408  XMT_MPAUSE = 1<<8, /* Bit 8: Tx Pause MAC Ctrl-F Ov*/
2409  XMT_BURST = 1<<7, /* Bit 7: Tx Burst Event Cnt Ov */
2410  XMT_LONG = 1<<6, /* Bit 6: Tx Long Frame Cnt Ov */
2411  XMT_UC_OK_OV = 1<<5, /* Bit 5: Tx Unicast Cnt Ov */
2412  XMT_MC_OK_OV = 1<<4, /* Bit 4: Tx Multicast Cnt Ov */
2413  XMT_BC_OK_OV = 1<<3, /* Bit 3: Tx Broadcast Cnt Ov */
2414  XMT_OK_LO_OV = 1<<2, /* Bit 2: Octets Tx OK Low CntOv*/
2415  XMT_OK_HI_OV = 1<<1, /* Bit 1: Octets Tx OK Hi Cnt Ov*/
2416  XMT_OK_OV = 1<<0, /* Bit 0: Frames Tx Ok Ov */
2417 };
Definition: skge.h:2402

◆ pause_control

Enumerator
FLOW_MODE_NONE 
FLOW_MODE_LOC_SEND 
FLOW_MODE_SYMMETRIC 
FLOW_MODE_SYM_OR_REM 

Definition at line 2477 of file skge.h.

2477  {
2478  FLOW_MODE_NONE = 1, /* No Flow-Control */
2479  FLOW_MODE_LOC_SEND = 2, /* Local station sends PAUSE */
2480  FLOW_MODE_SYMMETRIC = 3, /* Both stations may send PAUSE */
2481  FLOW_MODE_SYM_OR_REM = 4, /* Both stations may send PAUSE or
2482  * just the remote station may send PAUSE
2483  */
2484 };

◆ pause_status

Enumerator
FLOW_STAT_INDETERMINATED 
FLOW_STAT_NONE 
FLOW_STAT_REM_SEND 
FLOW_STAT_LOC_SEND 
FLOW_STAT_SYMMETRIC 

Definition at line 2486 of file skge.h.

2486  {
2487  FLOW_STAT_INDETERMINATED=0, /* indeterminated */
2488  FLOW_STAT_NONE, /* No Flow Control */
2489  FLOW_STAT_REM_SEND, /* Remote Station sends PAUSE */
2490  FLOW_STAT_LOC_SEND, /* Local station sends PAUSE */
2491  FLOW_STAT_SYMMETRIC, /* Both station may send PAUSE */
2492 };

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_ONLY  )

◆ skge_read32()

static u32 skge_read32 ( const struct skge_hw hw,
int  reg 
)
inlinestatic

Definition at line 2517 of file skge.h.

2518 {
2519  return readl(hw->regs + reg);
2520 }
static unsigned int unsigned int reg
Definition: myson.h:162
uint32_t readl(volatile uint32_t *io_addr)
Read 32-bit dword from memory-mapped device.
Definition: hw.c:16

References readl(), and reg.

Referenced by genesis_mac_init(), genesis_stop(), is_yukon_lite_a0(), skge_phyirq(), skge_poll(), skge_remove(), skge_reset(), and yukon_mac_init().

◆ skge_read16()

static u16 skge_read16 ( const struct skge_hw hw,
int  reg 
)
inlinestatic

Definition at line 2522 of file skge.h.

2523 {
2524  return readw(hw->regs + reg);
2525 }
static unsigned int unsigned int reg
Definition: myson.h:162
uint16_t readw(volatile uint16_t *io_addr)
Read 16-bit word from memory-mapped device.
Definition: hw.c:16

References readw(), and reg.

Referenced by genesis_mac_init(), genesis_stop(), gma_read16(), gma_read32(), skge_qset(), skge_reset(), xm_read16(), xm_read32(), and yukon_mac_init().

◆ skge_read8()

static u8 skge_read8 ( const struct skge_hw hw,
int  reg 
)
inlinestatic

Definition at line 2527 of file skge.h.

2528 {
2529  return readb(hw->regs + reg);
2530 }
uint8_t readb(volatile uint8_t *io_addr)
Read byte from memory-mapped device.
static unsigned int unsigned int reg
Definition: myson.h:162
Definition: hw.c:16

References readb(), and reg.

Referenced by is_yukon_lite_a0(), and skge_reset().

◆ skge_write32()

static void skge_write32 ( const struct skge_hw hw,
int  reg,
u32  val 
)
inlinestatic

Definition at line 2532 of file skge.h.

2533 {
2534  writel(val, hw->regs + reg);
2535 }
static unsigned int unsigned int reg
Definition: myson.h:162
Definition: hw.c:16
void writel(uint32_t data, volatile uint32_t *io_addr)
Write 32-bit dword to memory-mapped device.
void __asmcall int val
Definition: setjmp.h:28

References reg, val, and writel().

Referenced by genesis_init(), genesis_mac_init(), genesis_stop(), is_yukon_lite_a0(), skge_down(), skge_led(), skge_net_irq(), skge_phyirq(), skge_qset(), skge_ramset(), skge_remove(), skge_reset(), skge_rx_stop(), skge_up(), and yukon_mac_init().

◆ skge_write16()

static void skge_write16 ( const struct skge_hw hw,
int  reg,
u16  val 
)
inlinestatic

Definition at line 2537 of file skge.h.

2538 {
2539  writew(val, hw->regs + reg);
2540 }
static unsigned int unsigned int reg
Definition: myson.h:162
Definition: hw.c:16
void __asmcall int val
Definition: setjmp.h:28
#define writew
Definition: w89c840.c:159

References reg, val, and writew.

Referenced by genesis_init(), genesis_link_up(), genesis_mac_init(), genesis_stop(), gma_write16(), skge_probe(), skge_remove(), skge_reset(), xm_write16(), xm_write32(), and yukon_mac_init().

◆ skge_write8()

static void skge_write8 ( const struct skge_hw hw,
int  reg,
u8  val 
)
inlinestatic

Definition at line 2542 of file skge.h.

2543 {
2544  writeb(val, hw->regs + reg);
2545 }
static unsigned int unsigned int reg
Definition: myson.h:162
Definition: hw.c:16
void writeb(uint8_t data, volatile uint8_t *io_addr)
Write byte to memory-mapped device.
void __asmcall int val
Definition: setjmp.h:28

References reg, val, and writeb().

Referenced by genesis_init(), genesis_mac_init(), genesis_reset(), is_yukon_lite_a0(), skge_down(), skge_led(), skge_link_down(), skge_link_up(), skge_poll(), skge_ramset(), skge_remove(), skge_reset(), skge_rx_stop(), skge_tx_done(), skge_up(), skge_xmit_frame(), yukon_link_up(), yukon_mac_init(), yukon_phy_intr(), and yukon_stop().

◆ xm_read32()

static u32 xm_read32 ( const struct skge_hw hw,
int  port,
int  reg 
)
inlinestatic

Definition at line 2552 of file skge.h.

2553 {
2554  u32 v;
2555  v = skge_read16(hw, SK_XMAC_REG(port, reg));
2556  v |= (u32)skge_read16(hw, SK_XMAC_REG(port, reg+2)) << 16;
2557  return v;
2558 }
static unsigned int unsigned int reg
Definition: myson.h:162
#define SK_XMAC_REG(port, reg)
Definition: skge.h:2549
Definition: hw.c:16
u8 port
Port number.
Definition: CIB_PRM.h:31
#define u32
Definition: vga.h:21
uint32_t u32
Definition: stdint.h:23
static u16 skge_read16(const struct skge_hw *hw, int reg)
Definition: skge.h:2522

References port, reg, SK_XMAC_REG, skge_read16(), and u32.

Referenced by genesis_link_up(), and genesis_reset().

◆ xm_read16()

static u16 xm_read16 ( const struct skge_hw hw,
int  port,
int  reg 
)
inlinestatic

Definition at line 2560 of file skge.h.

2561 {
2562  return skge_read16(hw, SK_XMAC_REG(port,reg));
2563 }
static unsigned int unsigned int reg
Definition: myson.h:162
#define SK_XMAC_REG(port, reg)
Definition: skge.h:2549
Definition: hw.c:16
u8 port
Port number.
Definition: CIB_PRM.h:31
static u16 skge_read16(const struct skge_hw *hw, int reg)
Definition: skge.h:2522

References port, reg, SK_XMAC_REG, and skge_read16().

Referenced by __xm_phy_read(), bcom_phy_init(), genesis_link_up(), genesis_stop(), xm_link_timer(), and xm_phy_write().

◆ xm_write32()

static void xm_write32 ( const struct skge_hw hw,
int  port,
int  r,
u32  v 
)
inlinestatic

Definition at line 2565 of file skge.h.

2566 {
2567  skge_write16(hw, SK_XMAC_REG(port,r), v & 0xffff);
2568  skge_write16(hw, SK_XMAC_REG(port,r+2), v >> 16);
2569 }
#define SK_XMAC_REG(port, reg)
Definition: skge.h:2549
Definition: hw.c:16
u8 port
Port number.
Definition: CIB_PRM.h:31
static void skge_write16(const struct skge_hw *hw, int reg, u16 val)
Definition: skge.h:2537
static const uint8_t r[3][4]
MD4 shift amounts.
Definition: md4.c:53

References port, r, SK_XMAC_REG, and skge_write16().

Referenced by genesis_link_up(), genesis_mac_init(), and genesis_reset().

◆ xm_write16()

static void xm_write16 ( const struct skge_hw hw,
int  port,
int  r,
u16  v 
)
inlinestatic

Definition at line 2571 of file skge.h.

2572 {
2574 }
#define SK_XMAC_REG(port, reg)
Definition: skge.h:2549
Definition: hw.c:16
u8 port
Port number.
Definition: CIB_PRM.h:31
static void skge_write16(const struct skge_hw *hw, int reg, u16 val)
Definition: skge.h:2537
static const uint8_t r[3][4]
MD4 shift amounts.
Definition: md4.c:53

References port, r, SK_XMAC_REG, and skge_write16().

Referenced by __xm_phy_read(), bcom_phy_init(), genesis_link_up(), genesis_mac_init(), genesis_reset(), genesis_stop(), xm_link_down(), xm_link_timer(), xm_outaddr(), xm_outhash(), and xm_phy_write().

◆ xm_outhash()

static void xm_outhash ( const struct skge_hw hw,
int  port,
int  reg,
const u8 hash 
)
inlinestatic

Definition at line 2576 of file skge.h.

2578 {
2579  xm_write16(hw, port, reg, (u16)hash[0] | ((u16)hash[1] << 8));
2580  xm_write16(hw, port, reg+2, (u16)hash[2] | ((u16)hash[3] << 8));
2581  xm_write16(hw, port, reg+4, (u16)hash[4] | ((u16)hash[5] << 8));
2582  xm_write16(hw, port, reg+6, (u16)hash[6] | ((u16)hash[7] << 8));
2583 }
uint16_t u16
Definition: stdint.h:21
static void xm_write16(const struct skge_hw *hw, int port, int r, u16 v)
Definition: skge.h:2571
static unsigned int unsigned int reg
Definition: myson.h:162
Definition: hw.c:16
u8 port
Port number.
Definition: CIB_PRM.h:31
pseudo_bit_t hash[0x00010]
Hash algorithm.
Definition: arbel.h:13

References hash, port, reg, and xm_write16().

Referenced by genesis_reset().

◆ xm_outaddr()

static void xm_outaddr ( const struct skge_hw hw,
int  port,
int  reg,
const u8 addr 
)
inlinestatic

Definition at line 2585 of file skge.h.

2587 {
2588  xm_write16(hw, port, reg, (u16)addr[0] | ((u16)addr[1] << 8));
2589  xm_write16(hw, port, reg+2, (u16)addr[2] | ((u16)addr[3] << 8));
2590  xm_write16(hw, port, reg+4, (u16)addr[4] | ((u16)addr[5] << 8));
2591 }
uint16_t u16
Definition: stdint.h:21
static void xm_write16(const struct skge_hw *hw, int port, int r, u16 v)
Definition: skge.h:2571
static unsigned int unsigned int reg
Definition: myson.h:162
Definition: hw.c:16
u8 port
Port number.
Definition: CIB_PRM.h:31
u32 addr
Definition: sky2.h:8

References addr, port, reg, and xm_write16().

Referenced by genesis_mac_init().

◆ gma_read16()

static u16 gma_read16 ( const struct skge_hw hw,
int  port,
int  reg 
)
inlinestatic

Definition at line 2596 of file skge.h.

2597 {
2598  return skge_read16(hw, SK_GMAC_REG(port,reg));
2599 }
static unsigned int unsigned int reg
Definition: myson.h:162
#define SK_GMAC_REG(port, reg)
Definition: skge.h:2593
Definition: hw.c:16
u8 port
Port number.
Definition: CIB_PRM.h:31
static u16 skge_read16(const struct skge_hw *hw, int reg)
Definition: skge.h:2522

References port, reg, SK_GMAC_REG, and skge_read16().

Referenced by __gm_phy_read(), gm_phy_write(), sky2_down(), sky2_gmac_reset(), sky2_link_down(), sky2_link_up(), sky2_mac_init(), sky2_mac_intr(), sky2_set_multicast(), yukon_link_down(), yukon_link_up(), yukon_mac_init(), yukon_reset(), and yukon_stop().

◆ gma_read32()

static u32 gma_read32 ( const struct skge_hw hw,
int  port,
int  reg 
)
inlinestatic

Definition at line 2601 of file skge.h.

2602 {
2603  return (u32) skge_read16(hw, SK_GMAC_REG(port,reg))
2604  | ((u32)skge_read16(hw, SK_GMAC_REG(port,reg+4)) << 16);
2605 }
static unsigned int unsigned int reg
Definition: myson.h:162
#define SK_GMAC_REG(port, reg)
Definition: skge.h:2593
Definition: hw.c:16
u8 port
Port number.
Definition: CIB_PRM.h:31
#define u32
Definition: vga.h:21
uint32_t u32
Definition: stdint.h:23
static u16 skge_read16(const struct skge_hw *hw, int reg)
Definition: skge.h:2522

References port, reg, SK_GMAC_REG, skge_read16(), and u32.

◆ gma_write16()

static void gma_write16 ( const struct skge_hw hw,
int  port,
int  r,
u16  v 
)
inlinestatic

Definition at line 2607 of file skge.h.

2608 {
2610 }
#define SK_GMAC_REG(port, reg)
Definition: skge.h:2593
Definition: hw.c:16
u8 port
Port number.
Definition: CIB_PRM.h:31
static void skge_write16(const struct skge_hw *hw, int reg, u16 val)
Definition: skge.h:2537
static const uint8_t r[3][4]
MD4 shift amounts.
Definition: md4.c:53

References port, r, SK_GMAC_REG, and skge_write16().

Referenced by __gm_phy_read(), gm_phy_write(), gma_set_addr(), sky2_down(), sky2_gmac_reset(), sky2_link_down(), sky2_link_up(), sky2_mac_init(), sky2_phy_init(), sky2_phy_power_down(), sky2_set_multicast(), yukon_link_down(), yukon_link_up(), yukon_mac_init(), yukon_reset(), and yukon_stop().

◆ gma_set_addr()

static void gma_set_addr ( struct skge_hw hw,
int  port,
int  reg,
const u8 addr 
)
inlinestatic

Definition at line 2612 of file skge.h.

2614 {
2615  gma_write16(hw, port, reg, (u16) addr[0] | ((u16) addr[1] << 8));
2616  gma_write16(hw, port, reg+4,(u16) addr[2] | ((u16) addr[3] << 8));
2617  gma_write16(hw, port, reg+8,(u16) addr[4] | ((u16) addr[5] << 8));
2618 }
uint16_t u16
Definition: stdint.h:21
static void gma_write16(const struct skge_hw *hw, int port, int r, u16 v)
Definition: skge.h:2607
static unsigned int unsigned int reg
Definition: myson.h:162
Definition: hw.c:16
u8 port
Port number.
Definition: CIB_PRM.h:31
u32 addr
Definition: sky2.h:8

References addr, gma_write16(), port, and reg.

Referenced by sky2_mac_init(), and yukon_mac_init().