dp83825_driver.h File Reference

DP83825 Ethernet PHY driver. More...

#include "core/nic.h"

Go to the source code of this file.

Macros

#define DP83825_PHY_ADDR   0
 
#define DP83825_BMCR   0x00
 
#define DP83825_BMSR   0x01
 
#define DP83825_PHYIDR1   0x02
 
#define DP83825_PHYIDR2   0x03
 
#define DP83825_ANAR   0x04
 
#define DP83825_ANLPAR   0x05
 
#define DP83825_ANER   0x06
 
#define DP83825_ANNPTR   0x07
 
#define DP83825_ANLNPTR   0x08
 
#define DP83825_CR1   0x09
 
#define DP83825_CR2   0x0A
 
#define DP83825_CR3   0x0B
 
#define DP83825_REG_12   0x0C
 
#define DP83825_REGCR   0x0D
 
#define DP83825_ADDAR   0x0E
 
#define DP83825_FLDS   0x0F
 
#define DP83825_PHYSTS   0x10
 
#define DP83825_PHYSCR   0x11
 
#define DP83825_MISR1   0x12
 
#define DP83825_MISR2   0x13
 
#define DP83825_FCSCR   0x14
 
#define DP83825_RECR   0x15
 
#define DP83825_BISCR   0x16
 
#define DP83825_RCSR   0x17
 
#define DP83825_LEDCR   0x18
 
#define DP83825_PHYCR   0x19
 
#define DP83825_10BTSCR   0x1A
 
#define DP83825_BICSR1   0x1B
 
#define DP83825_BICSR2   0x1C
 
#define DP83825_CDCR   0x1E
 
#define DP83825_PHYRCR   0x1F
 
#define DP83825_MMD3_PCS_CTRL_1   0x03, 0x1000
 
#define DP83825_MMD3_PCS_STATUS_1   0x03, 0x1001
 
#define DP83825_MMD3_EEE_CAPABILITY   0x03, 0x1014
 
#define DP83825_MMD3_WAKE_ERR_CNT   0x03, 0x1016
 
#define DP83825_MMD7_EEE_ADVERTISEMENT   0x07, 0x203C
 
#define DP83825_MMD7_EEE_LP_ABILITY_Register   0x07, 0x203D
 
#define DP83825_MLEDCR   0x1F, 0x0025
 
#define DP83825_COMPT   0x1F, 0x0027
 
#define DP83825_REG_101   0x1F, 0x0101
 
#define DP83825_REG_10A   0x1F, 0x010A
 
#define DP83825_REG_123   0x1F, 0x0123
 
#define DP83825_REG_130   0x1F, 0x0130
 
#define DP83825_CDSCR   0x1F, 0x0170
 
#define DP83825_CDSCR2   0x1F, 0x0171
 
#define DP83825_TDR_172   0x1F, 0x0172
 
#define DP83825_CDSCR3   0x1F, 0x0173
 
#define DP83825_TDR_174   0x1F, 0x0174
 
#define DP83825_TDR_175   0x1F, 0x0175
 
#define DP83825_TDR_176   0x1F, 0x0176
 
#define DP83825_CDSCR4   0x1F, 0x0177
 
#define DP83825_TDR_178   0x1F, 0x0178
 
#define DP83825_CDLRR1   0x1F, 0x0180
 
#define DP83825_CDLRR2   0x1F, 0x0181
 
#define DP83825_CDLRR3   0x1F, 0x0182
 
#define DP83825_CDLRR4   0x1F, 0x0183
 
#define DP83825_CDLRR5   0x1F, 0x0184
 
#define DP83825_CDLAR1   0x1F, 0x0185
 
#define DP83825_CDLAR2   0x1F, 0x0186
 
#define DP83825_CDLAR3   0x1F, 0x0187
 
#define DP83825_CDLAR4   0x1F, 0x0188
 
#define DP83825_CDLAR5   0x1F, 0x0189
 
#define DP83825_CDLAR6   0x1F, 0x018A
 
#define DP83825_IO_CFG   0x1F, 0x0302
 
#define DP83825_SPARE_OUT   0x1F, 0x0308
 
#define DP83825_DAC_CFG_0   0x1F, 0x030B
 
#define DP83825_DAC_CFG_1   0x1F, 0x030C
 
#define DP83825_DSP_CFG_0   0x1F, 0x030F
 
#define DP83825_DSP_CFG_2   0x1F, 0x0311
 
#define DP83825_DSP_CFG_4   0x1F, 0x0313
 
#define DP83825_DSP_CFG_13   0x1F, 0x031C
 
#define DP83825_DSP_CFG_16   0x1F, 0x031F
 
#define DP83825_DSP_CFG_25   0x1F, 0x033C
 
#define DP83825_DSP_CFG_27   0x1F, 0x033E
 
#define DP83825_ANA_LD_PROG_SL   0x1F, 0x0404
 
#define DP83825_ANA_RX10BT_CTRL   0x1F, 0x040D
 
#define DP83825_REG_416   0x1F, 0x0416
 
#define DP83825_REG_429   0x1F, 0x0429
 
#define DP83825_GENCFG   0x1F, 0x0456
 
#define DP83825_LEDCFG   0x1F, 0x0460
 
#define DP83825_IOCTRL   0x1F, 0x0461
 
#define DP83825_SOR1   0x1F, 0x0467
 
#define DP83825_SOR2   0x1F, 0x0468
 
#define DP83825_REG_469   0x1F, 0x0469
 
#define DP83825_RXFCFG   0x1F, 0x04A0
 
#define DP83825_RXFS   0x1F, 0x04A1
 
#define DP83825_RXFPMD1   0x1F, 0x04A2
 
#define DP83825_RXFPMD2   0x1F, 0x04A3
 
#define DP83825_RXFPMD3   0x1F, 0x04A4
 
#define DP83825_REG_4CD   0x1F, 0x04CD
 
#define DP83825_REG_4CE   0x1F, 0x04CE
 
#define DP83825_REG_4CF   0x1F, 0x04CF
 
#define DP83825_EEECFG2   0x1F, 0x04D0
 
#define DP83825_EEECFG3   0x1F, 0x04D1
 
#define DP83825_REG_4D2   0x1F, 0x04D2
 
#define DP83825_REG_4D4   0x1F, 0x04D4
 
#define DP83825_DSP_100M_STEP_2   0x1F, 0x04D5
 
#define DP83825_DSP_100M_STEP_3   0x1F, 0x04D6
 
#define DP83825_DSP_100M_STEP_4   0x1F, 0x04D7
 
#define DP83825_BMCR_RESET   0x8000
 
#define DP83825_BMCR_LOOPBACK   0x4000
 
#define DP83825_BMCR_SPEED_SEL   0x2000
 
#define DP83825_BMCR_AN_EN   0x1000
 
#define DP83825_BMCR_POWER_DOWN   0x0800
 
#define DP83825_BMCR_ISOLATE   0x0400
 
#define DP83825_BMCR_RESTART_AN   0x0200
 
#define DP83825_BMCR_DUPLEX_MODE   0x0100
 
#define DP83825_BMCR_COL_TEST   0x0080
 
#define DP83825_BMSR_100BT4   0x8000
 
#define DP83825_BMSR_100BTX_FD   0x4000
 
#define DP83825_BMSR_100BTX_HD   0x2000
 
#define DP83825_BMSR_10BT_FD   0x1000
 
#define DP83825_BMSR_10BT_HD   0x0800
 
#define DP83825_BMSR_SMI_PREAMBLE_SUPPR   0x0040
 
#define DP83825_BMSR_AN_COMPLETE   0x0020
 
#define DP83825_BMSR_REMOTE_FAULT   0x0010
 
#define DP83825_BMSR_AN_CAPABLE   0x0008
 
#define DP83825_BMSR_LINK_STATUS   0x0004
 
#define DP83825_BMSR_JABBER_DETECT   0x0002
 
#define DP83825_BMSR_EXTENDED_CAPABLE   0x0001
 
#define DP83825_PHYIDR1_OUI_MSB   0xFFFF
 
#define DP83825_PHYIDR1_OUI_MSB_DEFAULT   0x2000
 
#define DP83825_PHYIDR2_OUI_LSB   0xFC00
 
#define DP83825_PHYIDR2_OUI_LSB_DEFAULT   0xA000
 
#define DP83825_PHYIDR2_MODEL_NUMBER   0x03F0
 
#define DP83825_PHYIDR2_MODEL_NUMBER_DEFAULT   0x0140
 
#define DP83825_PHYIDR2_REV_NUMBER   0x000F
 
#define DP83825_ANAR_NEXT_PAGE   0x8000
 
#define DP83825_ANAR_REMOTE_FAULT   0x2000
 
#define DP83825_ANAR_ASYM_DIR   0x0800
 
#define DP83825_ANAR_PAUSE   0x0400
 
#define DP83825_ANAR_100BT4   0x0200
 
#define DP83825_ANAR_100BTX_FD   0x0100
 
#define DP83825_ANAR_100BTX_HD   0x0080
 
#define DP83825_ANAR_10BT_FD   0x0040
 
#define DP83825_ANAR_10BT_HD   0x0020
 
#define DP83825_ANAR_SELECTOR   0x001F
 
#define DP83825_ANAR_SELECTOR_DEFAULT   0x0001
 
#define DP83825_ANLPAR_NEXT_PAGE   0x8000
 
#define DP83825_ANLPAR_ACK   0x4000
 
#define DP83825_ANLPAR_REMOTE_FAULT   0x2000
 
#define DP83825_ANLPAR_ASYM_DIR   0x0800
 
#define DP83825_ANLPAR_PAUSE   0x0400
 
#define DP83825_ANLPAR_100BT4   0x0200
 
#define DP83825_ANLPAR_100BTX_FD   0x0100
 
#define DP83825_ANLPAR_100BTX_HD   0x0080
 
#define DP83825_ANLPAR_10BT_FD   0x0040
 
#define DP83825_ANLPAR_10BT_HD   0x0020
 
#define DP83825_ANLPAR_SELECTOR   0x001F
 
#define DP83825_ANLPAR_SELECTOR_DEFAULT   0x0001
 
#define DP83825_ANER_PAR_DETECT_FAULT   0x0010
 
#define DP83825_ANER_LP_NEXT_PAGE_ABLE   0x0008
 
#define DP83825_ANER_NEXT_PAGE_ABLE   0x0004
 
#define DP83825_ANER_PAGE_RECEIVED   0x0002
 
#define DP83825_ANER_LP_AN_ABLE   0x0001
 
#define DP83825_ANNPTR_NEXT_PAGE   0x8000
 
#define DP83825_ANNPTR_MSG_PAGE   0x2000
 
#define DP83825_ANNPTR_ACK2   0x1000
 
#define DP83825_ANNPTR_TOGGLE   0x0800
 
#define DP83825_ANNPTR_CODE   0x07FF
 
#define DP83825_ANLNPTR_NEXT_PAGE   0x8000
 
#define DP83825_ANLNPTR_ACK   0x4000
 
#define DP83825_ANLNPTR_MSG_PAGE   0x2000
 
#define DP83825_ANLNPTR_ACK2   0x1000
 
#define DP83825_ANLNPTR_TOGGLE   0x0800
 
#define DP83825_ANLNPTR_MESSAGE   0x07FF
 
#define DP83825_CR1_RMII_ENHANCED_MODE   0x0200
 
#define DP83825_CR1_TDR_AUTO_RUN   0x0100
 
#define DP83825_CR1_ROBUST_AUTO_MDIX   0x0020
 
#define DP83825_CR1_FAST_RX_DV_DETECT   0x0002
 
#define DP83825_CR2_EXTENDED_FD_ABLE   0x0020
 
#define DP83825_CR2_RX_ER_DURING_IDLE   0x0004
 
#define DP83825_CR2_ODD_NIBBLE_DETECT_DIS   0x0002
 
#define DP83825_CR3_DESCRAMBLER_FAST_LINK_DOWN   0x0400
 
#define DP83825_CR3_POLARITY_SWAP   0x0040
 
#define DP83825_CR3_MDIX_SWAP   0x0020
 
#define DP83825_CR3_FAST_LINK_DOWN_MODE   0x000F
 
#define DP83825_REGCR_CMD   0xC000
 
#define DP83825_REGCR_CMD_ADDR   0x0000
 
#define DP83825_REGCR_CMD_DATA_NO_POST_INC   0x4000
 
#define DP83825_REGCR_CMD_DATA_POST_INC_RW   0x8000
 
#define DP83825_REGCR_CMD_DATA_POST_INC_W   0xC000
 
#define DP83825_REGCR_DEVAD   0x001F
 
#define DP83825_FLDS_FAST_LINK_DOWN_STATUS   0x01F0
 
#define DP83825_PHYSTS_MDIX_MODE   0x4000
 
#define DP83825_PHYSTS_RECEIVE_ERROR_LATCH   0x2000
 
#define DP83825_PHYSTS_POLARITY_STATUS   0x1000
 
#define DP83825_PHYSTS_FALSE_CARRIER_SENSE_LATCH   0x0800
 
#define DP83825_PHYSTS_SIGNAL_DETECT   0x0400
 
#define DP83825_PHYSTS_DESCRAMBLER_LOCK   0x0200
 
#define DP83825_PHYSTS_PAGE_RECEIVED   0x0100
 
#define DP83825_PHYSTS_MII_INTERRUPT   0x0080
 
#define DP83825_PHYSTS_REMOTE_FAULT   0x0040
 
#define DP83825_PHYSTS_JABBER_DETECT   0x0020
 
#define DP83825_PHYSTS_AN_STATUS   0x0010
 
#define DP83825_PHYSTS_LOOPBACK_STATUS   0x0008
 
#define DP83825_PHYSTS_DUPLEX_STATUS   0x0004
 
#define DP83825_PHYSTS_SPEED_STATUS   0x0002
 
#define DP83825_PHYSTS_LINK_STATUS   0x0001
 
#define DP83825_PHYSCR_PLL_DIS   0x8000
 
#define DP83825_PHYSCR_POWER_SAVE_MODE_EN   0x4000
 
#define DP83825_PHYSCR_POWER_SAVE_MODE   0x3000
 
#define DP83825_PHYSCR_SCRAMBLER_BYPASS   0x0800
 
#define DP83825_PHYSCR_LOOPBACK_FIFO_DEPTH   0x0300
 
#define DP83825_PHYSCR_INT_POLARITY   0x0008
 
#define DP83825_PHYSCR_TEST_INT   0x0004
 
#define DP83825_PHYSCR_INT_EN   0x0002
 
#define DP83825_PHYSCR_INT_OE   0x0001
 
#define DP83825_MISR1_LQ_INT   0x8000
 
#define DP83825_MISR1_ED_INT   0x4000
 
#define DP83825_MISR1_LINK_INT   0x2000
 
#define DP83825_MISR1_SPD_INT   0x1000
 
#define DP83825_MISR1_DUP_INT   0x0800
 
#define DP83825_MISR1_ANC_INT   0x0400
 
#define DP83825_MISR1_FHF_INT   0x0200
 
#define DP83825_MISR1_RHF_INT   0x0100
 
#define DP83825_MISR1_LQ_INT_EN   0x0080
 
#define DP83825_MISR1_ED_INT_EN   0x0040
 
#define DP83825_MISR1_LINK_INT_EN   0x0020
 
#define DP83825_MISR1_SPD_INT_EN   0x0010
 
#define DP83825_MISR1_DUP_INT_EN   0x0008
 
#define DP83825_MISR1_ANC_INT_EN   0x0004
 
#define DP83825_MISR1_FHF_INT_EN   0x0002
 
#define DP83825_MISR1_RHF_INT_EN   0x0001
 
#define DP83825_MISR2_EEE_ERROR_INT   0x8000
 
#define DP83825_MISR2_AN_ERROR_INT   0x4000
 
#define DP83825_MISR2_PR_INT   0x2000
 
#define DP83825_MISR2_FIFO_OF_UF_INT   0x1000
 
#define DP83825_MISR2_MDI_CHANGE_INT   0x0800
 
#define DP83825_MISR2_SLEEP_MODE_INT   0x0400
 
#define DP83825_MISR2_POL_CHANGE_INT   0x0200
 
#define DP83825_MISR2_JABBER_DETECT_INT   0x0100
 
#define DP83825_MISR2_EEE_ERROR_INT_EN   0x0080
 
#define DP83825_MISR2_AN_ERROR_INT_EN   0x0040
 
#define DP83825_MISR2_PR_INT_EN   0x0020
 
#define DP83825_MISR2_FIFO_OF_UF_INT_EN   0x0010
 
#define DP83825_MISR2_MDI_CHANGE_INT_EN   0x0008
 
#define DP83825_MISR2_SLEEP_MODE_INT_EN   0x0004
 
#define DP83825_MISR2_POL_CHANGE_INT_EN   0x0002
 
#define DP83825_MISR2_JABBER_DETECT_INT_EN   0x0001
 
#define DP83825_FCSCR_FCSCNT   0x00FF
 
#define DP83825_RECR_RXERCNT   0xFFFF
 
#define DP83825_BISCR_ERROR_COUNTER_MODE   0x4000
 
#define DP83825_BISCR_PRBS_CHECKER   0x2000
 
#define DP83825_BISCR_PACKET_GEN_EN   0x1000
 
#define DP83825_BISCR_PRBS_CHECKER_LOCK_SYNC   0x0800
 
#define DP83825_BISCR_PRBS_CHECKER_SYNC_LOSS   0x0400
 
#define DP83825_BISCR_PACKET_GEN_STATUS   0x0200
 
#define DP83825_BISCR_POWER_MODE   0x0100
 
#define DP83825_BISCR_TX_MII_LOOPBACK   0x0040
 
#define DP83825_BISCR_LOOPBACK_MODE   0x001F
 
#define DP83825_BISCR_LOOPBACK_MODE_PCS_INPUT   0x0001
 
#define DP83825_BISCR_LOOPBACK_MODE_PCS_OUTPUT   0x0002
 
#define DP83825_BISCR_LOOPBACK_MODE_DIGITAL   0x0004
 
#define DP83825_BISCR_LOOPBACK_MODE_ANALOG   0x0008
 
#define DP83825_BISCR_LOOPBACK_MODE_REVERSE   0x0010
 
#define DP83825_RCSR_RMII_TX_CLOCK_SHIFT   0x0100
 
#define DP83825_RCSR_RMII_CLK_SEL   0x0080
 
#define DP83825_RCSR_RMII_REV_SEL   0x0010
 
#define DP83825_RCSR_RMII_OVF_STATUS   0x0008
 
#define DP83825_RCSR_RMII_UNF_STATUS   0x0004
 
#define DP83825_RCSR_RX_ELAST_BUFFER_SIZE   0x0003
 
#define DP83825_RCSR_RX_ELAST_BUFFER_SIZE_14_BITS   0x0000
 
#define DP83825_RCSR_RX_ELAST_BUFFER_SIZE_2_BITS   0x0001
 
#define DP83825_RCSR_RX_ELAST_BUFFER_SIZE_6_BITS   0x0002
 
#define DP83825_RCSR_RX_ELAST_BUFFER_SIZE_10_BITS   0x0003
 
#define DP83825_LEDCR_BLINK_RATE   0x0600
 
#define DP83825_LEDCR_BLINK_RATE_20MHZ   0x0000
 
#define DP83825_LEDCR_BLINK_RATE_10MHZ   0x0200
 
#define DP83825_LEDCR_BLINK_RATE_5MHZ   0x0400
 
#define DP83825_LEDCR_BLINK_RATE_2MHZ   0x0600
 
#define DP83825_LEDCR_LED_LINK_POLARITY   0x0080
 
#define DP83825_LEDCR_DRIVE_LINK_LED   0x0010
 
#define DP83825_LEDCR_LINK_LED_ON_OFF   0x0002
 
#define DP83825_PHYCR_MDIX_EN   0x8000
 
#define DP83825_PHYCR_FORCE_MDIX   0x4000
 
#define DP83825_PHYCR_PAUSE_RX_STATUS   0x2000
 
#define DP83825_PHYCR_PAUSE_TX_STATUS   0x1000
 
#define DP83825_PHYCR_MII_LINK_STATUS   0x0800
 
#define DP83825_PHYCR_BYPASS_LED_STRETCH   0x0080
 
#define DP83825_PHYCR_LED_CONFIG   0x0020
 
#define DP83825_PHYCR_PHY_ADDR   0x001F
 
#define DP83825_10BTSCR_RX_THRESHOLD_EN   0x2000
 
#define DP83825_10BTSCR_SQUELCH   0x1E00
 
#define DP83825_10BTSCR_SQUELCH_200MV   0x0000
 
#define DP83825_10BTSCR_SQUELCH_250MV   0x0200
 
#define DP83825_10BTSCR_SQUELCH_300MV   0x0400
 
#define DP83825_10BTSCR_SQUELCH_350MV   0x0600
 
#define DP83825_10BTSCR_SQUELCH_400MV   0x0800
 
#define DP83825_10BTSCR_SQUELCH_450MV   0x0A00
 
#define DP83825_10BTSCR_SQUELCH_500MV   0x0C00
 
#define DP83825_10BTSCR_SQUELCH_550MV   0x0E00
 
#define DP83825_10BTSCR_SQUELCH_600MV   0x1000
 
#define DP83825_10BTSCR_NLP_DIS   0x0080
 
#define DP83825_10BTSCR_POLARITY_STATUS   0x0010
 
#define DP83825_10BTSCR_JABBER_DIS   0x0001
 
#define DP83825_BICSR1_BIST_ERROR_COUNT   0xFF00
 
#define DP83825_BICSR1_BIST_IPG_LENGTH   0x00FF
 
#define DP83825_BICSR2_BIST_PACKET_LENGTH   0x07FF
 
#define DP83825_CDCR_CABLE_DIAG_START   0x8000
 
#define DP83825_CDCR_CFG_RESCAL_EN   0x4000
 
#define DP83825_CDCR_CDCR_CABLE_DIAG_STATUS   0x0002
 
#define DP83825_CDCR_CDCR_CABLE_DIAG_TEST_FAIL   0x0001
 
#define DP83825_PHYRCR_SOFT_HARD_RESET   0x8000
 
#define DP83825_PHYRCR_DIGITAL_RESET   0x4000
 
#define DP83825_MLEDCR_MLED_POLARITY_SWAP   0x0200
 
#define DP83825_MLEDCR_LED0_CONFIG   0x0078
 
#define DP83825_MLEDCR_LED0_CONFIG_LINK   0x0000
 
#define DP83825_MLEDCR_LED0_CONFIG_ACT   0x0008
 
#define DP83825_MLEDCR_LED0_CONFIG_TX_ACT   0x0010
 
#define DP83825_MLEDCR_LED0_CONFIG_RX_ACT   0x0018
 
#define DP83825_MLEDCR_LED0_CONFIG_COL   0x0020
 
#define DP83825_MLEDCR_LED0_CONFIG_SPEED_100   0x0028
 
#define DP83825_MLEDCR_LED0_CONFIG_SPEED_10   0x0030
 
#define DP83825_MLEDCR_LED0_CONFIG_FD   0x0038
 
#define DP83825_MLEDCR_LED0_CONFIG_LINK_ACT   0x0040
 
#define DP83825_MLEDCR_LED0_CONFIG_ACT_STRETCH_SIG   0x0048
 
#define DP83825_MLEDCR_LED0_CONFIG_MII_LINK   0x0050
 
#define DP83825_MLEDCR_LED0_CONFIG_LPI_MODE   0x0058
 
#define DP83825_MLEDCR_LED0_CONFIG_MII_ERR   0x0060
 
#define DP83825_MLEDCR_LED0_CONFIG_LINK_LOST   0x0068
 
#define DP83825_MLEDCR_LED0_CONFIG_PRBS_ERR   0x0070
 
#define DP83825_MLEDCR_CFG_MLED_EN   0x0001
 

Functions

error_t dp83825Init (NetInterface *interface)
 DP83825 PHY transceiver initialization. More...
 
void dp83825InitHook (NetInterface *interface)
 DP83825 custom configuration. More...
 
void dp83825Tick (NetInterface *interface)
 DP83825 timer handler. More...
 
void dp83825EnableIrq (NetInterface *interface)
 Enable interrupts. More...
 
void dp83825DisableIrq (NetInterface *interface)
 Disable interrupts. More...
 
void dp83825EventHandler (NetInterface *interface)
 DP83825 event handler. More...
 
void dp83825WritePhyReg (NetInterface *interface, uint8_t address, uint16_t data)
 Write PHY register. More...
 
uint16_t dp83825ReadPhyReg (NetInterface *interface, uint8_t address)
 Read PHY register. More...
 
void dp83825DumpPhyReg (NetInterface *interface)
 Dump PHY registers for debugging purpose. More...
 
void dp83825WriteMmdReg (NetInterface *interface, uint8_t devAddr, uint16_t regAddr, uint16_t data)
 Write MMD register. More...
 
uint16_t dp83825ReadMmdReg (NetInterface *interface, uint8_t devAddr, uint16_t regAddr)
 Read MMD register. More...
 

Variables

const PhyDriver dp83825PhyDriver
 DP83825 Ethernet PHY driver. More...
 

Detailed Description

DP83825 Ethernet PHY driver.

License

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

Copyright (C) 2010-2024 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
2.4.4

Definition in file dp83825_driver.h.

Macro Definition Documentation

◆ DP83825_10BTSCR

#define DP83825_10BTSCR   0x1A

Definition at line 71 of file dp83825_driver.h.

◆ DP83825_10BTSCR_JABBER_DIS

#define DP83825_10BTSCR_JABBER_DIS   0x0001

Definition at line 392 of file dp83825_driver.h.

◆ DP83825_10BTSCR_NLP_DIS

#define DP83825_10BTSCR_NLP_DIS   0x0080

Definition at line 390 of file dp83825_driver.h.

◆ DP83825_10BTSCR_POLARITY_STATUS

#define DP83825_10BTSCR_POLARITY_STATUS   0x0010

Definition at line 391 of file dp83825_driver.h.

◆ DP83825_10BTSCR_RX_THRESHOLD_EN

#define DP83825_10BTSCR_RX_THRESHOLD_EN   0x2000

Definition at line 379 of file dp83825_driver.h.

◆ DP83825_10BTSCR_SQUELCH

#define DP83825_10BTSCR_SQUELCH   0x1E00

Definition at line 380 of file dp83825_driver.h.

◆ DP83825_10BTSCR_SQUELCH_200MV

#define DP83825_10BTSCR_SQUELCH_200MV   0x0000

Definition at line 381 of file dp83825_driver.h.

◆ DP83825_10BTSCR_SQUELCH_250MV

#define DP83825_10BTSCR_SQUELCH_250MV   0x0200

Definition at line 382 of file dp83825_driver.h.

◆ DP83825_10BTSCR_SQUELCH_300MV

#define DP83825_10BTSCR_SQUELCH_300MV   0x0400

Definition at line 383 of file dp83825_driver.h.

◆ DP83825_10BTSCR_SQUELCH_350MV

#define DP83825_10BTSCR_SQUELCH_350MV   0x0600

Definition at line 384 of file dp83825_driver.h.

◆ DP83825_10BTSCR_SQUELCH_400MV

#define DP83825_10BTSCR_SQUELCH_400MV   0x0800

Definition at line 385 of file dp83825_driver.h.

◆ DP83825_10BTSCR_SQUELCH_450MV

#define DP83825_10BTSCR_SQUELCH_450MV   0x0A00

Definition at line 386 of file dp83825_driver.h.

◆ DP83825_10BTSCR_SQUELCH_500MV

#define DP83825_10BTSCR_SQUELCH_500MV   0x0C00

Definition at line 387 of file dp83825_driver.h.

◆ DP83825_10BTSCR_SQUELCH_550MV

#define DP83825_10BTSCR_SQUELCH_550MV   0x0E00

Definition at line 388 of file dp83825_driver.h.

◆ DP83825_10BTSCR_SQUELCH_600MV

#define DP83825_10BTSCR_SQUELCH_600MV   0x1000

Definition at line 389 of file dp83825_driver.h.

◆ DP83825_ADDAR

#define DP83825_ADDAR   0x0E

Definition at line 59 of file dp83825_driver.h.

◆ DP83825_ANA_LD_PROG_SL

#define DP83825_ANA_LD_PROG_SL   0x1F, 0x0404

Definition at line 121 of file dp83825_driver.h.

◆ DP83825_ANA_RX10BT_CTRL

#define DP83825_ANA_RX10BT_CTRL   0x1F, 0x040D

Definition at line 122 of file dp83825_driver.h.

◆ DP83825_ANAR

#define DP83825_ANAR   0x04

Definition at line 49 of file dp83825_driver.h.

◆ DP83825_ANAR_100BT4

#define DP83825_ANAR_100BT4   0x0200

Definition at line 188 of file dp83825_driver.h.

◆ DP83825_ANAR_100BTX_FD

#define DP83825_ANAR_100BTX_FD   0x0100

Definition at line 189 of file dp83825_driver.h.

◆ DP83825_ANAR_100BTX_HD

#define DP83825_ANAR_100BTX_HD   0x0080

Definition at line 190 of file dp83825_driver.h.

◆ DP83825_ANAR_10BT_FD

#define DP83825_ANAR_10BT_FD   0x0040

Definition at line 191 of file dp83825_driver.h.

◆ DP83825_ANAR_10BT_HD

#define DP83825_ANAR_10BT_HD   0x0020

Definition at line 192 of file dp83825_driver.h.

◆ DP83825_ANAR_ASYM_DIR

#define DP83825_ANAR_ASYM_DIR   0x0800

Definition at line 186 of file dp83825_driver.h.

◆ DP83825_ANAR_NEXT_PAGE

#define DP83825_ANAR_NEXT_PAGE   0x8000

Definition at line 184 of file dp83825_driver.h.

◆ DP83825_ANAR_PAUSE

#define DP83825_ANAR_PAUSE   0x0400

Definition at line 187 of file dp83825_driver.h.

◆ DP83825_ANAR_REMOTE_FAULT

#define DP83825_ANAR_REMOTE_FAULT   0x2000

Definition at line 185 of file dp83825_driver.h.

◆ DP83825_ANAR_SELECTOR

#define DP83825_ANAR_SELECTOR   0x001F

Definition at line 193 of file dp83825_driver.h.

◆ DP83825_ANAR_SELECTOR_DEFAULT

#define DP83825_ANAR_SELECTOR_DEFAULT   0x0001

Definition at line 194 of file dp83825_driver.h.

◆ DP83825_ANER

#define DP83825_ANER   0x06

Definition at line 51 of file dp83825_driver.h.

◆ DP83825_ANER_LP_AN_ABLE

#define DP83825_ANER_LP_AN_ABLE   0x0001

Definition at line 215 of file dp83825_driver.h.

◆ DP83825_ANER_LP_NEXT_PAGE_ABLE

#define DP83825_ANER_LP_NEXT_PAGE_ABLE   0x0008

Definition at line 212 of file dp83825_driver.h.

◆ DP83825_ANER_NEXT_PAGE_ABLE

#define DP83825_ANER_NEXT_PAGE_ABLE   0x0004

Definition at line 213 of file dp83825_driver.h.

◆ DP83825_ANER_PAGE_RECEIVED

#define DP83825_ANER_PAGE_RECEIVED   0x0002

Definition at line 214 of file dp83825_driver.h.

◆ DP83825_ANER_PAR_DETECT_FAULT

#define DP83825_ANER_PAR_DETECT_FAULT   0x0010

Definition at line 211 of file dp83825_driver.h.

◆ DP83825_ANLNPTR

#define DP83825_ANLNPTR   0x08

Definition at line 53 of file dp83825_driver.h.

◆ DP83825_ANLNPTR_ACK

#define DP83825_ANLNPTR_ACK   0x4000

Definition at line 226 of file dp83825_driver.h.

◆ DP83825_ANLNPTR_ACK2

#define DP83825_ANLNPTR_ACK2   0x1000

Definition at line 228 of file dp83825_driver.h.

◆ DP83825_ANLNPTR_MESSAGE

#define DP83825_ANLNPTR_MESSAGE   0x07FF

Definition at line 230 of file dp83825_driver.h.

◆ DP83825_ANLNPTR_MSG_PAGE

#define DP83825_ANLNPTR_MSG_PAGE   0x2000

Definition at line 227 of file dp83825_driver.h.

◆ DP83825_ANLNPTR_NEXT_PAGE

#define DP83825_ANLNPTR_NEXT_PAGE   0x8000

Definition at line 225 of file dp83825_driver.h.

◆ DP83825_ANLNPTR_TOGGLE

#define DP83825_ANLNPTR_TOGGLE   0x0800

Definition at line 229 of file dp83825_driver.h.

◆ DP83825_ANLPAR

#define DP83825_ANLPAR   0x05

Definition at line 50 of file dp83825_driver.h.

◆ DP83825_ANLPAR_100BT4

#define DP83825_ANLPAR_100BT4   0x0200

Definition at line 202 of file dp83825_driver.h.

◆ DP83825_ANLPAR_100BTX_FD

#define DP83825_ANLPAR_100BTX_FD   0x0100

Definition at line 203 of file dp83825_driver.h.

◆ DP83825_ANLPAR_100BTX_HD

#define DP83825_ANLPAR_100BTX_HD   0x0080

Definition at line 204 of file dp83825_driver.h.

◆ DP83825_ANLPAR_10BT_FD

#define DP83825_ANLPAR_10BT_FD   0x0040

Definition at line 205 of file dp83825_driver.h.

◆ DP83825_ANLPAR_10BT_HD

#define DP83825_ANLPAR_10BT_HD   0x0020

Definition at line 206 of file dp83825_driver.h.

◆ DP83825_ANLPAR_ACK

#define DP83825_ANLPAR_ACK   0x4000

Definition at line 198 of file dp83825_driver.h.

◆ DP83825_ANLPAR_ASYM_DIR

#define DP83825_ANLPAR_ASYM_DIR   0x0800

Definition at line 200 of file dp83825_driver.h.

◆ DP83825_ANLPAR_NEXT_PAGE

#define DP83825_ANLPAR_NEXT_PAGE   0x8000

Definition at line 197 of file dp83825_driver.h.

◆ DP83825_ANLPAR_PAUSE

#define DP83825_ANLPAR_PAUSE   0x0400

Definition at line 201 of file dp83825_driver.h.

◆ DP83825_ANLPAR_REMOTE_FAULT

#define DP83825_ANLPAR_REMOTE_FAULT   0x2000

Definition at line 199 of file dp83825_driver.h.

◆ DP83825_ANLPAR_SELECTOR

#define DP83825_ANLPAR_SELECTOR   0x001F

Definition at line 207 of file dp83825_driver.h.

◆ DP83825_ANLPAR_SELECTOR_DEFAULT

#define DP83825_ANLPAR_SELECTOR_DEFAULT   0x0001

Definition at line 208 of file dp83825_driver.h.

◆ DP83825_ANNPTR

#define DP83825_ANNPTR   0x07

Definition at line 52 of file dp83825_driver.h.

◆ DP83825_ANNPTR_ACK2

#define DP83825_ANNPTR_ACK2   0x1000

Definition at line 220 of file dp83825_driver.h.

◆ DP83825_ANNPTR_CODE

#define DP83825_ANNPTR_CODE   0x07FF

Definition at line 222 of file dp83825_driver.h.

◆ DP83825_ANNPTR_MSG_PAGE

#define DP83825_ANNPTR_MSG_PAGE   0x2000

Definition at line 219 of file dp83825_driver.h.

◆ DP83825_ANNPTR_NEXT_PAGE

#define DP83825_ANNPTR_NEXT_PAGE   0x8000

Definition at line 218 of file dp83825_driver.h.

◆ DP83825_ANNPTR_TOGGLE

#define DP83825_ANNPTR_TOGGLE   0x0800

Definition at line 221 of file dp83825_driver.h.

◆ DP83825_BICSR1

#define DP83825_BICSR1   0x1B

Definition at line 72 of file dp83825_driver.h.

◆ DP83825_BICSR1_BIST_ERROR_COUNT

#define DP83825_BICSR1_BIST_ERROR_COUNT   0xFF00

Definition at line 395 of file dp83825_driver.h.

◆ DP83825_BICSR1_BIST_IPG_LENGTH

#define DP83825_BICSR1_BIST_IPG_LENGTH   0x00FF

Definition at line 396 of file dp83825_driver.h.

◆ DP83825_BICSR2

#define DP83825_BICSR2   0x1C

Definition at line 73 of file dp83825_driver.h.

◆ DP83825_BICSR2_BIST_PACKET_LENGTH

#define DP83825_BICSR2_BIST_PACKET_LENGTH   0x07FF

Definition at line 399 of file dp83825_driver.h.

◆ DP83825_BISCR

#define DP83825_BISCR   0x16

Definition at line 67 of file dp83825_driver.h.

◆ DP83825_BISCR_ERROR_COUNTER_MODE

#define DP83825_BISCR_ERROR_COUNTER_MODE   0x4000

Definition at line 331 of file dp83825_driver.h.

◆ DP83825_BISCR_LOOPBACK_MODE

#define DP83825_BISCR_LOOPBACK_MODE   0x001F

Definition at line 339 of file dp83825_driver.h.

◆ DP83825_BISCR_LOOPBACK_MODE_ANALOG

#define DP83825_BISCR_LOOPBACK_MODE_ANALOG   0x0008

Definition at line 343 of file dp83825_driver.h.

◆ DP83825_BISCR_LOOPBACK_MODE_DIGITAL

#define DP83825_BISCR_LOOPBACK_MODE_DIGITAL   0x0004

Definition at line 342 of file dp83825_driver.h.

◆ DP83825_BISCR_LOOPBACK_MODE_PCS_INPUT

#define DP83825_BISCR_LOOPBACK_MODE_PCS_INPUT   0x0001

Definition at line 340 of file dp83825_driver.h.

◆ DP83825_BISCR_LOOPBACK_MODE_PCS_OUTPUT

#define DP83825_BISCR_LOOPBACK_MODE_PCS_OUTPUT   0x0002

Definition at line 341 of file dp83825_driver.h.

◆ DP83825_BISCR_LOOPBACK_MODE_REVERSE

#define DP83825_BISCR_LOOPBACK_MODE_REVERSE   0x0010

Definition at line 344 of file dp83825_driver.h.

◆ DP83825_BISCR_PACKET_GEN_EN

#define DP83825_BISCR_PACKET_GEN_EN   0x1000

Definition at line 333 of file dp83825_driver.h.

◆ DP83825_BISCR_PACKET_GEN_STATUS

#define DP83825_BISCR_PACKET_GEN_STATUS   0x0200

Definition at line 336 of file dp83825_driver.h.

◆ DP83825_BISCR_POWER_MODE

#define DP83825_BISCR_POWER_MODE   0x0100

Definition at line 337 of file dp83825_driver.h.

◆ DP83825_BISCR_PRBS_CHECKER

#define DP83825_BISCR_PRBS_CHECKER   0x2000

Definition at line 332 of file dp83825_driver.h.

◆ DP83825_BISCR_PRBS_CHECKER_LOCK_SYNC

#define DP83825_BISCR_PRBS_CHECKER_LOCK_SYNC   0x0800

Definition at line 334 of file dp83825_driver.h.

◆ DP83825_BISCR_PRBS_CHECKER_SYNC_LOSS

#define DP83825_BISCR_PRBS_CHECKER_SYNC_LOSS   0x0400

Definition at line 335 of file dp83825_driver.h.

◆ DP83825_BISCR_TX_MII_LOOPBACK

#define DP83825_BISCR_TX_MII_LOOPBACK   0x0040

Definition at line 338 of file dp83825_driver.h.

◆ DP83825_BMCR

#define DP83825_BMCR   0x00

Definition at line 45 of file dp83825_driver.h.

◆ DP83825_BMCR_AN_EN

#define DP83825_BMCR_AN_EN   0x1000

Definition at line 151 of file dp83825_driver.h.

◆ DP83825_BMCR_COL_TEST

#define DP83825_BMCR_COL_TEST   0x0080

Definition at line 156 of file dp83825_driver.h.

◆ DP83825_BMCR_DUPLEX_MODE

#define DP83825_BMCR_DUPLEX_MODE   0x0100

Definition at line 155 of file dp83825_driver.h.

◆ DP83825_BMCR_ISOLATE

#define DP83825_BMCR_ISOLATE   0x0400

Definition at line 153 of file dp83825_driver.h.

◆ DP83825_BMCR_LOOPBACK

#define DP83825_BMCR_LOOPBACK   0x4000

Definition at line 149 of file dp83825_driver.h.

◆ DP83825_BMCR_POWER_DOWN

#define DP83825_BMCR_POWER_DOWN   0x0800

Definition at line 152 of file dp83825_driver.h.

◆ DP83825_BMCR_RESET

#define DP83825_BMCR_RESET   0x8000

Definition at line 148 of file dp83825_driver.h.

◆ DP83825_BMCR_RESTART_AN

#define DP83825_BMCR_RESTART_AN   0x0200

Definition at line 154 of file dp83825_driver.h.

◆ DP83825_BMCR_SPEED_SEL

#define DP83825_BMCR_SPEED_SEL   0x2000

Definition at line 150 of file dp83825_driver.h.

◆ DP83825_BMSR

#define DP83825_BMSR   0x01

Definition at line 46 of file dp83825_driver.h.

◆ DP83825_BMSR_100BT4

#define DP83825_BMSR_100BT4   0x8000

Definition at line 159 of file dp83825_driver.h.

◆ DP83825_BMSR_100BTX_FD

#define DP83825_BMSR_100BTX_FD   0x4000

Definition at line 160 of file dp83825_driver.h.

◆ DP83825_BMSR_100BTX_HD

#define DP83825_BMSR_100BTX_HD   0x2000

Definition at line 161 of file dp83825_driver.h.

◆ DP83825_BMSR_10BT_FD

#define DP83825_BMSR_10BT_FD   0x1000

Definition at line 162 of file dp83825_driver.h.

◆ DP83825_BMSR_10BT_HD

#define DP83825_BMSR_10BT_HD   0x0800

Definition at line 163 of file dp83825_driver.h.

◆ DP83825_BMSR_AN_CAPABLE

#define DP83825_BMSR_AN_CAPABLE   0x0008

Definition at line 167 of file dp83825_driver.h.

◆ DP83825_BMSR_AN_COMPLETE

#define DP83825_BMSR_AN_COMPLETE   0x0020

Definition at line 165 of file dp83825_driver.h.

◆ DP83825_BMSR_EXTENDED_CAPABLE

#define DP83825_BMSR_EXTENDED_CAPABLE   0x0001

Definition at line 170 of file dp83825_driver.h.

◆ DP83825_BMSR_JABBER_DETECT

#define DP83825_BMSR_JABBER_DETECT   0x0002

Definition at line 169 of file dp83825_driver.h.

◆ DP83825_BMSR_LINK_STATUS

#define DP83825_BMSR_LINK_STATUS   0x0004

Definition at line 168 of file dp83825_driver.h.

◆ DP83825_BMSR_REMOTE_FAULT

#define DP83825_BMSR_REMOTE_FAULT   0x0010

Definition at line 166 of file dp83825_driver.h.

◆ DP83825_BMSR_SMI_PREAMBLE_SUPPR

#define DP83825_BMSR_SMI_PREAMBLE_SUPPR   0x0040

Definition at line 164 of file dp83825_driver.h.

◆ DP83825_CDCR

#define DP83825_CDCR   0x1E

Definition at line 74 of file dp83825_driver.h.

◆ DP83825_CDCR_CABLE_DIAG_START

#define DP83825_CDCR_CABLE_DIAG_START   0x8000

Definition at line 402 of file dp83825_driver.h.

◆ DP83825_CDCR_CDCR_CABLE_DIAG_STATUS

#define DP83825_CDCR_CDCR_CABLE_DIAG_STATUS   0x0002

Definition at line 404 of file dp83825_driver.h.

◆ DP83825_CDCR_CDCR_CABLE_DIAG_TEST_FAIL

#define DP83825_CDCR_CDCR_CABLE_DIAG_TEST_FAIL   0x0001

Definition at line 405 of file dp83825_driver.h.

◆ DP83825_CDCR_CFG_RESCAL_EN

#define DP83825_CDCR_CFG_RESCAL_EN   0x4000

Definition at line 403 of file dp83825_driver.h.

◆ DP83825_CDLAR1

#define DP83825_CDLAR1   0x1F, 0x0185

Definition at line 104 of file dp83825_driver.h.

◆ DP83825_CDLAR2

#define DP83825_CDLAR2   0x1F, 0x0186

Definition at line 105 of file dp83825_driver.h.

◆ DP83825_CDLAR3

#define DP83825_CDLAR3   0x1F, 0x0187

Definition at line 106 of file dp83825_driver.h.

◆ DP83825_CDLAR4

#define DP83825_CDLAR4   0x1F, 0x0188

Definition at line 107 of file dp83825_driver.h.

◆ DP83825_CDLAR5

#define DP83825_CDLAR5   0x1F, 0x0189

Definition at line 108 of file dp83825_driver.h.

◆ DP83825_CDLAR6

#define DP83825_CDLAR6   0x1F, 0x018A

Definition at line 109 of file dp83825_driver.h.

◆ DP83825_CDLRR1

#define DP83825_CDLRR1   0x1F, 0x0180

Definition at line 99 of file dp83825_driver.h.

◆ DP83825_CDLRR2

#define DP83825_CDLRR2   0x1F, 0x0181

Definition at line 100 of file dp83825_driver.h.

◆ DP83825_CDLRR3

#define DP83825_CDLRR3   0x1F, 0x0182

Definition at line 101 of file dp83825_driver.h.

◆ DP83825_CDLRR4

#define DP83825_CDLRR4   0x1F, 0x0183

Definition at line 102 of file dp83825_driver.h.

◆ DP83825_CDLRR5

#define DP83825_CDLRR5   0x1F, 0x0184

Definition at line 103 of file dp83825_driver.h.

◆ DP83825_CDSCR

#define DP83825_CDSCR   0x1F, 0x0170

Definition at line 90 of file dp83825_driver.h.

◆ DP83825_CDSCR2

#define DP83825_CDSCR2   0x1F, 0x0171

Definition at line 91 of file dp83825_driver.h.

◆ DP83825_CDSCR3

#define DP83825_CDSCR3   0x1F, 0x0173

Definition at line 93 of file dp83825_driver.h.

◆ DP83825_CDSCR4

#define DP83825_CDSCR4   0x1F, 0x0177

Definition at line 97 of file dp83825_driver.h.

◆ DP83825_COMPT

#define DP83825_COMPT   0x1F, 0x0027

Definition at line 85 of file dp83825_driver.h.

◆ DP83825_CR1

#define DP83825_CR1   0x09

Definition at line 54 of file dp83825_driver.h.

◆ DP83825_CR1_FAST_RX_DV_DETECT

#define DP83825_CR1_FAST_RX_DV_DETECT   0x0002

Definition at line 236 of file dp83825_driver.h.

◆ DP83825_CR1_RMII_ENHANCED_MODE

#define DP83825_CR1_RMII_ENHANCED_MODE   0x0200

Definition at line 233 of file dp83825_driver.h.

◆ DP83825_CR1_ROBUST_AUTO_MDIX

#define DP83825_CR1_ROBUST_AUTO_MDIX   0x0020

Definition at line 235 of file dp83825_driver.h.

◆ DP83825_CR1_TDR_AUTO_RUN

#define DP83825_CR1_TDR_AUTO_RUN   0x0100

Definition at line 234 of file dp83825_driver.h.

◆ DP83825_CR2

#define DP83825_CR2   0x0A

Definition at line 55 of file dp83825_driver.h.

◆ DP83825_CR2_EXTENDED_FD_ABLE

#define DP83825_CR2_EXTENDED_FD_ABLE   0x0020

Definition at line 239 of file dp83825_driver.h.

◆ DP83825_CR2_ODD_NIBBLE_DETECT_DIS

#define DP83825_CR2_ODD_NIBBLE_DETECT_DIS   0x0002

Definition at line 241 of file dp83825_driver.h.

◆ DP83825_CR2_RX_ER_DURING_IDLE

#define DP83825_CR2_RX_ER_DURING_IDLE   0x0004

Definition at line 240 of file dp83825_driver.h.

◆ DP83825_CR3

#define DP83825_CR3   0x0B

Definition at line 56 of file dp83825_driver.h.

◆ DP83825_CR3_DESCRAMBLER_FAST_LINK_DOWN

#define DP83825_CR3_DESCRAMBLER_FAST_LINK_DOWN   0x0400

Definition at line 244 of file dp83825_driver.h.

◆ DP83825_CR3_FAST_LINK_DOWN_MODE

#define DP83825_CR3_FAST_LINK_DOWN_MODE   0x000F

Definition at line 247 of file dp83825_driver.h.

◆ DP83825_CR3_MDIX_SWAP

#define DP83825_CR3_MDIX_SWAP   0x0020

Definition at line 246 of file dp83825_driver.h.

◆ DP83825_CR3_POLARITY_SWAP

#define DP83825_CR3_POLARITY_SWAP   0x0040

Definition at line 245 of file dp83825_driver.h.

◆ DP83825_DAC_CFG_0

#define DP83825_DAC_CFG_0   0x1F, 0x030B

Definition at line 112 of file dp83825_driver.h.

◆ DP83825_DAC_CFG_1

#define DP83825_DAC_CFG_1   0x1F, 0x030C

Definition at line 113 of file dp83825_driver.h.

◆ DP83825_DSP_100M_STEP_2

#define DP83825_DSP_100M_STEP_2   0x1F, 0x04D5

Definition at line 143 of file dp83825_driver.h.

◆ DP83825_DSP_100M_STEP_3

#define DP83825_DSP_100M_STEP_3   0x1F, 0x04D6

Definition at line 144 of file dp83825_driver.h.

◆ DP83825_DSP_100M_STEP_4

#define DP83825_DSP_100M_STEP_4   0x1F, 0x04D7

Definition at line 145 of file dp83825_driver.h.

◆ DP83825_DSP_CFG_0

#define DP83825_DSP_CFG_0   0x1F, 0x030F

Definition at line 114 of file dp83825_driver.h.

◆ DP83825_DSP_CFG_13

#define DP83825_DSP_CFG_13   0x1F, 0x031C

Definition at line 117 of file dp83825_driver.h.

◆ DP83825_DSP_CFG_16

#define DP83825_DSP_CFG_16   0x1F, 0x031F

Definition at line 118 of file dp83825_driver.h.

◆ DP83825_DSP_CFG_2

#define DP83825_DSP_CFG_2   0x1F, 0x0311

Definition at line 115 of file dp83825_driver.h.

◆ DP83825_DSP_CFG_25

#define DP83825_DSP_CFG_25   0x1F, 0x033C

Definition at line 119 of file dp83825_driver.h.

◆ DP83825_DSP_CFG_27

#define DP83825_DSP_CFG_27   0x1F, 0x033E

Definition at line 120 of file dp83825_driver.h.

◆ DP83825_DSP_CFG_4

#define DP83825_DSP_CFG_4   0x1F, 0x0313

Definition at line 116 of file dp83825_driver.h.

◆ DP83825_EEECFG2

#define DP83825_EEECFG2   0x1F, 0x04D0

Definition at line 139 of file dp83825_driver.h.

◆ DP83825_EEECFG3

#define DP83825_EEECFG3   0x1F, 0x04D1

Definition at line 140 of file dp83825_driver.h.

◆ DP83825_FCSCR

#define DP83825_FCSCR   0x14

Definition at line 65 of file dp83825_driver.h.

◆ DP83825_FCSCR_FCSCNT

#define DP83825_FCSCR_FCSCNT   0x00FF

Definition at line 325 of file dp83825_driver.h.

◆ DP83825_FLDS

#define DP83825_FLDS   0x0F

Definition at line 60 of file dp83825_driver.h.

◆ DP83825_FLDS_FAST_LINK_DOWN_STATUS

#define DP83825_FLDS_FAST_LINK_DOWN_STATUS   0x01F0

Definition at line 258 of file dp83825_driver.h.

◆ DP83825_GENCFG

#define DP83825_GENCFG   0x1F, 0x0456

Definition at line 125 of file dp83825_driver.h.

◆ DP83825_IO_CFG

#define DP83825_IO_CFG   0x1F, 0x0302

Definition at line 110 of file dp83825_driver.h.

◆ DP83825_IOCTRL

#define DP83825_IOCTRL   0x1F, 0x0461

Definition at line 127 of file dp83825_driver.h.

◆ DP83825_LEDCFG

#define DP83825_LEDCFG   0x1F, 0x0460

Definition at line 126 of file dp83825_driver.h.

◆ DP83825_LEDCR

#define DP83825_LEDCR   0x18

Definition at line 69 of file dp83825_driver.h.

◆ DP83825_LEDCR_BLINK_RATE

#define DP83825_LEDCR_BLINK_RATE   0x0600

Definition at line 359 of file dp83825_driver.h.

◆ DP83825_LEDCR_BLINK_RATE_10MHZ

#define DP83825_LEDCR_BLINK_RATE_10MHZ   0x0200

Definition at line 361 of file dp83825_driver.h.

◆ DP83825_LEDCR_BLINK_RATE_20MHZ

#define DP83825_LEDCR_BLINK_RATE_20MHZ   0x0000

Definition at line 360 of file dp83825_driver.h.

◆ DP83825_LEDCR_BLINK_RATE_2MHZ

#define DP83825_LEDCR_BLINK_RATE_2MHZ   0x0600

Definition at line 363 of file dp83825_driver.h.

◆ DP83825_LEDCR_BLINK_RATE_5MHZ

#define DP83825_LEDCR_BLINK_RATE_5MHZ   0x0400

Definition at line 362 of file dp83825_driver.h.

◆ DP83825_LEDCR_DRIVE_LINK_LED

#define DP83825_LEDCR_DRIVE_LINK_LED   0x0010

Definition at line 365 of file dp83825_driver.h.

◆ DP83825_LEDCR_LED_LINK_POLARITY

#define DP83825_LEDCR_LED_LINK_POLARITY   0x0080

Definition at line 364 of file dp83825_driver.h.

◆ DP83825_LEDCR_LINK_LED_ON_OFF

#define DP83825_LEDCR_LINK_LED_ON_OFF   0x0002

Definition at line 366 of file dp83825_driver.h.

◆ DP83825_MISR1

#define DP83825_MISR1   0x12

Definition at line 63 of file dp83825_driver.h.

◆ DP83825_MISR1_ANC_INT

#define DP83825_MISR1_ANC_INT   0x0400

Definition at line 294 of file dp83825_driver.h.

◆ DP83825_MISR1_ANC_INT_EN

#define DP83825_MISR1_ANC_INT_EN   0x0004

Definition at line 302 of file dp83825_driver.h.

◆ DP83825_MISR1_DUP_INT

#define DP83825_MISR1_DUP_INT   0x0800

Definition at line 293 of file dp83825_driver.h.

◆ DP83825_MISR1_DUP_INT_EN

#define DP83825_MISR1_DUP_INT_EN   0x0008

Definition at line 301 of file dp83825_driver.h.

◆ DP83825_MISR1_ED_INT

#define DP83825_MISR1_ED_INT   0x4000

Definition at line 290 of file dp83825_driver.h.

◆ DP83825_MISR1_ED_INT_EN

#define DP83825_MISR1_ED_INT_EN   0x0040

Definition at line 298 of file dp83825_driver.h.

◆ DP83825_MISR1_FHF_INT

#define DP83825_MISR1_FHF_INT   0x0200

Definition at line 295 of file dp83825_driver.h.

◆ DP83825_MISR1_FHF_INT_EN

#define DP83825_MISR1_FHF_INT_EN   0x0002

Definition at line 303 of file dp83825_driver.h.

◆ DP83825_MISR1_LINK_INT

#define DP83825_MISR1_LINK_INT   0x2000

Definition at line 291 of file dp83825_driver.h.

◆ DP83825_MISR1_LINK_INT_EN

#define DP83825_MISR1_LINK_INT_EN   0x0020

Definition at line 299 of file dp83825_driver.h.

◆ DP83825_MISR1_LQ_INT

#define DP83825_MISR1_LQ_INT   0x8000

Definition at line 289 of file dp83825_driver.h.

◆ DP83825_MISR1_LQ_INT_EN

#define DP83825_MISR1_LQ_INT_EN   0x0080

Definition at line 297 of file dp83825_driver.h.

◆ DP83825_MISR1_RHF_INT

#define DP83825_MISR1_RHF_INT   0x0100

Definition at line 296 of file dp83825_driver.h.

◆ DP83825_MISR1_RHF_INT_EN

#define DP83825_MISR1_RHF_INT_EN   0x0001

Definition at line 304 of file dp83825_driver.h.

◆ DP83825_MISR1_SPD_INT

#define DP83825_MISR1_SPD_INT   0x1000

Definition at line 292 of file dp83825_driver.h.

◆ DP83825_MISR1_SPD_INT_EN

#define DP83825_MISR1_SPD_INT_EN   0x0010

Definition at line 300 of file dp83825_driver.h.

◆ DP83825_MISR2

#define DP83825_MISR2   0x13

Definition at line 64 of file dp83825_driver.h.

◆ DP83825_MISR2_AN_ERROR_INT

#define DP83825_MISR2_AN_ERROR_INT   0x4000

Definition at line 308 of file dp83825_driver.h.

◆ DP83825_MISR2_AN_ERROR_INT_EN

#define DP83825_MISR2_AN_ERROR_INT_EN   0x0040

Definition at line 316 of file dp83825_driver.h.

◆ DP83825_MISR2_EEE_ERROR_INT

#define DP83825_MISR2_EEE_ERROR_INT   0x8000

Definition at line 307 of file dp83825_driver.h.

◆ DP83825_MISR2_EEE_ERROR_INT_EN

#define DP83825_MISR2_EEE_ERROR_INT_EN   0x0080

Definition at line 315 of file dp83825_driver.h.

◆ DP83825_MISR2_FIFO_OF_UF_INT

#define DP83825_MISR2_FIFO_OF_UF_INT   0x1000

Definition at line 310 of file dp83825_driver.h.

◆ DP83825_MISR2_FIFO_OF_UF_INT_EN

#define DP83825_MISR2_FIFO_OF_UF_INT_EN   0x0010

Definition at line 318 of file dp83825_driver.h.

◆ DP83825_MISR2_JABBER_DETECT_INT

#define DP83825_MISR2_JABBER_DETECT_INT   0x0100

Definition at line 314 of file dp83825_driver.h.

◆ DP83825_MISR2_JABBER_DETECT_INT_EN

#define DP83825_MISR2_JABBER_DETECT_INT_EN   0x0001

Definition at line 322 of file dp83825_driver.h.

◆ DP83825_MISR2_MDI_CHANGE_INT

#define DP83825_MISR2_MDI_CHANGE_INT   0x0800

Definition at line 311 of file dp83825_driver.h.

◆ DP83825_MISR2_MDI_CHANGE_INT_EN

#define DP83825_MISR2_MDI_CHANGE_INT_EN   0x0008

Definition at line 319 of file dp83825_driver.h.

◆ DP83825_MISR2_POL_CHANGE_INT

#define DP83825_MISR2_POL_CHANGE_INT   0x0200

Definition at line 313 of file dp83825_driver.h.

◆ DP83825_MISR2_POL_CHANGE_INT_EN

#define DP83825_MISR2_POL_CHANGE_INT_EN   0x0002

Definition at line 321 of file dp83825_driver.h.

◆ DP83825_MISR2_PR_INT

#define DP83825_MISR2_PR_INT   0x2000

Definition at line 309 of file dp83825_driver.h.

◆ DP83825_MISR2_PR_INT_EN

#define DP83825_MISR2_PR_INT_EN   0x0020

Definition at line 317 of file dp83825_driver.h.

◆ DP83825_MISR2_SLEEP_MODE_INT

#define DP83825_MISR2_SLEEP_MODE_INT   0x0400

Definition at line 312 of file dp83825_driver.h.

◆ DP83825_MISR2_SLEEP_MODE_INT_EN

#define DP83825_MISR2_SLEEP_MODE_INT_EN   0x0004

Definition at line 320 of file dp83825_driver.h.

◆ DP83825_MLEDCR

#define DP83825_MLEDCR   0x1F, 0x0025

Definition at line 84 of file dp83825_driver.h.

◆ DP83825_MLEDCR_CFG_MLED_EN

#define DP83825_MLEDCR_CFG_MLED_EN   0x0001

Definition at line 429 of file dp83825_driver.h.

◆ DP83825_MLEDCR_LED0_CONFIG

#define DP83825_MLEDCR_LED0_CONFIG   0x0078

Definition at line 413 of file dp83825_driver.h.

◆ DP83825_MLEDCR_LED0_CONFIG_ACT

#define DP83825_MLEDCR_LED0_CONFIG_ACT   0x0008

Definition at line 415 of file dp83825_driver.h.

◆ DP83825_MLEDCR_LED0_CONFIG_ACT_STRETCH_SIG

#define DP83825_MLEDCR_LED0_CONFIG_ACT_STRETCH_SIG   0x0048

Definition at line 423 of file dp83825_driver.h.

◆ DP83825_MLEDCR_LED0_CONFIG_COL

#define DP83825_MLEDCR_LED0_CONFIG_COL   0x0020

Definition at line 418 of file dp83825_driver.h.

◆ DP83825_MLEDCR_LED0_CONFIG_FD

#define DP83825_MLEDCR_LED0_CONFIG_FD   0x0038

Definition at line 421 of file dp83825_driver.h.

◆ DP83825_MLEDCR_LED0_CONFIG_LINK

#define DP83825_MLEDCR_LED0_CONFIG_LINK   0x0000

Definition at line 414 of file dp83825_driver.h.

◆ DP83825_MLEDCR_LED0_CONFIG_LINK_ACT

#define DP83825_MLEDCR_LED0_CONFIG_LINK_ACT   0x0040

Definition at line 422 of file dp83825_driver.h.

◆ DP83825_MLEDCR_LED0_CONFIG_LINK_LOST

#define DP83825_MLEDCR_LED0_CONFIG_LINK_LOST   0x0068

Definition at line 427 of file dp83825_driver.h.

◆ DP83825_MLEDCR_LED0_CONFIG_LPI_MODE

#define DP83825_MLEDCR_LED0_CONFIG_LPI_MODE   0x0058

Definition at line 425 of file dp83825_driver.h.

◆ DP83825_MLEDCR_LED0_CONFIG_MII_ERR

#define DP83825_MLEDCR_LED0_CONFIG_MII_ERR   0x0060

Definition at line 426 of file dp83825_driver.h.

◆ DP83825_MLEDCR_LED0_CONFIG_MII_LINK

#define DP83825_MLEDCR_LED0_CONFIG_MII_LINK   0x0050

Definition at line 424 of file dp83825_driver.h.

◆ DP83825_MLEDCR_LED0_CONFIG_PRBS_ERR

#define DP83825_MLEDCR_LED0_CONFIG_PRBS_ERR   0x0070

Definition at line 428 of file dp83825_driver.h.

◆ DP83825_MLEDCR_LED0_CONFIG_RX_ACT

#define DP83825_MLEDCR_LED0_CONFIG_RX_ACT   0x0018

Definition at line 417 of file dp83825_driver.h.

◆ DP83825_MLEDCR_LED0_CONFIG_SPEED_10

#define DP83825_MLEDCR_LED0_CONFIG_SPEED_10   0x0030

Definition at line 420 of file dp83825_driver.h.

◆ DP83825_MLEDCR_LED0_CONFIG_SPEED_100

#define DP83825_MLEDCR_LED0_CONFIG_SPEED_100   0x0028

Definition at line 419 of file dp83825_driver.h.

◆ DP83825_MLEDCR_LED0_CONFIG_TX_ACT

#define DP83825_MLEDCR_LED0_CONFIG_TX_ACT   0x0010

Definition at line 416 of file dp83825_driver.h.

◆ DP83825_MLEDCR_MLED_POLARITY_SWAP

#define DP83825_MLEDCR_MLED_POLARITY_SWAP   0x0200

Definition at line 412 of file dp83825_driver.h.

◆ DP83825_MMD3_EEE_CAPABILITY

#define DP83825_MMD3_EEE_CAPABILITY   0x03, 0x1014

Definition at line 80 of file dp83825_driver.h.

◆ DP83825_MMD3_PCS_CTRL_1

#define DP83825_MMD3_PCS_CTRL_1   0x03, 0x1000

Definition at line 78 of file dp83825_driver.h.

◆ DP83825_MMD3_PCS_STATUS_1

#define DP83825_MMD3_PCS_STATUS_1   0x03, 0x1001

Definition at line 79 of file dp83825_driver.h.

◆ DP83825_MMD3_WAKE_ERR_CNT

#define DP83825_MMD3_WAKE_ERR_CNT   0x03, 0x1016

Definition at line 81 of file dp83825_driver.h.

◆ DP83825_MMD7_EEE_ADVERTISEMENT

#define DP83825_MMD7_EEE_ADVERTISEMENT   0x07, 0x203C

Definition at line 82 of file dp83825_driver.h.

◆ DP83825_MMD7_EEE_LP_ABILITY_Register

#define DP83825_MMD7_EEE_LP_ABILITY_Register   0x07, 0x203D

Definition at line 83 of file dp83825_driver.h.

◆ DP83825_PHY_ADDR

#define DP83825_PHY_ADDR   0

Definition at line 39 of file dp83825_driver.h.

◆ DP83825_PHYCR

#define DP83825_PHYCR   0x19

Definition at line 70 of file dp83825_driver.h.

◆ DP83825_PHYCR_BYPASS_LED_STRETCH

#define DP83825_PHYCR_BYPASS_LED_STRETCH   0x0080

Definition at line 374 of file dp83825_driver.h.

◆ DP83825_PHYCR_FORCE_MDIX

#define DP83825_PHYCR_FORCE_MDIX   0x4000

Definition at line 370 of file dp83825_driver.h.

◆ DP83825_PHYCR_LED_CONFIG

#define DP83825_PHYCR_LED_CONFIG   0x0020

Definition at line 375 of file dp83825_driver.h.

◆ DP83825_PHYCR_MDIX_EN

#define DP83825_PHYCR_MDIX_EN   0x8000

Definition at line 369 of file dp83825_driver.h.

◆ DP83825_PHYCR_MII_LINK_STATUS

#define DP83825_PHYCR_MII_LINK_STATUS   0x0800

Definition at line 373 of file dp83825_driver.h.

◆ DP83825_PHYCR_PAUSE_RX_STATUS

#define DP83825_PHYCR_PAUSE_RX_STATUS   0x2000

Definition at line 371 of file dp83825_driver.h.

◆ DP83825_PHYCR_PAUSE_TX_STATUS

#define DP83825_PHYCR_PAUSE_TX_STATUS   0x1000

Definition at line 372 of file dp83825_driver.h.

◆ DP83825_PHYCR_PHY_ADDR

#define DP83825_PHYCR_PHY_ADDR   0x001F

Definition at line 376 of file dp83825_driver.h.

◆ DP83825_PHYIDR1

#define DP83825_PHYIDR1   0x02

Definition at line 47 of file dp83825_driver.h.

◆ DP83825_PHYIDR1_OUI_MSB

#define DP83825_PHYIDR1_OUI_MSB   0xFFFF

Definition at line 173 of file dp83825_driver.h.

◆ DP83825_PHYIDR1_OUI_MSB_DEFAULT

#define DP83825_PHYIDR1_OUI_MSB_DEFAULT   0x2000

Definition at line 174 of file dp83825_driver.h.

◆ DP83825_PHYIDR2

#define DP83825_PHYIDR2   0x03

Definition at line 48 of file dp83825_driver.h.

◆ DP83825_PHYIDR2_MODEL_NUMBER

#define DP83825_PHYIDR2_MODEL_NUMBER   0x03F0

Definition at line 179 of file dp83825_driver.h.

◆ DP83825_PHYIDR2_MODEL_NUMBER_DEFAULT

#define DP83825_PHYIDR2_MODEL_NUMBER_DEFAULT   0x0140

Definition at line 180 of file dp83825_driver.h.

◆ DP83825_PHYIDR2_OUI_LSB

#define DP83825_PHYIDR2_OUI_LSB   0xFC00

Definition at line 177 of file dp83825_driver.h.

◆ DP83825_PHYIDR2_OUI_LSB_DEFAULT

#define DP83825_PHYIDR2_OUI_LSB_DEFAULT   0xA000

Definition at line 178 of file dp83825_driver.h.

◆ DP83825_PHYIDR2_REV_NUMBER

#define DP83825_PHYIDR2_REV_NUMBER   0x000F

Definition at line 181 of file dp83825_driver.h.

◆ DP83825_PHYRCR

#define DP83825_PHYRCR   0x1F

Definition at line 75 of file dp83825_driver.h.

◆ DP83825_PHYRCR_DIGITAL_RESET

#define DP83825_PHYRCR_DIGITAL_RESET   0x4000

Definition at line 409 of file dp83825_driver.h.

◆ DP83825_PHYRCR_SOFT_HARD_RESET

#define DP83825_PHYRCR_SOFT_HARD_RESET   0x8000

Definition at line 408 of file dp83825_driver.h.

◆ DP83825_PHYSCR

#define DP83825_PHYSCR   0x11

Definition at line 62 of file dp83825_driver.h.

◆ DP83825_PHYSCR_INT_EN

#define DP83825_PHYSCR_INT_EN   0x0002

Definition at line 285 of file dp83825_driver.h.

◆ DP83825_PHYSCR_INT_OE

#define DP83825_PHYSCR_INT_OE   0x0001

Definition at line 286 of file dp83825_driver.h.

◆ DP83825_PHYSCR_INT_POLARITY

#define DP83825_PHYSCR_INT_POLARITY   0x0008

Definition at line 283 of file dp83825_driver.h.

◆ DP83825_PHYSCR_LOOPBACK_FIFO_DEPTH

#define DP83825_PHYSCR_LOOPBACK_FIFO_DEPTH   0x0300

Definition at line 282 of file dp83825_driver.h.

◆ DP83825_PHYSCR_PLL_DIS

#define DP83825_PHYSCR_PLL_DIS   0x8000

Definition at line 278 of file dp83825_driver.h.

◆ DP83825_PHYSCR_POWER_SAVE_MODE

#define DP83825_PHYSCR_POWER_SAVE_MODE   0x3000

Definition at line 280 of file dp83825_driver.h.

◆ DP83825_PHYSCR_POWER_SAVE_MODE_EN

#define DP83825_PHYSCR_POWER_SAVE_MODE_EN   0x4000

Definition at line 279 of file dp83825_driver.h.

◆ DP83825_PHYSCR_SCRAMBLER_BYPASS

#define DP83825_PHYSCR_SCRAMBLER_BYPASS   0x0800

Definition at line 281 of file dp83825_driver.h.

◆ DP83825_PHYSCR_TEST_INT

#define DP83825_PHYSCR_TEST_INT   0x0004

Definition at line 284 of file dp83825_driver.h.

◆ DP83825_PHYSTS

#define DP83825_PHYSTS   0x10

Definition at line 61 of file dp83825_driver.h.

◆ DP83825_PHYSTS_AN_STATUS

#define DP83825_PHYSTS_AN_STATUS   0x0010

Definition at line 271 of file dp83825_driver.h.

◆ DP83825_PHYSTS_DESCRAMBLER_LOCK

#define DP83825_PHYSTS_DESCRAMBLER_LOCK   0x0200

Definition at line 266 of file dp83825_driver.h.

◆ DP83825_PHYSTS_DUPLEX_STATUS

#define DP83825_PHYSTS_DUPLEX_STATUS   0x0004

Definition at line 273 of file dp83825_driver.h.

◆ DP83825_PHYSTS_FALSE_CARRIER_SENSE_LATCH

#define DP83825_PHYSTS_FALSE_CARRIER_SENSE_LATCH   0x0800

Definition at line 264 of file dp83825_driver.h.

◆ DP83825_PHYSTS_JABBER_DETECT

#define DP83825_PHYSTS_JABBER_DETECT   0x0020

Definition at line 270 of file dp83825_driver.h.

◆ DP83825_PHYSTS_LINK_STATUS

#define DP83825_PHYSTS_LINK_STATUS   0x0001

Definition at line 275 of file dp83825_driver.h.

◆ DP83825_PHYSTS_LOOPBACK_STATUS

#define DP83825_PHYSTS_LOOPBACK_STATUS   0x0008

Definition at line 272 of file dp83825_driver.h.

◆ DP83825_PHYSTS_MDIX_MODE

#define DP83825_PHYSTS_MDIX_MODE   0x4000

Definition at line 261 of file dp83825_driver.h.

◆ DP83825_PHYSTS_MII_INTERRUPT

#define DP83825_PHYSTS_MII_INTERRUPT   0x0080

Definition at line 268 of file dp83825_driver.h.

◆ DP83825_PHYSTS_PAGE_RECEIVED

#define DP83825_PHYSTS_PAGE_RECEIVED   0x0100

Definition at line 267 of file dp83825_driver.h.

◆ DP83825_PHYSTS_POLARITY_STATUS

#define DP83825_PHYSTS_POLARITY_STATUS   0x1000

Definition at line 263 of file dp83825_driver.h.

◆ DP83825_PHYSTS_RECEIVE_ERROR_LATCH

#define DP83825_PHYSTS_RECEIVE_ERROR_LATCH   0x2000

Definition at line 262 of file dp83825_driver.h.

◆ DP83825_PHYSTS_REMOTE_FAULT

#define DP83825_PHYSTS_REMOTE_FAULT   0x0040

Definition at line 269 of file dp83825_driver.h.

◆ DP83825_PHYSTS_SIGNAL_DETECT

#define DP83825_PHYSTS_SIGNAL_DETECT   0x0400

Definition at line 265 of file dp83825_driver.h.

◆ DP83825_PHYSTS_SPEED_STATUS

#define DP83825_PHYSTS_SPEED_STATUS   0x0002

Definition at line 274 of file dp83825_driver.h.

◆ DP83825_RCSR

#define DP83825_RCSR   0x17

Definition at line 68 of file dp83825_driver.h.

◆ DP83825_RCSR_RMII_CLK_SEL

#define DP83825_RCSR_RMII_CLK_SEL   0x0080

Definition at line 348 of file dp83825_driver.h.

◆ DP83825_RCSR_RMII_OVF_STATUS

#define DP83825_RCSR_RMII_OVF_STATUS   0x0008

Definition at line 350 of file dp83825_driver.h.

◆ DP83825_RCSR_RMII_REV_SEL

#define DP83825_RCSR_RMII_REV_SEL   0x0010

Definition at line 349 of file dp83825_driver.h.

◆ DP83825_RCSR_RMII_TX_CLOCK_SHIFT

#define DP83825_RCSR_RMII_TX_CLOCK_SHIFT   0x0100

Definition at line 347 of file dp83825_driver.h.

◆ DP83825_RCSR_RMII_UNF_STATUS

#define DP83825_RCSR_RMII_UNF_STATUS   0x0004

Definition at line 351 of file dp83825_driver.h.

◆ DP83825_RCSR_RX_ELAST_BUFFER_SIZE

#define DP83825_RCSR_RX_ELAST_BUFFER_SIZE   0x0003

Definition at line 352 of file dp83825_driver.h.

◆ DP83825_RCSR_RX_ELAST_BUFFER_SIZE_10_BITS

#define DP83825_RCSR_RX_ELAST_BUFFER_SIZE_10_BITS   0x0003

Definition at line 356 of file dp83825_driver.h.

◆ DP83825_RCSR_RX_ELAST_BUFFER_SIZE_14_BITS

#define DP83825_RCSR_RX_ELAST_BUFFER_SIZE_14_BITS   0x0000

Definition at line 353 of file dp83825_driver.h.

◆ DP83825_RCSR_RX_ELAST_BUFFER_SIZE_2_BITS

#define DP83825_RCSR_RX_ELAST_BUFFER_SIZE_2_BITS   0x0001

Definition at line 354 of file dp83825_driver.h.

◆ DP83825_RCSR_RX_ELAST_BUFFER_SIZE_6_BITS

#define DP83825_RCSR_RX_ELAST_BUFFER_SIZE_6_BITS   0x0002

Definition at line 355 of file dp83825_driver.h.

◆ DP83825_RECR

#define DP83825_RECR   0x15

Definition at line 66 of file dp83825_driver.h.

◆ DP83825_RECR_RXERCNT

#define DP83825_RECR_RXERCNT   0xFFFF

Definition at line 328 of file dp83825_driver.h.

◆ DP83825_REG_101

#define DP83825_REG_101   0x1F, 0x0101

Definition at line 86 of file dp83825_driver.h.

◆ DP83825_REG_10A

#define DP83825_REG_10A   0x1F, 0x010A

Definition at line 87 of file dp83825_driver.h.

◆ DP83825_REG_12

#define DP83825_REG_12   0x0C

Definition at line 57 of file dp83825_driver.h.

◆ DP83825_REG_123

#define DP83825_REG_123   0x1F, 0x0123

Definition at line 88 of file dp83825_driver.h.

◆ DP83825_REG_130

#define DP83825_REG_130   0x1F, 0x0130

Definition at line 89 of file dp83825_driver.h.

◆ DP83825_REG_416

#define DP83825_REG_416   0x1F, 0x0416

Definition at line 123 of file dp83825_driver.h.

◆ DP83825_REG_429

#define DP83825_REG_429   0x1F, 0x0429

Definition at line 124 of file dp83825_driver.h.

◆ DP83825_REG_469

#define DP83825_REG_469   0x1F, 0x0469

Definition at line 130 of file dp83825_driver.h.

◆ DP83825_REG_4CD

#define DP83825_REG_4CD   0x1F, 0x04CD

Definition at line 136 of file dp83825_driver.h.

◆ DP83825_REG_4CE

#define DP83825_REG_4CE   0x1F, 0x04CE

Definition at line 137 of file dp83825_driver.h.

◆ DP83825_REG_4CF

#define DP83825_REG_4CF   0x1F, 0x04CF

Definition at line 138 of file dp83825_driver.h.

◆ DP83825_REG_4D2

#define DP83825_REG_4D2   0x1F, 0x04D2

Definition at line 141 of file dp83825_driver.h.

◆ DP83825_REG_4D4

#define DP83825_REG_4D4   0x1F, 0x04D4

Definition at line 142 of file dp83825_driver.h.

◆ DP83825_REGCR

#define DP83825_REGCR   0x0D

Definition at line 58 of file dp83825_driver.h.

◆ DP83825_REGCR_CMD

#define DP83825_REGCR_CMD   0xC000

Definition at line 250 of file dp83825_driver.h.

◆ DP83825_REGCR_CMD_ADDR

#define DP83825_REGCR_CMD_ADDR   0x0000

Definition at line 251 of file dp83825_driver.h.

◆ DP83825_REGCR_CMD_DATA_NO_POST_INC

#define DP83825_REGCR_CMD_DATA_NO_POST_INC   0x4000

Definition at line 252 of file dp83825_driver.h.

◆ DP83825_REGCR_CMD_DATA_POST_INC_RW

#define DP83825_REGCR_CMD_DATA_POST_INC_RW   0x8000

Definition at line 253 of file dp83825_driver.h.

◆ DP83825_REGCR_CMD_DATA_POST_INC_W

#define DP83825_REGCR_CMD_DATA_POST_INC_W   0xC000

Definition at line 254 of file dp83825_driver.h.

◆ DP83825_REGCR_DEVAD

#define DP83825_REGCR_DEVAD   0x001F

Definition at line 255 of file dp83825_driver.h.

◆ DP83825_RXFCFG

#define DP83825_RXFCFG   0x1F, 0x04A0

Definition at line 131 of file dp83825_driver.h.

◆ DP83825_RXFPMD1

#define DP83825_RXFPMD1   0x1F, 0x04A2

Definition at line 133 of file dp83825_driver.h.

◆ DP83825_RXFPMD2

#define DP83825_RXFPMD2   0x1F, 0x04A3

Definition at line 134 of file dp83825_driver.h.

◆ DP83825_RXFPMD3

#define DP83825_RXFPMD3   0x1F, 0x04A4

Definition at line 135 of file dp83825_driver.h.

◆ DP83825_RXFS

#define DP83825_RXFS   0x1F, 0x04A1

Definition at line 132 of file dp83825_driver.h.

◆ DP83825_SOR1

#define DP83825_SOR1   0x1F, 0x0467

Definition at line 128 of file dp83825_driver.h.

◆ DP83825_SOR2

#define DP83825_SOR2   0x1F, 0x0468

Definition at line 129 of file dp83825_driver.h.

◆ DP83825_SPARE_OUT

#define DP83825_SPARE_OUT   0x1F, 0x0308

Definition at line 111 of file dp83825_driver.h.

◆ DP83825_TDR_172

#define DP83825_TDR_172   0x1F, 0x0172

Definition at line 92 of file dp83825_driver.h.

◆ DP83825_TDR_174

#define DP83825_TDR_174   0x1F, 0x0174

Definition at line 94 of file dp83825_driver.h.

◆ DP83825_TDR_175

#define DP83825_TDR_175   0x1F, 0x0175

Definition at line 95 of file dp83825_driver.h.

◆ DP83825_TDR_176

#define DP83825_TDR_176   0x1F, 0x0176

Definition at line 96 of file dp83825_driver.h.

◆ DP83825_TDR_178

#define DP83825_TDR_178   0x1F, 0x0178

Definition at line 98 of file dp83825_driver.h.

Function Documentation

◆ dp83825DisableIrq()

void dp83825DisableIrq ( NetInterface interface)

Disable interrupts.

Parameters
[in]interfaceUnderlying network interface

Definition at line 186 of file dp83825_driver.c.

◆ dp83825DumpPhyReg()

void dp83825DumpPhyReg ( NetInterface interface)

Dump PHY registers for debugging purpose.

Parameters
[in]interfaceUnderlying network interface

Definition at line 312 of file dp83825_driver.c.

◆ dp83825EnableIrq()

void dp83825EnableIrq ( NetInterface interface)

Enable interrupts.

Parameters
[in]interfaceUnderlying network interface

Definition at line 171 of file dp83825_driver.c.

◆ dp83825EventHandler()

void dp83825EventHandler ( NetInterface interface)

DP83825 event handler.

Parameters
[in]interfaceUnderlying network interface

Definition at line 201 of file dp83825_driver.c.

◆ dp83825Init()

error_t dp83825Init ( NetInterface interface)

DP83825 PHY transceiver initialization.

Parameters
[in]interfaceUnderlying network interface
Returns
Error code

Definition at line 60 of file dp83825_driver.c.

◆ dp83825InitHook()

void dp83825InitHook ( NetInterface interface)

DP83825 custom configuration.

Parameters
[in]interfaceUnderlying network interface

Definition at line 123 of file dp83825_driver.c.

◆ dp83825ReadMmdReg()

uint16_t dp83825ReadMmdReg ( NetInterface interface,
uint8_t  devAddr,
uint16_t  regAddr 
)

Read MMD register.

Parameters
[in]interfaceUnderlying network interface
[in]devAddrDevice address
[in]regAddrRegister address
Returns
MMD register value

Definition at line 364 of file dp83825_driver.c.

◆ dp83825ReadPhyReg()

uint16_t dp83825ReadPhyReg ( NetInterface interface,
uint8_t  address 
)

Read PHY register.

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

Definition at line 286 of file dp83825_driver.c.

◆ dp83825Tick()

void dp83825Tick ( NetInterface interface)

DP83825 timer handler.

Parameters
[in]interfaceUnderlying network interface

Definition at line 133 of file dp83825_driver.c.

◆ dp83825WriteMmdReg()

void dp83825WriteMmdReg ( NetInterface interface,
uint8_t  devAddr,
uint16_t  regAddr,
uint16_t  data 
)

Write MMD register.

Parameters
[in]interfaceUnderlying network interface
[in]devAddrDevice address
[in]regAddrRegister address
[in]dataMMD register value

Definition at line 337 of file dp83825_driver.c.

◆ dp83825WritePhyReg()

void dp83825WritePhyReg ( 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 262 of file dp83825_driver.c.

Variable Documentation

◆ dp83825PhyDriver

const PhyDriver dp83825PhyDriver
extern

DP83825 Ethernet PHY driver.

Definition at line 44 of file dp83825_driver.c.