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_BMCR   0x00
 
#define DP83822_BMSR   0x01
 
#define DP83822_PHYID1   0x02
 
#define DP83822_PHYID2   0x03
 
#define DP83822_ANAR   0x04
 
#define DP83822_ANLPAR   0x05
 
#define DP83822_ANER   0x06
 
#define DP83822_ANNPR   0x07
 
#define DP83822_ANLPNPR   0x08
 
#define DP83822_CR1   0x09
 
#define DP83822_CR2   0x0A
 
#define DP83822_CR3   0x0B
 
#define DP83822_REGCR   0x0D
 
#define DP83822_ADDAR   0x0E
 
#define DP83822_FLDS   0x0F
 
#define DP83822_PHYSTS   0x10
 
#define DP83822_PHYSCR   0x11
 
#define DP83822_MISR1   0x12
 
#define DP83822_MISR2   0x13
 
#define DP83822_FCSCR   0x14
 
#define DP83822_RECR   0x15
 
#define DP83822_BISCR   0x16
 
#define DP83822_RCSR   0x17
 
#define DP83822_LEDCR   0x18
 
#define DP83822_PHYCR   0x19
 
#define DP83822_10BTSCR   0x1A
 
#define DP83822_BICSR1   0x1B
 
#define DP83822_BICSR2   0x1C
 
#define DP83822_CDCR   0x1E
 
#define DP83822_PHYRCR   0x1F
 
#define DP83822_BMCR_RESET   0x8000
 
#define DP83822_BMCR_LOOPBACK   0x4000
 
#define DP83822_BMCR_SPEED_SEL   0x2000
 
#define DP83822_BMCR_AN_EN   0x1000
 
#define DP83822_BMCR_POWER_DOWN   0x0800
 
#define DP83822_BMCR_ISOLATE   0x0400
 
#define DP83822_BMCR_RESTART_AN   0x0200
 
#define DP83822_BMCR_DUPLEX_MODE   0x0100
 
#define DP83822_BMCR_COL_TEST   0x0080
 
#define DP83822_BMSR_100BT4   0x8000
 
#define DP83822_BMSR_100BTX_FD   0x4000
 
#define DP83822_BMSR_100BTX_HD   0x2000
 
#define DP83822_BMSR_10BT_FD   0x1000
 
#define DP83822_BMSR_10BT_HD   0x0800
 
#define DP83822_BMSR_SMI_PREAMBLE_SUPPR   0x0040
 
#define DP83822_BMSR_AN_COMPLETE   0x0020
 
#define DP83822_BMSR_REMOTE_FAULT   0x0010
 
#define DP83822_BMSR_AN_CAPABLE   0x0008
 
#define DP83822_BMSR_LINK_STATUS   0x0004
 
#define DP83822_BMSR_JABBER_DETECT   0x0002
 
#define DP83822_BMSR_EXTENDED_CAPABLE   0x0001
 
#define DP83822_PHYID1_OUI_MSB   0xFFFF
 
#define DP83822_PHYID1_OUI_MSB_DEFAULT   0x2000
 
#define DP83822_PHYID2_OUI_LSB   0xFC00
 
#define DP83822_PHYID2_OUI_LSB_DEFAULT   0xA000
 
#define DP83822_PHYID2_VNDR_MDL   0x03F0
 
#define DP83822_PHYID2_VNDR_MDL_DEFAULT   0x0240
 
#define DP83822_PHYID2_MDL_REV   0x000F
 
#define DP83822_ANAR_NEXT_PAGE   0x8000
 
#define DP83822_ANAR_REMOTE_FAULT   0x2000
 
#define DP83822_ANAR_ASYM_DIR   0x0800
 
#define DP83822_ANAR_PAUSE   0x0400
 
#define DP83822_ANAR_100BT4   0x0200
 
#define DP83822_ANAR_100BTX_FD   0x0100
 
#define DP83822_ANAR_100BTX_HD   0x0080
 
#define DP83822_ANAR_10BT_FD   0x0040
 
#define DP83822_ANAR_10BT_HD   0x0020
 
#define DP83822_ANAR_SELECTOR   0x001F
 
#define DP83822_ANAR_SELECTOR_DEFAULT   0x0001
 
#define DP83822_ANLPAR_NEXT_PAGE   0x8000
 
#define DP83822_ANLPAR_ACK   0x4000
 
#define DP83822_ANLPAR_REMOTE_FAULT   0x2000
 
#define DP83822_ANLPAR_ASYM_DIR   0x0800
 
#define DP83822_ANLPAR_PAUSE   0x0400
 
#define DP83822_ANLPAR_100BT4   0x0200
 
#define DP83822_ANLPAR_100BTX_FD   0x0100
 
#define DP83822_ANLPAR_100BTX_HD   0x0080
 
#define DP83822_ANLPAR_10BT_FD   0x0040
 
#define DP83822_ANLPAR_10BT_HD   0x0020
 
#define DP83822_ANLPAR_SELECTOR   0x001F
 
#define DP83822_ANLPAR_SELECTOR_DEFAULT   0x0001
 
#define DP83822_ANER_PAR_DETECT_FAULT   0x0010
 
#define DP83822_ANER_LP_NEXT_PAGE_ABLE   0x0008
 
#define DP83822_ANER_NEXT_PAGE_ABLE   0x0004
 
#define DP83822_ANER_PAGE_RECEIVED   0x0002
 
#define DP83822_ANER_LP_AN_ABLE   0x0001
 
#define DP83822_ANNPR_NEXT_PAGE   0x8000
 
#define DP83822_ANNPR_MSG_PAGE   0x2000
 
#define DP83822_ANNPR_ACK2   0x1000
 
#define DP83822_ANNPR_TOGGLE   0x0800
 
#define DP83822_ANNPR_CODE   0x07FF
 
#define DP83822_ANLPNPR_NEXT_PAGE   0x8000
 
#define DP83822_ANLPNPR_ACK   0x4000
 
#define DP83822_ANLPNPR_MSG_PAGE   0x2000
 
#define DP83822_ANLPNPR_ACK2   0x1000
 
#define DP83822_ANLPNPR_TOGGLE   0x0800
 
#define DP83822_ANLPNPR_MESSAGE   0x07FF
 
#define DP83822_CR1_RMII_ENHANCED_MODE   0x0200
 
#define DP83822_CR1_TDR_AUTO_RUN   0x0100
 
#define DP83822_CR1_LINK_LOSS_RECOVERY   0x0080
 
#define DP83822_CR1_FAST_AUTO_MDIX   0x0040
 
#define DP83822_CR1_ROBUST_AUTO_MDIX   0x0020
 
#define DP83822_CR1_FAST_AN_EN   0x0010
 
#define DP83822_CR1_FAST_AN_SEL   0x000C
 
#define DP83822_CR1_FAST_RX_DV_DETECT   0x0002
 
#define DP83822_CR2_FORCE_FAR_END_LINK_DROP   0x8000
 
#define DP83822_CR2_100BFX_EN   0x4000
 
#define DP83822_CR2_FAST_LINK_UP_IN_PD   0x0040
 
#define DP83822_CR2_EXTENDED_FD_ABLE   0x0020
 
#define DP83822_CR2_ENHANCED_LED_LINK   0x0010
 
#define DP83822_CR2_ISOLATE_MII   0x0008
 
#define DP83822_CR2_RX_ER_DURING_IDLE   0x0004
 
#define DP83822_CR2_ODD_NIBBLE_DETECT_DIS   0x0002
 
#define DP83822_CR2_RMII_RECEIVE_CLK   0x0001
 
#define DP83822_CR3_DESCRAMBLER_FAST_LINK_DOWN   0x0400
 
#define DP83822_CR3_POLARITY_SWAP   0x0040
 
#define DP83822_CR3_MDIX_SWAP   0x0020
 
#define DP83822_CR3_FAST_LINK_DOWN_MODE   0x000F
 
#define DP83822_REGCR_CMD   0xC000
 
#define DP83822_REGCR_CMD_ADDR   0x0000
 
#define DP83822_REGCR_CMD_DATA_NO_POST_INC   0x4000
 
#define DP83822_REGCR_CMD_DATA_POST_INC_RW   0x8000
 
#define DP83822_REGCR_CMD_DATA_POST_INC_W   0xC000
 
#define DP83822_REGCR_DEVAD   0x001F
 
#define DP83822_FLDS_FAST_LINK_DOWN_STATUS   0x01F0
 
#define DP83822_PHYSTS_MDIX_MODE   0x4000
 
#define DP83822_PHYSTS_RECEIVE_ERROR_LATCH   0x2000
 
#define DP83822_PHYSTS_POLARITY_STATUS   0x1000
 
#define DP83822_PHYSTS_FCS_LATCH   0x0800
 
#define DP83822_PHYSTS_SIGNAL_DETECT   0x0400
 
#define DP83822_PHYSTS_DESCRAMBLER_LOCK   0x0200
 
#define DP83822_PHYSTS_PAGE_RECEIVED   0x0100
 
#define DP83822_PHYSTS_MII_INTERRUPT   0x0080
 
#define DP83822_PHYSTS_REMOTE_FAULT   0x0040
 
#define DP83822_PHYSTS_JABBER_DETECT   0x0020
 
#define DP83822_PHYSTS_AN_COMPLETE   0x0010
 
#define DP83822_PHYSTS_LOOPBACK_STATUS   0x0008
 
#define DP83822_PHYSTS_DUPLEX_STATUS   0x0004
 
#define DP83822_PHYSTS_SPEED_STATUS   0x0002
 
#define DP83822_PHYSTS_LINK_STATUS   0x0001
 
#define DP83822_PHYSCR_PLL_DIS   0x8000
 
#define DP83822_PHYSCR_POWER_SAVE_MODE_EN   0x4000
 
#define DP83822_PHYSCR_POWER_SAVE_MODE   0x3000
 
#define DP83822_PHYSCR_SCRAMBLER_BYPASS   0x0800
 
#define DP83822_PHYSCR_LOOPBACK_FIFO_DEPTH   0x0300
 
#define DP83822_PHYSCR_COL_FD_EN   0x0010
 
#define DP83822_PHYSCR_INT_POLARITY   0x0008
 
#define DP83822_PHYSCR_TEST_INT   0x0004
 
#define DP83822_PHYSCR_INT_EN   0x0002
 
#define DP83822_PHYSCR_INT_OE   0x0001
 
#define DP83822_MISR1_LQ_INT   0x8000
 
#define DP83822_MISR1_ED_INT   0x4000
 
#define DP83822_MISR1_LINK_INT   0x2000
 
#define DP83822_MISR1_SPD_INT   0x1000
 
#define DP83822_MISR1_DUP_INT   0x0800
 
#define DP83822_MISR1_ANC_INT   0x0400
 
#define DP83822_MISR1_FHF_INT   0x0200
 
#define DP83822_MISR1_RHF_INT   0x0100
 
#define DP83822_MISR1_LQ_INT_EN   0x0080
 
#define DP83822_MISR1_ED_INT_EN   0x0040
 
#define DP83822_MISR1_LINK_INT_EN   0x0020
 
#define DP83822_MISR1_SPD_INT_EN   0x0010
 
#define DP83822_MISR1_DUP_INT_EN   0x0008
 
#define DP83822_MISR1_ANC_INT_EN   0x0004
 
#define DP83822_MISR1_FHF_INT_EN   0x0002
 
#define DP83822_MISR1_RHF_INT_EN   0x0001
 
#define DP83822_MISR2_EEE_ERROR_INT   0x8000
 
#define DP83822_MISR2_AN_ERROR_INT   0x4000
 
#define DP83822_MISR2_PR_INT   0x2000
 
#define DP83822_MISR2_FIFO_OF_UF_INT   0x1000
 
#define DP83822_MISR2_MDI_CHANGE_INT   0x0800
 
#define DP83822_MISR2_SLEEP_MODE_INT   0x0400
 
#define DP83822_MISR2_POL_CHANGE_INT   0x0200
 
#define DP83822_MISR2_JABBER_DETECT_INT   0x0100
 
#define DP83822_MISR2_EEE_ERROR_INT_EN   0x0080
 
#define DP83822_MISR2_AN_ERROR_INT_EN   0x0040
 
#define DP83822_MISR2_PR_INT_EN   0x0020
 
#define DP83822_MISR2_FIFO_OF_UF_INT_EN   0x0010
 
#define DP83822_MISR2_MDI_CHANGE_INT_EN   0x0008
 
#define DP83822_MISR2_SLEEP_MODE_INT_EN   0x0004
 
#define DP83822_MISR2_POL_CHANGE_INT_EN   0x0002
 
#define DP83822_MISR2_JABBER_DETECT_INT_EN   0x0001
 
#define DP83822_FCSCR_FCSCNT   0x00FF
 
#define DP83822_RECR_RXERCNT   0xFFFF
 
#define DP83822_BISCR_ERROR_COUNTER_MODE   0x4000
 
#define DP83822_BISCR_PRBS_CHECKER   0x2000
 
#define DP83822_BISCR_PACKET_GEN_EN   0x1000
 
#define DP83822_BISCR_PRBS_CHECKER_LOCK_SYNC   0x0800
 
#define DP83822_BISCR_PRBS_CHECKER_SYNC_LOSS   0x0400
 
#define DP83822_BISCR_PACKET_GEN_STATUS   0x0200
 
#define DP83822_BISCR_POWER_MODE   0x0100
 
#define DP83822_BISCR_TX_MII_LOOPBACK   0x0040
 
#define DP83822_BISCR_LOOPBACK_MODE   0x001F
 
#define DP83822_RCSR_RGMII_RX_CLK_SHIFT   0x1000
 
#define DP83822_RCSR_RGMII_TX_CLK_SHIFT   0x0800
 
#define DP83822_RCSR_RGMII_TX_SYNCED   0x0400
 
#define DP83822_RCSR_RGMII_MODE   0x0200
 
#define DP83822_RCSR_RMII_TX_CLOCK_SHIFT   0x0100
 
#define DP83822_RCSR_RMII_CLK_SEL   0x0080
 
#define DP83822_RCSR_RMII_ASYNC_FIFO_BYPASS   0x0040
 
#define DP83822_RCSR_RMII_MODE   0x0020
 
#define DP83822_RCSR_RMII_REV_SEL   0x0010
 
#define DP83822_RCSR_RMII_OVF_STATUS   0x0008
 
#define DP83822_RCSR_RMII_UNF_STATUS   0x0004
 
#define DP83822_RCSR_RX_ELAST_BUFFER_SIZE   0x0003
 
#define DP83822_LEDCR_BLINK_RATE   0x0600
 
#define DP83822_LEDCR_LED_0_POLARITY   0x0080
 
#define DP83822_LEDCR_DRIVE_LED_0   0x0010
 
#define DP83822_LEDCR_LED_0_ON_OFF   0x0002
 
#define DP83822_PHYCR_MDIX_EN   0x8000
 
#define DP83822_PHYCR_FORCE_MDIX   0x4000
 
#define DP83822_PHYCR_PAUSE_RX_STATUS   0x2000
 
#define DP83822_PHYCR_PAUSE_TX_STATUS   0x1000
 
#define DP83822_PHYCR_MII_LINK_STATUS   0x0800
 
#define DP83822_PHYCR_BYPASS_LED_STRETCH   0x0080
 
#define DP83822_PHYCR_LED_CONFIG   0x0020
 
#define DP83822_PHYCR_PHY_ADDR   0x001F
 
#define DP83822_10BTSCR_RX_THRESHOLD_EN   0x2000
 
#define DP83822_10BTSCR_SQUELCH   0x1E00
 
#define DP83822_10BTSCR_NLP_DIS   0x0080
 
#define DP83822_10BTSCR_POLARITY_STATUS   0x0010
 
#define DP83822_10BTSCR_JABBER_DIS   0x0001
 
#define DP83822_BICSR1_BIST_ERROR_COUNT   0xFF00
 
#define DP83822_BICSR1_BIST_IPG_LENGTH   0x00FF
 
#define DP83822_BICSR2_BIST_PACKET_LENGTH   0x07FF
 
#define DP83822_CDCR_CABLE_DIAG_START   0x8000
 
#define DP83822_CDCR_CDCR_CABLE_DIAG_STATUS   0x0002
 
#define DP83822_CDCR_CDCR_CABLE_DIAG_TEST_FAIL   0x0001
 
#define DP83822_PHYRCR_SOFT_RESET   0x8000
 
#define DP83822_PHYRCR_DIGITAL_RESTART   0x4000
 

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

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

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

This file is part of CycloneTCP Open.

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

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

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

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

Definition in file dp83822_driver.h.

Macro Definition Documentation

◆ DP83822_10BTSCR

#define DP83822_10BTSCR   0x1A

Definition at line 70 of file dp83822_driver.h.

◆ DP83822_10BTSCR_JABBER_DIS

#define DP83822_10BTSCR_JABBER_DIS   0x0001

Definition at line 316 of file dp83822_driver.h.

◆ DP83822_10BTSCR_NLP_DIS

#define DP83822_10BTSCR_NLP_DIS   0x0080

Definition at line 314 of file dp83822_driver.h.

◆ DP83822_10BTSCR_POLARITY_STATUS

#define DP83822_10BTSCR_POLARITY_STATUS   0x0010

Definition at line 315 of file dp83822_driver.h.

◆ DP83822_10BTSCR_RX_THRESHOLD_EN

#define DP83822_10BTSCR_RX_THRESHOLD_EN   0x2000

Definition at line 312 of file dp83822_driver.h.

◆ DP83822_10BTSCR_SQUELCH

#define DP83822_10BTSCR_SQUELCH   0x1E00

Definition at line 313 of file dp83822_driver.h.

◆ DP83822_ADDAR

#define DP83822_ADDAR   0x0E

Definition at line 58 of file dp83822_driver.h.

◆ DP83822_ANAR

#define DP83822_ANAR   0x04

Definition at line 49 of file dp83822_driver.h.

◆ DP83822_ANAR_100BT4

#define DP83822_ANAR_100BT4   0x0200

Definition at line 117 of file dp83822_driver.h.

◆ DP83822_ANAR_100BTX_FD

#define DP83822_ANAR_100BTX_FD   0x0100

Definition at line 118 of file dp83822_driver.h.

◆ DP83822_ANAR_100BTX_HD

#define DP83822_ANAR_100BTX_HD   0x0080

Definition at line 119 of file dp83822_driver.h.

◆ DP83822_ANAR_10BT_FD

#define DP83822_ANAR_10BT_FD   0x0040

Definition at line 120 of file dp83822_driver.h.

◆ DP83822_ANAR_10BT_HD

#define DP83822_ANAR_10BT_HD   0x0020

Definition at line 121 of file dp83822_driver.h.

◆ DP83822_ANAR_ASYM_DIR

#define DP83822_ANAR_ASYM_DIR   0x0800

Definition at line 115 of file dp83822_driver.h.

◆ DP83822_ANAR_NEXT_PAGE

#define DP83822_ANAR_NEXT_PAGE   0x8000

Definition at line 113 of file dp83822_driver.h.

◆ DP83822_ANAR_PAUSE

#define DP83822_ANAR_PAUSE   0x0400

Definition at line 116 of file dp83822_driver.h.

◆ DP83822_ANAR_REMOTE_FAULT

#define DP83822_ANAR_REMOTE_FAULT   0x2000

Definition at line 114 of file dp83822_driver.h.

◆ DP83822_ANAR_SELECTOR

#define DP83822_ANAR_SELECTOR   0x001F

Definition at line 122 of file dp83822_driver.h.

◆ DP83822_ANAR_SELECTOR_DEFAULT

#define DP83822_ANAR_SELECTOR_DEFAULT   0x0001

Definition at line 123 of file dp83822_driver.h.

◆ DP83822_ANER

#define DP83822_ANER   0x06

Definition at line 51 of file dp83822_driver.h.

◆ DP83822_ANER_LP_AN_ABLE

#define DP83822_ANER_LP_AN_ABLE   0x0001

Definition at line 144 of file dp83822_driver.h.

◆ DP83822_ANER_LP_NEXT_PAGE_ABLE

#define DP83822_ANER_LP_NEXT_PAGE_ABLE   0x0008

Definition at line 141 of file dp83822_driver.h.

◆ DP83822_ANER_NEXT_PAGE_ABLE

#define DP83822_ANER_NEXT_PAGE_ABLE   0x0004

Definition at line 142 of file dp83822_driver.h.

◆ DP83822_ANER_PAGE_RECEIVED

#define DP83822_ANER_PAGE_RECEIVED   0x0002

Definition at line 143 of file dp83822_driver.h.

◆ DP83822_ANER_PAR_DETECT_FAULT

#define DP83822_ANER_PAR_DETECT_FAULT   0x0010

Definition at line 140 of file dp83822_driver.h.

◆ DP83822_ANLPAR

#define DP83822_ANLPAR   0x05

Definition at line 50 of file dp83822_driver.h.

◆ DP83822_ANLPAR_100BT4

#define DP83822_ANLPAR_100BT4   0x0200

Definition at line 131 of file dp83822_driver.h.

◆ DP83822_ANLPAR_100BTX_FD

#define DP83822_ANLPAR_100BTX_FD   0x0100

Definition at line 132 of file dp83822_driver.h.

◆ DP83822_ANLPAR_100BTX_HD

#define DP83822_ANLPAR_100BTX_HD   0x0080

Definition at line 133 of file dp83822_driver.h.

◆ DP83822_ANLPAR_10BT_FD

#define DP83822_ANLPAR_10BT_FD   0x0040

Definition at line 134 of file dp83822_driver.h.

◆ DP83822_ANLPAR_10BT_HD

#define DP83822_ANLPAR_10BT_HD   0x0020

Definition at line 135 of file dp83822_driver.h.

◆ DP83822_ANLPAR_ACK

#define DP83822_ANLPAR_ACK   0x4000

Definition at line 127 of file dp83822_driver.h.

◆ DP83822_ANLPAR_ASYM_DIR

#define DP83822_ANLPAR_ASYM_DIR   0x0800

Definition at line 129 of file dp83822_driver.h.

◆ DP83822_ANLPAR_NEXT_PAGE

#define DP83822_ANLPAR_NEXT_PAGE   0x8000

Definition at line 126 of file dp83822_driver.h.

◆ DP83822_ANLPAR_PAUSE

#define DP83822_ANLPAR_PAUSE   0x0400

Definition at line 130 of file dp83822_driver.h.

◆ DP83822_ANLPAR_REMOTE_FAULT

#define DP83822_ANLPAR_REMOTE_FAULT   0x2000

Definition at line 128 of file dp83822_driver.h.

◆ DP83822_ANLPAR_SELECTOR

#define DP83822_ANLPAR_SELECTOR   0x001F

Definition at line 136 of file dp83822_driver.h.

◆ DP83822_ANLPAR_SELECTOR_DEFAULT

#define DP83822_ANLPAR_SELECTOR_DEFAULT   0x0001

Definition at line 137 of file dp83822_driver.h.

◆ DP83822_ANLPNPR

#define DP83822_ANLPNPR   0x08

Definition at line 53 of file dp83822_driver.h.

◆ DP83822_ANLPNPR_ACK

#define DP83822_ANLPNPR_ACK   0x4000

Definition at line 155 of file dp83822_driver.h.

◆ DP83822_ANLPNPR_ACK2

#define DP83822_ANLPNPR_ACK2   0x1000

Definition at line 157 of file dp83822_driver.h.

◆ DP83822_ANLPNPR_MESSAGE

#define DP83822_ANLPNPR_MESSAGE   0x07FF

Definition at line 159 of file dp83822_driver.h.

◆ DP83822_ANLPNPR_MSG_PAGE

#define DP83822_ANLPNPR_MSG_PAGE   0x2000

Definition at line 156 of file dp83822_driver.h.

◆ DP83822_ANLPNPR_NEXT_PAGE

#define DP83822_ANLPNPR_NEXT_PAGE   0x8000

Definition at line 154 of file dp83822_driver.h.

◆ DP83822_ANLPNPR_TOGGLE

#define DP83822_ANLPNPR_TOGGLE   0x0800

Definition at line 158 of file dp83822_driver.h.

◆ DP83822_ANNPR

#define DP83822_ANNPR   0x07

Definition at line 52 of file dp83822_driver.h.

◆ DP83822_ANNPR_ACK2

#define DP83822_ANNPR_ACK2   0x1000

Definition at line 149 of file dp83822_driver.h.

◆ DP83822_ANNPR_CODE

#define DP83822_ANNPR_CODE   0x07FF

Definition at line 151 of file dp83822_driver.h.

◆ DP83822_ANNPR_MSG_PAGE

#define DP83822_ANNPR_MSG_PAGE   0x2000

Definition at line 148 of file dp83822_driver.h.

◆ DP83822_ANNPR_NEXT_PAGE

#define DP83822_ANNPR_NEXT_PAGE   0x8000

Definition at line 147 of file dp83822_driver.h.

◆ DP83822_ANNPR_TOGGLE

#define DP83822_ANNPR_TOGGLE   0x0800

Definition at line 150 of file dp83822_driver.h.

◆ DP83822_BICSR1

#define DP83822_BICSR1   0x1B

Definition at line 71 of file dp83822_driver.h.

◆ DP83822_BICSR1_BIST_ERROR_COUNT

#define DP83822_BICSR1_BIST_ERROR_COUNT   0xFF00

Definition at line 319 of file dp83822_driver.h.

◆ DP83822_BICSR1_BIST_IPG_LENGTH

#define DP83822_BICSR1_BIST_IPG_LENGTH   0x00FF

Definition at line 320 of file dp83822_driver.h.

◆ DP83822_BICSR2

#define DP83822_BICSR2   0x1C

Definition at line 72 of file dp83822_driver.h.

◆ DP83822_BICSR2_BIST_PACKET_LENGTH

#define DP83822_BICSR2_BIST_PACKET_LENGTH   0x07FF

Definition at line 323 of file dp83822_driver.h.

◆ DP83822_BISCR

#define DP83822_BISCR   0x16

Definition at line 66 of file dp83822_driver.h.

◆ DP83822_BISCR_ERROR_COUNTER_MODE

#define DP83822_BISCR_ERROR_COUNTER_MODE   0x4000

Definition at line 271 of file dp83822_driver.h.

◆ DP83822_BISCR_LOOPBACK_MODE

#define DP83822_BISCR_LOOPBACK_MODE   0x001F

Definition at line 279 of file dp83822_driver.h.

◆ DP83822_BISCR_PACKET_GEN_EN

#define DP83822_BISCR_PACKET_GEN_EN   0x1000

Definition at line 273 of file dp83822_driver.h.

◆ DP83822_BISCR_PACKET_GEN_STATUS

#define DP83822_BISCR_PACKET_GEN_STATUS   0x0200

Definition at line 276 of file dp83822_driver.h.

◆ DP83822_BISCR_POWER_MODE

#define DP83822_BISCR_POWER_MODE   0x0100

Definition at line 277 of file dp83822_driver.h.

◆ DP83822_BISCR_PRBS_CHECKER

#define DP83822_BISCR_PRBS_CHECKER   0x2000

Definition at line 272 of file dp83822_driver.h.

◆ DP83822_BISCR_PRBS_CHECKER_LOCK_SYNC

#define DP83822_BISCR_PRBS_CHECKER_LOCK_SYNC   0x0800

Definition at line 274 of file dp83822_driver.h.

◆ DP83822_BISCR_PRBS_CHECKER_SYNC_LOSS

#define DP83822_BISCR_PRBS_CHECKER_SYNC_LOSS   0x0400

Definition at line 275 of file dp83822_driver.h.

◆ DP83822_BISCR_TX_MII_LOOPBACK

#define DP83822_BISCR_TX_MII_LOOPBACK   0x0040

Definition at line 278 of file dp83822_driver.h.

◆ DP83822_BMCR

#define DP83822_BMCR   0x00

Definition at line 45 of file dp83822_driver.h.

◆ DP83822_BMCR_AN_EN

#define DP83822_BMCR_AN_EN   0x1000

Definition at line 80 of file dp83822_driver.h.

◆ DP83822_BMCR_COL_TEST

#define DP83822_BMCR_COL_TEST   0x0080

Definition at line 85 of file dp83822_driver.h.

◆ DP83822_BMCR_DUPLEX_MODE

#define DP83822_BMCR_DUPLEX_MODE   0x0100

Definition at line 84 of file dp83822_driver.h.

◆ DP83822_BMCR_ISOLATE

#define DP83822_BMCR_ISOLATE   0x0400

Definition at line 82 of file dp83822_driver.h.

◆ DP83822_BMCR_LOOPBACK

#define DP83822_BMCR_LOOPBACK   0x4000

Definition at line 78 of file dp83822_driver.h.

◆ DP83822_BMCR_POWER_DOWN

#define DP83822_BMCR_POWER_DOWN   0x0800

Definition at line 81 of file dp83822_driver.h.

◆ DP83822_BMCR_RESET

#define DP83822_BMCR_RESET   0x8000

Definition at line 77 of file dp83822_driver.h.

◆ DP83822_BMCR_RESTART_AN

#define DP83822_BMCR_RESTART_AN   0x0200

Definition at line 83 of file dp83822_driver.h.

◆ DP83822_BMCR_SPEED_SEL

#define DP83822_BMCR_SPEED_SEL   0x2000

Definition at line 79 of file dp83822_driver.h.

◆ DP83822_BMSR

#define DP83822_BMSR   0x01

Definition at line 46 of file dp83822_driver.h.

◆ DP83822_BMSR_100BT4

#define DP83822_BMSR_100BT4   0x8000

Definition at line 88 of file dp83822_driver.h.

◆ DP83822_BMSR_100BTX_FD

#define DP83822_BMSR_100BTX_FD   0x4000

Definition at line 89 of file dp83822_driver.h.

◆ DP83822_BMSR_100BTX_HD

#define DP83822_BMSR_100BTX_HD   0x2000

Definition at line 90 of file dp83822_driver.h.

◆ DP83822_BMSR_10BT_FD

#define DP83822_BMSR_10BT_FD   0x1000

Definition at line 91 of file dp83822_driver.h.

◆ DP83822_BMSR_10BT_HD

#define DP83822_BMSR_10BT_HD   0x0800

Definition at line 92 of file dp83822_driver.h.

◆ DP83822_BMSR_AN_CAPABLE

#define DP83822_BMSR_AN_CAPABLE   0x0008

Definition at line 96 of file dp83822_driver.h.

◆ DP83822_BMSR_AN_COMPLETE

#define DP83822_BMSR_AN_COMPLETE   0x0020

Definition at line 94 of file dp83822_driver.h.

◆ DP83822_BMSR_EXTENDED_CAPABLE

#define DP83822_BMSR_EXTENDED_CAPABLE   0x0001

Definition at line 99 of file dp83822_driver.h.

◆ DP83822_BMSR_JABBER_DETECT

#define DP83822_BMSR_JABBER_DETECT   0x0002

Definition at line 98 of file dp83822_driver.h.

◆ DP83822_BMSR_LINK_STATUS

#define DP83822_BMSR_LINK_STATUS   0x0004

Definition at line 97 of file dp83822_driver.h.

◆ DP83822_BMSR_REMOTE_FAULT

#define DP83822_BMSR_REMOTE_FAULT   0x0010

Definition at line 95 of file dp83822_driver.h.

◆ DP83822_BMSR_SMI_PREAMBLE_SUPPR

#define DP83822_BMSR_SMI_PREAMBLE_SUPPR   0x0040

Definition at line 93 of file dp83822_driver.h.

◆ DP83822_CDCR

#define DP83822_CDCR   0x1E

Definition at line 73 of file dp83822_driver.h.

◆ DP83822_CDCR_CABLE_DIAG_START

#define DP83822_CDCR_CABLE_DIAG_START   0x8000

Definition at line 326 of file dp83822_driver.h.

◆ DP83822_CDCR_CDCR_CABLE_DIAG_STATUS

#define DP83822_CDCR_CDCR_CABLE_DIAG_STATUS   0x0002

Definition at line 327 of file dp83822_driver.h.

◆ DP83822_CDCR_CDCR_CABLE_DIAG_TEST_FAIL

#define DP83822_CDCR_CDCR_CABLE_DIAG_TEST_FAIL   0x0001

Definition at line 328 of file dp83822_driver.h.

◆ DP83822_CR1

#define DP83822_CR1   0x09

Definition at line 54 of file dp83822_driver.h.

◆ DP83822_CR1_FAST_AN_EN

#define DP83822_CR1_FAST_AN_EN   0x0010

Definition at line 167 of file dp83822_driver.h.

◆ DP83822_CR1_FAST_AN_SEL

#define DP83822_CR1_FAST_AN_SEL   0x000C

Definition at line 168 of file dp83822_driver.h.

◆ DP83822_CR1_FAST_AUTO_MDIX

#define DP83822_CR1_FAST_AUTO_MDIX   0x0040

Definition at line 165 of file dp83822_driver.h.

◆ DP83822_CR1_FAST_RX_DV_DETECT

#define DP83822_CR1_FAST_RX_DV_DETECT   0x0002

Definition at line 169 of file dp83822_driver.h.

◆ DP83822_CR1_LINK_LOSS_RECOVERY

#define DP83822_CR1_LINK_LOSS_RECOVERY   0x0080

Definition at line 164 of file dp83822_driver.h.

◆ DP83822_CR1_RMII_ENHANCED_MODE

#define DP83822_CR1_RMII_ENHANCED_MODE   0x0200

Definition at line 162 of file dp83822_driver.h.

◆ DP83822_CR1_ROBUST_AUTO_MDIX

#define DP83822_CR1_ROBUST_AUTO_MDIX   0x0020

Definition at line 166 of file dp83822_driver.h.

◆ DP83822_CR1_TDR_AUTO_RUN

#define DP83822_CR1_TDR_AUTO_RUN   0x0100

Definition at line 163 of file dp83822_driver.h.

◆ DP83822_CR2

#define DP83822_CR2   0x0A

Definition at line 55 of file dp83822_driver.h.

◆ DP83822_CR2_100BFX_EN

#define DP83822_CR2_100BFX_EN   0x4000

Definition at line 173 of file dp83822_driver.h.

◆ DP83822_CR2_ENHANCED_LED_LINK

#define DP83822_CR2_ENHANCED_LED_LINK   0x0010

Definition at line 176 of file dp83822_driver.h.

◆ DP83822_CR2_EXTENDED_FD_ABLE

#define DP83822_CR2_EXTENDED_FD_ABLE   0x0020

Definition at line 175 of file dp83822_driver.h.

◆ DP83822_CR2_FAST_LINK_UP_IN_PD

#define DP83822_CR2_FAST_LINK_UP_IN_PD   0x0040

Definition at line 174 of file dp83822_driver.h.

◆ DP83822_CR2_FORCE_FAR_END_LINK_DROP

#define DP83822_CR2_FORCE_FAR_END_LINK_DROP   0x8000

Definition at line 172 of file dp83822_driver.h.

◆ DP83822_CR2_ISOLATE_MII

#define DP83822_CR2_ISOLATE_MII   0x0008

Definition at line 177 of file dp83822_driver.h.

◆ DP83822_CR2_ODD_NIBBLE_DETECT_DIS

#define DP83822_CR2_ODD_NIBBLE_DETECT_DIS   0x0002

Definition at line 179 of file dp83822_driver.h.

◆ DP83822_CR2_RMII_RECEIVE_CLK

#define DP83822_CR2_RMII_RECEIVE_CLK   0x0001

Definition at line 180 of file dp83822_driver.h.

◆ DP83822_CR2_RX_ER_DURING_IDLE

#define DP83822_CR2_RX_ER_DURING_IDLE   0x0004

Definition at line 178 of file dp83822_driver.h.

◆ DP83822_CR3

#define DP83822_CR3   0x0B

Definition at line 56 of file dp83822_driver.h.

◆ DP83822_CR3_DESCRAMBLER_FAST_LINK_DOWN

#define DP83822_CR3_DESCRAMBLER_FAST_LINK_DOWN   0x0400

Definition at line 183 of file dp83822_driver.h.

◆ DP83822_CR3_FAST_LINK_DOWN_MODE

#define DP83822_CR3_FAST_LINK_DOWN_MODE   0x000F

Definition at line 186 of file dp83822_driver.h.

◆ DP83822_CR3_MDIX_SWAP

#define DP83822_CR3_MDIX_SWAP   0x0020

Definition at line 185 of file dp83822_driver.h.

◆ DP83822_CR3_POLARITY_SWAP

#define DP83822_CR3_POLARITY_SWAP   0x0040

Definition at line 184 of file dp83822_driver.h.

◆ DP83822_FCSCR

#define DP83822_FCSCR   0x14

Definition at line 64 of file dp83822_driver.h.

◆ DP83822_FCSCR_FCSCNT

#define DP83822_FCSCR_FCSCNT   0x00FF

Definition at line 265 of file dp83822_driver.h.

◆ DP83822_FLDS

#define DP83822_FLDS   0x0F

Definition at line 59 of file dp83822_driver.h.

◆ DP83822_FLDS_FAST_LINK_DOWN_STATUS

#define DP83822_FLDS_FAST_LINK_DOWN_STATUS   0x01F0

Definition at line 197 of file dp83822_driver.h.

◆ DP83822_LEDCR

#define DP83822_LEDCR   0x18

Definition at line 68 of file dp83822_driver.h.

◆ DP83822_LEDCR_BLINK_RATE

#define DP83822_LEDCR_BLINK_RATE   0x0600

Definition at line 296 of file dp83822_driver.h.

◆ DP83822_LEDCR_DRIVE_LED_0

#define DP83822_LEDCR_DRIVE_LED_0   0x0010

Definition at line 298 of file dp83822_driver.h.

◆ DP83822_LEDCR_LED_0_ON_OFF

#define DP83822_LEDCR_LED_0_ON_OFF   0x0002

Definition at line 299 of file dp83822_driver.h.

◆ DP83822_LEDCR_LED_0_POLARITY

#define DP83822_LEDCR_LED_0_POLARITY   0x0080

Definition at line 297 of file dp83822_driver.h.

◆ DP83822_MISR1

#define DP83822_MISR1   0x12

Definition at line 62 of file dp83822_driver.h.

◆ DP83822_MISR1_ANC_INT

#define DP83822_MISR1_ANC_INT   0x0400

Definition at line 234 of file dp83822_driver.h.

◆ DP83822_MISR1_ANC_INT_EN

#define DP83822_MISR1_ANC_INT_EN   0x0004

Definition at line 242 of file dp83822_driver.h.

◆ DP83822_MISR1_DUP_INT

#define DP83822_MISR1_DUP_INT   0x0800

Definition at line 233 of file dp83822_driver.h.

◆ DP83822_MISR1_DUP_INT_EN

#define DP83822_MISR1_DUP_INT_EN   0x0008

Definition at line 241 of file dp83822_driver.h.

◆ DP83822_MISR1_ED_INT

#define DP83822_MISR1_ED_INT   0x4000

Definition at line 230 of file dp83822_driver.h.

◆ DP83822_MISR1_ED_INT_EN

#define DP83822_MISR1_ED_INT_EN   0x0040

Definition at line 238 of file dp83822_driver.h.

◆ DP83822_MISR1_FHF_INT

#define DP83822_MISR1_FHF_INT   0x0200

Definition at line 235 of file dp83822_driver.h.

◆ DP83822_MISR1_FHF_INT_EN

#define DP83822_MISR1_FHF_INT_EN   0x0002

Definition at line 243 of file dp83822_driver.h.

◆ DP83822_MISR1_LINK_INT

#define DP83822_MISR1_LINK_INT   0x2000

Definition at line 231 of file dp83822_driver.h.

◆ DP83822_MISR1_LINK_INT_EN

#define DP83822_MISR1_LINK_INT_EN   0x0020

Definition at line 239 of file dp83822_driver.h.

◆ DP83822_MISR1_LQ_INT

#define DP83822_MISR1_LQ_INT   0x8000

Definition at line 229 of file dp83822_driver.h.

◆ DP83822_MISR1_LQ_INT_EN

#define DP83822_MISR1_LQ_INT_EN   0x0080

Definition at line 237 of file dp83822_driver.h.

◆ DP83822_MISR1_RHF_INT

#define DP83822_MISR1_RHF_INT   0x0100

Definition at line 236 of file dp83822_driver.h.

◆ DP83822_MISR1_RHF_INT_EN

#define DP83822_MISR1_RHF_INT_EN   0x0001

Definition at line 244 of file dp83822_driver.h.

◆ DP83822_MISR1_SPD_INT

#define DP83822_MISR1_SPD_INT   0x1000

Definition at line 232 of file dp83822_driver.h.

◆ DP83822_MISR1_SPD_INT_EN

#define DP83822_MISR1_SPD_INT_EN   0x0010

Definition at line 240 of file dp83822_driver.h.

◆ DP83822_MISR2

#define DP83822_MISR2   0x13

Definition at line 63 of file dp83822_driver.h.

◆ DP83822_MISR2_AN_ERROR_INT

#define DP83822_MISR2_AN_ERROR_INT   0x4000

Definition at line 248 of file dp83822_driver.h.

◆ DP83822_MISR2_AN_ERROR_INT_EN

#define DP83822_MISR2_AN_ERROR_INT_EN   0x0040

Definition at line 256 of file dp83822_driver.h.

◆ DP83822_MISR2_EEE_ERROR_INT

#define DP83822_MISR2_EEE_ERROR_INT   0x8000

Definition at line 247 of file dp83822_driver.h.

◆ DP83822_MISR2_EEE_ERROR_INT_EN

#define DP83822_MISR2_EEE_ERROR_INT_EN   0x0080

Definition at line 255 of file dp83822_driver.h.

◆ DP83822_MISR2_FIFO_OF_UF_INT

#define DP83822_MISR2_FIFO_OF_UF_INT   0x1000

Definition at line 250 of file dp83822_driver.h.

◆ DP83822_MISR2_FIFO_OF_UF_INT_EN

#define DP83822_MISR2_FIFO_OF_UF_INT_EN   0x0010

Definition at line 258 of file dp83822_driver.h.

◆ DP83822_MISR2_JABBER_DETECT_INT

#define DP83822_MISR2_JABBER_DETECT_INT   0x0100

Definition at line 254 of file dp83822_driver.h.

◆ DP83822_MISR2_JABBER_DETECT_INT_EN

#define DP83822_MISR2_JABBER_DETECT_INT_EN   0x0001

Definition at line 262 of file dp83822_driver.h.

◆ DP83822_MISR2_MDI_CHANGE_INT

#define DP83822_MISR2_MDI_CHANGE_INT   0x0800

Definition at line 251 of file dp83822_driver.h.

◆ DP83822_MISR2_MDI_CHANGE_INT_EN

#define DP83822_MISR2_MDI_CHANGE_INT_EN   0x0008

Definition at line 259 of file dp83822_driver.h.

◆ DP83822_MISR2_POL_CHANGE_INT

#define DP83822_MISR2_POL_CHANGE_INT   0x0200

Definition at line 253 of file dp83822_driver.h.

◆ DP83822_MISR2_POL_CHANGE_INT_EN

#define DP83822_MISR2_POL_CHANGE_INT_EN   0x0002

Definition at line 261 of file dp83822_driver.h.

◆ DP83822_MISR2_PR_INT

#define DP83822_MISR2_PR_INT   0x2000

Definition at line 249 of file dp83822_driver.h.

◆ DP83822_MISR2_PR_INT_EN

#define DP83822_MISR2_PR_INT_EN   0x0020

Definition at line 257 of file dp83822_driver.h.

◆ DP83822_MISR2_SLEEP_MODE_INT

#define DP83822_MISR2_SLEEP_MODE_INT   0x0400

Definition at line 252 of file dp83822_driver.h.

◆ DP83822_MISR2_SLEEP_MODE_INT_EN

#define DP83822_MISR2_SLEEP_MODE_INT_EN   0x0004

Definition at line 260 of file dp83822_driver.h.

◆ DP83822_PHY_ADDR

#define DP83822_PHY_ADDR   1

Definition at line 39 of file dp83822_driver.h.

◆ DP83822_PHYCR

#define DP83822_PHYCR   0x19

Definition at line 69 of file dp83822_driver.h.

◆ DP83822_PHYCR_BYPASS_LED_STRETCH

#define DP83822_PHYCR_BYPASS_LED_STRETCH   0x0080

Definition at line 307 of file dp83822_driver.h.

◆ DP83822_PHYCR_FORCE_MDIX

#define DP83822_PHYCR_FORCE_MDIX   0x4000

Definition at line 303 of file dp83822_driver.h.

◆ DP83822_PHYCR_LED_CONFIG

#define DP83822_PHYCR_LED_CONFIG   0x0020

Definition at line 308 of file dp83822_driver.h.

◆ DP83822_PHYCR_MDIX_EN

#define DP83822_PHYCR_MDIX_EN   0x8000

Definition at line 302 of file dp83822_driver.h.

◆ DP83822_PHYCR_MII_LINK_STATUS

#define DP83822_PHYCR_MII_LINK_STATUS   0x0800

Definition at line 306 of file dp83822_driver.h.

◆ DP83822_PHYCR_PAUSE_RX_STATUS

#define DP83822_PHYCR_PAUSE_RX_STATUS   0x2000

Definition at line 304 of file dp83822_driver.h.

◆ DP83822_PHYCR_PAUSE_TX_STATUS

#define DP83822_PHYCR_PAUSE_TX_STATUS   0x1000

Definition at line 305 of file dp83822_driver.h.

◆ DP83822_PHYCR_PHY_ADDR

#define DP83822_PHYCR_PHY_ADDR   0x001F

Definition at line 309 of file dp83822_driver.h.

◆ DP83822_PHYID1

#define DP83822_PHYID1   0x02

Definition at line 47 of file dp83822_driver.h.

◆ DP83822_PHYID1_OUI_MSB

#define DP83822_PHYID1_OUI_MSB   0xFFFF

Definition at line 102 of file dp83822_driver.h.

◆ DP83822_PHYID1_OUI_MSB_DEFAULT

#define DP83822_PHYID1_OUI_MSB_DEFAULT   0x2000

Definition at line 103 of file dp83822_driver.h.

◆ DP83822_PHYID2

#define DP83822_PHYID2   0x03

Definition at line 48 of file dp83822_driver.h.

◆ DP83822_PHYID2_MDL_REV

#define DP83822_PHYID2_MDL_REV   0x000F

Definition at line 110 of file dp83822_driver.h.

◆ DP83822_PHYID2_OUI_LSB

#define DP83822_PHYID2_OUI_LSB   0xFC00

Definition at line 106 of file dp83822_driver.h.

◆ DP83822_PHYID2_OUI_LSB_DEFAULT

#define DP83822_PHYID2_OUI_LSB_DEFAULT   0xA000

Definition at line 107 of file dp83822_driver.h.

◆ DP83822_PHYID2_VNDR_MDL

#define DP83822_PHYID2_VNDR_MDL   0x03F0

Definition at line 108 of file dp83822_driver.h.

◆ DP83822_PHYID2_VNDR_MDL_DEFAULT

#define DP83822_PHYID2_VNDR_MDL_DEFAULT   0x0240

Definition at line 109 of file dp83822_driver.h.

◆ DP83822_PHYRCR

#define DP83822_PHYRCR   0x1F

Definition at line 74 of file dp83822_driver.h.

◆ DP83822_PHYRCR_DIGITAL_RESTART

#define DP83822_PHYRCR_DIGITAL_RESTART   0x4000

Definition at line 332 of file dp83822_driver.h.

◆ DP83822_PHYRCR_SOFT_RESET

#define DP83822_PHYRCR_SOFT_RESET   0x8000

Definition at line 331 of file dp83822_driver.h.

◆ DP83822_PHYSCR

#define DP83822_PHYSCR   0x11

Definition at line 61 of file dp83822_driver.h.

◆ DP83822_PHYSCR_COL_FD_EN

#define DP83822_PHYSCR_COL_FD_EN   0x0010

Definition at line 222 of file dp83822_driver.h.

◆ DP83822_PHYSCR_INT_EN

#define DP83822_PHYSCR_INT_EN   0x0002

Definition at line 225 of file dp83822_driver.h.

◆ DP83822_PHYSCR_INT_OE

#define DP83822_PHYSCR_INT_OE   0x0001

Definition at line 226 of file dp83822_driver.h.

◆ DP83822_PHYSCR_INT_POLARITY

#define DP83822_PHYSCR_INT_POLARITY   0x0008

Definition at line 223 of file dp83822_driver.h.

◆ DP83822_PHYSCR_LOOPBACK_FIFO_DEPTH

#define DP83822_PHYSCR_LOOPBACK_FIFO_DEPTH   0x0300

Definition at line 221 of file dp83822_driver.h.

◆ DP83822_PHYSCR_PLL_DIS

#define DP83822_PHYSCR_PLL_DIS   0x8000

Definition at line 217 of file dp83822_driver.h.

◆ DP83822_PHYSCR_POWER_SAVE_MODE

#define DP83822_PHYSCR_POWER_SAVE_MODE   0x3000

Definition at line 219 of file dp83822_driver.h.

◆ DP83822_PHYSCR_POWER_SAVE_MODE_EN

#define DP83822_PHYSCR_POWER_SAVE_MODE_EN   0x4000

Definition at line 218 of file dp83822_driver.h.

◆ DP83822_PHYSCR_SCRAMBLER_BYPASS

#define DP83822_PHYSCR_SCRAMBLER_BYPASS   0x0800

Definition at line 220 of file dp83822_driver.h.

◆ DP83822_PHYSCR_TEST_INT

#define DP83822_PHYSCR_TEST_INT   0x0004

Definition at line 224 of file dp83822_driver.h.

◆ DP83822_PHYSTS

#define DP83822_PHYSTS   0x10

Definition at line 60 of file dp83822_driver.h.

◆ DP83822_PHYSTS_AN_COMPLETE

#define DP83822_PHYSTS_AN_COMPLETE   0x0010

Definition at line 210 of file dp83822_driver.h.

◆ DP83822_PHYSTS_DESCRAMBLER_LOCK

#define DP83822_PHYSTS_DESCRAMBLER_LOCK   0x0200

Definition at line 205 of file dp83822_driver.h.

◆ DP83822_PHYSTS_DUPLEX_STATUS

#define DP83822_PHYSTS_DUPLEX_STATUS   0x0004

Definition at line 212 of file dp83822_driver.h.

◆ DP83822_PHYSTS_FCS_LATCH

#define DP83822_PHYSTS_FCS_LATCH   0x0800

Definition at line 203 of file dp83822_driver.h.

◆ DP83822_PHYSTS_JABBER_DETECT

#define DP83822_PHYSTS_JABBER_DETECT   0x0020

Definition at line 209 of file dp83822_driver.h.

◆ DP83822_PHYSTS_LINK_STATUS

#define DP83822_PHYSTS_LINK_STATUS   0x0001

Definition at line 214 of file dp83822_driver.h.

◆ DP83822_PHYSTS_LOOPBACK_STATUS

#define DP83822_PHYSTS_LOOPBACK_STATUS   0x0008

Definition at line 211 of file dp83822_driver.h.

◆ DP83822_PHYSTS_MDIX_MODE

#define DP83822_PHYSTS_MDIX_MODE   0x4000

Definition at line 200 of file dp83822_driver.h.

◆ DP83822_PHYSTS_MII_INTERRUPT

#define DP83822_PHYSTS_MII_INTERRUPT   0x0080

Definition at line 207 of file dp83822_driver.h.

◆ DP83822_PHYSTS_PAGE_RECEIVED

#define DP83822_PHYSTS_PAGE_RECEIVED   0x0100

Definition at line 206 of file dp83822_driver.h.

◆ DP83822_PHYSTS_POLARITY_STATUS

#define DP83822_PHYSTS_POLARITY_STATUS   0x1000

Definition at line 202 of file dp83822_driver.h.

◆ DP83822_PHYSTS_RECEIVE_ERROR_LATCH

#define DP83822_PHYSTS_RECEIVE_ERROR_LATCH   0x2000

Definition at line 201 of file dp83822_driver.h.

◆ DP83822_PHYSTS_REMOTE_FAULT

#define DP83822_PHYSTS_REMOTE_FAULT   0x0040

Definition at line 208 of file dp83822_driver.h.

◆ DP83822_PHYSTS_SIGNAL_DETECT

#define DP83822_PHYSTS_SIGNAL_DETECT   0x0400

Definition at line 204 of file dp83822_driver.h.

◆ DP83822_PHYSTS_SPEED_STATUS

#define DP83822_PHYSTS_SPEED_STATUS   0x0002

Definition at line 213 of file dp83822_driver.h.

◆ DP83822_RCSR

#define DP83822_RCSR   0x17

Definition at line 67 of file dp83822_driver.h.

◆ DP83822_RCSR_RGMII_MODE

#define DP83822_RCSR_RGMII_MODE   0x0200

Definition at line 285 of file dp83822_driver.h.

◆ DP83822_RCSR_RGMII_RX_CLK_SHIFT

#define DP83822_RCSR_RGMII_RX_CLK_SHIFT   0x1000

Definition at line 282 of file dp83822_driver.h.

◆ DP83822_RCSR_RGMII_TX_CLK_SHIFT

#define DP83822_RCSR_RGMII_TX_CLK_SHIFT   0x0800

Definition at line 283 of file dp83822_driver.h.

◆ DP83822_RCSR_RGMII_TX_SYNCED

#define DP83822_RCSR_RGMII_TX_SYNCED   0x0400

Definition at line 284 of file dp83822_driver.h.

◆ DP83822_RCSR_RMII_ASYNC_FIFO_BYPASS

#define DP83822_RCSR_RMII_ASYNC_FIFO_BYPASS   0x0040

Definition at line 288 of file dp83822_driver.h.

◆ DP83822_RCSR_RMII_CLK_SEL

#define DP83822_RCSR_RMII_CLK_SEL   0x0080

Definition at line 287 of file dp83822_driver.h.

◆ DP83822_RCSR_RMII_MODE

#define DP83822_RCSR_RMII_MODE   0x0020

Definition at line 289 of file dp83822_driver.h.

◆ DP83822_RCSR_RMII_OVF_STATUS

#define DP83822_RCSR_RMII_OVF_STATUS   0x0008

Definition at line 291 of file dp83822_driver.h.

◆ DP83822_RCSR_RMII_REV_SEL

#define DP83822_RCSR_RMII_REV_SEL   0x0010

Definition at line 290 of file dp83822_driver.h.

◆ DP83822_RCSR_RMII_TX_CLOCK_SHIFT

#define DP83822_RCSR_RMII_TX_CLOCK_SHIFT   0x0100

Definition at line 286 of file dp83822_driver.h.

◆ DP83822_RCSR_RMII_UNF_STATUS

#define DP83822_RCSR_RMII_UNF_STATUS   0x0004

Definition at line 292 of file dp83822_driver.h.

◆ DP83822_RCSR_RX_ELAST_BUFFER_SIZE

#define DP83822_RCSR_RX_ELAST_BUFFER_SIZE   0x0003

Definition at line 293 of file dp83822_driver.h.

◆ DP83822_RECR

#define DP83822_RECR   0x15

Definition at line 65 of file dp83822_driver.h.

◆ DP83822_RECR_RXERCNT

#define DP83822_RECR_RXERCNT   0xFFFF

Definition at line 268 of file dp83822_driver.h.

◆ DP83822_REGCR

#define DP83822_REGCR   0x0D

Definition at line 57 of file dp83822_driver.h.

◆ DP83822_REGCR_CMD

#define DP83822_REGCR_CMD   0xC000

Definition at line 189 of file dp83822_driver.h.

◆ DP83822_REGCR_CMD_ADDR

#define DP83822_REGCR_CMD_ADDR   0x0000

Definition at line 190 of file dp83822_driver.h.

◆ DP83822_REGCR_CMD_DATA_NO_POST_INC

#define DP83822_REGCR_CMD_DATA_NO_POST_INC   0x4000

Definition at line 191 of file dp83822_driver.h.

◆ DP83822_REGCR_CMD_DATA_POST_INC_RW

#define DP83822_REGCR_CMD_DATA_POST_INC_RW   0x8000

Definition at line 192 of file dp83822_driver.h.

◆ DP83822_REGCR_CMD_DATA_POST_INC_W

#define DP83822_REGCR_CMD_DATA_POST_INC_W   0xC000

Definition at line 193 of file dp83822_driver.h.

◆ DP83822_REGCR_DEVAD

#define DP83822_REGCR_DEVAD   0x001F

Definition at line 194 of file dp83822_driver.h.

Function Documentation

◆ dp83822DisableIrq()

void dp83822DisableIrq ( NetInterface interface)

Disable interrupts.

Parameters
[in]interfaceUnderlying network interface

Definition at line 166 of file dp83822_driver.c.

◆ dp83822DumpPhyReg()

void dp83822DumpPhyReg ( NetInterface interface)

Dump PHY registers for debugging purpose.

Parameters
[in]interfaceUnderlying network interface

Definition at line 263 of file dp83822_driver.c.

◆ dp83822EnableIrq()

void dp83822EnableIrq ( NetInterface interface)

Enable interrupts.

Parameters
[in]interfaceUnderlying network interface

Definition at line 151 of file dp83822_driver.c.

◆ dp83822EventHandler()

void dp83822EventHandler ( NetInterface interface)

DP83822 event handler.

Parameters
[in]interfaceUnderlying network interface

Definition at line 181 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 62 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 250 of file dp83822_driver.c.

◆ dp83822Tick()

void dp83822Tick ( NetInterface interface)

DP83822 timer handler.

Parameters
[in]interfaceUnderlying network interface

Definition at line 113 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 234 of file dp83822_driver.c.

Variable Documentation

◆ dp83822PhyDriver

const PhyDriver dp83822PhyDriver

DP83822 Ethernet PHY driver.

Definition at line 44 of file dp83822_driver.c.