dp83640_driver.h File Reference

DP83640 Ethernet PHY transceiver. More...

#include "core/nic.h"

Go to the source code of this file.

Macros

#define DP83640_PHY_ADDR   1
 
#define DP83640_BMCR   0x00
 
#define DP83640_BMSR   0x01
 
#define DP83640_PHYID1   0x02
 
#define DP83640_PHYID2   0x03
 
#define DP83640_ANAR   0x04
 
#define DP83640_ANLPAR   0x05
 
#define DP83640_ANER   0x06
 
#define DP83640_ANNPR   0x07
 
#define DP83640_PHYSTS   0x10
 
#define DP83640_MICR   0x11
 
#define DP83640_MISR   0x12
 
#define DP83640_PAGSR   0x13
 
#define DP83640_FCSCR   0x14
 
#define DP83640_RECR   0x15
 
#define DP83640_PCSR   0x16
 
#define DP83640_RBR   0x17
 
#define DP83640_LEDCR   0x18
 
#define DP83640_PHYCR   0x19
 
#define DP83640_10BTSCR   0x1A
 
#define DP83640_CDCTRL1   0x1B
 
#define DP83640_PHYCR2   0x1C
 
#define DP83640_EDCR   0x1D
 
#define DP83640_PCFCR   0x1E
 
#define DP83640_SD_CNFG   0x1E
 
#define DP83640_LEN100_DET   0x14
 
#define DP83640_FREQ100   0x15
 
#define DP83640_TDR_CTRL   0x16
 
#define DP83640_TDR_WIN   0x17
 
#define DP83640_TDR_PEAK   0x18
 
#define DP83640_TDR_THR   0x19
 
#define DP83640_VAR_CTRL   0x1A
 
#define DP83640_VAR_DAT   0x1B
 
#define DP83640_LQMR   0x1D
 
#define DP83640_LQDR   0x1E
 
#define DP83640_LQMR2   0x1F
 
#define DP83640_PTP_CTL   0x14
 
#define DP83640_PTP_TDR   0x15
 
#define DP83640_PTP_STS   0x16
 
#define DP83640_PTP_TSTS   0x17
 
#define DP83640_PTP_RATEL   0x18
 
#define DP83640_PTP_RATEH   0x19
 
#define DP83640_PTP_RDCKSUM   0x1A
 
#define DP83640_PTP_WRCKSUM   0x1B
 
#define DP83640_PTP_TXTS   0x1C
 
#define DP83640_PTP_RXTS   0x1D
 
#define DP83640_PTP_ESTS   0x1E
 
#define DP83640_PTP_EDATA   0x1F
 
#define DP83640_PTP_TRIG   0x14
 
#define DP83640_PTP_EVNT   0x15
 
#define DP83640_PTP_TXCFG0   0x16
 
#define DP83640_PTP_TXCFG1   0x17
 
#define DP83640_PSF_CFG0   0x18
 
#define DP83640_PTP_RXCFG0   0x19
 
#define DP83640_PTP_RXCFG1   0x1A
 
#define DP83640_PTP_RXCFG2   0x1B
 
#define DP83640_PTP_RXCFG3   0x1C
 
#define DP83640_PTP_RXCFG4   0x1D
 
#define DP83640_PTP_TRDL   0x1E
 
#define DP83640_PTP_TRDH   0x1F
 
#define DP83640_PTP_COC   0x14
 
#define DP83640_PSF_CFG1   0x15
 
#define DP83640_PSF_CFG2   0x16
 
#define DP83640_PSF_CFG3   0x17
 
#define DP83640_PSF_CFG4   0x18
 
#define DP83640_PTP_SFDCFG   0x19
 
#define DP83640_PTP_INTCTL   0x1A
 
#define DP83640_PTP_CLKSRC   0x1B
 
#define DP83640_PTP_ETR   0x1C
 
#define DP83640_PTP_OFF   0x1D
 
#define DP83640_PTP_GPIOMON   0x1E
 
#define DP83640_PTP_RXHASH   0x1F
 
#define DP83640_BMCR_RESET   0x8000
 
#define DP83640_BMCR_LOOPBACK   0x4000
 
#define DP83640_BMCR_SPEED_SEL   0x2000
 
#define DP83640_BMCR_AN_EN   0x1000
 
#define DP83640_BMCR_POWER_DOWN   0x0800
 
#define DP83640_BMCR_ISOLATE   0x0400
 
#define DP83640_BMCR_RESTART_AN   0x0200
 
#define DP83640_BMCR_DUPLEX_MODE   0x0100
 
#define DP83640_BMCR_COL_TEST   0x0080
 
#define DP83640_BMCR_UNIDIRECTIONAL_EN   0x0020
 
#define DP83640_BMSR_100BT4   0x8000
 
#define DP83640_BMSR_100BTX_FD   0x4000
 
#define DP83640_BMSR_100BTX_HD   0x2000
 
#define DP83640_BMSR_10BT_FD   0x1000
 
#define DP83640_BMSR_10BT_HD   0x0800
 
#define DP83640_BMSR_UNIDIRECTIONAL_ABLE   0x0080
 
#define DP83640_BMSR_MF_PREAMBLE_SUPPR   0x0040
 
#define DP83640_BMSR_AN_COMPLETE   0x0020
 
#define DP83640_BMSR_REMOTE_FAULT   0x0010
 
#define DP83640_BMSR_AN_CAPABLE   0x0008
 
#define DP83640_BMSR_LINK_STATUS   0x0004
 
#define DP83640_BMSR_JABBER_DETECT   0x0002
 
#define DP83640_BMSR_EXTENDED_CAPABLE   0x0001
 
#define DP83640_PHYID1_OUI_MSB   0xFFFF
 
#define DP83640_PHYID1_OUI_MSB_DEFAULT   0x2000
 
#define DP83640_PHYID2_OUI_LSB   0xFC00
 
#define DP83640_PHYID2_OUI_LSB_DEFAULT   0x5C00
 
#define DP83640_PHYID2_VNDR_MDL   0x03F0
 
#define DP83640_PHYID2_VNDR_MDL_DEFAULT   0x00E0
 
#define DP83640_PHYID2_MDL_REV   0x000F
 
#define DP83640_ANAR_NEXT_PAGE   0x8000
 
#define DP83640_ANAR_REMOTE_FAULT   0x2000
 
#define DP83640_ANAR_ASM_DIR   0x0800
 
#define DP83640_ANAR_PAUSE   0x0400
 
#define DP83640_ANAR_100BT4   0x0200
 
#define DP83640_ANAR_100BTX_FD   0x0100
 
#define DP83640_ANAR_100BTX_HD   0x0080
 
#define DP83640_ANAR_10BT_FD   0x0040
 
#define DP83640_ANAR_10BT_HD   0x0020
 
#define DP83640_ANAR_SELECTOR   0x001F
 
#define DP83640_ANAR_SELECTOR_DEFAULT   0x0001
 
#define DP83640_ANLPAR_NEXT_PAGE   0x8000
 
#define DP83640_ANLPAR_ACK   0x4000
 
#define DP83640_ANLPAR_REMOTE_FAULT   0x2000
 
#define DP83640_ANLPAR_ASM_DIR   0x0800
 
#define DP83640_ANLPAR_PAUSE   0x0400
 
#define DP83640_ANLPAR_100BT4   0x0200
 
#define DP83640_ANLPAR_100BTX_FD   0x0100
 
#define DP83640_ANLPAR_100BTX_HD   0x0080
 
#define DP83640_ANLPAR_10BT_FD   0x0040
 
#define DP83640_ANLPAR_10BT_HD   0x0020
 
#define DP83640_ANLPAR_SELECTOR   0x001F
 
#define DP83640_ANLPAR_SELECTOR_DEFAULT   0x0001
 
#define DP83640_ANER_PAR_DETECT_FAULT   0x0010
 
#define DP83640_ANER_LP_NP_ABLE   0x0008
 
#define DP83640_ANER_NP_ABLE   0x0004
 
#define DP83640_ANER_PAGE_RX   0x0002
 
#define DP83640_ANER_LP_AN_ABLE   0x0001
 
#define DP83640_ANNPR_NEXT_PAGE   0x8000
 
#define DP83640_ANNPR_MSG_PAGE   0x2000
 
#define DP83640_ANNPR_ACK2   0x1000
 
#define DP83640_ANNPR_TOGGLE   0x0800
 
#define DP83640_ANNPR_CODE   0x07FF
 
#define DP83640_PHYSTS_MDIX_MODE   0x4000
 
#define DP83640_PHYSTS_RECEIVE_ERROR_LATCH   0x2000
 
#define DP83640_PHYSTS_POLARITY_STATUS   0x1000
 
#define DP83640_PHYSTS_FCS_LATCH   0x0800
 
#define DP83640_PHYSTS_SIGNAL_DETECT   0x0400
 
#define DP83640_PHYSTS_DESCRAMBLER_LOCK   0x0200
 
#define DP83640_PHYSTS_PAGE_RECEIVED   0x0100
 
#define DP83640_PHYSTS_MII_INTERRUPT   0x0080
 
#define DP83640_PHYSTS_REMOTE_FAULT   0x0040
 
#define DP83640_PHYSTS_JABBER_DETECT   0x0020
 
#define DP83640_PHYSTS_AN_COMPLETE   0x0010
 
#define DP83640_PHYSTS_LOOPBACK_STATUS   0x0008
 
#define DP83640_PHYSTS_DUPLEX_STATUS   0x0004
 
#define DP83640_PHYSTS_SPEED_STATUS   0x0002
 
#define DP83640_PHYSTS_LINK_STATUS   0x0001
 
#define DP83640_MICR_PTP_INT_SEL   0x0008
 
#define DP83640_MICR_TINT   0x0004
 
#define DP83640_MICR_INTEN   0x0002
 
#define DP83640_MICR_INT_OE   0x0001
 
#define DP83640_MISR_LQ_INT   0x8000
 
#define DP83640_MISR_ED_INT   0x4000
 
#define DP83640_MISR_LINK_INT   0x2000
 
#define DP83640_MISR_SPD_INT   0x1000
 
#define DP83640_MISR_DUP_INT   0x0800
 
#define DP83640_MISR_ANC_INT   0x0400
 
#define DP83640_MISR_FHF_INT   0x0200
 
#define DP83640_MISR_RHF_INT   0x0100
 
#define DP83640_MISR_LQ_INT_EN   0x0080
 
#define DP83640_MISR_ED_INT_EN   0x0040
 
#define DP83640_MISR_LINK_INT_EN   0x0020
 
#define DP83640_MISR_SPD_INT_EN   0x0010
 
#define DP83640_MISR_DUP_INT_EN   0x0008
 
#define DP83640_MISR_ANC_INT_EN   0x0004
 
#define DP83640_MISR_FHF_INT_EN   0x0002
 
#define DP83640_MISR_RHF_INT_EN   0x0001
 
#define DP83640_PAGSR_PAGE_SEL   0x0007
 
#define DP83640_FCSCR_FCSCNT   0x00FF
 
#define DP83640_RECR_RXERCNT   0x00FF
 
#define DP83640_PCSR_FREE_CLK   0x0800
 
#define DP83640_PCSR_TQ_EN   0x0400
 
#define DP83640_PCSR_SD_FORCE_PMA   0x0200
 
#define DP83640_PCSR_SD_OPTION   0x0100
 
#define DP83640_PCSR_DESC_TIME   0x0080
 
#define DP83640_PCSR_FX_EN   0x0040
 
#define DP83640_PCSR_FORCE_100_OK   0x0020
 
#define DP83640_PCSR_FEFI_EN   0x0008
 
#define DP83640_PCSR_NRZI_BYPASS   0x0004
 
#define DP83640_PCSR_SCRAM_BYPASS   0x0002
 
#define DP83640_PCSR_DESCRAM_BYPASS   0x0001
 
#define DP83640_RBR_RMII_MASTER   0x4000
 
#define DP83640_RBR_DIS_TX_OPT   0x2000
 
#define DP83640_RBR_PMD_LOOP   0x0100
 
#define DP83640_RBR_SCMII_RX   0x0080
 
#define DP83640_RBR_SCMII_TX   0x0040
 
#define DP83640_RBR_RMII_MODE   0x0020
 
#define DP83640_RBR_RMII_REV1_0   0x0010
 
#define DP83640_RBR_RX_OVF_STS   0x0008
 
#define DP83640_RBR_RX_UNF_STS   0x0004
 
#define DP83640_RBR_ELAST_BUF   0x0003
 
#define DP83640_LEDCR_DIS_SPDLED   0x0800
 
#define DP83640_LEDCR_DIS_LNKLED   0x0400
 
#define DP83640_LEDCR_DIS_ACTLED   0x0200
 
#define DP83640_LEDCR_LEDACT_RX   0x0100
 
#define DP83640_LEDCR_BLINK_FREQ   0x00C0
 
#define DP83640_LEDCR_BLINK_FREQ_6HZ   0x0000
 
#define DP83640_LEDCR_BLINK_FREQ_12HZ   0x0040
 
#define DP83640_LEDCR_BLINK_FREQ_24HZ   0x0080
 
#define DP83640_LEDCR_BLINK_FREQ_48HZ   0x00C0
 
#define DP83640_LEDCR_DRV_SPDLED   0x0020
 
#define DP83640_LEDCR_DRV_LNKLED   0x0010
 
#define DP83640_LEDCR_DRV_ACTLED   0x0008
 
#define DP83640_LEDCR_SPDLED   0x0004
 
#define DP83640_LEDCR_LNKLED   0x0002
 
#define DP83640_LEDCR_ACTLED   0x0001
 
#define DP83640_PHYCR_MDIX_EN   0x8000
 
#define DP83640_PHYCR_FORCE_MDIX   0x4000
 
#define DP83640_PHYCR_PAUSE_RX   0x2000
 
#define DP83640_PHYCR_PAUSE_TX   0x1000
 
#define DP83640_PHYCR_BIST_FE   0x0800
 
#define DP83640_PHYCR_PSR_15   0x0400
 
#define DP83640_PHYCR_BIST_STATUS   0x0200
 
#define DP83640_PHYCR_BIST_START   0x0100
 
#define DP83640_PHYCR_BP_STRETCH   0x0080
 
#define DP83640_PHYCR_LED_CNFG   0x0060
 
#define DP83640_PHYCR_PHYADDR   0x001F
 
#define DP83640_10BTSCR_SQUELCH   0x0E00
 
#define DP83640_10BTSCR_LOOPBACK_10_DIS   0x0100
 
#define DP83640_10BTSCR_LP_DIS   0x0080
 
#define DP83640_10BTSCR_FORCE_LINK_10   0x0040
 
#define DP83640_10BTSCR_FORCE_POL_COR   0x0020
 
#define DP83640_10BTSCR_POLARITY   0x0010
 
#define DP83640_10BTSCR_AUTOPOL_DIS   0x0008
 
#define DP83640_10BTSCR_10BT_SCALE_MSB   0x0004
 
#define DP83640_10BTSCR_HEARTBEAT_DIS   0x0002
 
#define DP83640_10BTSCR_JABBER_DIS   0x0001
 
#define DP83640_CDCTRL1_BIST_ERROR_COUNT   0xFF00
 
#define DP83640_CDCTRL1_MII_CLOCK_EN   0x0040
 
#define DP83640_CDCTRL1_BIST_CONT   0x0020
 
#define DP83640_CDCTRL1_CDPATTEN_10   0x0010
 
#define DP83640_CDCTRL1_MDIO_PULL_EN   0x0008
 
#define DP83640_CDCTRL1_PATT_GAP_10M   0x0004
 
#define DP83640_CDCTRL1_CDPATTSEL   0x0003
 
#define DP83640_PHYCR2_SYNC_ENET_EN   0x2000
 
#define DP83640_PHYCR2_CLK_OUT_RXCLK   0x1000
 
#define DP83640_PHYCR2_BC_WRITE   0x0800
 
#define DP83640_PHYCR2_PHYTER_COMP   0x0400
 
#define DP83640_PHYCR2_SOFT_RESET   0x0200
 
#define DP83640_PHYCR2_CLK_OUT_DIS   0x0002
 
#define DP83640_EDCR_ED_EN   0x8000
 
#define DP83640_EDCR_ED_AUTO_UP   0x4000
 
#define DP83640_EDCR_ED_AUTO_DOWN   0x2000
 
#define DP83640_EDCR_ED_MAN   0x1000
 
#define DP83640_EDCR_ED_BURST_DIS   0x0800
 
#define DP83640_EDCR_ED_PWR_STATE   0x0400
 
#define DP83640_EDCR_ED_ERR_MET   0x0200
 
#define DP83640_EDCR_ED_DATA_MET   0x0100
 
#define DP83640_EDCR_ED_ERR_COUNT   0x00F0
 
#define DP83640_EDCR_ED_DATA_COUNT   0x000F
 
#define DP83640_PCFCR_PCF_STS_ERR   0x8000
 
#define DP83640_PCFCR_PCF_STS_OK   0x4000
 
#define DP83640_PCFCR_PCF_DA_SEL   0x0100
 
#define DP83640_PCFCR_PCF_INT_CTL   0x00C0
 
#define DP83640_PCFCR_PCF_BC_DIS   0x0020
 
#define DP83640_PCFCR_PCF_BUF   0x001E
 
#define DP83640_PCFCR_PCF_EN   0x0001
 
#define DP83640_SD_CNFG_SD_TIME   0x0100
 
#define DP83640_LEN100_DET_CABLE_LEN   0x00FF
 
#define DP83640_FREQ100_SAMPLE_FREQ   0x8000
 
#define DP83640_FREQ100_SEL_FC   0x0100
 
#define DP83640_FREQ100_FREQ_OFFSET   0x00FF
 
#define DP83640_TDR_CTRL_TDR_ENABLE   0x8000
 
#define DP83640_TDR_CTRL_TDR_100MB   0x4000
 
#define DP83640_TDR_CTRL_TX_CHANNEL   0x2000
 
#define DP83640_TDR_CTRL_RX_CHANNEL   0x1000
 
#define DP83640_TDR_CTRL_SEND_TDR   0x0800
 
#define DP83640_TDR_CTRL_TDR_WIDTH   0x0700
 
#define DP83640_TDR_CTRL_TDR_MIN_MODE   0x0080
 
#define DP83640_TDR_CTRL_RX_THRESHOLD   0x003F
 
#define DP83640_TDR_WIN_TDR_START   0xFF00
 
#define DP83640_TDR_WIN_TDR_STOP   0x00FF
 
#define DP83640_TDR_PEAK_TDR_PEAK   0x3F00
 
#define DP83640_TDR_PEAK_TDR_PEAK_TIME   0x00FF
 
#define DP83640_TDR_THR_TDR_THR_MET   0x0100
 
#define DP83640_TDR_THR_TDR_THR_TIME   0x00FF
 
#define DP83640_VAR_CTRL_VAR_RDY   0x8000
 
#define DP83640_VAR_CTRL_VAR_FREEZE   0x0008
 
#define DP83640_VAR_CTRL_VAR_TIMER   0x0006
 
#define DP83640_VAR_CTRL_VAR_ENABLE   0x0001
 
#define DP83640_LQMR_LQM_ENABLE   0x8000
 
#define DP83640_LQMR_RESTART_ON_FC   0x4000
 
#define DP83640_LQMR_RESTART_ON_FREQ   0x2000
 
#define DP83640_LQMR_RESTART_ON_DBLW   0x1000
 
#define DP83640_LQMR_RESTART_ON_DAGC   0x0800
 
#define DP83640_LQMR_RESTART_ON_C1   0x0400
 
#define DP83640_LQMR_FC_HI_WARN   0x0200
 
#define DP83640_LQMR_FC_LO_WARN   0x0100
 
#define DP83640_LQMR_FREQ_HI_WARN   0x0080
 
#define DP83640_LQMR_FREQ_LO_WARN   0x0040
 
#define DP83640_LQMR_DBLW_HI_WARN   0x0020
 
#define DP83640_LQMR_DBLW_LO_WARN   0x0010
 
#define DP83640_LQMR_DAGC_HI_WARN   0x0008
 
#define DP83640_LQMR_DAGC_LO_WARN   0x0004
 
#define DP83640_LQMR_C1_HI_WARN   0x0002
 
#define DP83640_LQMR_C1_LO_WARN   0x0001
 
#define DP83640_LQDR_SAMPLE_PARAM   0x2000
 
#define DP83640_LQDR_WRITE_LQ_THR   0x1000
 
#define DP83640_LQDR_LQ_PARAM_SEL   0x0E00
 
#define DP83640_LQDR_LQ_THR_SEL   0x0100
 
#define DP83640_LQDR_LQ_THR_DATA   0x00FF
 
#define DP83640_LQMR2_RESTART_ON_VAR   0x0400
 
#define DP83640_LQMR2_VAR_HI_WARN   0x0002
 
#define DP83640_PTP_CTL_TRIG_SEL   0x1C00
 
#define DP83640_PTP_CTL_TRIG_DIS   0x0200
 
#define DP83640_PTP_CTL_TRIG_EN   0x0100
 
#define DP83640_PTP_CTL_TRIG_READ   0x0080
 
#define DP83640_PTP_CTL_TRIG_LOAD   0x0040
 
#define DP83640_PTP_CTL_PTP_RD_CLK   0x0020
 
#define DP83640_PTP_CTL_PTP_LOAD_CLK   0x0010
 
#define DP83640_PTP_CTL_PTP_STEP_CLK   0x0008
 
#define DP83640_PTP_CTL_PTP_ENABLE   0x0004
 
#define DP83640_PTP_CTL_PTP_DISABLE   0x0002
 
#define DP83640_PTP_CTL_PTP_RESET   0x0001
 
#define DP83640_PTP_TDR_TIME_DATA   0xFFFF
 
#define DP83640_PTP_STS_TXTS_RDY   0x0800
 
#define DP83640_PTP_STS_RXTS_RDY   0x0400
 
#define DP83640_PTP_STS_TRIG_DONE   0x0200
 
#define DP83640_PTP_STS_EVENT_RDY   0x0100
 
#define DP83640_PTP_STS_TXTS_IE   0x0008
 
#define DP83640_PTP_STS_RXTS_IE   0x0004
 
#define DP83640_PTP_STS_TRIG_IE   0x0002
 
#define DP83640_PTP_STS_EVENT_IE   0x0001
 
#define DP83640_PTP_TSTS_TRIG7_ERROR   0x8000
 
#define DP83640_PTP_TSTS_TRIG7_ACTIVE   0x4000
 
#define DP83640_PTP_TSTS_TRIG6_ERROR   0x2000
 
#define DP83640_PTP_TSTS_TRIG6_ACTIVE   0x2000
 
#define DP83640_PTP_TSTS_TRIG5_ERROR   0x0800
 
#define DP83640_PTP_TSTS_TRIG5_ACTIVE   0x0400
 
#define DP83640_PTP_TSTS_TRIG4_ERROR   0x0200
 
#define DP83640_PTP_TSTS_TRIG4_ACTIVE   0x0100
 
#define DP83640_PTP_TSTS_TRIG3_ERROR   0x0080
 
#define DP83640_PTP_TSTS_TRIG3_ACTIVE   0x0040
 
#define DP83640_PTP_TSTS_TRIG2_ERROR   0x0020
 
#define DP83640_PTP_TSTS_TRIG2_ACTIVE   0x0010
 
#define DP83640_PTP_TSTS_TRIG1_ERROR   0x0008
 
#define DP83640_PTP_TSTS_TRIG1_ACTIVE   0x0004
 
#define DP83640_PTP_TSTS_TRIG0_ERROR   0x0002
 
#define DP83640_PTP_TSTS_TRIG0_ACTIVE   0x0001
 
#define DP83640_PTP_RATEL_PTP_RATE_LO   0xFFFF
 
#define DP83640_PTP_RATEH_PTP_RATE_DIR   0x8000
 
#define DP83640_PTP_RATEH_PTP_TMP_RATE   0x4000
 
#define DP83640_PTP_RATEH_PTP_RATE_HI   0x03FF
 
#define DP83640_PTP_ESTS_EVNTS_MISSED   0x0700
 
#define DP83640_PTP_ESTS_EVNT_TS_LEN   0x00C0
 
#define DP83640_PTP_ESTS_EVNT_RF   0x0020
 
#define DP83640_PTP_ESTS_EVNT_NUM   0x001C
 
#define DP83640_PTP_ESTS_MULT_EVNT   0x0002
 
#define DP83640_PTP_ESTS_EVENT_DET   0x0001
 
#define DP83640_PTP_EDATA_E7_RISE   0x8000
 
#define DP83640_PTP_EDATA_E7_DET   0x4000
 
#define DP83640_PTP_EDATA_E6_RISE   0x2000
 
#define DP83640_PTP_EDATA_E6_DET   0x1000
 
#define DP83640_PTP_EDATA_E5_RISE   0x0800
 
#define DP83640_PTP_EDATA_E5_DET   0x0400
 
#define DP83640_PTP_EDATA_E4_RISE   0x0200
 
#define DP83640_PTP_EDATA_E4_DET   0x0100
 
#define DP83640_PTP_EDATA_E3_RISE   0x0080
 
#define DP83640_PTP_EDATA_E3_DET   0x0040
 
#define DP83640_PTP_EDATA_E2_RISE   0x0020
 
#define DP83640_PTP_EDATA_E2_DET   0x0010
 
#define DP83640_PTP_EDATA_E1_RISE   0x0008
 
#define DP83640_PTP_EDATA_E1_DET   0x0004
 
#define DP83640_PTP_EDATA_E0_RISE   0x0002
 
#define DP83640_PTP_EDATA_E0_DET   0x0001
 
#define DP83640_PTP_TRIG_TRIG_PULSE   0x8000
 
#define DP83640_PTP_TRIG_TRIG_PER   0x4000
 
#define DP83640_PTP_TRIG_TRIG_IF_LATE   0x2000
 
#define DP83640_PTP_TRIG_TRIG_NOTIFY   0x1000
 
#define DP83640_PTP_TRIG_TRIG_GPIO   0x0F00
 
#define DP83640_PTP_TRIG_TRIG_TOGGLE   0x0080
 
#define DP83640_PTP_TRIG_TRIG_CSEL   0x000E
 
#define DP83640_PTP_TRIG_TRIG_WR   0x0001
 
#define DP83640_PTP_EVNT_EVNT_RISE   0x4000
 
#define DP83640_PTP_EVNT_EVNT_FALL   0x2000
 
#define DP83640_PTP_EVNT_EVNT_SINGLE   0x1000
 
#define DP83640_PTP_EVNT_EVNT_GPIO   0x0F00
 
#define DP83640_PTP_EVNT_EVNT_SEL   0x000E
 
#define DP83640_PTP_EVNT_EVNT_WR   0x0001
 
#define DP83640_PTP_TXCFG0_SYNC_1STEP   0x8000
 
#define DP83640_PTP_TXCFG0_DR_INSERT   0x2000
 
#define DP83640_PTP_TXCFG0_NTP_TS_EN   0x1000
 
#define DP83640_PTP_TXCFG0_IGNORE_2STEP   0x0800
 
#define DP83640_PTP_TXCFG0_CRC_1STEP   0x0400
 
#define DP83640_PTP_TXCFG0_CHK_1STEP   0x0200
 
#define DP83640_PTP_TXCFG0_IP1588_EN   0x0100
 
#define DP83640_PTP_TXCFG0_TX_L2_EN   0x0080
 
#define DP83640_PTP_TXCFG0_TX_IPV6_EN   0x0040
 
#define DP83640_PTP_TXCFG0_TX_IPV4_EN   0x0020
 
#define DP83640_PTP_TXCFG0_TX_PTP_VER   0x001E
 
#define DP83640_PTP_TXCFG0_TX_TS_EN   0x0001
 
#define DP83640_PTP_TXCFG1_BYTE0_MASK   0xFF00
 
#define DP83640_PTP_TXCFG1_BYTE0_DATA   0x00FF
 
#define DP83640_PSF_CFG0_MAC_SRC_ADD   0x1800
 
#define DP83640_PSF_CFG0_MIN_PRE   0x0700
 
#define DP83640_PSF_CFG0_PSF_ENDIAN   0x0080
 
#define DP83640_PSF_CFG0_PSF_IPV4   0x0040
 
#define DP83640_PSF_CFG0_PSF_PCF_RD   0x0020
 
#define DP83640_PSF_CFG0_PSF_ERR_EN   0x0010
 
#define DP83640_PSF_CFG0_PSF_TXTS_EN   0x0008
 
#define DP83640_PSF_CFG0_PSF_RXTS_EN   0x0004
 
#define DP83640_PSF_CFG0_PSF_TRIG_EN   0x0002
 
#define DP83640_PSF_CFG0_PSF_EVNT_EN   0x0001
 
#define DP83640_PTP_RXCFG0_DOMAIN_EN   0x8000
 
#define DP83640_PTP_RXCFG0_ALT_MAST_DIS   0x4000
 
#define DP83640_PTP_RXCFG0_USER_IP_SEL   0x2000
 
#define DP83640_PTP_RXCFG0_USER_IP_EN   0x1000
 
#define DP83640_PTP_RXCFG0_RX_SLAVE   0x0800
 
#define DP83640_PTP_RXCFG0_IP1588_EN   0x0700
 
#define DP83640_PTP_RXCFG0_RX_L2_EN   0x0080
 
#define DP83640_PTP_RXCFG0_RX_IPV6_EN   0x0040
 
#define DP83640_PTP_RXCFG0_RX_IPV4_EN   0x0020
 
#define DP83640_PTP_RXCFG0_RX_PTP_VER   0x001E
 
#define DP83640_PTP_RXCFG0_RX_TS_EN   0x0001
 
#define DP83640_PTP_RXCFG1_BYTE0_MASK   0xFF00
 
#define DP83640_PTP_RXCFG1_BYTE0_DATA   0x00FF
 
#define DP83640_PTP_RXCFG2_IP_ADDR_DATA   0xFFFF
 
#define DP83640_PTP_RXCFG3_TS_MIN_IFG   0xF000
 
#define DP83640_PTP_RXCFG3_ACC_UDP   0x0800
 
#define DP83640_PTP_RXCFG3_ACC_CRC   0x0400
 
#define DP83640_PTP_RXCFG3_TS_APPEND   0x0200
 
#define DP83640_PTP_RXCFG3_TS_INSERT   0x0100
 
#define DP83640_PTP_RXCFG3_PTP_DOMAIN   0x00FF
 
#define DP83640_PTP_RXCFG4_IPV4_UDP_MOD   0x8000
 
#define DP83640_PTP_RXCFG4_TS_SEC_EN   0x4000
 
#define DP83640_PTP_RXCFG4_TS_SEC_LEN   0x3000
 
#define DP83640_PTP_RXCFG4_RXTS_NS_OFF   0x0FC0
 
#define DP83640_PTP_RXCFG4_RXTS_SEC_OFF   0x003F
 
#define DP83640_PTP_COC_PTP_CLKOUT_EN   0x8000
 
#define DP83640_PTP_COC_PTP_CLKOUT_SEL   0x4000
 
#define DP83640_PTP_COC_PTP_CLKOUT_SPEEDSEL   0x2000
 
#define DP83640_PTP_COC_PTP_CLKDIV   0x00FF
 
#define DP83640_PSF_CFG1_PTPRESERVED   0xF000
 
#define DP83640_PSF_CFG1_VERSIONPTP   0x0F00
 
#define DP83640_PSF_CFG1_TRANSPORT_SPECIFIC   0x00F0
 
#define DP83640_PSF_CFG1_MESSAGETYPE   0x000F
 
#define DP83640_PSF_CFG2_IP_SA_BYTE1   0xFF00
 
#define DP83640_PSF_CFG2_IP_SA_BYTE0   0x00FF
 
#define DP83640_PSF_CFG3_IP_SA_BYTE3   0xFF00
 
#define DP83640_PSF_CFG3_IP_SA_BYTE2   0x00FF
 
#define DP83640_PSF_CFG4_IP_CHKSUM   0xFFFF
 
#define DP83640_PTP_SFDCFG_TX_SFD_GPIO   0x00F0
 
#define DP83640_PTP_SFDCFG_RX_SFD_GPIO   0x000F
 
#define DP83640_PTP_INTCTL_PTP_INT_GPIO   0x000F
 
#define DP83640_PTP_CLKSRC_CLK_SRC   0xC000
 
#define DP83640_PTP_CLKSRC_CLK_SRC_PER   0x007F
 
#define DP83640_PTP_OFF_PTP_OFFSET   0x00FF
 
#define DP83640_PTP_GPIOMON_PTP_GPIO_IN   0x0FFF
 
#define DP83640_PTP_RXHASH_RX_HASH_EN   0x1000
 
#define DP83640_PTP_RXHASH_PTP_RX_HASH   0x0FFF
 

Functions

error_t dp83640Init (NetInterface *interface)
 DP83640 PHY transceiver initialization. More...
 
void dp83640Tick (NetInterface *interface)
 DP83640 timer handler. More...
 
void dp83640EnableIrq (NetInterface *interface)
 Enable interrupts. More...
 
void dp83640DisableIrq (NetInterface *interface)
 Disable interrupts. More...
 
void dp83640EventHandler (NetInterface *interface)
 DP83640 event handler. More...
 
void dp83640WritePhyReg (NetInterface *interface, uint8_t address, uint16_t data)
 Write PHY register. More...
 
uint16_t dp83640ReadPhyReg (NetInterface *interface, uint8_t address)
 Read PHY register. More...
 
void dp83640DumpPhyReg (NetInterface *interface)
 Dump PHY registers for debugging purpose. More...
 

Variables

const PhyDriver dp83640PhyDriver
 DP83640 Ethernet PHY driver. More...
 

Detailed Description

DP83640 Ethernet PHY transceiver.

License

SPDX-License-Identifier: GPL-2.0-or-later

Copyright (C) 2010-2019 Oryx Embedded SARL. All rights reserved.

This file is part of CycloneTCP Open.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Author
Oryx Embedded SARL (www.oryx-embedded.com)
Version
1.9.6

Definition in file dp83640_driver.h.

Macro Definition Documentation

◆ DP83640_10BTSCR

#define DP83640_10BTSCR   0x1A

Definition at line 63 of file dp83640_driver.h.

◆ DP83640_10BTSCR_10BT_SCALE_MSB

#define DP83640_10BTSCR_10BT_SCALE_MSB   0x0004

Definition at line 319 of file dp83640_driver.h.

◆ DP83640_10BTSCR_AUTOPOL_DIS

#define DP83640_10BTSCR_AUTOPOL_DIS   0x0008

Definition at line 318 of file dp83640_driver.h.

◆ DP83640_10BTSCR_FORCE_LINK_10

#define DP83640_10BTSCR_FORCE_LINK_10   0x0040

Definition at line 315 of file dp83640_driver.h.

◆ DP83640_10BTSCR_FORCE_POL_COR

#define DP83640_10BTSCR_FORCE_POL_COR   0x0020

Definition at line 316 of file dp83640_driver.h.

◆ DP83640_10BTSCR_HEARTBEAT_DIS

#define DP83640_10BTSCR_HEARTBEAT_DIS   0x0002

Definition at line 320 of file dp83640_driver.h.

◆ DP83640_10BTSCR_JABBER_DIS

#define DP83640_10BTSCR_JABBER_DIS   0x0001

Definition at line 321 of file dp83640_driver.h.

◆ DP83640_10BTSCR_LOOPBACK_10_DIS

#define DP83640_10BTSCR_LOOPBACK_10_DIS   0x0100

Definition at line 313 of file dp83640_driver.h.

◆ DP83640_10BTSCR_LP_DIS

#define DP83640_10BTSCR_LP_DIS   0x0080

Definition at line 314 of file dp83640_driver.h.

◆ DP83640_10BTSCR_POLARITY

#define DP83640_10BTSCR_POLARITY   0x0010

Definition at line 317 of file dp83640_driver.h.

◆ DP83640_10BTSCR_SQUELCH

#define DP83640_10BTSCR_SQUELCH   0x0E00

Definition at line 312 of file dp83640_driver.h.

◆ DP83640_ANAR

#define DP83640_ANAR   0x04

Definition at line 49 of file dp83640_driver.h.

◆ DP83640_ANAR_100BT4

#define DP83640_ANAR_100BT4   0x0200

Definition at line 170 of file dp83640_driver.h.

◆ DP83640_ANAR_100BTX_FD

#define DP83640_ANAR_100BTX_FD   0x0100

Definition at line 171 of file dp83640_driver.h.

◆ DP83640_ANAR_100BTX_HD

#define DP83640_ANAR_100BTX_HD   0x0080

Definition at line 172 of file dp83640_driver.h.

◆ DP83640_ANAR_10BT_FD

#define DP83640_ANAR_10BT_FD   0x0040

Definition at line 173 of file dp83640_driver.h.

◆ DP83640_ANAR_10BT_HD

#define DP83640_ANAR_10BT_HD   0x0020

Definition at line 174 of file dp83640_driver.h.

◆ DP83640_ANAR_ASM_DIR

#define DP83640_ANAR_ASM_DIR   0x0800

Definition at line 168 of file dp83640_driver.h.

◆ DP83640_ANAR_NEXT_PAGE

#define DP83640_ANAR_NEXT_PAGE   0x8000

Definition at line 166 of file dp83640_driver.h.

◆ DP83640_ANAR_PAUSE

#define DP83640_ANAR_PAUSE   0x0400

Definition at line 169 of file dp83640_driver.h.

◆ DP83640_ANAR_REMOTE_FAULT

#define DP83640_ANAR_REMOTE_FAULT   0x2000

Definition at line 167 of file dp83640_driver.h.

◆ DP83640_ANAR_SELECTOR

#define DP83640_ANAR_SELECTOR   0x001F

Definition at line 175 of file dp83640_driver.h.

◆ DP83640_ANAR_SELECTOR_DEFAULT

#define DP83640_ANAR_SELECTOR_DEFAULT   0x0001

Definition at line 176 of file dp83640_driver.h.

◆ DP83640_ANER

#define DP83640_ANER   0x06

Definition at line 51 of file dp83640_driver.h.

◆ DP83640_ANER_LP_AN_ABLE

#define DP83640_ANER_LP_AN_ABLE   0x0001

Definition at line 197 of file dp83640_driver.h.

◆ DP83640_ANER_LP_NP_ABLE

#define DP83640_ANER_LP_NP_ABLE   0x0008

Definition at line 194 of file dp83640_driver.h.

◆ DP83640_ANER_NP_ABLE

#define DP83640_ANER_NP_ABLE   0x0004

Definition at line 195 of file dp83640_driver.h.

◆ DP83640_ANER_PAGE_RX

#define DP83640_ANER_PAGE_RX   0x0002

Definition at line 196 of file dp83640_driver.h.

◆ DP83640_ANER_PAR_DETECT_FAULT

#define DP83640_ANER_PAR_DETECT_FAULT   0x0010

Definition at line 193 of file dp83640_driver.h.

◆ DP83640_ANLPAR

#define DP83640_ANLPAR   0x05

Definition at line 50 of file dp83640_driver.h.

◆ DP83640_ANLPAR_100BT4

#define DP83640_ANLPAR_100BT4   0x0200

Definition at line 184 of file dp83640_driver.h.

◆ DP83640_ANLPAR_100BTX_FD

#define DP83640_ANLPAR_100BTX_FD   0x0100

Definition at line 185 of file dp83640_driver.h.

◆ DP83640_ANLPAR_100BTX_HD

#define DP83640_ANLPAR_100BTX_HD   0x0080

Definition at line 186 of file dp83640_driver.h.

◆ DP83640_ANLPAR_10BT_FD

#define DP83640_ANLPAR_10BT_FD   0x0040

Definition at line 187 of file dp83640_driver.h.

◆ DP83640_ANLPAR_10BT_HD

#define DP83640_ANLPAR_10BT_HD   0x0020

Definition at line 188 of file dp83640_driver.h.

◆ DP83640_ANLPAR_ACK

#define DP83640_ANLPAR_ACK   0x4000

Definition at line 180 of file dp83640_driver.h.

◆ DP83640_ANLPAR_ASM_DIR

#define DP83640_ANLPAR_ASM_DIR   0x0800

Definition at line 182 of file dp83640_driver.h.

◆ DP83640_ANLPAR_NEXT_PAGE

#define DP83640_ANLPAR_NEXT_PAGE   0x8000

Definition at line 179 of file dp83640_driver.h.

◆ DP83640_ANLPAR_PAUSE

#define DP83640_ANLPAR_PAUSE   0x0400

Definition at line 183 of file dp83640_driver.h.

◆ DP83640_ANLPAR_REMOTE_FAULT

#define DP83640_ANLPAR_REMOTE_FAULT   0x2000

Definition at line 181 of file dp83640_driver.h.

◆ DP83640_ANLPAR_SELECTOR

#define DP83640_ANLPAR_SELECTOR   0x001F

Definition at line 189 of file dp83640_driver.h.

◆ DP83640_ANLPAR_SELECTOR_DEFAULT

#define DP83640_ANLPAR_SELECTOR_DEFAULT   0x0001

Definition at line 190 of file dp83640_driver.h.

◆ DP83640_ANNPR

#define DP83640_ANNPR   0x07

Definition at line 52 of file dp83640_driver.h.

◆ DP83640_ANNPR_ACK2

#define DP83640_ANNPR_ACK2   0x1000

Definition at line 202 of file dp83640_driver.h.

◆ DP83640_ANNPR_CODE

#define DP83640_ANNPR_CODE   0x07FF

Definition at line 204 of file dp83640_driver.h.

◆ DP83640_ANNPR_MSG_PAGE

#define DP83640_ANNPR_MSG_PAGE   0x2000

Definition at line 201 of file dp83640_driver.h.

◆ DP83640_ANNPR_NEXT_PAGE

#define DP83640_ANNPR_NEXT_PAGE   0x8000

Definition at line 200 of file dp83640_driver.h.

◆ DP83640_ANNPR_TOGGLE

#define DP83640_ANNPR_TOGGLE   0x0800

Definition at line 203 of file dp83640_driver.h.

◆ DP83640_BMCR

#define DP83640_BMCR   0x00

Definition at line 45 of file dp83640_driver.h.

◆ DP83640_BMCR_AN_EN

#define DP83640_BMCR_AN_EN   0x1000

Definition at line 131 of file dp83640_driver.h.

◆ DP83640_BMCR_COL_TEST

#define DP83640_BMCR_COL_TEST   0x0080

Definition at line 136 of file dp83640_driver.h.

◆ DP83640_BMCR_DUPLEX_MODE

#define DP83640_BMCR_DUPLEX_MODE   0x0100

Definition at line 135 of file dp83640_driver.h.

◆ DP83640_BMCR_ISOLATE

#define DP83640_BMCR_ISOLATE   0x0400

Definition at line 133 of file dp83640_driver.h.

◆ DP83640_BMCR_LOOPBACK

#define DP83640_BMCR_LOOPBACK   0x4000

Definition at line 129 of file dp83640_driver.h.

◆ DP83640_BMCR_POWER_DOWN

#define DP83640_BMCR_POWER_DOWN   0x0800

Definition at line 132 of file dp83640_driver.h.

◆ DP83640_BMCR_RESET

#define DP83640_BMCR_RESET   0x8000

Definition at line 128 of file dp83640_driver.h.

◆ DP83640_BMCR_RESTART_AN

#define DP83640_BMCR_RESTART_AN   0x0200

Definition at line 134 of file dp83640_driver.h.

◆ DP83640_BMCR_SPEED_SEL

#define DP83640_BMCR_SPEED_SEL   0x2000

Definition at line 130 of file dp83640_driver.h.

◆ DP83640_BMCR_UNIDIRECTIONAL_EN

#define DP83640_BMCR_UNIDIRECTIONAL_EN   0x0020

Definition at line 137 of file dp83640_driver.h.

◆ DP83640_BMSR

#define DP83640_BMSR   0x01

Definition at line 46 of file dp83640_driver.h.

◆ DP83640_BMSR_100BT4

#define DP83640_BMSR_100BT4   0x8000

Definition at line 140 of file dp83640_driver.h.

◆ DP83640_BMSR_100BTX_FD

#define DP83640_BMSR_100BTX_FD   0x4000

Definition at line 141 of file dp83640_driver.h.

◆ DP83640_BMSR_100BTX_HD

#define DP83640_BMSR_100BTX_HD   0x2000

Definition at line 142 of file dp83640_driver.h.

◆ DP83640_BMSR_10BT_FD

#define DP83640_BMSR_10BT_FD   0x1000

Definition at line 143 of file dp83640_driver.h.

◆ DP83640_BMSR_10BT_HD

#define DP83640_BMSR_10BT_HD   0x0800

Definition at line 144 of file dp83640_driver.h.

◆ DP83640_BMSR_AN_CAPABLE

#define DP83640_BMSR_AN_CAPABLE   0x0008

Definition at line 149 of file dp83640_driver.h.

◆ DP83640_BMSR_AN_COMPLETE

#define DP83640_BMSR_AN_COMPLETE   0x0020

Definition at line 147 of file dp83640_driver.h.

◆ DP83640_BMSR_EXTENDED_CAPABLE

#define DP83640_BMSR_EXTENDED_CAPABLE   0x0001

Definition at line 152 of file dp83640_driver.h.

◆ DP83640_BMSR_JABBER_DETECT

#define DP83640_BMSR_JABBER_DETECT   0x0002

Definition at line 151 of file dp83640_driver.h.

◆ DP83640_BMSR_LINK_STATUS

#define DP83640_BMSR_LINK_STATUS   0x0004

Definition at line 150 of file dp83640_driver.h.

◆ DP83640_BMSR_MF_PREAMBLE_SUPPR

#define DP83640_BMSR_MF_PREAMBLE_SUPPR   0x0040

Definition at line 146 of file dp83640_driver.h.

◆ DP83640_BMSR_REMOTE_FAULT

#define DP83640_BMSR_REMOTE_FAULT   0x0010

Definition at line 148 of file dp83640_driver.h.

◆ DP83640_BMSR_UNIDIRECTIONAL_ABLE

#define DP83640_BMSR_UNIDIRECTIONAL_ABLE   0x0080

Definition at line 145 of file dp83640_driver.h.

◆ DP83640_CDCTRL1

#define DP83640_CDCTRL1   0x1B

Definition at line 64 of file dp83640_driver.h.

◆ DP83640_CDCTRL1_BIST_CONT

#define DP83640_CDCTRL1_BIST_CONT   0x0020

Definition at line 326 of file dp83640_driver.h.

◆ DP83640_CDCTRL1_BIST_ERROR_COUNT

#define DP83640_CDCTRL1_BIST_ERROR_COUNT   0xFF00

Definition at line 324 of file dp83640_driver.h.

◆ DP83640_CDCTRL1_CDPATTEN_10

#define DP83640_CDCTRL1_CDPATTEN_10   0x0010

Definition at line 327 of file dp83640_driver.h.

◆ DP83640_CDCTRL1_CDPATTSEL

#define DP83640_CDCTRL1_CDPATTSEL   0x0003

Definition at line 330 of file dp83640_driver.h.

◆ DP83640_CDCTRL1_MDIO_PULL_EN

#define DP83640_CDCTRL1_MDIO_PULL_EN   0x0008

Definition at line 328 of file dp83640_driver.h.

◆ DP83640_CDCTRL1_MII_CLOCK_EN

#define DP83640_CDCTRL1_MII_CLOCK_EN   0x0040

Definition at line 325 of file dp83640_driver.h.

◆ DP83640_CDCTRL1_PATT_GAP_10M

#define DP83640_CDCTRL1_PATT_GAP_10M   0x0004

Definition at line 329 of file dp83640_driver.h.

◆ DP83640_EDCR

#define DP83640_EDCR   0x1D

Definition at line 66 of file dp83640_driver.h.

◆ DP83640_EDCR_ED_AUTO_DOWN

#define DP83640_EDCR_ED_AUTO_DOWN   0x2000

Definition at line 343 of file dp83640_driver.h.

◆ DP83640_EDCR_ED_AUTO_UP

#define DP83640_EDCR_ED_AUTO_UP   0x4000

Definition at line 342 of file dp83640_driver.h.

◆ DP83640_EDCR_ED_BURST_DIS

#define DP83640_EDCR_ED_BURST_DIS   0x0800

Definition at line 345 of file dp83640_driver.h.

◆ DP83640_EDCR_ED_DATA_COUNT

#define DP83640_EDCR_ED_DATA_COUNT   0x000F

Definition at line 350 of file dp83640_driver.h.

◆ DP83640_EDCR_ED_DATA_MET

#define DP83640_EDCR_ED_DATA_MET   0x0100

Definition at line 348 of file dp83640_driver.h.

◆ DP83640_EDCR_ED_EN

#define DP83640_EDCR_ED_EN   0x8000

Definition at line 341 of file dp83640_driver.h.

◆ DP83640_EDCR_ED_ERR_COUNT

#define DP83640_EDCR_ED_ERR_COUNT   0x00F0

Definition at line 349 of file dp83640_driver.h.

◆ DP83640_EDCR_ED_ERR_MET

#define DP83640_EDCR_ED_ERR_MET   0x0200

Definition at line 347 of file dp83640_driver.h.

◆ DP83640_EDCR_ED_MAN

#define DP83640_EDCR_ED_MAN   0x1000

Definition at line 344 of file dp83640_driver.h.

◆ DP83640_EDCR_ED_PWR_STATE

#define DP83640_EDCR_ED_PWR_STATE   0x0400

Definition at line 346 of file dp83640_driver.h.

◆ DP83640_FCSCR

#define DP83640_FCSCR   0x14

Definition at line 57 of file dp83640_driver.h.

◆ DP83640_FCSCR_FCSCNT

#define DP83640_FCSCR_FCSCNT   0x00FF

Definition at line 251 of file dp83640_driver.h.

◆ DP83640_FREQ100

#define DP83640_FREQ100   0x15

Definition at line 74 of file dp83640_driver.h.

◆ DP83640_FREQ100_FREQ_OFFSET

#define DP83640_FREQ100_FREQ_OFFSET   0x00FF

Definition at line 370 of file dp83640_driver.h.

◆ DP83640_FREQ100_SAMPLE_FREQ

#define DP83640_FREQ100_SAMPLE_FREQ   0x8000

Definition at line 368 of file dp83640_driver.h.

◆ DP83640_FREQ100_SEL_FC

#define DP83640_FREQ100_SEL_FC   0x0100

Definition at line 369 of file dp83640_driver.h.

◆ DP83640_LEDCR

#define DP83640_LEDCR   0x18

Definition at line 61 of file dp83640_driver.h.

◆ DP83640_LEDCR_ACTLED

#define DP83640_LEDCR_ACTLED   0x0001

Definition at line 296 of file dp83640_driver.h.

◆ DP83640_LEDCR_BLINK_FREQ

#define DP83640_LEDCR_BLINK_FREQ   0x00C0

Definition at line 286 of file dp83640_driver.h.

◆ DP83640_LEDCR_BLINK_FREQ_12HZ

#define DP83640_LEDCR_BLINK_FREQ_12HZ   0x0040

Definition at line 288 of file dp83640_driver.h.

◆ DP83640_LEDCR_BLINK_FREQ_24HZ

#define DP83640_LEDCR_BLINK_FREQ_24HZ   0x0080

Definition at line 289 of file dp83640_driver.h.

◆ DP83640_LEDCR_BLINK_FREQ_48HZ

#define DP83640_LEDCR_BLINK_FREQ_48HZ   0x00C0

Definition at line 290 of file dp83640_driver.h.

◆ DP83640_LEDCR_BLINK_FREQ_6HZ

#define DP83640_LEDCR_BLINK_FREQ_6HZ   0x0000

Definition at line 287 of file dp83640_driver.h.

◆ DP83640_LEDCR_DIS_ACTLED

#define DP83640_LEDCR_DIS_ACTLED   0x0200

Definition at line 284 of file dp83640_driver.h.

◆ DP83640_LEDCR_DIS_LNKLED

#define DP83640_LEDCR_DIS_LNKLED   0x0400

Definition at line 283 of file dp83640_driver.h.

◆ DP83640_LEDCR_DIS_SPDLED

#define DP83640_LEDCR_DIS_SPDLED   0x0800

Definition at line 282 of file dp83640_driver.h.

◆ DP83640_LEDCR_DRV_ACTLED

#define DP83640_LEDCR_DRV_ACTLED   0x0008

Definition at line 293 of file dp83640_driver.h.

◆ DP83640_LEDCR_DRV_LNKLED

#define DP83640_LEDCR_DRV_LNKLED   0x0010

Definition at line 292 of file dp83640_driver.h.

◆ DP83640_LEDCR_DRV_SPDLED

#define DP83640_LEDCR_DRV_SPDLED   0x0020

Definition at line 291 of file dp83640_driver.h.

◆ DP83640_LEDCR_LEDACT_RX

#define DP83640_LEDCR_LEDACT_RX   0x0100

Definition at line 285 of file dp83640_driver.h.

◆ DP83640_LEDCR_LNKLED

#define DP83640_LEDCR_LNKLED   0x0002

Definition at line 295 of file dp83640_driver.h.

◆ DP83640_LEDCR_SPDLED

#define DP83640_LEDCR_SPDLED   0x0004

Definition at line 294 of file dp83640_driver.h.

◆ DP83640_LEN100_DET

#define DP83640_LEN100_DET   0x14

Definition at line 73 of file dp83640_driver.h.

◆ DP83640_LEN100_DET_CABLE_LEN

#define DP83640_LEN100_DET_CABLE_LEN   0x00FF

Definition at line 365 of file dp83640_driver.h.

◆ DP83640_LQDR

#define DP83640_LQDR   0x1E

Definition at line 82 of file dp83640_driver.h.

◆ DP83640_LQDR_LQ_PARAM_SEL

#define DP83640_LQDR_LQ_PARAM_SEL   0x0E00

Definition at line 421 of file dp83640_driver.h.

◆ DP83640_LQDR_LQ_THR_DATA

#define DP83640_LQDR_LQ_THR_DATA   0x00FF

Definition at line 423 of file dp83640_driver.h.

◆ DP83640_LQDR_LQ_THR_SEL

#define DP83640_LQDR_LQ_THR_SEL   0x0100

Definition at line 422 of file dp83640_driver.h.

◆ DP83640_LQDR_SAMPLE_PARAM

#define DP83640_LQDR_SAMPLE_PARAM   0x2000

Definition at line 419 of file dp83640_driver.h.

◆ DP83640_LQDR_WRITE_LQ_THR

#define DP83640_LQDR_WRITE_LQ_THR   0x1000

Definition at line 420 of file dp83640_driver.h.

◆ DP83640_LQMR

#define DP83640_LQMR   0x1D

Definition at line 81 of file dp83640_driver.h.

◆ DP83640_LQMR2

#define DP83640_LQMR2   0x1F

Definition at line 83 of file dp83640_driver.h.

◆ DP83640_LQMR2_RESTART_ON_VAR

#define DP83640_LQMR2_RESTART_ON_VAR   0x0400

Definition at line 426 of file dp83640_driver.h.

◆ DP83640_LQMR2_VAR_HI_WARN

#define DP83640_LQMR2_VAR_HI_WARN   0x0002

Definition at line 427 of file dp83640_driver.h.

◆ DP83640_LQMR_C1_HI_WARN

#define DP83640_LQMR_C1_HI_WARN   0x0002

Definition at line 415 of file dp83640_driver.h.

◆ DP83640_LQMR_C1_LO_WARN

#define DP83640_LQMR_C1_LO_WARN   0x0001

Definition at line 416 of file dp83640_driver.h.

◆ DP83640_LQMR_DAGC_HI_WARN

#define DP83640_LQMR_DAGC_HI_WARN   0x0008

Definition at line 413 of file dp83640_driver.h.

◆ DP83640_LQMR_DAGC_LO_WARN

#define DP83640_LQMR_DAGC_LO_WARN   0x0004

Definition at line 414 of file dp83640_driver.h.

◆ DP83640_LQMR_DBLW_HI_WARN

#define DP83640_LQMR_DBLW_HI_WARN   0x0020

Definition at line 411 of file dp83640_driver.h.

◆ DP83640_LQMR_DBLW_LO_WARN

#define DP83640_LQMR_DBLW_LO_WARN   0x0010

Definition at line 412 of file dp83640_driver.h.

◆ DP83640_LQMR_FC_HI_WARN

#define DP83640_LQMR_FC_HI_WARN   0x0200

Definition at line 407 of file dp83640_driver.h.

◆ DP83640_LQMR_FC_LO_WARN

#define DP83640_LQMR_FC_LO_WARN   0x0100

Definition at line 408 of file dp83640_driver.h.

◆ DP83640_LQMR_FREQ_HI_WARN

#define DP83640_LQMR_FREQ_HI_WARN   0x0080

Definition at line 409 of file dp83640_driver.h.

◆ DP83640_LQMR_FREQ_LO_WARN

#define DP83640_LQMR_FREQ_LO_WARN   0x0040

Definition at line 410 of file dp83640_driver.h.

◆ DP83640_LQMR_LQM_ENABLE

#define DP83640_LQMR_LQM_ENABLE   0x8000

Definition at line 401 of file dp83640_driver.h.

◆ DP83640_LQMR_RESTART_ON_C1

#define DP83640_LQMR_RESTART_ON_C1   0x0400

Definition at line 406 of file dp83640_driver.h.

◆ DP83640_LQMR_RESTART_ON_DAGC

#define DP83640_LQMR_RESTART_ON_DAGC   0x0800

Definition at line 405 of file dp83640_driver.h.

◆ DP83640_LQMR_RESTART_ON_DBLW

#define DP83640_LQMR_RESTART_ON_DBLW   0x1000

Definition at line 404 of file dp83640_driver.h.

◆ DP83640_LQMR_RESTART_ON_FC

#define DP83640_LQMR_RESTART_ON_FC   0x4000

Definition at line 402 of file dp83640_driver.h.

◆ DP83640_LQMR_RESTART_ON_FREQ

#define DP83640_LQMR_RESTART_ON_FREQ   0x2000

Definition at line 403 of file dp83640_driver.h.

◆ DP83640_MICR

#define DP83640_MICR   0x11

Definition at line 54 of file dp83640_driver.h.

◆ DP83640_MICR_INT_OE

#define DP83640_MICR_INT_OE   0x0001

Definition at line 227 of file dp83640_driver.h.

◆ DP83640_MICR_INTEN

#define DP83640_MICR_INTEN   0x0002

Definition at line 226 of file dp83640_driver.h.

◆ DP83640_MICR_PTP_INT_SEL

#define DP83640_MICR_PTP_INT_SEL   0x0008

Definition at line 224 of file dp83640_driver.h.

◆ DP83640_MICR_TINT

#define DP83640_MICR_TINT   0x0004

Definition at line 225 of file dp83640_driver.h.

◆ DP83640_MISR

#define DP83640_MISR   0x12

Definition at line 55 of file dp83640_driver.h.

◆ DP83640_MISR_ANC_INT

#define DP83640_MISR_ANC_INT   0x0400

Definition at line 235 of file dp83640_driver.h.

◆ DP83640_MISR_ANC_INT_EN

#define DP83640_MISR_ANC_INT_EN   0x0004

Definition at line 243 of file dp83640_driver.h.

◆ DP83640_MISR_DUP_INT

#define DP83640_MISR_DUP_INT   0x0800

Definition at line 234 of file dp83640_driver.h.

◆ DP83640_MISR_DUP_INT_EN

#define DP83640_MISR_DUP_INT_EN   0x0008

Definition at line 242 of file dp83640_driver.h.

◆ DP83640_MISR_ED_INT

#define DP83640_MISR_ED_INT   0x4000

Definition at line 231 of file dp83640_driver.h.

◆ DP83640_MISR_ED_INT_EN

#define DP83640_MISR_ED_INT_EN   0x0040

Definition at line 239 of file dp83640_driver.h.

◆ DP83640_MISR_FHF_INT

#define DP83640_MISR_FHF_INT   0x0200

Definition at line 236 of file dp83640_driver.h.

◆ DP83640_MISR_FHF_INT_EN

#define DP83640_MISR_FHF_INT_EN   0x0002

Definition at line 244 of file dp83640_driver.h.

◆ DP83640_MISR_LINK_INT

#define DP83640_MISR_LINK_INT   0x2000

Definition at line 232 of file dp83640_driver.h.

◆ DP83640_MISR_LINK_INT_EN

#define DP83640_MISR_LINK_INT_EN   0x0020

Definition at line 240 of file dp83640_driver.h.

◆ DP83640_MISR_LQ_INT

#define DP83640_MISR_LQ_INT   0x8000

Definition at line 230 of file dp83640_driver.h.

◆ DP83640_MISR_LQ_INT_EN

#define DP83640_MISR_LQ_INT_EN   0x0080

Definition at line 238 of file dp83640_driver.h.

◆ DP83640_MISR_RHF_INT

#define DP83640_MISR_RHF_INT   0x0100

Definition at line 237 of file dp83640_driver.h.

◆ DP83640_MISR_RHF_INT_EN

#define DP83640_MISR_RHF_INT_EN   0x0001

Definition at line 245 of file dp83640_driver.h.

◆ DP83640_MISR_SPD_INT

#define DP83640_MISR_SPD_INT   0x1000

Definition at line 233 of file dp83640_driver.h.

◆ DP83640_MISR_SPD_INT_EN

#define DP83640_MISR_SPD_INT_EN   0x0010

Definition at line 241 of file dp83640_driver.h.

◆ DP83640_PAGSR

#define DP83640_PAGSR   0x13

Definition at line 56 of file dp83640_driver.h.

◆ DP83640_PAGSR_PAGE_SEL

#define DP83640_PAGSR_PAGE_SEL   0x0007

Definition at line 248 of file dp83640_driver.h.

◆ DP83640_PCFCR

#define DP83640_PCFCR   0x1E

Definition at line 67 of file dp83640_driver.h.

◆ DP83640_PCFCR_PCF_BC_DIS

#define DP83640_PCFCR_PCF_BC_DIS   0x0020

Definition at line 357 of file dp83640_driver.h.

◆ DP83640_PCFCR_PCF_BUF

#define DP83640_PCFCR_PCF_BUF   0x001E

Definition at line 358 of file dp83640_driver.h.

◆ DP83640_PCFCR_PCF_DA_SEL

#define DP83640_PCFCR_PCF_DA_SEL   0x0100

Definition at line 355 of file dp83640_driver.h.

◆ DP83640_PCFCR_PCF_EN

#define DP83640_PCFCR_PCF_EN   0x0001

Definition at line 359 of file dp83640_driver.h.

◆ DP83640_PCFCR_PCF_INT_CTL

#define DP83640_PCFCR_PCF_INT_CTL   0x00C0

Definition at line 356 of file dp83640_driver.h.

◆ DP83640_PCFCR_PCF_STS_ERR

#define DP83640_PCFCR_PCF_STS_ERR   0x8000

Definition at line 353 of file dp83640_driver.h.

◆ DP83640_PCFCR_PCF_STS_OK

#define DP83640_PCFCR_PCF_STS_OK   0x4000

Definition at line 354 of file dp83640_driver.h.

◆ DP83640_PCSR

#define DP83640_PCSR   0x16

Definition at line 59 of file dp83640_driver.h.

◆ DP83640_PCSR_DESC_TIME

#define DP83640_PCSR_DESC_TIME   0x0080

Definition at line 261 of file dp83640_driver.h.

◆ DP83640_PCSR_DESCRAM_BYPASS

#define DP83640_PCSR_DESCRAM_BYPASS   0x0001

Definition at line 267 of file dp83640_driver.h.

◆ DP83640_PCSR_FEFI_EN

#define DP83640_PCSR_FEFI_EN   0x0008

Definition at line 264 of file dp83640_driver.h.

◆ DP83640_PCSR_FORCE_100_OK

#define DP83640_PCSR_FORCE_100_OK   0x0020

Definition at line 263 of file dp83640_driver.h.

◆ DP83640_PCSR_FREE_CLK

#define DP83640_PCSR_FREE_CLK   0x0800

Definition at line 257 of file dp83640_driver.h.

◆ DP83640_PCSR_FX_EN

#define DP83640_PCSR_FX_EN   0x0040

Definition at line 262 of file dp83640_driver.h.

◆ DP83640_PCSR_NRZI_BYPASS

#define DP83640_PCSR_NRZI_BYPASS   0x0004

Definition at line 265 of file dp83640_driver.h.

◆ DP83640_PCSR_SCRAM_BYPASS

#define DP83640_PCSR_SCRAM_BYPASS   0x0002

Definition at line 266 of file dp83640_driver.h.

◆ DP83640_PCSR_SD_FORCE_PMA

#define DP83640_PCSR_SD_FORCE_PMA   0x0200

Definition at line 259 of file dp83640_driver.h.

◆ DP83640_PCSR_SD_OPTION

#define DP83640_PCSR_SD_OPTION   0x0100

Definition at line 260 of file dp83640_driver.h.

◆ DP83640_PCSR_TQ_EN

#define DP83640_PCSR_TQ_EN   0x0400

Definition at line 258 of file dp83640_driver.h.

◆ DP83640_PHY_ADDR

#define DP83640_PHY_ADDR   1

Definition at line 39 of file dp83640_driver.h.

◆ DP83640_PHYCR

#define DP83640_PHYCR   0x19

Definition at line 62 of file dp83640_driver.h.

◆ DP83640_PHYCR2

#define DP83640_PHYCR2   0x1C

Definition at line 65 of file dp83640_driver.h.

◆ DP83640_PHYCR2_BC_WRITE

#define DP83640_PHYCR2_BC_WRITE   0x0800

Definition at line 335 of file dp83640_driver.h.

◆ DP83640_PHYCR2_CLK_OUT_DIS

#define DP83640_PHYCR2_CLK_OUT_DIS   0x0002

Definition at line 338 of file dp83640_driver.h.

◆ DP83640_PHYCR2_CLK_OUT_RXCLK

#define DP83640_PHYCR2_CLK_OUT_RXCLK   0x1000

Definition at line 334 of file dp83640_driver.h.

◆ DP83640_PHYCR2_PHYTER_COMP

#define DP83640_PHYCR2_PHYTER_COMP   0x0400

Definition at line 336 of file dp83640_driver.h.

◆ DP83640_PHYCR2_SOFT_RESET

#define DP83640_PHYCR2_SOFT_RESET   0x0200

Definition at line 337 of file dp83640_driver.h.

◆ DP83640_PHYCR2_SYNC_ENET_EN

#define DP83640_PHYCR2_SYNC_ENET_EN   0x2000

Definition at line 333 of file dp83640_driver.h.

◆ DP83640_PHYCR_BIST_FE

#define DP83640_PHYCR_BIST_FE   0x0800

Definition at line 303 of file dp83640_driver.h.

◆ DP83640_PHYCR_BIST_START

#define DP83640_PHYCR_BIST_START   0x0100

Definition at line 306 of file dp83640_driver.h.

◆ DP83640_PHYCR_BIST_STATUS

#define DP83640_PHYCR_BIST_STATUS   0x0200

Definition at line 305 of file dp83640_driver.h.

◆ DP83640_PHYCR_BP_STRETCH

#define DP83640_PHYCR_BP_STRETCH   0x0080

Definition at line 307 of file dp83640_driver.h.

◆ DP83640_PHYCR_FORCE_MDIX

#define DP83640_PHYCR_FORCE_MDIX   0x4000

Definition at line 300 of file dp83640_driver.h.

◆ DP83640_PHYCR_LED_CNFG

#define DP83640_PHYCR_LED_CNFG   0x0060

Definition at line 308 of file dp83640_driver.h.

◆ DP83640_PHYCR_MDIX_EN

#define DP83640_PHYCR_MDIX_EN   0x8000

Definition at line 299 of file dp83640_driver.h.

◆ DP83640_PHYCR_PAUSE_RX

#define DP83640_PHYCR_PAUSE_RX   0x2000

Definition at line 301 of file dp83640_driver.h.

◆ DP83640_PHYCR_PAUSE_TX

#define DP83640_PHYCR_PAUSE_TX   0x1000

Definition at line 302 of file dp83640_driver.h.

◆ DP83640_PHYCR_PHYADDR

#define DP83640_PHYCR_PHYADDR   0x001F

Definition at line 309 of file dp83640_driver.h.

◆ DP83640_PHYCR_PSR_15

#define DP83640_PHYCR_PSR_15   0x0400

Definition at line 304 of file dp83640_driver.h.

◆ DP83640_PHYID1

#define DP83640_PHYID1   0x02

Definition at line 47 of file dp83640_driver.h.

◆ DP83640_PHYID1_OUI_MSB

#define DP83640_PHYID1_OUI_MSB   0xFFFF

Definition at line 155 of file dp83640_driver.h.

◆ DP83640_PHYID1_OUI_MSB_DEFAULT

#define DP83640_PHYID1_OUI_MSB_DEFAULT   0x2000

Definition at line 156 of file dp83640_driver.h.

◆ DP83640_PHYID2

#define DP83640_PHYID2   0x03

Definition at line 48 of file dp83640_driver.h.

◆ DP83640_PHYID2_MDL_REV

#define DP83640_PHYID2_MDL_REV   0x000F

Definition at line 163 of file dp83640_driver.h.

◆ DP83640_PHYID2_OUI_LSB

#define DP83640_PHYID2_OUI_LSB   0xFC00

Definition at line 159 of file dp83640_driver.h.

◆ DP83640_PHYID2_OUI_LSB_DEFAULT

#define DP83640_PHYID2_OUI_LSB_DEFAULT   0x5C00

Definition at line 160 of file dp83640_driver.h.

◆ DP83640_PHYID2_VNDR_MDL

#define DP83640_PHYID2_VNDR_MDL   0x03F0

Definition at line 161 of file dp83640_driver.h.

◆ DP83640_PHYID2_VNDR_MDL_DEFAULT

#define DP83640_PHYID2_VNDR_MDL_DEFAULT   0x00E0

Definition at line 162 of file dp83640_driver.h.

◆ DP83640_PHYSTS

#define DP83640_PHYSTS   0x10

Definition at line 53 of file dp83640_driver.h.

◆ DP83640_PHYSTS_AN_COMPLETE

#define DP83640_PHYSTS_AN_COMPLETE   0x0010

Definition at line 217 of file dp83640_driver.h.

◆ DP83640_PHYSTS_DESCRAMBLER_LOCK

#define DP83640_PHYSTS_DESCRAMBLER_LOCK   0x0200

Definition at line 212 of file dp83640_driver.h.

◆ DP83640_PHYSTS_DUPLEX_STATUS

#define DP83640_PHYSTS_DUPLEX_STATUS   0x0004

Definition at line 219 of file dp83640_driver.h.

◆ DP83640_PHYSTS_FCS_LATCH

#define DP83640_PHYSTS_FCS_LATCH   0x0800

Definition at line 210 of file dp83640_driver.h.

◆ DP83640_PHYSTS_JABBER_DETECT

#define DP83640_PHYSTS_JABBER_DETECT   0x0020

Definition at line 216 of file dp83640_driver.h.

◆ DP83640_PHYSTS_LINK_STATUS

#define DP83640_PHYSTS_LINK_STATUS   0x0001

Definition at line 221 of file dp83640_driver.h.

◆ DP83640_PHYSTS_LOOPBACK_STATUS

#define DP83640_PHYSTS_LOOPBACK_STATUS   0x0008

Definition at line 218 of file dp83640_driver.h.

◆ DP83640_PHYSTS_MDIX_MODE

#define DP83640_PHYSTS_MDIX_MODE   0x4000

Definition at line 207 of file dp83640_driver.h.

◆ DP83640_PHYSTS_MII_INTERRUPT

#define DP83640_PHYSTS_MII_INTERRUPT   0x0080

Definition at line 214 of file dp83640_driver.h.

◆ DP83640_PHYSTS_PAGE_RECEIVED

#define DP83640_PHYSTS_PAGE_RECEIVED   0x0100

Definition at line 213 of file dp83640_driver.h.

◆ DP83640_PHYSTS_POLARITY_STATUS

#define DP83640_PHYSTS_POLARITY_STATUS   0x1000

Definition at line 209 of file dp83640_driver.h.

◆ DP83640_PHYSTS_RECEIVE_ERROR_LATCH

#define DP83640_PHYSTS_RECEIVE_ERROR_LATCH   0x2000

Definition at line 208 of file dp83640_driver.h.

◆ DP83640_PHYSTS_REMOTE_FAULT

#define DP83640_PHYSTS_REMOTE_FAULT   0x0040

Definition at line 215 of file dp83640_driver.h.

◆ DP83640_PHYSTS_SIGNAL_DETECT

#define DP83640_PHYSTS_SIGNAL_DETECT   0x0400

Definition at line 211 of file dp83640_driver.h.

◆ DP83640_PHYSTS_SPEED_STATUS

#define DP83640_PHYSTS_SPEED_STATUS   0x0002

Definition at line 220 of file dp83640_driver.h.

◆ DP83640_PSF_CFG0

#define DP83640_PSF_CFG0   0x18

Definition at line 104 of file dp83640_driver.h.

◆ DP83640_PSF_CFG0_MAC_SRC_ADD

#define DP83640_PSF_CFG0_MAC_SRC_ADD   0x1800

Definition at line 544 of file dp83640_driver.h.

◆ DP83640_PSF_CFG0_MIN_PRE

#define DP83640_PSF_CFG0_MIN_PRE   0x0700

Definition at line 545 of file dp83640_driver.h.

◆ DP83640_PSF_CFG0_PSF_ENDIAN

#define DP83640_PSF_CFG0_PSF_ENDIAN   0x0080

Definition at line 546 of file dp83640_driver.h.

◆ DP83640_PSF_CFG0_PSF_ERR_EN

#define DP83640_PSF_CFG0_PSF_ERR_EN   0x0010

Definition at line 549 of file dp83640_driver.h.

◆ DP83640_PSF_CFG0_PSF_EVNT_EN

#define DP83640_PSF_CFG0_PSF_EVNT_EN   0x0001

Definition at line 553 of file dp83640_driver.h.

◆ DP83640_PSF_CFG0_PSF_IPV4

#define DP83640_PSF_CFG0_PSF_IPV4   0x0040

Definition at line 547 of file dp83640_driver.h.

◆ DP83640_PSF_CFG0_PSF_PCF_RD

#define DP83640_PSF_CFG0_PSF_PCF_RD   0x0020

Definition at line 548 of file dp83640_driver.h.

◆ DP83640_PSF_CFG0_PSF_RXTS_EN

#define DP83640_PSF_CFG0_PSF_RXTS_EN   0x0004

Definition at line 551 of file dp83640_driver.h.

◆ DP83640_PSF_CFG0_PSF_TRIG_EN

#define DP83640_PSF_CFG0_PSF_TRIG_EN   0x0002

Definition at line 552 of file dp83640_driver.h.

◆ DP83640_PSF_CFG0_PSF_TXTS_EN

#define DP83640_PSF_CFG0_PSF_TXTS_EN   0x0008

Definition at line 550 of file dp83640_driver.h.

◆ DP83640_PSF_CFG1

#define DP83640_PSF_CFG1   0x15

Definition at line 115 of file dp83640_driver.h.

◆ DP83640_PSF_CFG1_MESSAGETYPE

#define DP83640_PSF_CFG1_MESSAGETYPE   0x000F

Definition at line 600 of file dp83640_driver.h.

◆ DP83640_PSF_CFG1_PTPRESERVED

#define DP83640_PSF_CFG1_PTPRESERVED   0xF000

Definition at line 597 of file dp83640_driver.h.

◆ DP83640_PSF_CFG1_TRANSPORT_SPECIFIC

#define DP83640_PSF_CFG1_TRANSPORT_SPECIFIC   0x00F0

Definition at line 599 of file dp83640_driver.h.

◆ DP83640_PSF_CFG1_VERSIONPTP

#define DP83640_PSF_CFG1_VERSIONPTP   0x0F00

Definition at line 598 of file dp83640_driver.h.

◆ DP83640_PSF_CFG2

#define DP83640_PSF_CFG2   0x16

Definition at line 116 of file dp83640_driver.h.

◆ DP83640_PSF_CFG2_IP_SA_BYTE0

#define DP83640_PSF_CFG2_IP_SA_BYTE0   0x00FF

Definition at line 604 of file dp83640_driver.h.

◆ DP83640_PSF_CFG2_IP_SA_BYTE1

#define DP83640_PSF_CFG2_IP_SA_BYTE1   0xFF00

Definition at line 603 of file dp83640_driver.h.

◆ DP83640_PSF_CFG3

#define DP83640_PSF_CFG3   0x17

Definition at line 117 of file dp83640_driver.h.

◆ DP83640_PSF_CFG3_IP_SA_BYTE2

#define DP83640_PSF_CFG3_IP_SA_BYTE2   0x00FF

Definition at line 608 of file dp83640_driver.h.

◆ DP83640_PSF_CFG3_IP_SA_BYTE3

#define DP83640_PSF_CFG3_IP_SA_BYTE3   0xFF00

Definition at line 607 of file dp83640_driver.h.

◆ DP83640_PSF_CFG4

#define DP83640_PSF_CFG4   0x18

Definition at line 118 of file dp83640_driver.h.

◆ DP83640_PSF_CFG4_IP_CHKSUM

#define DP83640_PSF_CFG4_IP_CHKSUM   0xFFFF

Definition at line 611 of file dp83640_driver.h.

◆ DP83640_PTP_CLKSRC

#define DP83640_PTP_CLKSRC   0x1B

Definition at line 121 of file dp83640_driver.h.

◆ DP83640_PTP_CLKSRC_CLK_SRC

#define DP83640_PTP_CLKSRC_CLK_SRC   0xC000

Definition at line 621 of file dp83640_driver.h.

◆ DP83640_PTP_CLKSRC_CLK_SRC_PER

#define DP83640_PTP_CLKSRC_CLK_SRC_PER   0x007F

Definition at line 622 of file dp83640_driver.h.

◆ DP83640_PTP_COC

#define DP83640_PTP_COC   0x14

Definition at line 114 of file dp83640_driver.h.

◆ DP83640_PTP_COC_PTP_CLKDIV

#define DP83640_PTP_COC_PTP_CLKDIV   0x00FF

Definition at line 594 of file dp83640_driver.h.

◆ DP83640_PTP_COC_PTP_CLKOUT_EN

#define DP83640_PTP_COC_PTP_CLKOUT_EN   0x8000

Definition at line 591 of file dp83640_driver.h.

◆ DP83640_PTP_COC_PTP_CLKOUT_SEL

#define DP83640_PTP_COC_PTP_CLKOUT_SEL   0x4000

Definition at line 592 of file dp83640_driver.h.

◆ DP83640_PTP_COC_PTP_CLKOUT_SPEEDSEL

#define DP83640_PTP_COC_PTP_CLKOUT_SPEEDSEL   0x2000

Definition at line 593 of file dp83640_driver.h.

◆ DP83640_PTP_CTL

#define DP83640_PTP_CTL   0x14

Definition at line 86 of file dp83640_driver.h.

◆ DP83640_PTP_CTL_PTP_DISABLE

#define DP83640_PTP_CTL_PTP_DISABLE   0x0002

Definition at line 439 of file dp83640_driver.h.

◆ DP83640_PTP_CTL_PTP_ENABLE

#define DP83640_PTP_CTL_PTP_ENABLE   0x0004

Definition at line 438 of file dp83640_driver.h.

◆ DP83640_PTP_CTL_PTP_LOAD_CLK

#define DP83640_PTP_CTL_PTP_LOAD_CLK   0x0010

Definition at line 436 of file dp83640_driver.h.

◆ DP83640_PTP_CTL_PTP_RD_CLK

#define DP83640_PTP_CTL_PTP_RD_CLK   0x0020

Definition at line 435 of file dp83640_driver.h.

◆ DP83640_PTP_CTL_PTP_RESET

#define DP83640_PTP_CTL_PTP_RESET   0x0001

Definition at line 440 of file dp83640_driver.h.

◆ DP83640_PTP_CTL_PTP_STEP_CLK

#define DP83640_PTP_CTL_PTP_STEP_CLK   0x0008

Definition at line 437 of file dp83640_driver.h.

◆ DP83640_PTP_CTL_TRIG_DIS

#define DP83640_PTP_CTL_TRIG_DIS   0x0200

Definition at line 431 of file dp83640_driver.h.

◆ DP83640_PTP_CTL_TRIG_EN

#define DP83640_PTP_CTL_TRIG_EN   0x0100

Definition at line 432 of file dp83640_driver.h.

◆ DP83640_PTP_CTL_TRIG_LOAD

#define DP83640_PTP_CTL_TRIG_LOAD   0x0040

Definition at line 434 of file dp83640_driver.h.

◆ DP83640_PTP_CTL_TRIG_READ

#define DP83640_PTP_CTL_TRIG_READ   0x0080

Definition at line 433 of file dp83640_driver.h.

◆ DP83640_PTP_CTL_TRIG_SEL

#define DP83640_PTP_CTL_TRIG_SEL   0x1C00

Definition at line 430 of file dp83640_driver.h.

◆ DP83640_PTP_EDATA

#define DP83640_PTP_EDATA   0x1F

Definition at line 97 of file dp83640_driver.h.

◆ DP83640_PTP_EDATA_E0_DET

#define DP83640_PTP_EDATA_E0_DET   0x0001

Definition at line 505 of file dp83640_driver.h.

◆ DP83640_PTP_EDATA_E0_RISE

#define DP83640_PTP_EDATA_E0_RISE   0x0002

Definition at line 504 of file dp83640_driver.h.

◆ DP83640_PTP_EDATA_E1_DET

#define DP83640_PTP_EDATA_E1_DET   0x0004

Definition at line 503 of file dp83640_driver.h.

◆ DP83640_PTP_EDATA_E1_RISE

#define DP83640_PTP_EDATA_E1_RISE   0x0008

Definition at line 502 of file dp83640_driver.h.

◆ DP83640_PTP_EDATA_E2_DET

#define DP83640_PTP_EDATA_E2_DET   0x0010

Definition at line 501 of file dp83640_driver.h.

◆ DP83640_PTP_EDATA_E2_RISE

#define DP83640_PTP_EDATA_E2_RISE   0x0020

Definition at line 500 of file dp83640_driver.h.

◆ DP83640_PTP_EDATA_E3_DET

#define DP83640_PTP_EDATA_E3_DET   0x0040

Definition at line 499 of file dp83640_driver.h.

◆ DP83640_PTP_EDATA_E3_RISE

#define DP83640_PTP_EDATA_E3_RISE   0x0080

Definition at line 498 of file dp83640_driver.h.

◆ DP83640_PTP_EDATA_E4_DET

#define DP83640_PTP_EDATA_E4_DET   0x0100

Definition at line 497 of file dp83640_driver.h.

◆ DP83640_PTP_EDATA_E4_RISE

#define DP83640_PTP_EDATA_E4_RISE   0x0200

Definition at line 496 of file dp83640_driver.h.

◆ DP83640_PTP_EDATA_E5_DET

#define DP83640_PTP_EDATA_E5_DET   0x0400

Definition at line 495 of file dp83640_driver.h.

◆ DP83640_PTP_EDATA_E5_RISE

#define DP83640_PTP_EDATA_E5_RISE   0x0800

Definition at line 494 of file dp83640_driver.h.

◆ DP83640_PTP_EDATA_E6_DET

#define DP83640_PTP_EDATA_E6_DET   0x1000

Definition at line 493 of file dp83640_driver.h.

◆ DP83640_PTP_EDATA_E6_RISE

#define DP83640_PTP_EDATA_E6_RISE   0x2000

Definition at line 492 of file dp83640_driver.h.

◆ DP83640_PTP_EDATA_E7_DET

#define DP83640_PTP_EDATA_E7_DET   0x4000

Definition at line 491 of file dp83640_driver.h.

◆ DP83640_PTP_EDATA_E7_RISE

#define DP83640_PTP_EDATA_E7_RISE   0x8000

Definition at line 490 of file dp83640_driver.h.

◆ DP83640_PTP_ESTS

#define DP83640_PTP_ESTS   0x1E

Definition at line 96 of file dp83640_driver.h.

◆ DP83640_PTP_ESTS_EVENT_DET

#define DP83640_PTP_ESTS_EVENT_DET   0x0001

Definition at line 487 of file dp83640_driver.h.

◆ DP83640_PTP_ESTS_EVNT_NUM

#define DP83640_PTP_ESTS_EVNT_NUM   0x001C

Definition at line 485 of file dp83640_driver.h.

◆ DP83640_PTP_ESTS_EVNT_RF

#define DP83640_PTP_ESTS_EVNT_RF   0x0020

Definition at line 484 of file dp83640_driver.h.

◆ DP83640_PTP_ESTS_EVNT_TS_LEN

#define DP83640_PTP_ESTS_EVNT_TS_LEN   0x00C0

Definition at line 483 of file dp83640_driver.h.

◆ DP83640_PTP_ESTS_EVNTS_MISSED

#define DP83640_PTP_ESTS_EVNTS_MISSED   0x0700

Definition at line 482 of file dp83640_driver.h.

◆ DP83640_PTP_ESTS_MULT_EVNT

#define DP83640_PTP_ESTS_MULT_EVNT   0x0002

Definition at line 486 of file dp83640_driver.h.

◆ DP83640_PTP_ETR

#define DP83640_PTP_ETR   0x1C

Definition at line 122 of file dp83640_driver.h.

◆ DP83640_PTP_EVNT

#define DP83640_PTP_EVNT   0x15

Definition at line 101 of file dp83640_driver.h.

◆ DP83640_PTP_EVNT_EVNT_FALL

#define DP83640_PTP_EVNT_EVNT_FALL   0x2000

Definition at line 519 of file dp83640_driver.h.

◆ DP83640_PTP_EVNT_EVNT_GPIO

#define DP83640_PTP_EVNT_EVNT_GPIO   0x0F00

Definition at line 521 of file dp83640_driver.h.

◆ DP83640_PTP_EVNT_EVNT_RISE

#define DP83640_PTP_EVNT_EVNT_RISE   0x4000

Definition at line 518 of file dp83640_driver.h.

◆ DP83640_PTP_EVNT_EVNT_SEL

#define DP83640_PTP_EVNT_EVNT_SEL   0x000E

Definition at line 522 of file dp83640_driver.h.

◆ DP83640_PTP_EVNT_EVNT_SINGLE

#define DP83640_PTP_EVNT_EVNT_SINGLE   0x1000

Definition at line 520 of file dp83640_driver.h.

◆ DP83640_PTP_EVNT_EVNT_WR

#define DP83640_PTP_EVNT_EVNT_WR   0x0001

Definition at line 523 of file dp83640_driver.h.

◆ DP83640_PTP_GPIOMON

#define DP83640_PTP_GPIOMON   0x1E

Definition at line 124 of file dp83640_driver.h.

◆ DP83640_PTP_GPIOMON_PTP_GPIO_IN

#define DP83640_PTP_GPIOMON_PTP_GPIO_IN   0x0FFF

Definition at line 628 of file dp83640_driver.h.

◆ DP83640_PTP_INTCTL

#define DP83640_PTP_INTCTL   0x1A

Definition at line 120 of file dp83640_driver.h.

◆ DP83640_PTP_INTCTL_PTP_INT_GPIO

#define DP83640_PTP_INTCTL_PTP_INT_GPIO   0x000F

Definition at line 618 of file dp83640_driver.h.

◆ DP83640_PTP_OFF

#define DP83640_PTP_OFF   0x1D

Definition at line 123 of file dp83640_driver.h.

◆ DP83640_PTP_OFF_PTP_OFFSET

#define DP83640_PTP_OFF_PTP_OFFSET   0x00FF

Definition at line 625 of file dp83640_driver.h.

◆ DP83640_PTP_RATEH

#define DP83640_PTP_RATEH   0x19

Definition at line 91 of file dp83640_driver.h.

◆ DP83640_PTP_RATEH_PTP_RATE_DIR

#define DP83640_PTP_RATEH_PTP_RATE_DIR   0x8000

Definition at line 477 of file dp83640_driver.h.

◆ DP83640_PTP_RATEH_PTP_RATE_HI

#define DP83640_PTP_RATEH_PTP_RATE_HI   0x03FF

Definition at line 479 of file dp83640_driver.h.

◆ DP83640_PTP_RATEH_PTP_TMP_RATE

#define DP83640_PTP_RATEH_PTP_TMP_RATE   0x4000

Definition at line 478 of file dp83640_driver.h.

◆ DP83640_PTP_RATEL

#define DP83640_PTP_RATEL   0x18

Definition at line 90 of file dp83640_driver.h.

◆ DP83640_PTP_RATEL_PTP_RATE_LO

#define DP83640_PTP_RATEL_PTP_RATE_LO   0xFFFF

Definition at line 474 of file dp83640_driver.h.

◆ DP83640_PTP_RDCKSUM

#define DP83640_PTP_RDCKSUM   0x1A

Definition at line 92 of file dp83640_driver.h.

◆ DP83640_PTP_RXCFG0

#define DP83640_PTP_RXCFG0   0x19

Definition at line 105 of file dp83640_driver.h.

◆ DP83640_PTP_RXCFG0_ALT_MAST_DIS

#define DP83640_PTP_RXCFG0_ALT_MAST_DIS   0x4000

Definition at line 557 of file dp83640_driver.h.

◆ DP83640_PTP_RXCFG0_DOMAIN_EN

#define DP83640_PTP_RXCFG0_DOMAIN_EN   0x8000

Definition at line 556 of file dp83640_driver.h.

◆ DP83640_PTP_RXCFG0_IP1588_EN

#define DP83640_PTP_RXCFG0_IP1588_EN   0x0700

Definition at line 561 of file dp83640_driver.h.

◆ DP83640_PTP_RXCFG0_RX_IPV4_EN

#define DP83640_PTP_RXCFG0_RX_IPV4_EN   0x0020

Definition at line 564 of file dp83640_driver.h.

◆ DP83640_PTP_RXCFG0_RX_IPV6_EN

#define DP83640_PTP_RXCFG0_RX_IPV6_EN   0x0040

Definition at line 563 of file dp83640_driver.h.

◆ DP83640_PTP_RXCFG0_RX_L2_EN

#define DP83640_PTP_RXCFG0_RX_L2_EN   0x0080

Definition at line 562 of file dp83640_driver.h.

◆ DP83640_PTP_RXCFG0_RX_PTP_VER

#define DP83640_PTP_RXCFG0_RX_PTP_VER   0x001E

Definition at line 565 of file dp83640_driver.h.

◆ DP83640_PTP_RXCFG0_RX_SLAVE

#define DP83640_PTP_RXCFG0_RX_SLAVE   0x0800

Definition at line 560 of file dp83640_driver.h.

◆ DP83640_PTP_RXCFG0_RX_TS_EN

#define DP83640_PTP_RXCFG0_RX_TS_EN   0x0001

Definition at line 566 of file dp83640_driver.h.

◆ DP83640_PTP_RXCFG0_USER_IP_EN

#define DP83640_PTP_RXCFG0_USER_IP_EN   0x1000

Definition at line 559 of file dp83640_driver.h.

◆ DP83640_PTP_RXCFG0_USER_IP_SEL

#define DP83640_PTP_RXCFG0_USER_IP_SEL   0x2000

Definition at line 558 of file dp83640_driver.h.

◆ DP83640_PTP_RXCFG1

#define DP83640_PTP_RXCFG1   0x1A

Definition at line 106 of file dp83640_driver.h.

◆ DP83640_PTP_RXCFG1_BYTE0_DATA

#define DP83640_PTP_RXCFG1_BYTE0_DATA   0x00FF

Definition at line 570 of file dp83640_driver.h.

◆ DP83640_PTP_RXCFG1_BYTE0_MASK

#define DP83640_PTP_RXCFG1_BYTE0_MASK   0xFF00

Definition at line 569 of file dp83640_driver.h.

◆ DP83640_PTP_RXCFG2

#define DP83640_PTP_RXCFG2   0x1B

Definition at line 107 of file dp83640_driver.h.

◆ DP83640_PTP_RXCFG2_IP_ADDR_DATA

#define DP83640_PTP_RXCFG2_IP_ADDR_DATA   0xFFFF

Definition at line 573 of file dp83640_driver.h.

◆ DP83640_PTP_RXCFG3

#define DP83640_PTP_RXCFG3   0x1C

Definition at line 108 of file dp83640_driver.h.

◆ DP83640_PTP_RXCFG3_ACC_CRC

#define DP83640_PTP_RXCFG3_ACC_CRC   0x0400

Definition at line 578 of file dp83640_driver.h.

◆ DP83640_PTP_RXCFG3_ACC_UDP

#define DP83640_PTP_RXCFG3_ACC_UDP   0x0800

Definition at line 577 of file dp83640_driver.h.

◆ DP83640_PTP_RXCFG3_PTP_DOMAIN

#define DP83640_PTP_RXCFG3_PTP_DOMAIN   0x00FF

Definition at line 581 of file dp83640_driver.h.

◆ DP83640_PTP_RXCFG3_TS_APPEND

#define DP83640_PTP_RXCFG3_TS_APPEND   0x0200

Definition at line 579 of file dp83640_driver.h.

◆ DP83640_PTP_RXCFG3_TS_INSERT

#define DP83640_PTP_RXCFG3_TS_INSERT   0x0100

Definition at line 580 of file dp83640_driver.h.

◆ DP83640_PTP_RXCFG3_TS_MIN_IFG

#define DP83640_PTP_RXCFG3_TS_MIN_IFG   0xF000

Definition at line 576 of file dp83640_driver.h.

◆ DP83640_PTP_RXCFG4

#define DP83640_PTP_RXCFG4   0x1D

Definition at line 109 of file dp83640_driver.h.

◆ DP83640_PTP_RXCFG4_IPV4_UDP_MOD

#define DP83640_PTP_RXCFG4_IPV4_UDP_MOD   0x8000

Definition at line 584 of file dp83640_driver.h.

◆ DP83640_PTP_RXCFG4_RXTS_NS_OFF

#define DP83640_PTP_RXCFG4_RXTS_NS_OFF   0x0FC0

Definition at line 587 of file dp83640_driver.h.

◆ DP83640_PTP_RXCFG4_RXTS_SEC_OFF

#define DP83640_PTP_RXCFG4_RXTS_SEC_OFF   0x003F

Definition at line 588 of file dp83640_driver.h.

◆ DP83640_PTP_RXCFG4_TS_SEC_EN

#define DP83640_PTP_RXCFG4_TS_SEC_EN   0x4000

Definition at line 585 of file dp83640_driver.h.

◆ DP83640_PTP_RXCFG4_TS_SEC_LEN

#define DP83640_PTP_RXCFG4_TS_SEC_LEN   0x3000

Definition at line 586 of file dp83640_driver.h.

◆ DP83640_PTP_RXHASH

#define DP83640_PTP_RXHASH   0x1F

Definition at line 125 of file dp83640_driver.h.

◆ DP83640_PTP_RXHASH_PTP_RX_HASH

#define DP83640_PTP_RXHASH_PTP_RX_HASH   0x0FFF

Definition at line 632 of file dp83640_driver.h.

◆ DP83640_PTP_RXHASH_RX_HASH_EN

#define DP83640_PTP_RXHASH_RX_HASH_EN   0x1000

Definition at line 631 of file dp83640_driver.h.

◆ DP83640_PTP_RXTS

#define DP83640_PTP_RXTS   0x1D

Definition at line 95 of file dp83640_driver.h.

◆ DP83640_PTP_SFDCFG

#define DP83640_PTP_SFDCFG   0x19

Definition at line 119 of file dp83640_driver.h.

◆ DP83640_PTP_SFDCFG_RX_SFD_GPIO

#define DP83640_PTP_SFDCFG_RX_SFD_GPIO   0x000F

Definition at line 615 of file dp83640_driver.h.

◆ DP83640_PTP_SFDCFG_TX_SFD_GPIO

#define DP83640_PTP_SFDCFG_TX_SFD_GPIO   0x00F0

Definition at line 614 of file dp83640_driver.h.

◆ DP83640_PTP_STS

#define DP83640_PTP_STS   0x16

Definition at line 88 of file dp83640_driver.h.

◆ DP83640_PTP_STS_EVENT_IE

#define DP83640_PTP_STS_EVENT_IE   0x0001

Definition at line 453 of file dp83640_driver.h.

◆ DP83640_PTP_STS_EVENT_RDY

#define DP83640_PTP_STS_EVENT_RDY   0x0100

Definition at line 449 of file dp83640_driver.h.

◆ DP83640_PTP_STS_RXTS_IE

#define DP83640_PTP_STS_RXTS_IE   0x0004

Definition at line 451 of file dp83640_driver.h.

◆ DP83640_PTP_STS_RXTS_RDY

#define DP83640_PTP_STS_RXTS_RDY   0x0400

Definition at line 447 of file dp83640_driver.h.

◆ DP83640_PTP_STS_TRIG_DONE

#define DP83640_PTP_STS_TRIG_DONE   0x0200

Definition at line 448 of file dp83640_driver.h.

◆ DP83640_PTP_STS_TRIG_IE

#define DP83640_PTP_STS_TRIG_IE   0x0002

Definition at line 452 of file dp83640_driver.h.

◆ DP83640_PTP_STS_TXTS_IE

#define DP83640_PTP_STS_TXTS_IE   0x0008

Definition at line 450 of file dp83640_driver.h.

◆ DP83640_PTP_STS_TXTS_RDY

#define DP83640_PTP_STS_TXTS_RDY   0x0800

Definition at line 446 of file dp83640_driver.h.

◆ DP83640_PTP_TDR

#define DP83640_PTP_TDR   0x15

Definition at line 87 of file dp83640_driver.h.

◆ DP83640_PTP_TDR_TIME_DATA

#define DP83640_PTP_TDR_TIME_DATA   0xFFFF

Definition at line 443 of file dp83640_driver.h.

◆ DP83640_PTP_TRDH

#define DP83640_PTP_TRDH   0x1F

Definition at line 111 of file dp83640_driver.h.

◆ DP83640_PTP_TRDL

#define DP83640_PTP_TRDL   0x1E

Definition at line 110 of file dp83640_driver.h.

◆ DP83640_PTP_TRIG

#define DP83640_PTP_TRIG   0x14

Definition at line 100 of file dp83640_driver.h.

◆ DP83640_PTP_TRIG_TRIG_CSEL

#define DP83640_PTP_TRIG_TRIG_CSEL   0x000E

Definition at line 514 of file dp83640_driver.h.

◆ DP83640_PTP_TRIG_TRIG_GPIO

#define DP83640_PTP_TRIG_TRIG_GPIO   0x0F00

Definition at line 512 of file dp83640_driver.h.

◆ DP83640_PTP_TRIG_TRIG_IF_LATE

#define DP83640_PTP_TRIG_TRIG_IF_LATE   0x2000

Definition at line 510 of file dp83640_driver.h.

◆ DP83640_PTP_TRIG_TRIG_NOTIFY

#define DP83640_PTP_TRIG_TRIG_NOTIFY   0x1000

Definition at line 511 of file dp83640_driver.h.

◆ DP83640_PTP_TRIG_TRIG_PER

#define DP83640_PTP_TRIG_TRIG_PER   0x4000

Definition at line 509 of file dp83640_driver.h.

◆ DP83640_PTP_TRIG_TRIG_PULSE

#define DP83640_PTP_TRIG_TRIG_PULSE   0x8000

Definition at line 508 of file dp83640_driver.h.

◆ DP83640_PTP_TRIG_TRIG_TOGGLE

#define DP83640_PTP_TRIG_TRIG_TOGGLE   0x0080

Definition at line 513 of file dp83640_driver.h.

◆ DP83640_PTP_TRIG_TRIG_WR

#define DP83640_PTP_TRIG_TRIG_WR   0x0001

Definition at line 515 of file dp83640_driver.h.

◆ DP83640_PTP_TSTS

#define DP83640_PTP_TSTS   0x17

Definition at line 89 of file dp83640_driver.h.

◆ DP83640_PTP_TSTS_TRIG0_ACTIVE

#define DP83640_PTP_TSTS_TRIG0_ACTIVE   0x0001

Definition at line 471 of file dp83640_driver.h.

◆ DP83640_PTP_TSTS_TRIG0_ERROR

#define DP83640_PTP_TSTS_TRIG0_ERROR   0x0002

Definition at line 470 of file dp83640_driver.h.

◆ DP83640_PTP_TSTS_TRIG1_ACTIVE

#define DP83640_PTP_TSTS_TRIG1_ACTIVE   0x0004

Definition at line 469 of file dp83640_driver.h.

◆ DP83640_PTP_TSTS_TRIG1_ERROR

#define DP83640_PTP_TSTS_TRIG1_ERROR   0x0008

Definition at line 468 of file dp83640_driver.h.

◆ DP83640_PTP_TSTS_TRIG2_ACTIVE

#define DP83640_PTP_TSTS_TRIG2_ACTIVE   0x0010

Definition at line 467 of file dp83640_driver.h.

◆ DP83640_PTP_TSTS_TRIG2_ERROR

#define DP83640_PTP_TSTS_TRIG2_ERROR   0x0020

Definition at line 466 of file dp83640_driver.h.

◆ DP83640_PTP_TSTS_TRIG3_ACTIVE

#define DP83640_PTP_TSTS_TRIG3_ACTIVE   0x0040

Definition at line 465 of file dp83640_driver.h.

◆ DP83640_PTP_TSTS_TRIG3_ERROR

#define DP83640_PTP_TSTS_TRIG3_ERROR   0x0080

Definition at line 464 of file dp83640_driver.h.

◆ DP83640_PTP_TSTS_TRIG4_ACTIVE

#define DP83640_PTP_TSTS_TRIG4_ACTIVE   0x0100

Definition at line 463 of file dp83640_driver.h.

◆ DP83640_PTP_TSTS_TRIG4_ERROR

#define DP83640_PTP_TSTS_TRIG4_ERROR   0x0200

Definition at line 462 of file dp83640_driver.h.

◆ DP83640_PTP_TSTS_TRIG5_ACTIVE

#define DP83640_PTP_TSTS_TRIG5_ACTIVE   0x0400

Definition at line 461 of file dp83640_driver.h.

◆ DP83640_PTP_TSTS_TRIG5_ERROR

#define DP83640_PTP_TSTS_TRIG5_ERROR   0x0800

Definition at line 460 of file dp83640_driver.h.

◆ DP83640_PTP_TSTS_TRIG6_ACTIVE

#define DP83640_PTP_TSTS_TRIG6_ACTIVE   0x2000

Definition at line 459 of file dp83640_driver.h.

◆ DP83640_PTP_TSTS_TRIG6_ERROR

#define DP83640_PTP_TSTS_TRIG6_ERROR   0x2000

Definition at line 458 of file dp83640_driver.h.

◆ DP83640_PTP_TSTS_TRIG7_ACTIVE

#define DP83640_PTP_TSTS_TRIG7_ACTIVE   0x4000

Definition at line 457 of file dp83640_driver.h.

◆ DP83640_PTP_TSTS_TRIG7_ERROR

#define DP83640_PTP_TSTS_TRIG7_ERROR   0x8000

Definition at line 456 of file dp83640_driver.h.

◆ DP83640_PTP_TXCFG0

#define DP83640_PTP_TXCFG0   0x16

Definition at line 102 of file dp83640_driver.h.

◆ DP83640_PTP_TXCFG0_CHK_1STEP

#define DP83640_PTP_TXCFG0_CHK_1STEP   0x0200

Definition at line 531 of file dp83640_driver.h.

◆ DP83640_PTP_TXCFG0_CRC_1STEP

#define DP83640_PTP_TXCFG0_CRC_1STEP   0x0400

Definition at line 530 of file dp83640_driver.h.

◆ DP83640_PTP_TXCFG0_DR_INSERT

#define DP83640_PTP_TXCFG0_DR_INSERT   0x2000

Definition at line 527 of file dp83640_driver.h.

◆ DP83640_PTP_TXCFG0_IGNORE_2STEP

#define DP83640_PTP_TXCFG0_IGNORE_2STEP   0x0800

Definition at line 529 of file dp83640_driver.h.

◆ DP83640_PTP_TXCFG0_IP1588_EN

#define DP83640_PTP_TXCFG0_IP1588_EN   0x0100

Definition at line 532 of file dp83640_driver.h.

◆ DP83640_PTP_TXCFG0_NTP_TS_EN

#define DP83640_PTP_TXCFG0_NTP_TS_EN   0x1000

Definition at line 528 of file dp83640_driver.h.

◆ DP83640_PTP_TXCFG0_SYNC_1STEP

#define DP83640_PTP_TXCFG0_SYNC_1STEP   0x8000

Definition at line 526 of file dp83640_driver.h.

◆ DP83640_PTP_TXCFG0_TX_IPV4_EN

#define DP83640_PTP_TXCFG0_TX_IPV4_EN   0x0020

Definition at line 535 of file dp83640_driver.h.

◆ DP83640_PTP_TXCFG0_TX_IPV6_EN

#define DP83640_PTP_TXCFG0_TX_IPV6_EN   0x0040

Definition at line 534 of file dp83640_driver.h.

◆ DP83640_PTP_TXCFG0_TX_L2_EN

#define DP83640_PTP_TXCFG0_TX_L2_EN   0x0080

Definition at line 533 of file dp83640_driver.h.

◆ DP83640_PTP_TXCFG0_TX_PTP_VER

#define DP83640_PTP_TXCFG0_TX_PTP_VER   0x001E

Definition at line 536 of file dp83640_driver.h.

◆ DP83640_PTP_TXCFG0_TX_TS_EN

#define DP83640_PTP_TXCFG0_TX_TS_EN   0x0001

Definition at line 537 of file dp83640_driver.h.

◆ DP83640_PTP_TXCFG1

#define DP83640_PTP_TXCFG1   0x17

Definition at line 103 of file dp83640_driver.h.

◆ DP83640_PTP_TXCFG1_BYTE0_DATA

#define DP83640_PTP_TXCFG1_BYTE0_DATA   0x00FF

Definition at line 541 of file dp83640_driver.h.

◆ DP83640_PTP_TXCFG1_BYTE0_MASK

#define DP83640_PTP_TXCFG1_BYTE0_MASK   0xFF00

Definition at line 540 of file dp83640_driver.h.

◆ DP83640_PTP_TXTS

#define DP83640_PTP_TXTS   0x1C

Definition at line 94 of file dp83640_driver.h.

◆ DP83640_PTP_WRCKSUM

#define DP83640_PTP_WRCKSUM   0x1B

Definition at line 93 of file dp83640_driver.h.

◆ DP83640_RBR

#define DP83640_RBR   0x17

Definition at line 60 of file dp83640_driver.h.

◆ DP83640_RBR_DIS_TX_OPT

#define DP83640_RBR_DIS_TX_OPT   0x2000

Definition at line 271 of file dp83640_driver.h.

◆ DP83640_RBR_ELAST_BUF

#define DP83640_RBR_ELAST_BUF   0x0003

Definition at line 279 of file dp83640_driver.h.

◆ DP83640_RBR_PMD_LOOP

#define DP83640_RBR_PMD_LOOP   0x0100

Definition at line 272 of file dp83640_driver.h.

◆ DP83640_RBR_RMII_MASTER

#define DP83640_RBR_RMII_MASTER   0x4000

Definition at line 270 of file dp83640_driver.h.

◆ DP83640_RBR_RMII_MODE

#define DP83640_RBR_RMII_MODE   0x0020

Definition at line 275 of file dp83640_driver.h.

◆ DP83640_RBR_RMII_REV1_0

#define DP83640_RBR_RMII_REV1_0   0x0010

Definition at line 276 of file dp83640_driver.h.

◆ DP83640_RBR_RX_OVF_STS

#define DP83640_RBR_RX_OVF_STS   0x0008

Definition at line 277 of file dp83640_driver.h.

◆ DP83640_RBR_RX_UNF_STS

#define DP83640_RBR_RX_UNF_STS   0x0004

Definition at line 278 of file dp83640_driver.h.

◆ DP83640_RBR_SCMII_RX

#define DP83640_RBR_SCMII_RX   0x0080

Definition at line 273 of file dp83640_driver.h.

◆ DP83640_RBR_SCMII_TX

#define DP83640_RBR_SCMII_TX   0x0040

Definition at line 274 of file dp83640_driver.h.

◆ DP83640_RECR

#define DP83640_RECR   0x15

Definition at line 58 of file dp83640_driver.h.

◆ DP83640_RECR_RXERCNT

#define DP83640_RECR_RXERCNT   0x00FF

Definition at line 254 of file dp83640_driver.h.

◆ DP83640_SD_CNFG

#define DP83640_SD_CNFG   0x1E

Definition at line 70 of file dp83640_driver.h.

◆ DP83640_SD_CNFG_SD_TIME

#define DP83640_SD_CNFG_SD_TIME   0x0100

Definition at line 362 of file dp83640_driver.h.

◆ DP83640_TDR_CTRL

#define DP83640_TDR_CTRL   0x16

Definition at line 75 of file dp83640_driver.h.

◆ DP83640_TDR_CTRL_RX_CHANNEL

#define DP83640_TDR_CTRL_RX_CHANNEL   0x1000

Definition at line 376 of file dp83640_driver.h.

◆ DP83640_TDR_CTRL_RX_THRESHOLD

#define DP83640_TDR_CTRL_RX_THRESHOLD   0x003F

Definition at line 380 of file dp83640_driver.h.

◆ DP83640_TDR_CTRL_SEND_TDR

#define DP83640_TDR_CTRL_SEND_TDR   0x0800

Definition at line 377 of file dp83640_driver.h.

◆ DP83640_TDR_CTRL_TDR_100MB

#define DP83640_TDR_CTRL_TDR_100MB   0x4000

Definition at line 374 of file dp83640_driver.h.

◆ DP83640_TDR_CTRL_TDR_ENABLE

#define DP83640_TDR_CTRL_TDR_ENABLE   0x8000

Definition at line 373 of file dp83640_driver.h.

◆ DP83640_TDR_CTRL_TDR_MIN_MODE

#define DP83640_TDR_CTRL_TDR_MIN_MODE   0x0080

Definition at line 379 of file dp83640_driver.h.

◆ DP83640_TDR_CTRL_TDR_WIDTH

#define DP83640_TDR_CTRL_TDR_WIDTH   0x0700

Definition at line 378 of file dp83640_driver.h.

◆ DP83640_TDR_CTRL_TX_CHANNEL

#define DP83640_TDR_CTRL_TX_CHANNEL   0x2000

Definition at line 375 of file dp83640_driver.h.

◆ DP83640_TDR_PEAK

#define DP83640_TDR_PEAK   0x18

Definition at line 77 of file dp83640_driver.h.

◆ DP83640_TDR_PEAK_TDR_PEAK

#define DP83640_TDR_PEAK_TDR_PEAK   0x3F00

Definition at line 387 of file dp83640_driver.h.

◆ DP83640_TDR_PEAK_TDR_PEAK_TIME

#define DP83640_TDR_PEAK_TDR_PEAK_TIME   0x00FF

Definition at line 388 of file dp83640_driver.h.

◆ DP83640_TDR_THR

#define DP83640_TDR_THR   0x19

Definition at line 78 of file dp83640_driver.h.

◆ DP83640_TDR_THR_TDR_THR_MET

#define DP83640_TDR_THR_TDR_THR_MET   0x0100

Definition at line 391 of file dp83640_driver.h.

◆ DP83640_TDR_THR_TDR_THR_TIME

#define DP83640_TDR_THR_TDR_THR_TIME   0x00FF

Definition at line 392 of file dp83640_driver.h.

◆ DP83640_TDR_WIN

#define DP83640_TDR_WIN   0x17

Definition at line 76 of file dp83640_driver.h.

◆ DP83640_TDR_WIN_TDR_START

#define DP83640_TDR_WIN_TDR_START   0xFF00

Definition at line 383 of file dp83640_driver.h.

◆ DP83640_TDR_WIN_TDR_STOP

#define DP83640_TDR_WIN_TDR_STOP   0x00FF

Definition at line 384 of file dp83640_driver.h.

◆ DP83640_VAR_CTRL

#define DP83640_VAR_CTRL   0x1A

Definition at line 79 of file dp83640_driver.h.

◆ DP83640_VAR_CTRL_VAR_ENABLE

#define DP83640_VAR_CTRL_VAR_ENABLE   0x0001

Definition at line 398 of file dp83640_driver.h.

◆ DP83640_VAR_CTRL_VAR_FREEZE

#define DP83640_VAR_CTRL_VAR_FREEZE   0x0008

Definition at line 396 of file dp83640_driver.h.

◆ DP83640_VAR_CTRL_VAR_RDY

#define DP83640_VAR_CTRL_VAR_RDY   0x8000

Definition at line 395 of file dp83640_driver.h.

◆ DP83640_VAR_CTRL_VAR_TIMER

#define DP83640_VAR_CTRL_VAR_TIMER   0x0006

Definition at line 397 of file dp83640_driver.h.

◆ DP83640_VAR_DAT

#define DP83640_VAR_DAT   0x1B

Definition at line 80 of file dp83640_driver.h.

Function Documentation

◆ dp83640DisableIrq()

void dp83640DisableIrq ( NetInterface interface)

Disable interrupts.

Parameters
[in]interfaceUnderlying network interface

Definition at line 180 of file dp83640_driver.c.

◆ dp83640DumpPhyReg()

void dp83640DumpPhyReg ( NetInterface interface)

Dump PHY registers for debugging purpose.

Parameters
[in]interfaceUnderlying network interface

Definition at line 277 of file dp83640_driver.c.

◆ dp83640EnableIrq()

void dp83640EnableIrq ( NetInterface interface)

Enable interrupts.

Parameters
[in]interfaceUnderlying network interface

Definition at line 165 of file dp83640_driver.c.

◆ dp83640EventHandler()

void dp83640EventHandler ( NetInterface interface)

DP83640 event handler.

Parameters
[in]interfaceUnderlying network interface

Definition at line 195 of file dp83640_driver.c.

◆ dp83640Init()

error_t dp83640Init ( NetInterface interface)

DP83640 PHY transceiver initialization.

Parameters
[in]interfaceUnderlying network interface
Returns
Error code

Definition at line 62 of file dp83640_driver.c.

◆ dp83640ReadPhyReg()

uint16_t dp83640ReadPhyReg ( NetInterface interface,
uint8_t  address 
)

Read PHY register.

Parameters
[in]interfaceUnderlying network interface
[in]addressPHY register address
Returns
Register value

Definition at line 264 of file dp83640_driver.c.

◆ dp83640Tick()

void dp83640Tick ( NetInterface interface)

DP83640 timer handler.

Parameters
[in]interfaceUnderlying network interface

Definition at line 127 of file dp83640_driver.c.

◆ dp83640WritePhyReg()

void dp83640WritePhyReg ( NetInterface interface,
uint8_t  address,
uint16_t  data 
)

Write PHY register.

Parameters
[in]interfaceUnderlying network interface
[in]addressPHY register address
[in]dataRegister value

Definition at line 248 of file dp83640_driver.c.

Variable Documentation

◆ dp83640PhyDriver

const PhyDriver dp83640PhyDriver

DP83640 Ethernet PHY driver.

Definition at line 44 of file dp83640_driver.c.