dp83822_driver.h File Reference

DP83822 Ethernet PHY transceiver. More...

#include "core/nic.h"

Go to the source code of this file.

Macros

#define DP83822_PHY_ADDR   1
 
#define DP83822_PHY_REG_BMCR   0x00
 
#define DP83822_PHY_REG_BMSR   0x01
 
#define DP83822_PHY_REG_PHYIDR1   0x02
 
#define DP83822_PHY_REG_PHYIDR2   0x03
 
#define DP83822_PHY_REG_ANAR   0x04
 
#define DP83822_PHY_REG_ANLPAR   0x05
 
#define DP83822_PHY_REG_ANER   0x06
 
#define DP83822_PHY_REG_ANNPTR   0x07
 
#define DP83822_PHY_REG_ANLNPTR   0x08
 
#define DP83822_PHY_REG_CR1   0x09
 
#define DP83822_PHY_REG_CR2   0x0A
 
#define DP83822_PHY_REG_CR3   0x0B
 
#define DP83822_PHY_REG_REGCR   0x0D
 
#define DP83822_PHY_REG_ADDAR   0x0E
 
#define DP83822_PHY_REG_FLDS   0x0F
 
#define DP83822_PHY_REG_PHYSTS   0x10
 
#define DP83822_PHY_REG_PHYSCR   0x11
 
#define DP83822_PHY_REG_MISR1   0x12
 
#define DP83822_PHY_REG_MISR2   0x13
 
#define DP83822_PHY_REG_FCSCR   0x14
 
#define DP83822_PHY_REG_RECR   0x15
 
#define DP83822_PHY_REG_BISCR   0x16
 
#define DP83822_PHY_REG_RCSR   0x17
 
#define DP83822_PHY_REG_LEDCR   0x18
 
#define DP83822_PHY_REG_PHYCR   0x19
 
#define DP83822_PHY_REG_10BTSCR   0x1A
 
#define DP83822_PHY_REG_BICSR1   0x1B
 
#define DP83822_PHY_REG_BICSR2   0x1C
 
#define DP83822_PHY_REG_CDCR   0x1E
 
#define DP83822_PHY_REG_PHYRCR   0x1F
 
#define BMCR_RESET   (1 << 15)
 
#define BMCR_LOOPBACK   (1 << 14)
 
#define BMCR_SPEED_SEL   (1 << 13)
 
#define BMCR_AN_EN   (1 << 12)
 
#define BMCR_POWER_DOWN   (1 << 11)
 
#define BMCR_ISOLATE   (1 << 10)
 
#define BMCR_RESTART_AN   (1 << 9)
 
#define BMCR_DUPLEX_MODE   (1 << 8)
 
#define BMCR_COL_TEST   (1 << 7)
 
#define BMSR_100BT4   (1 << 15)
 
#define BMSR_100BTX_FD   (1 << 14)
 
#define BMSR_100BTX   (1 << 13)
 
#define BMSR_10BT_FD   (1 << 12)
 
#define BMSR_10BT   (1 << 11)
 
#define BMSR_NO_PREAMBLE   (1 << 6)
 
#define BMSR_AN_COMPLETE   (1 << 5)
 
#define BMSR_REMOTE_FAULT   (1 << 4)
 
#define BMSR_AN_ABLE   (1 << 3)
 
#define BMSR_LINK_STATUS   (1 << 2)
 
#define BMSR_JABBER_DETECT   (1 << 1)
 
#define BMSR_EXTENDED_CAP   (1 << 0)
 
#define ANAR_NP   (1 << 15)
 
#define ANAR_RF   (1 << 13)
 
#define ANAR_ASM_DIR   (1 << 11)
 
#define ANAR_PAUSE   (1 << 10)
 
#define ANAR_100BT4   (1 << 9)
 
#define ANAR_100BTX_FD   (1 << 8)
 
#define ANAR_100BTX   (1 << 7)
 
#define ANAR_10BT_FD   (1 << 6)
 
#define ANAR_10BT   (1 << 5)
 
#define ANAR_SELECTOR4   (1 << 4)
 
#define ANAR_SELECTOR3   (1 << 3)
 
#define ANAR_SELECTOR2   (1 << 2)
 
#define ANAR_SELECTOR1   (1 << 1)
 
#define ANAR_SELECTOR0   (1 << 0)
 
#define ANLPAR_NP   (1 << 15)
 
#define ANLPAR_ACK   (1 << 14)
 
#define ANLPAR_RF   (1 << 13)
 
#define ANLPAR_ASM_DIR   (1 << 11)
 
#define ANLPAR_PAUSE   (1 << 10)
 
#define ANLPAR_100BT4   (1 << 9)
 
#define ANLPAR_100BTX_FD   (1 << 8)
 
#define ANLPAR_100BTX   (1 << 7)
 
#define ANLPAR_10BT_FD   (1 << 6)
 
#define ANLPAR_10BT   (1 << 5)
 
#define ANLPAR_SELECTOR4   (1 << 4)
 
#define ANLPAR_SELECTOR3   (1 << 3)
 
#define ANLPAR_SELECTOR2   (1 << 2)
 
#define ANLPAR_SELECTOR1   (1 << 1)
 
#define ANLPAR_SELECTOR0   (1 << 0)
 
#define ANER_PDF   (1 << 4)
 
#define ANER_LP_NP_ABLE   (1 << 3)
 
#define ANER_NP_ABLE   (1 << 2)
 
#define ANER_PAGE_RX   (1 << 1)
 
#define ANER_LP_AN_ABLE   (1 << 0)
 
#define ANNPTR_NP   (1 << 15)
 
#define ANNPTR_MP   (1 << 13)
 
#define ANNPTR_ACK2   (1 << 12)
 
#define ANNPTR_TOG_TX   (1 << 11)
 
#define ANNPTR_CODE10   (1 << 10)
 
#define ANNPTR_CODE9   (1 << 9)
 
#define ANNPTR_CODE8   (1 << 8)
 
#define ANNPTR_CODE7   (1 << 7)
 
#define ANNPTR_CODE6   (1 << 6)
 
#define ANNPTR_CODE5   (1 << 5)
 
#define ANNPTR_CODE4   (1 << 4)
 
#define ANNPTR_CODE3   (1 << 3)
 
#define ANNPTR_CODE2   (1 << 2)
 
#define ANNPTR_CODE1   (1 << 1)
 
#define ANNPTR_CODE0   (1 << 0)
 
#define ANLNPTR_NP   (1 << 15)
 
#define ANLNPTR_ACK   (1 << 14)
 
#define ANLNPTR_MP   (1 << 13)
 
#define ANLNPTR_ACK2   (1 << 12)
 
#define ANLNPTR_TOGGLE   (1 << 11)
 
#define ANLNPTR_MESSAGE10   (1 << 10)
 
#define ANLNPTR_MESSAGE9   (1 << 9)
 
#define ANLNPTR_MESSAGE8   (1 << 8)
 
#define ANLNPTR_MESSAGE7   (1 << 7)
 
#define ANLNPTR_MESSAGE6   (1 << 6)
 
#define ANLNPTR_MESSAGE5   (1 << 5)
 
#define ANLNPTR_MESSAGE4   (1 << 4)
 
#define ANLNPTR_MESSAGE3   (1 << 3)
 
#define ANLNPTR_MESSAGE2   (1 << 2)
 
#define ANLNPTR_MESSAGE1   (1 << 1)
 
#define ANLNPTR_MESSAGE0   (1 << 0)
 
#define CR1_RMII_ENHANCED_MODE   (1 << 9)
 
#define CR1_TDR_AUTO_RUN   (1 << 8)
 
#define CR1_LINK_LOSS_RECOVERY   (1 << 7)
 
#define CR1_FAST_AUTO_MDIX   (1 << 6)
 
#define CR1_ROBUST_AUTO_MDIX   (1 << 5)
 
#define CR1_FAST_AN_EN   (1 << 4)
 
#define CR1_FAST_AN_SEL1   (1 << 3)
 
#define CR1_FAST_AN_SEL0   (1 << 2)
 
#define CR1_FAST_RX_DV_DETECT   (1 << 1)
 
#define CR2_FORCE_FAR_END_LINK_DROP   (1 << 15)
 
#define CR2_100BFX_EN   (1 << 14)
 
#define CR2_ASY_LINK_UP_IN_PD   (1 << 6)
 
#define CR2_EXT_FULL_DUPLEX_ABLE   (1 << 5)
 
#define CR2_ENHANCED_LED_LINK   (1 << 4)
 
#define CR2_ISOLATE_MII   (1 << 3)
 
#define CR2_RX_ER_DURING_IDLE   (1 << 2)
 
#define CR2_ODD_NIBBLE_DETECT_DIS   (1 << 1)
 
#define CR2_RMII_RX_CLK   (1 << 0)
 
#define CR3_DESCR_FAST_LINK_DOWN   (1 << 10)
 
#define CR_POLARITY_SWAP   (1 << 6)
 
#define CR_MDIX_SWAP   (1 << 5)
 
#define CR_FAST_LINK_DOWN_MODE3   (1 << 3)
 
#define CR_FAST_LINK_DOWN_MODE2   (1 << 2)
 
#define CR_FAST_LINK_DOWN_MODE1   (1 << 1)
 
#define CR_FAST_LINK_DOWN_MODE0   (1 << 0)
 
#define REGCR_EXTENDED_REG_CMD1   (1 << 15)
 
#define REGCR_EXTENDED_REG_CMD0   (1 << 14)
 
#define REGCR_DEVAD4   (1 << 4)
 
#define REGCR_DEVAD3   (1 << 3)
 
#define REGCR_DEVAD2   (1 << 2)
 
#define REGCR_DEVAD1   (1 << 1)
 
#define REGCR_DEVAD0   (1 << 0)
 
#define FLDS_FAST_LINK_DOWN_STATUS4   (1 << 8)
 
#define FLDS_FAST_LINK_DOWN_STATUS3   (1 << 7)
 
#define FLDS_FAST_LINK_DOWN_STATUS2   (1 << 6)
 
#define FLDS_FAST_LINK_DOWN_STATUS1   (1 << 5)
 
#define FLDS_FAST_LINK_DOWN_STATUS0   (1 << 4)
 
#define PHYSTS_MDIX_MODE   (1 << 14)
 
#define PHYSTS_RX_ERROR_LATCH   (1 << 13)
 
#define PHYSTS_POLARITY_STATUS   (1 << 12)
 
#define PHYSTS_FALSE_CARRIER_SENSE   (1 << 11)
 
#define PHYSTS_SIGNAL_DETECT   (1 << 10)
 
#define PHYSTS_DESCRAMBLER_LOCK   (1 << 9)
 
#define PHYSTS_PAGE_RECEIVED   (1 << 8)
 
#define PHYSTS_MII_INTERRUPT   (1 << 7)
 
#define PHYSTS_REMOTE_FAULT   (1 << 6)
 
#define PHYSTS_JABBER_DETECT   (1 << 5)
 
#define PHYSTS_AN_COMPLETE   (1 << 4)
 
#define PHYSTS_LOOPBACK_STATUS   (1 << 3)
 
#define PHYSTS_DUPLEX_STATUS   (1 << 2)
 
#define PHYSTS_SPEED_STATUS   (1 << 1)
 
#define PHYSTS_LINK_STATUS   (1 << 0)
 
#define PHYSCR_DISABLE_PLL   (1 << 15)
 
#define PHYSCR_POWER_SAVE_MODE_EN   (1 << 14)
 
#define PHYSCR_POWER_SAVE_MODE1   (1 << 13)
 
#define PHYSCR_POWER_SAVE_MODE0   (1 << 12)
 
#define PHYSCR_SCRAMBLER_BYPASS   (1 << 11)
 
#define PHYSCR_LOOPBACK_FIFO_DEPTH1   (1 << 9)
 
#define PHYSCR_LOOPBACK_FIFO_DEPTH0   (1 << 8)
 
#define PHYSCR_COL_FULL_DUPLEX_EN   (1 << 4)
 
#define PHYSCR_INT_POLARITY   (1 << 3)
 
#define PHYSCR_TEST_INT   (1 << 2)
 
#define PHYSCR_INT_EN   (1 << 1)
 
#define PHYSCR_INT_OE   (1 << 0)
 
#define MISR1_LQ_INT   (1 << 15)
 
#define MISR1_ED_INT   (1 << 14)
 
#define MISR1_LINK_INT   (1 << 13)
 
#define MISR1_SPD_INT   (1 << 12)
 
#define MISR1_DUP_INT   (1 << 11)
 
#define MISR1_ANC_INT   (1 << 10)
 
#define MISR1_FHF_INT   (1 << 9)
 
#define MISR1_RHF_INT   (1 << 8)
 
#define MISR1_LQ_INT_EN   (1 << 7)
 
#define MISR1_ED_INT_EN   (1 << 6)
 
#define MISR1_LINK_INT_EN   (1 << 5)
 
#define MISR1_SPD_INT_EN   (1 << 4)
 
#define MISR1_DUP_INT_EN   (1 << 3)
 
#define MISR1_ANC_INT_EN   (1 << 2)
 
#define MISR1_FHF_INT_EN   (1 << 1)
 
#define MISR1_RHF_INT_EN   (1 << 0)
 
#define MISR2_EEE_ERROR_INT   (1 << 15)
 
#define MISR2_AN_ERROR_INT   (1 << 14)
 
#define MISR2_PR_INT   (1 << 13)
 
#define MISR2_FIFO_OF_UF_INT   (1 << 12)
 
#define MISR2_MDI_CHANGE_INT   (1 << 11)
 
#define MISR2_SLEEP_MODE_INT   (1 << 10)
 
#define MISR2_POL_CHANGE_INT   (1 << 9)
 
#define MISR2_JABBER_DETECT_INT   (1 << 8)
 
#define MISR2_EEE_ERROR_INT_EN   (1 << 7)
 
#define MISR2_AN_ERROR_INT_EN   (1 << 6)
 
#define MISR2_PR_INT_EN   (1 << 5)
 
#define MISR2_FIFO_OF_UF_INT_EN   (1 << 4)
 
#define MISR2_MDI_CHANGE_INT_EN   (1 << 3)
 
#define MISR2_SLEEP_MODE_INT_EN   (1 << 2)
 
#define MISR2_POL_CHANGE_INT_EN   (1 << 1)
 
#define MISR2_JABBER_DETECT_INT_EN   (1 << 0)
 
#define FCSCR_FCSCNT7   (1 << 7)
 
#define FCSCR_FCSCNT6   (1 << 6)
 
#define FCSCR_FCSCNT5   (1 << 5)
 
#define FCSCR_FCSCNT4   (1 << 4)
 
#define FCSCR_FCSCNT3   (1 << 3)
 
#define FCSCR_FCSCNT2   (1 << 2)
 
#define FCSCR_FCSCNT1   (1 << 1)
 
#define FCSCR_FCSCNT0   (1 << 0)
 
#define RECR_RXERCNT7   (1 << 7)
 
#define RECR_RXERCNT6   (1 << 6)
 
#define RECR_RXERCNT5   (1 << 5)
 
#define RECR_RXERCNT4   (1 << 4)
 
#define RECR_RXERCNT3   (1 << 3)
 
#define RECR_RXERCNT2   (1 << 2)
 
#define RECR_RXERCNT1   (1 << 1)
 
#define RECR_RXERCNT0   (1 << 0)
 
#define BISCR_ERROR_COUNTER_MODE   (1 << 14)
 
#define BISCR_PRBS_CHECK   (1 << 13)
 
#define BISCR_PACKET_GEN_EN   (1 << 12)
 
#define BISCR_PRBS_CHECK_LOCK_SYNC   (1 << 11)
 
#define BISCR_PRBS_CHECK_SYNC_LOSS   (1 << 10)
 
#define BISCR_PACKET_GEN_STATUS   (1 << 9)
 
#define BISCR_POWER_MODE   (1 << 8)
 
#define BISCR_TX_MII_LOOPBACK   (1 << 6)
 
#define BISCR_LOOPBACK_MODE4   (1 << 4)
 
#define BISCR_LOOPBACK_MODE3   (1 << 3)
 
#define BISCR_LOOPBACK_MODE2   (1 << 2)
 
#define BISCR_LOOPBACK_MODE1   (1 << 1)
 
#define BISCR_LOOPBACK_MODE0   (1 << 0)
 
#define RCSR_RGMII_RX_CLK_SHIFT   (1 << 12)
 
#define RCSR_RGMII_TX_CLK_SHIFT   (1 << 11)
 
#define RCSR_RGMII_TX_SYNCED   (1 << 10)
 
#define RCSR_RGMII_MODE   (1 << 9)
 
#define RCSR_RMII_TX_CLOCK_SHIFT   (1 << 8)
 
#define RCSR_RMII_CLK_SEL   (1 << 7)
 
#define RCSR_RMII_ASYNC_FIFO_BP   (1 << 6)
 
#define RCSR_RMII_MODE   (1 << 5)
 
#define RCSR_RMII_REV_SEL   (1 << 4)
 
#define RCSR_RMII_OVF_STATUS   (1 << 3)
 
#define RCSR_RMII_UNF_STATUS   (1 << 2)
 
#define RCSR_ELAST_BUFFER_SIZE1   (1 << 1)
 
#define RCSR_ELAST_BUFFER_SIZE0   (1 << 0)
 
#define LEDCR_BLINK_RATE1   (1 << 10)
 
#define LEDCR_BLINK_RATE0   (1 << 9)
 
#define LEDCR_LED_0_POLARITY   (1 << 7)
 
#define LEDCR_DRIVE_LED_0   (1 << 4)
 
#define LEDCR_LED_0_ON_OFF   (1 << 1)
 
#define PHYCR_MDIX_EN   (1 << 15)
 
#define PHYCR_FORCE_MDIX   (1 << 14)
 
#define PHYCR_PAUSE_RX_STATUS   (1 << 13)
 
#define PHYCR_PAUSE_TX_STATUS   (1 << 12)
 
#define PHYCR_MII_LINK_STATUS   (1 << 11)
 
#define PHYCR_BP_LED_STRETCH   (1 << 7)
 
#define PHYCR_LED_CONFIG   (1 << 5)
 
#define PHYCR_PHY_ADDR4   (1 << 4)
 
#define PHYCR_PHY_ADDR3   (1 << 3)
 
#define PHYCR_PHY_ADDR2   (1 << 2)
 
#define PHYCR_PHY_ADDR1   (1 << 1)
 
#define PHYCR_PHY_ADDR0   (1 << 0)
 
#define _10BTSCR_RX_THRESHOLD_EN   (1 << 13)
 
#define _10BTSCR_SQUELCH3   (1 << 12)
 
#define _10BTSCR_SQUELCH2   (1 << 11)
 
#define _10BTSCR_SQUELCH1   (1 << 10)
 
#define _10BTSCR_SQUELCH0   (1 << 9)
 
#define _10BTSCR_NLP_DIS   (1 << 7)
 
#define _10BTSCR_POLARITY_STATUS   (1 << 4)
 
#define _10BTSCR_JABBER_DIS   (1 << 0)
 
#define BICSR1_BIST_ERROR_COUNT7   (1 << 15)
 
#define BICSR1_BIST_ERROR_COUNT6   (1 << 14)
 
#define BICSR1_BIST_ERROR_COUNT5   (1 << 13)
 
#define BICSR1_BIST_ERROR_COUNT4   (1 << 12)
 
#define BICSR1_BIST_ERROR_COUNT3   (1 << 11)
 
#define BICSR1_BIST_ERROR_COUNT2   (1 << 10)
 
#define BICSR1_BIST_ERROR_COUNT1   (1 << 9)
 
#define BICSR1_BIST_ERROR_COUNT0   (1 << 8)
 
#define BICSR1_BIST_IPG_LENGTH7   (1 << 7)
 
#define BICSR1_BIST_IPG_LENGTH6   (1 << 6)
 
#define BICSR1_BIST_IPG_LENGTH5   (1 << 5)
 
#define BICSR1_BIST_IPG_LENGTH4   (1 << 4)
 
#define BICSR1_BIST_IPG_LENGTH3   (1 << 3)
 
#define BICSR1_BIST_IPG_LENGTH2   (1 << 2)
 
#define BICSR1_BIST_IPG_LENGTH1   (1 << 1)
 
#define BICSR1_BIST_IPG_LENGTH0   (1 << 0)
 
#define BICSR2_BIST_PACKET_LENGTH10   (1 << 10)
 
#define BICSR2_BIST_PACKET_LENGTH9   (1 << 9)
 
#define BICSR2_BIST_PACKET_LENGTH8   (1 << 8)
 
#define BICSR2_BIST_PACKET_LENGTH7   (1 << 7)
 
#define BICSR2_BIST_PACKET_LENGTH6   (1 << 6)
 
#define BICSR2_BIST_PACKET_LENGTH5   (1 << 5)
 
#define BICSR2_BIST_PACKET_LENGTH4   (1 << 4)
 
#define BICSR2_BIST_PACKET_LENGTH3   (1 << 3)
 
#define BICSR2_BIST_PACKET_LENGTH2   (1 << 2)
 
#define BICSR2_BIST_PACKET_LENGTH1   (1 << 1)
 
#define BICSR2_BIST_PACKET_LENGTH0   (1 << 0)
 
#define CDCR_CABLE_DIAG_START   (1 << 15)
 
#define CDCR_CABLE_DIAG_STATUS   (1 << 1)
 
#define CDCR_CABLE_DIAG_TEST_FAIL   (1 << 0)
 
#define PHYRCR_SOFT_RESET   (1 << 15)
 
#define PHYRCR_DIGITAL_RESTART   (1 << 14)
 

Functions

error_t dp83822Init (NetInterface *interface)
 DP83822 PHY transceiver initialization. More...
 
void dp83822Tick (NetInterface *interface)
 DP83822 timer handler. More...
 
void dp83822EnableIrq (NetInterface *interface)
 Enable interrupts. More...
 
void dp83822DisableIrq (NetInterface *interface)
 Disable interrupts. More...
 
void dp83822EventHandler (NetInterface *interface)
 DP83822 event handler. More...
 
void dp83822WritePhyReg (NetInterface *interface, uint8_t address, uint16_t data)
 Write PHY register. More...
 
uint16_t dp83822ReadPhyReg (NetInterface *interface, uint8_t address)
 Read PHY register. More...
 
void dp83822DumpPhyReg (NetInterface *interface)
 Dump PHY registers for debugging purpose. More...
 

Variables

const PhyDriver dp83822PhyDriver
 DP83822 Ethernet PHY driver. More...
 

Detailed Description

DP83822 Ethernet PHY transceiver.

License

Copyright (C) 2010-2018 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.0

Definition in file dp83822_driver.h.

Macro Definition Documentation

◆ _10BTSCR_JABBER_DIS

#define _10BTSCR_JABBER_DIS   (1 << 0)

Definition at line 367 of file dp83822_driver.h.

◆ _10BTSCR_NLP_DIS

#define _10BTSCR_NLP_DIS   (1 << 7)

Definition at line 365 of file dp83822_driver.h.

◆ _10BTSCR_POLARITY_STATUS

#define _10BTSCR_POLARITY_STATUS   (1 << 4)

Definition at line 366 of file dp83822_driver.h.

◆ _10BTSCR_RX_THRESHOLD_EN

#define _10BTSCR_RX_THRESHOLD_EN   (1 << 13)

Definition at line 360 of file dp83822_driver.h.

◆ _10BTSCR_SQUELCH0

#define _10BTSCR_SQUELCH0   (1 << 9)

Definition at line 364 of file dp83822_driver.h.

◆ _10BTSCR_SQUELCH1

#define _10BTSCR_SQUELCH1   (1 << 10)

Definition at line 363 of file dp83822_driver.h.

◆ _10BTSCR_SQUELCH2

#define _10BTSCR_SQUELCH2   (1 << 11)

Definition at line 362 of file dp83822_driver.h.

◆ _10BTSCR_SQUELCH3

#define _10BTSCR_SQUELCH3   (1 << 12)

Definition at line 361 of file dp83822_driver.h.

◆ ANAR_100BT4

#define ANAR_100BT4   (1 << 9)

Definition at line 104 of file dp83822_driver.h.

◆ ANAR_100BTX

#define ANAR_100BTX   (1 << 7)

Definition at line 106 of file dp83822_driver.h.

◆ ANAR_100BTX_FD

#define ANAR_100BTX_FD   (1 << 8)

Definition at line 105 of file dp83822_driver.h.

◆ ANAR_10BT

#define ANAR_10BT   (1 << 5)

Definition at line 108 of file dp83822_driver.h.

◆ ANAR_10BT_FD

#define ANAR_10BT_FD   (1 << 6)

Definition at line 107 of file dp83822_driver.h.

◆ ANAR_ASM_DIR

#define ANAR_ASM_DIR   (1 << 11)

Definition at line 102 of file dp83822_driver.h.

◆ ANAR_NP

#define ANAR_NP   (1 << 15)

Definition at line 100 of file dp83822_driver.h.

◆ ANAR_PAUSE

#define ANAR_PAUSE   (1 << 10)

Definition at line 103 of file dp83822_driver.h.

◆ ANAR_RF

#define ANAR_RF   (1 << 13)

Definition at line 101 of file dp83822_driver.h.

◆ ANAR_SELECTOR0

#define ANAR_SELECTOR0   (1 << 0)

Definition at line 113 of file dp83822_driver.h.

◆ ANAR_SELECTOR1

#define ANAR_SELECTOR1   (1 << 1)

Definition at line 112 of file dp83822_driver.h.

◆ ANAR_SELECTOR2

#define ANAR_SELECTOR2   (1 << 2)

Definition at line 111 of file dp83822_driver.h.

◆ ANAR_SELECTOR3

#define ANAR_SELECTOR3   (1 << 3)

Definition at line 110 of file dp83822_driver.h.

◆ ANAR_SELECTOR4

#define ANAR_SELECTOR4   (1 << 4)

Definition at line 109 of file dp83822_driver.h.

◆ ANER_LP_AN_ABLE

#define ANER_LP_AN_ABLE   (1 << 0)

Definition at line 137 of file dp83822_driver.h.

◆ ANER_LP_NP_ABLE

#define ANER_LP_NP_ABLE   (1 << 3)

Definition at line 134 of file dp83822_driver.h.

◆ ANER_NP_ABLE

#define ANER_NP_ABLE   (1 << 2)

Definition at line 135 of file dp83822_driver.h.

◆ ANER_PAGE_RX

#define ANER_PAGE_RX   (1 << 1)

Definition at line 136 of file dp83822_driver.h.

◆ ANER_PDF

#define ANER_PDF   (1 << 4)

Definition at line 133 of file dp83822_driver.h.

◆ ANLNPTR_ACK

#define ANLNPTR_ACK   (1 << 14)

Definition at line 158 of file dp83822_driver.h.

◆ ANLNPTR_ACK2

#define ANLNPTR_ACK2   (1 << 12)

Definition at line 160 of file dp83822_driver.h.

◆ ANLNPTR_MESSAGE0

#define ANLNPTR_MESSAGE0   (1 << 0)

Definition at line 172 of file dp83822_driver.h.

◆ ANLNPTR_MESSAGE1

#define ANLNPTR_MESSAGE1   (1 << 1)

Definition at line 171 of file dp83822_driver.h.

◆ ANLNPTR_MESSAGE10

#define ANLNPTR_MESSAGE10   (1 << 10)

Definition at line 162 of file dp83822_driver.h.

◆ ANLNPTR_MESSAGE2

#define ANLNPTR_MESSAGE2   (1 << 2)

Definition at line 170 of file dp83822_driver.h.

◆ ANLNPTR_MESSAGE3

#define ANLNPTR_MESSAGE3   (1 << 3)

Definition at line 169 of file dp83822_driver.h.

◆ ANLNPTR_MESSAGE4

#define ANLNPTR_MESSAGE4   (1 << 4)

Definition at line 168 of file dp83822_driver.h.

◆ ANLNPTR_MESSAGE5

#define ANLNPTR_MESSAGE5   (1 << 5)

Definition at line 167 of file dp83822_driver.h.

◆ ANLNPTR_MESSAGE6

#define ANLNPTR_MESSAGE6   (1 << 6)

Definition at line 166 of file dp83822_driver.h.

◆ ANLNPTR_MESSAGE7

#define ANLNPTR_MESSAGE7   (1 << 7)

Definition at line 165 of file dp83822_driver.h.

◆ ANLNPTR_MESSAGE8

#define ANLNPTR_MESSAGE8   (1 << 8)

Definition at line 164 of file dp83822_driver.h.

◆ ANLNPTR_MESSAGE9

#define ANLNPTR_MESSAGE9   (1 << 9)

Definition at line 163 of file dp83822_driver.h.

◆ ANLNPTR_MP

#define ANLNPTR_MP   (1 << 13)

Definition at line 159 of file dp83822_driver.h.

◆ ANLNPTR_NP

#define ANLNPTR_NP   (1 << 15)

Definition at line 157 of file dp83822_driver.h.

◆ ANLNPTR_TOGGLE

#define ANLNPTR_TOGGLE   (1 << 11)

Definition at line 161 of file dp83822_driver.h.

◆ ANLPAR_100BT4

#define ANLPAR_100BT4   (1 << 9)

Definition at line 121 of file dp83822_driver.h.

◆ ANLPAR_100BTX

#define ANLPAR_100BTX   (1 << 7)

Definition at line 123 of file dp83822_driver.h.

◆ ANLPAR_100BTX_FD

#define ANLPAR_100BTX_FD   (1 << 8)

Definition at line 122 of file dp83822_driver.h.

◆ ANLPAR_10BT

#define ANLPAR_10BT   (1 << 5)

Definition at line 125 of file dp83822_driver.h.

◆ ANLPAR_10BT_FD

#define ANLPAR_10BT_FD   (1 << 6)

Definition at line 124 of file dp83822_driver.h.

◆ ANLPAR_ACK

#define ANLPAR_ACK   (1 << 14)

Definition at line 117 of file dp83822_driver.h.

◆ ANLPAR_ASM_DIR

#define ANLPAR_ASM_DIR   (1 << 11)

Definition at line 119 of file dp83822_driver.h.

◆ ANLPAR_NP

#define ANLPAR_NP   (1 << 15)

Definition at line 116 of file dp83822_driver.h.

◆ ANLPAR_PAUSE

#define ANLPAR_PAUSE   (1 << 10)

Definition at line 120 of file dp83822_driver.h.

◆ ANLPAR_RF

#define ANLPAR_RF   (1 << 13)

Definition at line 118 of file dp83822_driver.h.

◆ ANLPAR_SELECTOR0

#define ANLPAR_SELECTOR0   (1 << 0)

Definition at line 130 of file dp83822_driver.h.

◆ ANLPAR_SELECTOR1

#define ANLPAR_SELECTOR1   (1 << 1)

Definition at line 129 of file dp83822_driver.h.

◆ ANLPAR_SELECTOR2

#define ANLPAR_SELECTOR2   (1 << 2)

Definition at line 128 of file dp83822_driver.h.

◆ ANLPAR_SELECTOR3

#define ANLPAR_SELECTOR3   (1 << 3)

Definition at line 127 of file dp83822_driver.h.

◆ ANLPAR_SELECTOR4

#define ANLPAR_SELECTOR4   (1 << 4)

Definition at line 126 of file dp83822_driver.h.

◆ ANNPTR_ACK2

#define ANNPTR_ACK2   (1 << 12)

Definition at line 142 of file dp83822_driver.h.

◆ ANNPTR_CODE0

#define ANNPTR_CODE0   (1 << 0)

Definition at line 154 of file dp83822_driver.h.

◆ ANNPTR_CODE1

#define ANNPTR_CODE1   (1 << 1)

Definition at line 153 of file dp83822_driver.h.

◆ ANNPTR_CODE10

#define ANNPTR_CODE10   (1 << 10)

Definition at line 144 of file dp83822_driver.h.

◆ ANNPTR_CODE2

#define ANNPTR_CODE2   (1 << 2)

Definition at line 152 of file dp83822_driver.h.

◆ ANNPTR_CODE3

#define ANNPTR_CODE3   (1 << 3)

Definition at line 151 of file dp83822_driver.h.

◆ ANNPTR_CODE4

#define ANNPTR_CODE4   (1 << 4)

Definition at line 150 of file dp83822_driver.h.

◆ ANNPTR_CODE5

#define ANNPTR_CODE5   (1 << 5)

Definition at line 149 of file dp83822_driver.h.

◆ ANNPTR_CODE6

#define ANNPTR_CODE6   (1 << 6)

Definition at line 148 of file dp83822_driver.h.

◆ ANNPTR_CODE7

#define ANNPTR_CODE7   (1 << 7)

Definition at line 147 of file dp83822_driver.h.

◆ ANNPTR_CODE8

#define ANNPTR_CODE8   (1 << 8)

Definition at line 146 of file dp83822_driver.h.

◆ ANNPTR_CODE9

#define ANNPTR_CODE9   (1 << 9)

Definition at line 145 of file dp83822_driver.h.

◆ ANNPTR_MP

#define ANNPTR_MP   (1 << 13)

Definition at line 141 of file dp83822_driver.h.

◆ ANNPTR_NP

#define ANNPTR_NP   (1 << 15)

Definition at line 140 of file dp83822_driver.h.

◆ ANNPTR_TOG_TX

#define ANNPTR_TOG_TX   (1 << 11)

Definition at line 143 of file dp83822_driver.h.

◆ BICSR1_BIST_ERROR_COUNT0

#define BICSR1_BIST_ERROR_COUNT0   (1 << 8)

Definition at line 377 of file dp83822_driver.h.

◆ BICSR1_BIST_ERROR_COUNT1

#define BICSR1_BIST_ERROR_COUNT1   (1 << 9)

Definition at line 376 of file dp83822_driver.h.

◆ BICSR1_BIST_ERROR_COUNT2

#define BICSR1_BIST_ERROR_COUNT2   (1 << 10)

Definition at line 375 of file dp83822_driver.h.

◆ BICSR1_BIST_ERROR_COUNT3

#define BICSR1_BIST_ERROR_COUNT3   (1 << 11)

Definition at line 374 of file dp83822_driver.h.

◆ BICSR1_BIST_ERROR_COUNT4

#define BICSR1_BIST_ERROR_COUNT4   (1 << 12)

Definition at line 373 of file dp83822_driver.h.

◆ BICSR1_BIST_ERROR_COUNT5

#define BICSR1_BIST_ERROR_COUNT5   (1 << 13)

Definition at line 372 of file dp83822_driver.h.

◆ BICSR1_BIST_ERROR_COUNT6

#define BICSR1_BIST_ERROR_COUNT6   (1 << 14)

Definition at line 371 of file dp83822_driver.h.

◆ BICSR1_BIST_ERROR_COUNT7

#define BICSR1_BIST_ERROR_COUNT7   (1 << 15)

Definition at line 370 of file dp83822_driver.h.

◆ BICSR1_BIST_IPG_LENGTH0

#define BICSR1_BIST_IPG_LENGTH0   (1 << 0)

Definition at line 385 of file dp83822_driver.h.

◆ BICSR1_BIST_IPG_LENGTH1

#define BICSR1_BIST_IPG_LENGTH1   (1 << 1)

Definition at line 384 of file dp83822_driver.h.

◆ BICSR1_BIST_IPG_LENGTH2

#define BICSR1_BIST_IPG_LENGTH2   (1 << 2)

Definition at line 383 of file dp83822_driver.h.

◆ BICSR1_BIST_IPG_LENGTH3

#define BICSR1_BIST_IPG_LENGTH3   (1 << 3)

Definition at line 382 of file dp83822_driver.h.

◆ BICSR1_BIST_IPG_LENGTH4

#define BICSR1_BIST_IPG_LENGTH4   (1 << 4)

Definition at line 381 of file dp83822_driver.h.

◆ BICSR1_BIST_IPG_LENGTH5

#define BICSR1_BIST_IPG_LENGTH5   (1 << 5)

Definition at line 380 of file dp83822_driver.h.

◆ BICSR1_BIST_IPG_LENGTH6

#define BICSR1_BIST_IPG_LENGTH6   (1 << 6)

Definition at line 379 of file dp83822_driver.h.

◆ BICSR1_BIST_IPG_LENGTH7

#define BICSR1_BIST_IPG_LENGTH7   (1 << 7)

Definition at line 378 of file dp83822_driver.h.

◆ BICSR2_BIST_PACKET_LENGTH0

#define BICSR2_BIST_PACKET_LENGTH0   (1 << 0)

Definition at line 398 of file dp83822_driver.h.

◆ BICSR2_BIST_PACKET_LENGTH1

#define BICSR2_BIST_PACKET_LENGTH1   (1 << 1)

Definition at line 397 of file dp83822_driver.h.

◆ BICSR2_BIST_PACKET_LENGTH10

#define BICSR2_BIST_PACKET_LENGTH10   (1 << 10)

Definition at line 388 of file dp83822_driver.h.

◆ BICSR2_BIST_PACKET_LENGTH2

#define BICSR2_BIST_PACKET_LENGTH2   (1 << 2)

Definition at line 396 of file dp83822_driver.h.

◆ BICSR2_BIST_PACKET_LENGTH3

#define BICSR2_BIST_PACKET_LENGTH3   (1 << 3)

Definition at line 395 of file dp83822_driver.h.

◆ BICSR2_BIST_PACKET_LENGTH4

#define BICSR2_BIST_PACKET_LENGTH4   (1 << 4)

Definition at line 394 of file dp83822_driver.h.

◆ BICSR2_BIST_PACKET_LENGTH5

#define BICSR2_BIST_PACKET_LENGTH5   (1 << 5)

Definition at line 393 of file dp83822_driver.h.

◆ BICSR2_BIST_PACKET_LENGTH6

#define BICSR2_BIST_PACKET_LENGTH6   (1 << 6)

Definition at line 392 of file dp83822_driver.h.

◆ BICSR2_BIST_PACKET_LENGTH7

#define BICSR2_BIST_PACKET_LENGTH7   (1 << 7)

Definition at line 391 of file dp83822_driver.h.

◆ BICSR2_BIST_PACKET_LENGTH8

#define BICSR2_BIST_PACKET_LENGTH8   (1 << 8)

Definition at line 390 of file dp83822_driver.h.

◆ BICSR2_BIST_PACKET_LENGTH9

#define BICSR2_BIST_PACKET_LENGTH9   (1 << 9)

Definition at line 389 of file dp83822_driver.h.

◆ BISCR_ERROR_COUNTER_MODE

#define BISCR_ERROR_COUNTER_MODE   (1 << 14)

Definition at line 309 of file dp83822_driver.h.

◆ BISCR_LOOPBACK_MODE0

#define BISCR_LOOPBACK_MODE0   (1 << 0)

Definition at line 321 of file dp83822_driver.h.

◆ BISCR_LOOPBACK_MODE1

#define BISCR_LOOPBACK_MODE1   (1 << 1)

Definition at line 320 of file dp83822_driver.h.

◆ BISCR_LOOPBACK_MODE2

#define BISCR_LOOPBACK_MODE2   (1 << 2)

Definition at line 319 of file dp83822_driver.h.

◆ BISCR_LOOPBACK_MODE3

#define BISCR_LOOPBACK_MODE3   (1 << 3)

Definition at line 318 of file dp83822_driver.h.

◆ BISCR_LOOPBACK_MODE4

#define BISCR_LOOPBACK_MODE4   (1 << 4)

Definition at line 317 of file dp83822_driver.h.

◆ BISCR_PACKET_GEN_EN

#define BISCR_PACKET_GEN_EN   (1 << 12)

Definition at line 311 of file dp83822_driver.h.

◆ BISCR_PACKET_GEN_STATUS

#define BISCR_PACKET_GEN_STATUS   (1 << 9)

Definition at line 314 of file dp83822_driver.h.

◆ BISCR_POWER_MODE

#define BISCR_POWER_MODE   (1 << 8)

Definition at line 315 of file dp83822_driver.h.

◆ BISCR_PRBS_CHECK

#define BISCR_PRBS_CHECK   (1 << 13)

Definition at line 310 of file dp83822_driver.h.

◆ BISCR_PRBS_CHECK_LOCK_SYNC

#define BISCR_PRBS_CHECK_LOCK_SYNC   (1 << 11)

Definition at line 312 of file dp83822_driver.h.

◆ BISCR_PRBS_CHECK_SYNC_LOSS

#define BISCR_PRBS_CHECK_SYNC_LOSS   (1 << 10)

Definition at line 313 of file dp83822_driver.h.

◆ BISCR_TX_MII_LOOPBACK

#define BISCR_TX_MII_LOOPBACK   (1 << 6)

Definition at line 316 of file dp83822_driver.h.

◆ BMCR_AN_EN

#define BMCR_AN_EN   (1 << 12)

Definition at line 78 of file dp83822_driver.h.

◆ BMCR_COL_TEST

#define BMCR_COL_TEST   (1 << 7)

Definition at line 83 of file dp83822_driver.h.

◆ BMCR_DUPLEX_MODE

#define BMCR_DUPLEX_MODE   (1 << 8)

Definition at line 82 of file dp83822_driver.h.

◆ BMCR_ISOLATE

#define BMCR_ISOLATE   (1 << 10)

Definition at line 80 of file dp83822_driver.h.

◆ BMCR_LOOPBACK

#define BMCR_LOOPBACK   (1 << 14)

Definition at line 76 of file dp83822_driver.h.

◆ BMCR_POWER_DOWN

#define BMCR_POWER_DOWN   (1 << 11)

Definition at line 79 of file dp83822_driver.h.

◆ BMCR_RESET

#define BMCR_RESET   (1 << 15)

Definition at line 75 of file dp83822_driver.h.

◆ BMCR_RESTART_AN

#define BMCR_RESTART_AN   (1 << 9)

Definition at line 81 of file dp83822_driver.h.

◆ BMCR_SPEED_SEL

#define BMCR_SPEED_SEL   (1 << 13)

Definition at line 77 of file dp83822_driver.h.

◆ BMSR_100BT4

#define BMSR_100BT4   (1 << 15)

Definition at line 86 of file dp83822_driver.h.

◆ BMSR_100BTX

#define BMSR_100BTX   (1 << 13)

Definition at line 88 of file dp83822_driver.h.

◆ BMSR_100BTX_FD

#define BMSR_100BTX_FD   (1 << 14)

Definition at line 87 of file dp83822_driver.h.

◆ BMSR_10BT

#define BMSR_10BT   (1 << 11)

Definition at line 90 of file dp83822_driver.h.

◆ BMSR_10BT_FD

#define BMSR_10BT_FD   (1 << 12)

Definition at line 89 of file dp83822_driver.h.

◆ BMSR_AN_ABLE

#define BMSR_AN_ABLE   (1 << 3)

Definition at line 94 of file dp83822_driver.h.

◆ BMSR_AN_COMPLETE

#define BMSR_AN_COMPLETE   (1 << 5)

Definition at line 92 of file dp83822_driver.h.

◆ BMSR_EXTENDED_CAP

#define BMSR_EXTENDED_CAP   (1 << 0)

Definition at line 97 of file dp83822_driver.h.

◆ BMSR_JABBER_DETECT

#define BMSR_JABBER_DETECT   (1 << 1)

Definition at line 96 of file dp83822_driver.h.

◆ BMSR_LINK_STATUS

#define BMSR_LINK_STATUS   (1 << 2)

Definition at line 95 of file dp83822_driver.h.

◆ BMSR_NO_PREAMBLE

#define BMSR_NO_PREAMBLE   (1 << 6)

Definition at line 91 of file dp83822_driver.h.

◆ BMSR_REMOTE_FAULT

#define BMSR_REMOTE_FAULT   (1 << 4)

Definition at line 93 of file dp83822_driver.h.

◆ CDCR_CABLE_DIAG_START

#define CDCR_CABLE_DIAG_START   (1 << 15)

Definition at line 401 of file dp83822_driver.h.

◆ CDCR_CABLE_DIAG_STATUS

#define CDCR_CABLE_DIAG_STATUS   (1 << 1)

Definition at line 402 of file dp83822_driver.h.

◆ CDCR_CABLE_DIAG_TEST_FAIL

#define CDCR_CABLE_DIAG_TEST_FAIL   (1 << 0)

Definition at line 403 of file dp83822_driver.h.

◆ CR1_FAST_AN_EN

#define CR1_FAST_AN_EN   (1 << 4)

Definition at line 180 of file dp83822_driver.h.

◆ CR1_FAST_AN_SEL0

#define CR1_FAST_AN_SEL0   (1 << 2)

Definition at line 182 of file dp83822_driver.h.

◆ CR1_FAST_AN_SEL1

#define CR1_FAST_AN_SEL1   (1 << 3)

Definition at line 181 of file dp83822_driver.h.

◆ CR1_FAST_AUTO_MDIX

#define CR1_FAST_AUTO_MDIX   (1 << 6)

Definition at line 178 of file dp83822_driver.h.

◆ CR1_FAST_RX_DV_DETECT

#define CR1_FAST_RX_DV_DETECT   (1 << 1)

Definition at line 183 of file dp83822_driver.h.

◆ CR1_LINK_LOSS_RECOVERY

#define CR1_LINK_LOSS_RECOVERY   (1 << 7)

Definition at line 177 of file dp83822_driver.h.

◆ CR1_RMII_ENHANCED_MODE

#define CR1_RMII_ENHANCED_MODE   (1 << 9)

Definition at line 175 of file dp83822_driver.h.

◆ CR1_ROBUST_AUTO_MDIX

#define CR1_ROBUST_AUTO_MDIX   (1 << 5)

Definition at line 179 of file dp83822_driver.h.

◆ CR1_TDR_AUTO_RUN

#define CR1_TDR_AUTO_RUN   (1 << 8)

Definition at line 176 of file dp83822_driver.h.

◆ CR2_100BFX_EN

#define CR2_100BFX_EN   (1 << 14)

Definition at line 187 of file dp83822_driver.h.

◆ CR2_ASY_LINK_UP_IN_PD

#define CR2_ASY_LINK_UP_IN_PD   (1 << 6)

Definition at line 188 of file dp83822_driver.h.

◆ CR2_ENHANCED_LED_LINK

#define CR2_ENHANCED_LED_LINK   (1 << 4)

Definition at line 190 of file dp83822_driver.h.

◆ CR2_EXT_FULL_DUPLEX_ABLE

#define CR2_EXT_FULL_DUPLEX_ABLE   (1 << 5)

Definition at line 189 of file dp83822_driver.h.

◆ CR2_FORCE_FAR_END_LINK_DROP

#define CR2_FORCE_FAR_END_LINK_DROP   (1 << 15)

Definition at line 186 of file dp83822_driver.h.

◆ CR2_ISOLATE_MII

#define CR2_ISOLATE_MII   (1 << 3)

Definition at line 191 of file dp83822_driver.h.

◆ CR2_ODD_NIBBLE_DETECT_DIS

#define CR2_ODD_NIBBLE_DETECT_DIS   (1 << 1)

Definition at line 193 of file dp83822_driver.h.

◆ CR2_RMII_RX_CLK

#define CR2_RMII_RX_CLK   (1 << 0)

Definition at line 194 of file dp83822_driver.h.

◆ CR2_RX_ER_DURING_IDLE

#define CR2_RX_ER_DURING_IDLE   (1 << 2)

Definition at line 192 of file dp83822_driver.h.

◆ CR3_DESCR_FAST_LINK_DOWN

#define CR3_DESCR_FAST_LINK_DOWN   (1 << 10)

Definition at line 197 of file dp83822_driver.h.

◆ CR_FAST_LINK_DOWN_MODE0

#define CR_FAST_LINK_DOWN_MODE0   (1 << 0)

Definition at line 203 of file dp83822_driver.h.

◆ CR_FAST_LINK_DOWN_MODE1

#define CR_FAST_LINK_DOWN_MODE1   (1 << 1)

Definition at line 202 of file dp83822_driver.h.

◆ CR_FAST_LINK_DOWN_MODE2

#define CR_FAST_LINK_DOWN_MODE2   (1 << 2)

Definition at line 201 of file dp83822_driver.h.

◆ CR_FAST_LINK_DOWN_MODE3

#define CR_FAST_LINK_DOWN_MODE3   (1 << 3)

Definition at line 200 of file dp83822_driver.h.

◆ CR_MDIX_SWAP

#define CR_MDIX_SWAP   (1 << 5)

Definition at line 199 of file dp83822_driver.h.

◆ CR_POLARITY_SWAP

#define CR_POLARITY_SWAP   (1 << 6)

Definition at line 198 of file dp83822_driver.h.

◆ DP83822_PHY_ADDR

#define DP83822_PHY_ADDR   1

Definition at line 37 of file dp83822_driver.h.

◆ DP83822_PHY_REG_10BTSCR

#define DP83822_PHY_REG_10BTSCR   0x1A

Definition at line 68 of file dp83822_driver.h.

◆ DP83822_PHY_REG_ADDAR

#define DP83822_PHY_REG_ADDAR   0x0E

Definition at line 56 of file dp83822_driver.h.

◆ DP83822_PHY_REG_ANAR

#define DP83822_PHY_REG_ANAR   0x04

Definition at line 47 of file dp83822_driver.h.

◆ DP83822_PHY_REG_ANER

#define DP83822_PHY_REG_ANER   0x06

Definition at line 49 of file dp83822_driver.h.

◆ DP83822_PHY_REG_ANLNPTR

#define DP83822_PHY_REG_ANLNPTR   0x08

Definition at line 51 of file dp83822_driver.h.

◆ DP83822_PHY_REG_ANLPAR

#define DP83822_PHY_REG_ANLPAR   0x05

Definition at line 48 of file dp83822_driver.h.

◆ DP83822_PHY_REG_ANNPTR

#define DP83822_PHY_REG_ANNPTR   0x07

Definition at line 50 of file dp83822_driver.h.

◆ DP83822_PHY_REG_BICSR1

#define DP83822_PHY_REG_BICSR1   0x1B

Definition at line 69 of file dp83822_driver.h.

◆ DP83822_PHY_REG_BICSR2

#define DP83822_PHY_REG_BICSR2   0x1C

Definition at line 70 of file dp83822_driver.h.

◆ DP83822_PHY_REG_BISCR

#define DP83822_PHY_REG_BISCR   0x16

Definition at line 64 of file dp83822_driver.h.

◆ DP83822_PHY_REG_BMCR

#define DP83822_PHY_REG_BMCR   0x00

Definition at line 43 of file dp83822_driver.h.

◆ DP83822_PHY_REG_BMSR

#define DP83822_PHY_REG_BMSR   0x01

Definition at line 44 of file dp83822_driver.h.

◆ DP83822_PHY_REG_CDCR

#define DP83822_PHY_REG_CDCR   0x1E

Definition at line 71 of file dp83822_driver.h.

◆ DP83822_PHY_REG_CR1

#define DP83822_PHY_REG_CR1   0x09

Definition at line 52 of file dp83822_driver.h.

◆ DP83822_PHY_REG_CR2

#define DP83822_PHY_REG_CR2   0x0A

Definition at line 53 of file dp83822_driver.h.

◆ DP83822_PHY_REG_CR3

#define DP83822_PHY_REG_CR3   0x0B

Definition at line 54 of file dp83822_driver.h.

◆ DP83822_PHY_REG_FCSCR

#define DP83822_PHY_REG_FCSCR   0x14

Definition at line 62 of file dp83822_driver.h.

◆ DP83822_PHY_REG_FLDS

#define DP83822_PHY_REG_FLDS   0x0F

Definition at line 57 of file dp83822_driver.h.

◆ DP83822_PHY_REG_LEDCR

#define DP83822_PHY_REG_LEDCR   0x18

Definition at line 66 of file dp83822_driver.h.

◆ DP83822_PHY_REG_MISR1

#define DP83822_PHY_REG_MISR1   0x12

Definition at line 60 of file dp83822_driver.h.

◆ DP83822_PHY_REG_MISR2

#define DP83822_PHY_REG_MISR2   0x13

Definition at line 61 of file dp83822_driver.h.

◆ DP83822_PHY_REG_PHYCR

#define DP83822_PHY_REG_PHYCR   0x19

Definition at line 67 of file dp83822_driver.h.

◆ DP83822_PHY_REG_PHYIDR1

#define DP83822_PHY_REG_PHYIDR1   0x02

Definition at line 45 of file dp83822_driver.h.

◆ DP83822_PHY_REG_PHYIDR2

#define DP83822_PHY_REG_PHYIDR2   0x03

Definition at line 46 of file dp83822_driver.h.

◆ DP83822_PHY_REG_PHYRCR

#define DP83822_PHY_REG_PHYRCR   0x1F

Definition at line 72 of file dp83822_driver.h.

◆ DP83822_PHY_REG_PHYSCR

#define DP83822_PHY_REG_PHYSCR   0x11

Definition at line 59 of file dp83822_driver.h.

◆ DP83822_PHY_REG_PHYSTS

#define DP83822_PHY_REG_PHYSTS   0x10

Definition at line 58 of file dp83822_driver.h.

◆ DP83822_PHY_REG_RCSR

#define DP83822_PHY_REG_RCSR   0x17

Definition at line 65 of file dp83822_driver.h.

◆ DP83822_PHY_REG_RECR

#define DP83822_PHY_REG_RECR   0x15

Definition at line 63 of file dp83822_driver.h.

◆ DP83822_PHY_REG_REGCR

#define DP83822_PHY_REG_REGCR   0x0D

Definition at line 55 of file dp83822_driver.h.

◆ FCSCR_FCSCNT0

#define FCSCR_FCSCNT0   (1 << 0)

Definition at line 296 of file dp83822_driver.h.

◆ FCSCR_FCSCNT1

#define FCSCR_FCSCNT1   (1 << 1)

Definition at line 295 of file dp83822_driver.h.

◆ FCSCR_FCSCNT2

#define FCSCR_FCSCNT2   (1 << 2)

Definition at line 294 of file dp83822_driver.h.

◆ FCSCR_FCSCNT3

#define FCSCR_FCSCNT3   (1 << 3)

Definition at line 293 of file dp83822_driver.h.

◆ FCSCR_FCSCNT4

#define FCSCR_FCSCNT4   (1 << 4)

Definition at line 292 of file dp83822_driver.h.

◆ FCSCR_FCSCNT5

#define FCSCR_FCSCNT5   (1 << 5)

Definition at line 291 of file dp83822_driver.h.

◆ FCSCR_FCSCNT6

#define FCSCR_FCSCNT6   (1 << 6)

Definition at line 290 of file dp83822_driver.h.

◆ FCSCR_FCSCNT7

#define FCSCR_FCSCNT7   (1 << 7)

Definition at line 289 of file dp83822_driver.h.

◆ FLDS_FAST_LINK_DOWN_STATUS0

#define FLDS_FAST_LINK_DOWN_STATUS0   (1 << 4)

Definition at line 219 of file dp83822_driver.h.

◆ FLDS_FAST_LINK_DOWN_STATUS1

#define FLDS_FAST_LINK_DOWN_STATUS1   (1 << 5)

Definition at line 218 of file dp83822_driver.h.

◆ FLDS_FAST_LINK_DOWN_STATUS2

#define FLDS_FAST_LINK_DOWN_STATUS2   (1 << 6)

Definition at line 217 of file dp83822_driver.h.

◆ FLDS_FAST_LINK_DOWN_STATUS3

#define FLDS_FAST_LINK_DOWN_STATUS3   (1 << 7)

Definition at line 216 of file dp83822_driver.h.

◆ FLDS_FAST_LINK_DOWN_STATUS4

#define FLDS_FAST_LINK_DOWN_STATUS4   (1 << 8)

Definition at line 215 of file dp83822_driver.h.

◆ LEDCR_BLINK_RATE0

#define LEDCR_BLINK_RATE0   (1 << 9)

Definition at line 340 of file dp83822_driver.h.

◆ LEDCR_BLINK_RATE1

#define LEDCR_BLINK_RATE1   (1 << 10)

Definition at line 339 of file dp83822_driver.h.

◆ LEDCR_DRIVE_LED_0

#define LEDCR_DRIVE_LED_0   (1 << 4)

Definition at line 342 of file dp83822_driver.h.

◆ LEDCR_LED_0_ON_OFF

#define LEDCR_LED_0_ON_OFF   (1 << 1)

Definition at line 343 of file dp83822_driver.h.

◆ LEDCR_LED_0_POLARITY

#define LEDCR_LED_0_POLARITY   (1 << 7)

Definition at line 341 of file dp83822_driver.h.

◆ MISR1_ANC_INT

#define MISR1_ANC_INT   (1 << 10)

Definition at line 258 of file dp83822_driver.h.

◆ MISR1_ANC_INT_EN

#define MISR1_ANC_INT_EN   (1 << 2)

Definition at line 266 of file dp83822_driver.h.

◆ MISR1_DUP_INT

#define MISR1_DUP_INT   (1 << 11)

Definition at line 257 of file dp83822_driver.h.

◆ MISR1_DUP_INT_EN

#define MISR1_DUP_INT_EN   (1 << 3)

Definition at line 265 of file dp83822_driver.h.

◆ MISR1_ED_INT

#define MISR1_ED_INT   (1 << 14)

Definition at line 254 of file dp83822_driver.h.

◆ MISR1_ED_INT_EN

#define MISR1_ED_INT_EN   (1 << 6)

Definition at line 262 of file dp83822_driver.h.

◆ MISR1_FHF_INT

#define MISR1_FHF_INT   (1 << 9)

Definition at line 259 of file dp83822_driver.h.

◆ MISR1_FHF_INT_EN

#define MISR1_FHF_INT_EN   (1 << 1)

Definition at line 267 of file dp83822_driver.h.

◆ MISR1_LINK_INT

#define MISR1_LINK_INT   (1 << 13)

Definition at line 255 of file dp83822_driver.h.

◆ MISR1_LINK_INT_EN

#define MISR1_LINK_INT_EN   (1 << 5)

Definition at line 263 of file dp83822_driver.h.

◆ MISR1_LQ_INT

#define MISR1_LQ_INT   (1 << 15)

Definition at line 253 of file dp83822_driver.h.

◆ MISR1_LQ_INT_EN

#define MISR1_LQ_INT_EN   (1 << 7)

Definition at line 261 of file dp83822_driver.h.

◆ MISR1_RHF_INT

#define MISR1_RHF_INT   (1 << 8)

Definition at line 260 of file dp83822_driver.h.

◆ MISR1_RHF_INT_EN

#define MISR1_RHF_INT_EN   (1 << 0)

Definition at line 268 of file dp83822_driver.h.

◆ MISR1_SPD_INT

#define MISR1_SPD_INT   (1 << 12)

Definition at line 256 of file dp83822_driver.h.

◆ MISR1_SPD_INT_EN

#define MISR1_SPD_INT_EN   (1 << 4)

Definition at line 264 of file dp83822_driver.h.

◆ MISR2_AN_ERROR_INT

#define MISR2_AN_ERROR_INT   (1 << 14)

Definition at line 272 of file dp83822_driver.h.

◆ MISR2_AN_ERROR_INT_EN

#define MISR2_AN_ERROR_INT_EN   (1 << 6)

Definition at line 280 of file dp83822_driver.h.

◆ MISR2_EEE_ERROR_INT

#define MISR2_EEE_ERROR_INT   (1 << 15)

Definition at line 271 of file dp83822_driver.h.

◆ MISR2_EEE_ERROR_INT_EN

#define MISR2_EEE_ERROR_INT_EN   (1 << 7)

Definition at line 279 of file dp83822_driver.h.

◆ MISR2_FIFO_OF_UF_INT

#define MISR2_FIFO_OF_UF_INT   (1 << 12)

Definition at line 274 of file dp83822_driver.h.

◆ MISR2_FIFO_OF_UF_INT_EN

#define MISR2_FIFO_OF_UF_INT_EN   (1 << 4)

Definition at line 282 of file dp83822_driver.h.

◆ MISR2_JABBER_DETECT_INT

#define MISR2_JABBER_DETECT_INT   (1 << 8)

Definition at line 278 of file dp83822_driver.h.

◆ MISR2_JABBER_DETECT_INT_EN

#define MISR2_JABBER_DETECT_INT_EN   (1 << 0)

Definition at line 286 of file dp83822_driver.h.

◆ MISR2_MDI_CHANGE_INT

#define MISR2_MDI_CHANGE_INT   (1 << 11)

Definition at line 275 of file dp83822_driver.h.

◆ MISR2_MDI_CHANGE_INT_EN

#define MISR2_MDI_CHANGE_INT_EN   (1 << 3)

Definition at line 283 of file dp83822_driver.h.

◆ MISR2_POL_CHANGE_INT

#define MISR2_POL_CHANGE_INT   (1 << 9)

Definition at line 277 of file dp83822_driver.h.

◆ MISR2_POL_CHANGE_INT_EN

#define MISR2_POL_CHANGE_INT_EN   (1 << 1)

Definition at line 285 of file dp83822_driver.h.

◆ MISR2_PR_INT

#define MISR2_PR_INT   (1 << 13)

Definition at line 273 of file dp83822_driver.h.

◆ MISR2_PR_INT_EN

#define MISR2_PR_INT_EN   (1 << 5)

Definition at line 281 of file dp83822_driver.h.

◆ MISR2_SLEEP_MODE_INT

#define MISR2_SLEEP_MODE_INT   (1 << 10)

Definition at line 276 of file dp83822_driver.h.

◆ MISR2_SLEEP_MODE_INT_EN

#define MISR2_SLEEP_MODE_INT_EN   (1 << 2)

Definition at line 284 of file dp83822_driver.h.

◆ PHYCR_BP_LED_STRETCH

#define PHYCR_BP_LED_STRETCH   (1 << 7)

Definition at line 351 of file dp83822_driver.h.

◆ PHYCR_FORCE_MDIX

#define PHYCR_FORCE_MDIX   (1 << 14)

Definition at line 347 of file dp83822_driver.h.

◆ PHYCR_LED_CONFIG

#define PHYCR_LED_CONFIG   (1 << 5)

Definition at line 352 of file dp83822_driver.h.

◆ PHYCR_MDIX_EN

#define PHYCR_MDIX_EN   (1 << 15)

Definition at line 346 of file dp83822_driver.h.

◆ PHYCR_MII_LINK_STATUS

#define PHYCR_MII_LINK_STATUS   (1 << 11)

Definition at line 350 of file dp83822_driver.h.

◆ PHYCR_PAUSE_RX_STATUS

#define PHYCR_PAUSE_RX_STATUS   (1 << 13)

Definition at line 348 of file dp83822_driver.h.

◆ PHYCR_PAUSE_TX_STATUS

#define PHYCR_PAUSE_TX_STATUS   (1 << 12)

Definition at line 349 of file dp83822_driver.h.

◆ PHYCR_PHY_ADDR0

#define PHYCR_PHY_ADDR0   (1 << 0)

Definition at line 357 of file dp83822_driver.h.

◆ PHYCR_PHY_ADDR1

#define PHYCR_PHY_ADDR1   (1 << 1)

Definition at line 356 of file dp83822_driver.h.

◆ PHYCR_PHY_ADDR2

#define PHYCR_PHY_ADDR2   (1 << 2)

Definition at line 355 of file dp83822_driver.h.

◆ PHYCR_PHY_ADDR3

#define PHYCR_PHY_ADDR3   (1 << 3)

Definition at line 354 of file dp83822_driver.h.

◆ PHYCR_PHY_ADDR4

#define PHYCR_PHY_ADDR4   (1 << 4)

Definition at line 353 of file dp83822_driver.h.

◆ PHYRCR_DIGITAL_RESTART

#define PHYRCR_DIGITAL_RESTART   (1 << 14)

Definition at line 407 of file dp83822_driver.h.

◆ PHYRCR_SOFT_RESET

#define PHYRCR_SOFT_RESET   (1 << 15)

Definition at line 406 of file dp83822_driver.h.

◆ PHYSCR_COL_FULL_DUPLEX_EN

#define PHYSCR_COL_FULL_DUPLEX_EN   (1 << 4)

Definition at line 246 of file dp83822_driver.h.

◆ PHYSCR_DISABLE_PLL

#define PHYSCR_DISABLE_PLL   (1 << 15)

Definition at line 239 of file dp83822_driver.h.

◆ PHYSCR_INT_EN

#define PHYSCR_INT_EN   (1 << 1)

Definition at line 249 of file dp83822_driver.h.

◆ PHYSCR_INT_OE

#define PHYSCR_INT_OE   (1 << 0)

Definition at line 250 of file dp83822_driver.h.

◆ PHYSCR_INT_POLARITY

#define PHYSCR_INT_POLARITY   (1 << 3)

Definition at line 247 of file dp83822_driver.h.

◆ PHYSCR_LOOPBACK_FIFO_DEPTH0

#define PHYSCR_LOOPBACK_FIFO_DEPTH0   (1 << 8)

Definition at line 245 of file dp83822_driver.h.

◆ PHYSCR_LOOPBACK_FIFO_DEPTH1

#define PHYSCR_LOOPBACK_FIFO_DEPTH1   (1 << 9)

Definition at line 244 of file dp83822_driver.h.

◆ PHYSCR_POWER_SAVE_MODE0

#define PHYSCR_POWER_SAVE_MODE0   (1 << 12)

Definition at line 242 of file dp83822_driver.h.

◆ PHYSCR_POWER_SAVE_MODE1

#define PHYSCR_POWER_SAVE_MODE1   (1 << 13)

Definition at line 241 of file dp83822_driver.h.

◆ PHYSCR_POWER_SAVE_MODE_EN

#define PHYSCR_POWER_SAVE_MODE_EN   (1 << 14)

Definition at line 240 of file dp83822_driver.h.

◆ PHYSCR_SCRAMBLER_BYPASS

#define PHYSCR_SCRAMBLER_BYPASS   (1 << 11)

Definition at line 243 of file dp83822_driver.h.

◆ PHYSCR_TEST_INT

#define PHYSCR_TEST_INT   (1 << 2)

Definition at line 248 of file dp83822_driver.h.

◆ PHYSTS_AN_COMPLETE

#define PHYSTS_AN_COMPLETE   (1 << 4)

Definition at line 232 of file dp83822_driver.h.

◆ PHYSTS_DESCRAMBLER_LOCK

#define PHYSTS_DESCRAMBLER_LOCK   (1 << 9)

Definition at line 227 of file dp83822_driver.h.

◆ PHYSTS_DUPLEX_STATUS

#define PHYSTS_DUPLEX_STATUS   (1 << 2)

Definition at line 234 of file dp83822_driver.h.

◆ PHYSTS_FALSE_CARRIER_SENSE

#define PHYSTS_FALSE_CARRIER_SENSE   (1 << 11)

Definition at line 225 of file dp83822_driver.h.

◆ PHYSTS_JABBER_DETECT

#define PHYSTS_JABBER_DETECT   (1 << 5)

Definition at line 231 of file dp83822_driver.h.

◆ PHYSTS_LINK_STATUS

#define PHYSTS_LINK_STATUS   (1 << 0)

Definition at line 236 of file dp83822_driver.h.

◆ PHYSTS_LOOPBACK_STATUS

#define PHYSTS_LOOPBACK_STATUS   (1 << 3)

Definition at line 233 of file dp83822_driver.h.

◆ PHYSTS_MDIX_MODE

#define PHYSTS_MDIX_MODE   (1 << 14)

Definition at line 222 of file dp83822_driver.h.

◆ PHYSTS_MII_INTERRUPT

#define PHYSTS_MII_INTERRUPT   (1 << 7)

Definition at line 229 of file dp83822_driver.h.

◆ PHYSTS_PAGE_RECEIVED

#define PHYSTS_PAGE_RECEIVED   (1 << 8)

Definition at line 228 of file dp83822_driver.h.

◆ PHYSTS_POLARITY_STATUS

#define PHYSTS_POLARITY_STATUS   (1 << 12)

Definition at line 224 of file dp83822_driver.h.

◆ PHYSTS_REMOTE_FAULT

#define PHYSTS_REMOTE_FAULT   (1 << 6)

Definition at line 230 of file dp83822_driver.h.

◆ PHYSTS_RX_ERROR_LATCH

#define PHYSTS_RX_ERROR_LATCH   (1 << 13)

Definition at line 223 of file dp83822_driver.h.

◆ PHYSTS_SIGNAL_DETECT

#define PHYSTS_SIGNAL_DETECT   (1 << 10)

Definition at line 226 of file dp83822_driver.h.

◆ PHYSTS_SPEED_STATUS

#define PHYSTS_SPEED_STATUS   (1 << 1)

Definition at line 235 of file dp83822_driver.h.

◆ RCSR_ELAST_BUFFER_SIZE0

#define RCSR_ELAST_BUFFER_SIZE0   (1 << 0)

Definition at line 336 of file dp83822_driver.h.

◆ RCSR_ELAST_BUFFER_SIZE1

#define RCSR_ELAST_BUFFER_SIZE1   (1 << 1)

Definition at line 335 of file dp83822_driver.h.

◆ RCSR_RGMII_MODE

#define RCSR_RGMII_MODE   (1 << 9)

Definition at line 327 of file dp83822_driver.h.

◆ RCSR_RGMII_RX_CLK_SHIFT

#define RCSR_RGMII_RX_CLK_SHIFT   (1 << 12)

Definition at line 324 of file dp83822_driver.h.

◆ RCSR_RGMII_TX_CLK_SHIFT

#define RCSR_RGMII_TX_CLK_SHIFT   (1 << 11)

Definition at line 325 of file dp83822_driver.h.

◆ RCSR_RGMII_TX_SYNCED

#define RCSR_RGMII_TX_SYNCED   (1 << 10)

Definition at line 326 of file dp83822_driver.h.

◆ RCSR_RMII_ASYNC_FIFO_BP

#define RCSR_RMII_ASYNC_FIFO_BP   (1 << 6)

Definition at line 330 of file dp83822_driver.h.

◆ RCSR_RMII_CLK_SEL

#define RCSR_RMII_CLK_SEL   (1 << 7)

Definition at line 329 of file dp83822_driver.h.

◆ RCSR_RMII_MODE

#define RCSR_RMII_MODE   (1 << 5)

Definition at line 331 of file dp83822_driver.h.

◆ RCSR_RMII_OVF_STATUS

#define RCSR_RMII_OVF_STATUS   (1 << 3)

Definition at line 333 of file dp83822_driver.h.

◆ RCSR_RMII_REV_SEL

#define RCSR_RMII_REV_SEL   (1 << 4)

Definition at line 332 of file dp83822_driver.h.

◆ RCSR_RMII_TX_CLOCK_SHIFT

#define RCSR_RMII_TX_CLOCK_SHIFT   (1 << 8)

Definition at line 328 of file dp83822_driver.h.

◆ RCSR_RMII_UNF_STATUS

#define RCSR_RMII_UNF_STATUS   (1 << 2)

Definition at line 334 of file dp83822_driver.h.

◆ RECR_RXERCNT0

#define RECR_RXERCNT0   (1 << 0)

Definition at line 306 of file dp83822_driver.h.

◆ RECR_RXERCNT1

#define RECR_RXERCNT1   (1 << 1)

Definition at line 305 of file dp83822_driver.h.

◆ RECR_RXERCNT2

#define RECR_RXERCNT2   (1 << 2)

Definition at line 304 of file dp83822_driver.h.

◆ RECR_RXERCNT3

#define RECR_RXERCNT3   (1 << 3)

Definition at line 303 of file dp83822_driver.h.

◆ RECR_RXERCNT4

#define RECR_RXERCNT4   (1 << 4)

Definition at line 302 of file dp83822_driver.h.

◆ RECR_RXERCNT5

#define RECR_RXERCNT5   (1 << 5)

Definition at line 301 of file dp83822_driver.h.

◆ RECR_RXERCNT6

#define RECR_RXERCNT6   (1 << 6)

Definition at line 300 of file dp83822_driver.h.

◆ RECR_RXERCNT7

#define RECR_RXERCNT7   (1 << 7)

Definition at line 299 of file dp83822_driver.h.

◆ REGCR_DEVAD0

#define REGCR_DEVAD0   (1 << 0)

Definition at line 212 of file dp83822_driver.h.

◆ REGCR_DEVAD1

#define REGCR_DEVAD1   (1 << 1)

Definition at line 211 of file dp83822_driver.h.

◆ REGCR_DEVAD2

#define REGCR_DEVAD2   (1 << 2)

Definition at line 210 of file dp83822_driver.h.

◆ REGCR_DEVAD3

#define REGCR_DEVAD3   (1 << 3)

Definition at line 209 of file dp83822_driver.h.

◆ REGCR_DEVAD4

#define REGCR_DEVAD4   (1 << 4)

Definition at line 208 of file dp83822_driver.h.

◆ REGCR_EXTENDED_REG_CMD0

#define REGCR_EXTENDED_REG_CMD0   (1 << 14)

Definition at line 207 of file dp83822_driver.h.

◆ REGCR_EXTENDED_REG_CMD1

#define REGCR_EXTENDED_REG_CMD1   (1 << 15)

Definition at line 206 of file dp83822_driver.h.

Function Documentation

◆ dp83822DisableIrq()

void dp83822DisableIrq ( NetInterface interface)

Disable interrupts.

Parameters
[in]interfaceUnderlying network interface

Definition at line 146 of file dp83822_driver.c.

◆ dp83822DumpPhyReg()

void dp83822DumpPhyReg ( NetInterface interface)

Dump PHY registers for debugging purpose.

Parameters
[in]interfaceUnderlying network interface

Definition at line 254 of file dp83822_driver.c.

◆ dp83822EnableIrq()

void dp83822EnableIrq ( NetInterface interface)

Enable interrupts.

Parameters
[in]interfaceUnderlying network interface

Definition at line 133 of file dp83822_driver.c.

◆ dp83822EventHandler()

void dp83822EventHandler ( NetInterface interface)

DP83822 event handler.

Parameters
[in]interfaceUnderlying network interface

Definition at line 159 of file dp83822_driver.c.

◆ dp83822Init()

error_t dp83822Init ( NetInterface interface)

DP83822 PHY transceiver initialization.

Parameters
[in]interfaceUnderlying network interface
Returns
Error code

Definition at line 58 of file dp83822_driver.c.

◆ dp83822ReadPhyReg()

uint16_t dp83822ReadPhyReg ( NetInterface interface,
uint8_t  address 
)

Read PHY register.

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

Definition at line 234 of file dp83822_driver.c.

◆ dp83822Tick()

void dp83822Tick ( NetInterface interface)

DP83822 timer handler.

Parameters
[in]interfaceUnderlying network interface

Definition at line 95 of file dp83822_driver.c.

◆ dp83822WritePhyReg()

void dp83822WritePhyReg ( 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 212 of file dp83822_driver.c.

Variable Documentation

◆ dp83822PhyDriver

const PhyDriver dp83822PhyDriver

DP83822 Ethernet PHY driver.

Definition at line 42 of file dp83822_driver.c.