AR8031 Gigabit Ethernet PHY driver. More...
#include "core/nic.h"
Go to the source code of this file.
Functions | |
error_t | ar8031Init (NetInterface *interface) |
AR8031 PHY transceiver initialization. More... | |
void | ar8031InitHook (NetInterface *interface) |
AR8031 custom configuration. More... | |
void | ar8031Tick (NetInterface *interface) |
AR8031 timer handler. More... | |
void | ar8031EnableIrq (NetInterface *interface) |
Enable interrupts. More... | |
void | ar8031DisableIrq (NetInterface *interface) |
Disable interrupts. More... | |
void | ar8031EventHandler (NetInterface *interface) |
AR8031 event handler. More... | |
void | ar8031WritePhyReg (NetInterface *interface, uint8_t address, uint16_t data) |
Write PHY register. More... | |
uint16_t | ar8031ReadPhyReg (NetInterface *interface, uint8_t address) |
Read PHY register. More... | |
void | ar8031DumpPhyReg (NetInterface *interface) |
Dump PHY registers for debugging purpose. More... | |
void | ar8031WriteMmdReg (NetInterface *interface, uint8_t devAddr, uint16_t regAddr, uint16_t data) |
Write MMD register. More... | |
uint16_t | ar8031ReadMmdReg (NetInterface *interface, uint8_t devAddr, uint16_t regAddr) |
Read MMD register. More... | |
Variables | |
const PhyDriver | ar8031PhyDriver |
AR8031 Ethernet PHY driver. More... | |
Detailed Description
AR8031 Gigabit Ethernet PHY driver.
License
SPDX-License-Identifier: GPL-2.0-or-later
Copyright (C) 2010-2024 Oryx Embedded SARL. All rights reserved.
This file is part of CycloneTCP Open.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- Version
- 2.4.4
Definition in file ar8031_driver.h.
Macro Definition Documentation
◆ AR8031_1588_CLK_SEL
#define AR8031_1588_CLK_SEL 0x07, 0x8017 |
Definition at line 151 of file ar8031_driver.h.
◆ AR8031_AN_CTRL1
#define AR8031_AN_CTRL1 0x07, 0x0000 |
Definition at line 136 of file ar8031_driver.h.
◆ AR8031_AN_LP_XNP_ABILITY
#define AR8031_AN_LP_XNP_ABILITY 0x07, 0x0019 |
Definition at line 141 of file ar8031_driver.h.
◆ AR8031_AN_LP_XNP_ABILITY1
#define AR8031_AN_LP_XNP_ABILITY1 0x07, 0x001A |
Definition at line 142 of file ar8031_driver.h.
◆ AR8031_AN_LP_XNP_ABILITY2
#define AR8031_AN_LP_XNP_ABILITY2 0x07, 0x001B |
Definition at line 143 of file ar8031_driver.h.
◆ AR8031_AN_STAT
#define AR8031_AN_STAT 0x07, 0x0001 |
Definition at line 137 of file ar8031_driver.h.
◆ AR8031_AN_XNP_TRANSMIT
#define AR8031_AN_XNP_TRANSMIT 0x07, 0x0016 |
Definition at line 138 of file ar8031_driver.h.
◆ AR8031_AN_XNP_TRANSMIT1
#define AR8031_AN_XNP_TRANSMIT1 0x07, 0x0017 |
Definition at line 139 of file ar8031_driver.h.
◆ AR8031_AN_XNP_TRANSMIT2
#define AR8031_AN_XNP_TRANSMIT2 0x07, 0x0018 |
Definition at line 140 of file ar8031_driver.h.
◆ AR8031_ANAR
#define AR8031_ANAR 0x04 |
Definition at line 49 of file ar8031_driver.h.
◆ AR8031_ANAR_100BT4
#define AR8031_ANAR_100BT4 0x0200 |
Definition at line 200 of file ar8031_driver.h.
◆ AR8031_ANAR_100BTX_FD
#define AR8031_ANAR_100BTX_FD 0x0100 |
Definition at line 201 of file ar8031_driver.h.
◆ AR8031_ANAR_100BTX_HD
#define AR8031_ANAR_100BTX_HD 0x0080 |
Definition at line 202 of file ar8031_driver.h.
◆ AR8031_ANAR_10BT_FD
#define AR8031_ANAR_10BT_FD 0x0040 |
Definition at line 203 of file ar8031_driver.h.
◆ AR8031_ANAR_10BT_HD
#define AR8031_ANAR_10BT_HD 0x0020 |
Definition at line 204 of file ar8031_driver.h.
◆ AR8031_ANAR_ACK
#define AR8031_ANAR_ACK 0x4000 |
Definition at line 195 of file ar8031_driver.h.
◆ AR8031_ANAR_ASYM_PAUSE
#define AR8031_ANAR_ASYM_PAUSE 0x0800 |
Definition at line 198 of file ar8031_driver.h.
◆ AR8031_ANAR_NEXT_PAGE
#define AR8031_ANAR_NEXT_PAGE 0x8000 |
Definition at line 194 of file ar8031_driver.h.
◆ AR8031_ANAR_PAUSE
#define AR8031_ANAR_PAUSE 0x0400 |
Definition at line 199 of file ar8031_driver.h.
◆ AR8031_ANAR_REMOTE_FAULT
#define AR8031_ANAR_REMOTE_FAULT 0x2000 |
Definition at line 196 of file ar8031_driver.h.
◆ AR8031_ANAR_SELECTOR
#define AR8031_ANAR_SELECTOR 0x001F |
Definition at line 205 of file ar8031_driver.h.
◆ AR8031_ANAR_SELECTOR_DEFAULT
#define AR8031_ANAR_SELECTOR_DEFAULT 0x0001 |
Definition at line 206 of file ar8031_driver.h.
◆ AR8031_ANAR_XNP_ABLE
#define AR8031_ANAR_XNP_ABLE 0x1000 |
Definition at line 197 of file ar8031_driver.h.
◆ AR8031_ANER
#define AR8031_ANER 0x06 |
Definition at line 51 of file ar8031_driver.h.
◆ AR8031_ANER_LP_AN_ABLE
#define AR8031_ANER_LP_AN_ABLE 0x0001 |
Definition at line 227 of file ar8031_driver.h.
◆ AR8031_ANER_LP_NEXT_PAGE_ABLE
#define AR8031_ANER_LP_NEXT_PAGE_ABLE 0x0008 |
Definition at line 224 of file ar8031_driver.h.
◆ AR8031_ANER_NEXT_PAGE_ABLE
#define AR8031_ANER_NEXT_PAGE_ABLE 0x0004 |
Definition at line 225 of file ar8031_driver.h.
◆ AR8031_ANER_PAGE_RECEIVED
#define AR8031_ANER_PAGE_RECEIVED 0x0002 |
Definition at line 226 of file ar8031_driver.h.
◆ AR8031_ANER_PAR_DETECT_FAULT
#define AR8031_ANER_PAR_DETECT_FAULT 0x0010 |
Definition at line 223 of file ar8031_driver.h.
◆ AR8031_ANLPAR
#define AR8031_ANLPAR 0x05 |
Definition at line 50 of file ar8031_driver.h.
◆ AR8031_ANLPAR_100BT4
#define AR8031_ANLPAR_100BT4 0x0200 |
Definition at line 214 of file ar8031_driver.h.
◆ AR8031_ANLPAR_100BTX_FD
#define AR8031_ANLPAR_100BTX_FD 0x0100 |
Definition at line 215 of file ar8031_driver.h.
◆ AR8031_ANLPAR_100BTX_HD
#define AR8031_ANLPAR_100BTX_HD 0x0080 |
Definition at line 216 of file ar8031_driver.h.
◆ AR8031_ANLPAR_10BT_FD
#define AR8031_ANLPAR_10BT_FD 0x0040 |
Definition at line 217 of file ar8031_driver.h.
◆ AR8031_ANLPAR_10BT_HD
#define AR8031_ANLPAR_10BT_HD 0x0020 |
Definition at line 218 of file ar8031_driver.h.
◆ AR8031_ANLPAR_ACK
#define AR8031_ANLPAR_ACK 0x4000 |
Definition at line 210 of file ar8031_driver.h.
◆ AR8031_ANLPAR_ASYM_PAUSE
#define AR8031_ANLPAR_ASYM_PAUSE 0x0800 |
Definition at line 212 of file ar8031_driver.h.
◆ AR8031_ANLPAR_NEXT_PAGE
#define AR8031_ANLPAR_NEXT_PAGE 0x8000 |
Definition at line 209 of file ar8031_driver.h.
◆ AR8031_ANLPAR_PAUSE
#define AR8031_ANLPAR_PAUSE 0x0400 |
Definition at line 213 of file ar8031_driver.h.
◆ AR8031_ANLPAR_REMOTE_FAULT
#define AR8031_ANLPAR_REMOTE_FAULT 0x2000 |
Definition at line 211 of file ar8031_driver.h.
◆ AR8031_ANLPAR_SELECTOR
#define AR8031_ANLPAR_SELECTOR 0x001F |
Definition at line 219 of file ar8031_driver.h.
◆ AR8031_ANLPAR_SELECTOR_DEFAULT
#define AR8031_ANLPAR_SELECTOR_DEFAULT 0x0001 |
Definition at line 220 of file ar8031_driver.h.
◆ AR8031_ANLPNPR
#define AR8031_ANLPNPR 0x08 |
Definition at line 53 of file ar8031_driver.h.
◆ AR8031_ANLPNPR_ACK2
#define AR8031_ANLPNPR_ACK2 0x1000 |
Definition at line 239 of file ar8031_driver.h.
◆ AR8031_ANLPNPR_MESSAGE
#define AR8031_ANLPNPR_MESSAGE 0x07FF |
Definition at line 241 of file ar8031_driver.h.
◆ AR8031_ANLPNPR_MSG_PAGE
#define AR8031_ANLPNPR_MSG_PAGE 0x2000 |
Definition at line 238 of file ar8031_driver.h.
◆ AR8031_ANLPNPR_NEXT_PAGE
#define AR8031_ANLPNPR_NEXT_PAGE 0x8000 |
Definition at line 237 of file ar8031_driver.h.
◆ AR8031_ANLPNPR_TOGGLE
#define AR8031_ANLPNPR_TOGGLE 0x0800 |
Definition at line 240 of file ar8031_driver.h.
◆ AR8031_ANNPTR
#define AR8031_ANNPTR 0x07 |
Definition at line 52 of file ar8031_driver.h.
◆ AR8031_ANNPTR_ACK2
#define AR8031_ANNPTR_ACK2 0x1000 |
Definition at line 232 of file ar8031_driver.h.
◆ AR8031_ANNPTR_MESSAGE
#define AR8031_ANNPTR_MESSAGE 0x07FF |
Definition at line 234 of file ar8031_driver.h.
◆ AR8031_ANNPTR_MSG_PAGE
#define AR8031_ANNPTR_MSG_PAGE 0x2000 |
Definition at line 231 of file ar8031_driver.h.
◆ AR8031_ANNPTR_NEXT_PAGE
#define AR8031_ANNPTR_NEXT_PAGE 0x8000 |
Definition at line 230 of file ar8031_driver.h.
◆ AR8031_ANNPTR_TOGGLE
#define AR8031_ANNPTR_TOGGLE 0x0800 |
Definition at line 233 of file ar8031_driver.h.
◆ AR8031_BMCR
#define AR8031_BMCR 0x00 |
Definition at line 45 of file ar8031_driver.h.
◆ AR8031_BMCR_AN_EN
#define AR8031_BMCR_AN_EN 0x1000 |
Definition at line 157 of file ar8031_driver.h.
◆ AR8031_BMCR_COL_TEST
#define AR8031_BMCR_COL_TEST 0x0080 |
Definition at line 162 of file ar8031_driver.h.
◆ AR8031_BMCR_DUPLEX_MODE
#define AR8031_BMCR_DUPLEX_MODE 0x0100 |
Definition at line 161 of file ar8031_driver.h.
◆ AR8031_BMCR_ISOLATE
#define AR8031_BMCR_ISOLATE 0x0400 |
Definition at line 159 of file ar8031_driver.h.
◆ AR8031_BMCR_LOOPBACK
#define AR8031_BMCR_LOOPBACK 0x4000 |
Definition at line 155 of file ar8031_driver.h.
◆ AR8031_BMCR_POWER_DOWN
#define AR8031_BMCR_POWER_DOWN 0x0800 |
Definition at line 158 of file ar8031_driver.h.
◆ AR8031_BMCR_RESET
#define AR8031_BMCR_RESET 0x8000 |
Definition at line 154 of file ar8031_driver.h.
◆ AR8031_BMCR_RESTART_AN
#define AR8031_BMCR_RESTART_AN 0x0200 |
Definition at line 160 of file ar8031_driver.h.
◆ AR8031_BMCR_SPEED_SEL_LSB
#define AR8031_BMCR_SPEED_SEL_LSB 0x2000 |
Definition at line 156 of file ar8031_driver.h.
◆ AR8031_BMCR_SPEED_SEL_MSB
#define AR8031_BMCR_SPEED_SEL_MSB 0x0040 |
Definition at line 163 of file ar8031_driver.h.
◆ AR8031_BMSR
#define AR8031_BMSR 0x01 |
Definition at line 46 of file ar8031_driver.h.
◆ AR8031_BMSR_100BT2_FD
#define AR8031_BMSR_100BT2_FD 0x0400 |
Definition at line 171 of file ar8031_driver.h.
◆ AR8031_BMSR_100BT2_HD
#define AR8031_BMSR_100BT2_HD 0x0200 |
Definition at line 172 of file ar8031_driver.h.
◆ AR8031_BMSR_100BT4
#define AR8031_BMSR_100BT4 0x8000 |
Definition at line 166 of file ar8031_driver.h.
◆ AR8031_BMSR_100BTX_FD
#define AR8031_BMSR_100BTX_FD 0x4000 |
Definition at line 167 of file ar8031_driver.h.
◆ AR8031_BMSR_100BTX_HD
#define AR8031_BMSR_100BTX_HD 0x2000 |
Definition at line 168 of file ar8031_driver.h.
◆ AR8031_BMSR_10BT_FD
#define AR8031_BMSR_10BT_FD 0x1000 |
Definition at line 169 of file ar8031_driver.h.
◆ AR8031_BMSR_10BT_HD
#define AR8031_BMSR_10BT_HD 0x0800 |
Definition at line 170 of file ar8031_driver.h.
◆ AR8031_BMSR_AN_CAPABLE
#define AR8031_BMSR_AN_CAPABLE 0x0008 |
Definition at line 177 of file ar8031_driver.h.
◆ AR8031_BMSR_AN_COMPLETE
#define AR8031_BMSR_AN_COMPLETE 0x0020 |
Definition at line 175 of file ar8031_driver.h.
◆ AR8031_BMSR_EXTENDED_CAPABLE
#define AR8031_BMSR_EXTENDED_CAPABLE 0x0001 |
Definition at line 180 of file ar8031_driver.h.
◆ AR8031_BMSR_EXTENDED_STATUS
#define AR8031_BMSR_EXTENDED_STATUS 0x0100 |
Definition at line 173 of file ar8031_driver.h.
◆ AR8031_BMSR_JABBER_DETECT
#define AR8031_BMSR_JABBER_DETECT 0x0002 |
Definition at line 179 of file ar8031_driver.h.
◆ AR8031_BMSR_LINK_STATUS
#define AR8031_BMSR_LINK_STATUS 0x0004 |
Definition at line 178 of file ar8031_driver.h.
◆ AR8031_BMSR_MF_PREAMBLE_SUPPR
#define AR8031_BMSR_MF_PREAMBLE_SUPPR 0x0040 |
Definition at line 174 of file ar8031_driver.h.
◆ AR8031_BMSR_REMOTE_FAULT
#define AR8031_BMSR_REMOTE_FAULT 0x0010 |
Definition at line 176 of file ar8031_driver.h.
◆ AR8031_CDT_CTRL
#define AR8031_CDT_CTRL 0x16 |
Definition at line 64 of file ar8031_driver.h.
◆ AR8031_CDT_CTRL_MDI_PAIR_SELECT
#define AR8031_CDT_CTRL_MDI_PAIR_SELECT 0x0300 |
Definition at line 341 of file ar8031_driver.h.
◆ AR8031_CDT_CTRL_TEST_EN
#define AR8031_CDT_CTRL_TEST_EN 0x0001 |
Definition at line 342 of file ar8031_driver.h.
◆ AR8031_CDT_STATUS
#define AR8031_CDT_STATUS 0x1C |
Definition at line 68 of file ar8031_driver.h.
◆ AR8031_CDT_STATUS_DELTA_TIME
#define AR8031_CDT_STATUS_DELTA_TIME 0x00FF |
Definition at line 371 of file ar8031_driver.h.
◆ AR8031_CDT_STATUS_STATUS
#define AR8031_CDT_STATUS_STATUS 0x0300 |
Definition at line 370 of file ar8031_driver.h.
◆ AR8031_CHIP_CONF
#define AR8031_CHIP_CONF 0x1F |
Definition at line 71 of file ar8031_driver.h.
◆ AR8031_CHIP_CONF_BT_BX_REG_SEL
#define AR8031_CHIP_CONF_BT_BX_REG_SEL 0x8000 |
Definition at line 374 of file ar8031_driver.h.
◆ AR8031_CHIP_CONF_FIBER_MODE_AUTO
#define AR8031_CHIP_CONF_FIBER_MODE_AUTO 0x0100 |
Definition at line 379 of file ar8031_driver.h.
◆ AR8031_CHIP_CONF_MODE_CFG
#define AR8031_CHIP_CONF_MODE_CFG 0x000F |
Definition at line 381 of file ar8031_driver.h.
◆ AR8031_CHIP_CONF_MODE_CFG_QUAL
#define AR8031_CHIP_CONF_MODE_CFG_QUAL 0x00F0 |
Definition at line 380 of file ar8031_driver.h.
◆ AR8031_CHIP_CONF_PRIORITY_SEL
#define AR8031_CHIP_CONF_PRIORITY_SEL 0x0400 |
Definition at line 378 of file ar8031_driver.h.
◆ AR8031_CHIP_CONF_SGMII_RXIMP_50_75
#define AR8031_CHIP_CONF_SGMII_RXIMP_50_75 0x2000 |
Definition at line 376 of file ar8031_driver.h.
◆ AR8031_CHIP_CONF_SGMII_TXIMP_50_75
#define AR8031_CHIP_CONF_SGMII_TXIMP_50_75 0x1000 |
Definition at line 377 of file ar8031_driver.h.
◆ AR8031_CHIP_CONF_SMII_IMP_50_75_AUTO
#define AR8031_CHIP_CONF_SMII_IMP_50_75_AUTO 0x4000 |
Definition at line 375 of file ar8031_driver.h.
◆ AR8031_CLK_25M_CLK_SEL
#define AR8031_CLK_25M_CLK_SEL 0x07, 0x8016 |
Definition at line 150 of file ar8031_driver.h.
◆ AR8031_COPPER_FIBER_STATUS
#define AR8031_COPPER_FIBER_STATUS 0x1B |
Definition at line 67 of file ar8031_driver.h.
◆ AR8031_COPPER_FIBER_STATUS_FD_MODE_BT
#define AR8031_COPPER_FIBER_STATUS_FD_MODE_BT 0x0004 |
Definition at line 366 of file ar8031_driver.h.
◆ AR8031_COPPER_FIBER_STATUS_FD_MODE_BX
#define AR8031_COPPER_FIBER_STATUS_FD_MODE_BX 0x0400 |
Definition at line 361 of file ar8031_driver.h.
◆ AR8031_COPPER_FIBER_STATUS_LINK_ESTABLISHED_BT
#define AR8031_COPPER_FIBER_STATUS_LINK_ESTABLISHED_BT 0x0008 |
Definition at line 365 of file ar8031_driver.h.
◆ AR8031_COPPER_FIBER_STATUS_LINK_ESTABLISHED_BX
#define AR8031_COPPER_FIBER_STATUS_LINK_ESTABLISHED_BX 0x0800 |
Definition at line 360 of file ar8031_driver.h.
◆ AR8031_COPPER_FIBER_STATUS_RX_PAUSE_EN_BT
#define AR8031_COPPER_FIBER_STATUS_RX_PAUSE_EN_BT 0x0010 |
Definition at line 364 of file ar8031_driver.h.
◆ AR8031_COPPER_FIBER_STATUS_RX_PAUSE_EN_BX
#define AR8031_COPPER_FIBER_STATUS_RX_PAUSE_EN_BX 0x1000 |
Definition at line 359 of file ar8031_driver.h.
◆ AR8031_COPPER_FIBER_STATUS_SPEED_MODE_BT
#define AR8031_COPPER_FIBER_STATUS_SPEED_MODE_BT 0x0003 |
Definition at line 367 of file ar8031_driver.h.
◆ AR8031_COPPER_FIBER_STATUS_SPEED_MODE_BX
#define AR8031_COPPER_FIBER_STATUS_SPEED_MODE_BX 0x0300 |
Definition at line 362 of file ar8031_driver.h.
◆ AR8031_COPPER_FIBER_STATUS_TX_PAUSE_EN_BT
#define AR8031_COPPER_FIBER_STATUS_TX_PAUSE_EN_BT 0x0020 |
Definition at line 363 of file ar8031_driver.h.
◆ AR8031_COPPER_FIBER_STATUS_TX_PAUSE_EN_BX
#define AR8031_COPPER_FIBER_STATUS_TX_PAUSE_EN_BX 0x2000 |
Definition at line 358 of file ar8031_driver.h.
◆ AR8031_DBG_PORT_ADDR_OFFSET
#define AR8031_DBG_PORT_ADDR_OFFSET 0x1D |
Definition at line 69 of file ar8031_driver.h.
◆ AR8031_DBG_PORT_DATA
#define AR8031_DBG_PORT_DATA 0x1E |
Definition at line 70 of file ar8031_driver.h.
◆ AR8031_EEE_ABILITY_AN_RES
#define AR8031_EEE_ABILITY_AN_RES 0x07, 0x8000 |
Definition at line 146 of file ar8031_driver.h.
◆ AR8031_EEE_ADV
#define AR8031_EEE_ADV 0x07, 0x003C |
Definition at line 144 of file ar8031_driver.h.
◆ AR8031_EEE_CAPABILITY
#define AR8031_EEE_CAPABILITY 0x03, 0x0014 |
Definition at line 76 of file ar8031_driver.h.
◆ AR8031_EEE_LP_ADV
#define AR8031_EEE_LP_ADV 0x07, 0x003D |
Definition at line 145 of file ar8031_driver.h.
◆ AR8031_EEE_WAKE_ERROR_COUNTER
#define AR8031_EEE_WAKE_ERROR_COUNTER 0x03, 0x0016 |
Definition at line 77 of file ar8031_driver.h.
◆ AR8031_FUNC_CTRL
#define AR8031_FUNC_CTRL 0x10 |
Definition at line 59 of file ar8031_driver.h.
◆ AR8031_FUNC_CTRL_ASSERT_CRS_ON_TX
#define AR8031_FUNC_CTRL_ASSERT_CRS_ON_TX 0x0800 |
Definition at line 275 of file ar8031_driver.h.
◆ AR8031_FUNC_CTRL_FORCE_LINK
#define AR8031_FUNC_CTRL_FORCE_LINK 0x0400 |
Definition at line 276 of file ar8031_driver.h.
◆ AR8031_FUNC_CTRL_JABBER_DIS
#define AR8031_FUNC_CTRL_JABBER_DIS 0x0001 |
Definition at line 283 of file ar8031_driver.h.
◆ AR8031_FUNC_CTRL_MDIX_MODE
#define AR8031_FUNC_CTRL_MDIX_MODE 0x0060 |
Definition at line 277 of file ar8031_driver.h.
◆ AR8031_FUNC_CTRL_MDIX_MODE_AUTO
#define AR8031_FUNC_CTRL_MDIX_MODE_AUTO 0x0060 |
Definition at line 280 of file ar8031_driver.h.
◆ AR8031_FUNC_CTRL_MDIX_MODE_MANUAL_MDI
#define AR8031_FUNC_CTRL_MDIX_MODE_MANUAL_MDI 0x0000 |
Definition at line 278 of file ar8031_driver.h.
◆ AR8031_FUNC_CTRL_MDIX_MODE_MANUAL_MDIX
#define AR8031_FUNC_CTRL_MDIX_MODE_MANUAL_MDIX 0x0020 |
Definition at line 279 of file ar8031_driver.h.
◆ AR8031_FUNC_CTRL_POLARITY_REVERSAL
#define AR8031_FUNC_CTRL_POLARITY_REVERSAL 0x0002 |
Definition at line 282 of file ar8031_driver.h.
◆ AR8031_FUNC_CTRL_SQE_TEST
#define AR8031_FUNC_CTRL_SQE_TEST 0x0004 |
Definition at line 281 of file ar8031_driver.h.
◆ AR8031_GBCR
#define AR8031_GBCR 0x09 |
Definition at line 54 of file ar8031_driver.h.
◆ AR8031_GBCR_1000BT_FD
#define AR8031_GBCR_1000BT_FD 0x0200 |
Definition at line 248 of file ar8031_driver.h.
◆ AR8031_GBCR_1000BT_HD
#define AR8031_GBCR_1000BT_HD 0x0100 |
Definition at line 249 of file ar8031_driver.h.
◆ AR8031_GBCR_MS_MAN_CONF_EN
#define AR8031_GBCR_MS_MAN_CONF_EN 0x1000 |
Definition at line 245 of file ar8031_driver.h.
◆ AR8031_GBCR_MS_MAN_CONF_VAL
#define AR8031_GBCR_MS_MAN_CONF_VAL 0x0800 |
Definition at line 246 of file ar8031_driver.h.
◆ AR8031_GBCR_PORT_TYPE
#define AR8031_GBCR_PORT_TYPE 0x0400 |
Definition at line 247 of file ar8031_driver.h.
◆ AR8031_GBCR_TEST_MODE
#define AR8031_GBCR_TEST_MODE 0xE000 |
Definition at line 244 of file ar8031_driver.h.
◆ AR8031_GBESR
#define AR8031_GBESR 0x0F |
Definition at line 58 of file ar8031_driver.h.
◆ AR8031_GBESR_1000BT_FD
#define AR8031_GBESR_1000BT_FD 0x2000 |
Definition at line 271 of file ar8031_driver.h.
◆ AR8031_GBESR_1000BT_HD
#define AR8031_GBESR_1000BT_HD 0x1000 |
Definition at line 272 of file ar8031_driver.h.
◆ AR8031_GBESR_1000BX_FD
#define AR8031_GBESR_1000BX_FD 0x8000 |
Definition at line 269 of file ar8031_driver.h.
◆ AR8031_GBESR_1000BX_HD
#define AR8031_GBESR_1000BX_HD 0x4000 |
Definition at line 270 of file ar8031_driver.h.
◆ AR8031_GBSR
#define AR8031_GBSR 0x0A |
Definition at line 55 of file ar8031_driver.h.
◆ AR8031_GBSR_IDLE_ERR_COUNT
#define AR8031_GBSR_IDLE_ERR_COUNT 0x00FF |
Definition at line 258 of file ar8031_driver.h.
◆ AR8031_GBSR_LOCAL_RECEIVER_STATUS
#define AR8031_GBSR_LOCAL_RECEIVER_STATUS 0x2000 |
Definition at line 254 of file ar8031_driver.h.
◆ AR8031_GBSR_LP_1000BT_FD
#define AR8031_GBSR_LP_1000BT_FD 0x0800 |
Definition at line 256 of file ar8031_driver.h.
◆ AR8031_GBSR_LP_1000BT_HD
#define AR8031_GBSR_LP_1000BT_HD 0x0400 |
Definition at line 257 of file ar8031_driver.h.
◆ AR8031_GBSR_MS_CONF_FAULT
#define AR8031_GBSR_MS_CONF_FAULT 0x8000 |
Definition at line 252 of file ar8031_driver.h.
◆ AR8031_GBSR_MS_CONF_RES
#define AR8031_GBSR_MS_CONF_RES 0x4000 |
Definition at line 253 of file ar8031_driver.h.
◆ AR8031_GBSR_REMOTE_RECEIVER_STATUS
#define AR8031_GBSR_REMOTE_RECEIVER_STATUS 0x1000 |
Definition at line 255 of file ar8031_driver.h.
◆ AR8031_INT_EN
#define AR8031_INT_EN 0x12 |
Definition at line 61 of file ar8031_driver.h.
◆ AR8031_INT_EN_10MS_PTP
#define AR8031_INT_EN_10MS_PTP 0x0010 |
Definition at line 312 of file ar8031_driver.h.
◆ AR8031_INT_EN_AN_ERROR
#define AR8031_INT_EN_AN_ERROR 0x8000 |
Definition at line 302 of file ar8031_driver.h.
◆ AR8031_INT_EN_FAST_LINK_DOWN0
#define AR8031_INT_EN_FAST_LINK_DOWN0 0x0040 |
Definition at line 310 of file ar8031_driver.h.
◆ AR8031_INT_EN_FAST_LINK_DOWN1
#define AR8031_INT_EN_FAST_LINK_DOWN1 0x0200 |
Definition at line 307 of file ar8031_driver.h.
◆ AR8031_INT_EN_LINK_FAIL
#define AR8031_INT_EN_LINK_FAIL 0x0800 |
Definition at line 305 of file ar8031_driver.h.
◆ AR8031_INT_EN_LINK_FAIL_BX
#define AR8031_INT_EN_LINK_FAIL_BX 0x0100 |
Definition at line 308 of file ar8031_driver.h.
◆ AR8031_INT_EN_LINK_SUCCESS
#define AR8031_INT_EN_LINK_SUCCESS 0x0400 |
Definition at line 306 of file ar8031_driver.h.
◆ AR8031_INT_EN_LINK_SUCCESS_BX
#define AR8031_INT_EN_LINK_SUCCESS_BX 0x0080 |
Definition at line 309 of file ar8031_driver.h.
◆ AR8031_INT_EN_PAGE_RECEIVED
#define AR8031_INT_EN_PAGE_RECEIVED 0x1000 |
Definition at line 304 of file ar8031_driver.h.
◆ AR8031_INT_EN_POLARITY_CHANGED
#define AR8031_INT_EN_POLARITY_CHANGED 0x0002 |
Definition at line 315 of file ar8031_driver.h.
◆ AR8031_INT_EN_RX_PTP
#define AR8031_INT_EN_RX_PTP 0x0008 |
Definition at line 313 of file ar8031_driver.h.
◆ AR8031_INT_EN_SPEED_CHANGED
#define AR8031_INT_EN_SPEED_CHANGED 0x4000 |
Definition at line 303 of file ar8031_driver.h.
◆ AR8031_INT_EN_TX_PTP
#define AR8031_INT_EN_TX_PTP 0x0004 |
Definition at line 314 of file ar8031_driver.h.
◆ AR8031_INT_EN_WIRESPEED_DOWNGRADE
#define AR8031_INT_EN_WIRESPEED_DOWNGRADE 0x0020 |
Definition at line 311 of file ar8031_driver.h.
◆ AR8031_INT_EN_WOL_PTP
#define AR8031_INT_EN_WOL_PTP 0x0001 |
Definition at line 316 of file ar8031_driver.h.
◆ AR8031_INT_STATUS
#define AR8031_INT_STATUS 0x13 |
Definition at line 62 of file ar8031_driver.h.
◆ AR8031_INT_STATUS_10MS_PTP
#define AR8031_INT_STATUS_10MS_PTP 0x0010 |
Definition at line 329 of file ar8031_driver.h.
◆ AR8031_INT_STATUS_AN_ERROR
#define AR8031_INT_STATUS_AN_ERROR 0x8000 |
Definition at line 319 of file ar8031_driver.h.
◆ AR8031_INT_STATUS_FAST_LINK_DOWN0
#define AR8031_INT_STATUS_FAST_LINK_DOWN0 0x0040 |
Definition at line 327 of file ar8031_driver.h.
◆ AR8031_INT_STATUS_FAST_LINK_DOWN1
#define AR8031_INT_STATUS_FAST_LINK_DOWN1 0x0200 |
Definition at line 324 of file ar8031_driver.h.
◆ AR8031_INT_STATUS_LINK_FAIL
#define AR8031_INT_STATUS_LINK_FAIL 0x0800 |
Definition at line 322 of file ar8031_driver.h.
◆ AR8031_INT_STATUS_LINK_FAIL_BX
#define AR8031_INT_STATUS_LINK_FAIL_BX 0x0100 |
Definition at line 325 of file ar8031_driver.h.
◆ AR8031_INT_STATUS_LINK_SUCCESS
#define AR8031_INT_STATUS_LINK_SUCCESS 0x0400 |
Definition at line 323 of file ar8031_driver.h.
◆ AR8031_INT_STATUS_LINK_SUCCESS_BX
#define AR8031_INT_STATUS_LINK_SUCCESS_BX 0x0080 |
Definition at line 326 of file ar8031_driver.h.
◆ AR8031_INT_STATUS_PAGE_RECEIVED
#define AR8031_INT_STATUS_PAGE_RECEIVED 0x1000 |
Definition at line 321 of file ar8031_driver.h.
◆ AR8031_INT_STATUS_POLARITY_CHANGED
#define AR8031_INT_STATUS_POLARITY_CHANGED 0x0002 |
Definition at line 332 of file ar8031_driver.h.
◆ AR8031_INT_STATUS_RX_PTP
#define AR8031_INT_STATUS_RX_PTP 0x0008 |
Definition at line 330 of file ar8031_driver.h.
◆ AR8031_INT_STATUS_SPEED_CHANGED
#define AR8031_INT_STATUS_SPEED_CHANGED 0x4000 |
Definition at line 320 of file ar8031_driver.h.
◆ AR8031_INT_STATUS_TX_PTP
#define AR8031_INT_STATUS_TX_PTP 0x0004 |
Definition at line 331 of file ar8031_driver.h.
◆ AR8031_INT_STATUS_WIRESPEED_DOWNGRADE
#define AR8031_INT_STATUS_WIRESPEED_DOWNGRADE 0x0020 |
Definition at line 328 of file ar8031_driver.h.
◆ AR8031_INT_STATUS_WOL_PTP
#define AR8031_INT_STATUS_WOL_PTP 0x0001 |
Definition at line 333 of file ar8031_driver.h.
◆ AR8031_LED_CTRL
#define AR8031_LED_CTRL 0x18 |
Definition at line 65 of file ar8031_driver.h.
◆ AR8031_LED_CTRL_LED_ACT_CTRL
#define AR8031_LED_CTRL_LED_ACT_CTRL 0x0004 |
Definition at line 349 of file ar8031_driver.h.
◆ AR8031_LED_CTRL_LED_DIS
#define AR8031_LED_CTRL_LED_DIS 0x8000 |
Definition at line 345 of file ar8031_driver.h.
◆ AR8031_LED_CTRL_LED_LINK_CTRL
#define AR8031_LED_CTRL_LED_LINK_CTRL 0x0018 |
Definition at line 348 of file ar8031_driver.h.
◆ AR8031_LED_CTRL_LED_OFF_TIME
#define AR8031_LED_CTRL_LED_OFF_TIME 0x0700 |
Definition at line 347 of file ar8031_driver.h.
◆ AR8031_LED_CTRL_LED_ON_TIME
#define AR8031_LED_CTRL_LED_ON_TIME 0x7000 |
Definition at line 346 of file ar8031_driver.h.
◆ AR8031_MAN_LED_OVERRIDE
#define AR8031_MAN_LED_OVERRIDE 0x19 |
Definition at line 66 of file ar8031_driver.h.
◆ AR8031_MAN_LED_OVERRIDE_LED_ACT
#define AR8031_MAN_LED_OVERRIDE_LED_ACT 0x1000 |
Definition at line 352 of file ar8031_driver.h.
◆ AR8031_MAN_LED_OVERRIDE_LED_LINK10_100_CTRL
#define AR8031_MAN_LED_OVERRIDE_LED_LINK10_100_CTRL 0x00C0 |
Definition at line 353 of file ar8031_driver.h.
◆ AR8031_MAN_LED_OVERRIDE_LED_RX_CTRL
#define AR8031_MAN_LED_OVERRIDE_LED_RX_CTRL 0x000C |
Definition at line 354 of file ar8031_driver.h.
◆ AR8031_MAN_LED_OVERRIDE_LED_TX_CTRL
#define AR8031_MAN_LED_OVERRIDE_LED_TX_CTRL 0x0003 |
Definition at line 355 of file ar8031_driver.h.
◆ AR8031_MMDAADR
#define AR8031_MMDAADR 0x0E |
Definition at line 57 of file ar8031_driver.h.
◆ AR8031_MMDACR
#define AR8031_MMDACR 0x0D |
Definition at line 56 of file ar8031_driver.h.
◆ AR8031_MMDACR_DEVAD
#define AR8031_MMDACR_DEVAD 0x001F |
Definition at line 266 of file ar8031_driver.h.
◆ AR8031_MMDACR_FUNC
#define AR8031_MMDACR_FUNC 0xC000 |
Definition at line 261 of file ar8031_driver.h.
◆ AR8031_MMDACR_FUNC_ADDR
#define AR8031_MMDACR_FUNC_ADDR 0x0000 |
Definition at line 262 of file ar8031_driver.h.
◆ AR8031_MMDACR_FUNC_DATA_NO_POST_INC
#define AR8031_MMDACR_FUNC_DATA_NO_POST_INC 0x4000 |
Definition at line 263 of file ar8031_driver.h.
◆ AR8031_MMDACR_FUNC_DATA_POST_INC_RW
#define AR8031_MMDACR_FUNC_DATA_POST_INC_RW 0x8000 |
Definition at line 264 of file ar8031_driver.h.
◆ AR8031_MMDACR_FUNC_DATA_POST_INC_W
#define AR8031_MMDACR_FUNC_DATA_POST_INC_W 0xC000 |
Definition at line 265 of file ar8031_driver.h.
◆ AR8031_P1588_CTRL
#define AR8031_P1588_CTRL 0x03, 0x8012 |
Definition at line 78 of file ar8031_driver.h.
◆ AR8031_P1588_INC_VALUE1
#define AR8031_P1588_INC_VALUE1 0x03, 0x8036 |
Definition at line 114 of file ar8031_driver.h.
◆ AR8031_P1588_INC_VALUE2
#define AR8031_P1588_INC_VALUE2 0x03, 0x8037 |
Definition at line 115 of file ar8031_driver.h.
◆ AR8031_P1588_INGRESS_TRIG_TIME1
#define AR8031_P1588_INGRESS_TRIG_TIME1 0x03, 0x8031 |
Definition at line 109 of file ar8031_driver.h.
◆ AR8031_P1588_INGRESS_TRIG_TIME2
#define AR8031_P1588_INGRESS_TRIG_TIME2 0x03, 0x8032 |
Definition at line 110 of file ar8031_driver.h.
◆ AR8031_P1588_INGRESS_TRIG_TIME3
#define AR8031_P1588_INGRESS_TRIG_TIME3 0x03, 0x8033 |
Definition at line 111 of file ar8031_driver.h.
◆ AR8031_P1588_INGRESS_TRIG_TIME4
#define AR8031_P1588_INGRESS_TRIG_TIME4 0x03, 0x8034 |
Definition at line 112 of file ar8031_driver.h.
◆ AR8031_P1588_NANO_OFFSET1
#define AR8031_P1588_NANO_OFFSET1 0x03, 0x8038 |
Definition at line 116 of file ar8031_driver.h.
◆ AR8031_P1588_NANO_OFFSET2
#define AR8031_P1588_NANO_OFFSET2 0x03, 0x8039 |
Definition at line 117 of file ar8031_driver.h.
◆ AR8031_P1588_ORIGIN_CORRECTION1
#define AR8031_P1588_ORIGIN_CORRECTION1 0x03, 0x802D |
Definition at line 105 of file ar8031_driver.h.
◆ AR8031_P1588_ORIGIN_CORRECTION2
#define AR8031_P1588_ORIGIN_CORRECTION2 0x03, 0x802E |
Definition at line 106 of file ar8031_driver.h.
◆ AR8031_P1588_ORIGIN_CORRECTION3
#define AR8031_P1588_ORIGIN_CORRECTION3 0x03, 0x802F |
Definition at line 107 of file ar8031_driver.h.
◆ AR8031_P1588_ORIGIN_CORRECTION4
#define AR8031_P1588_ORIGIN_CORRECTION4 0x03, 0x8030 |
Definition at line 108 of file ar8031_driver.h.
◆ AR8031_P1588_REAL_TIME1
#define AR8031_P1588_REAL_TIME1 0x03, 0x803D |
Definition at line 121 of file ar8031_driver.h.
◆ AR8031_P1588_REAL_TIME2
#define AR8031_P1588_REAL_TIME2 0x03, 0x803E |
Definition at line 122 of file ar8031_driver.h.
◆ AR8031_P1588_REAL_TIME3
#define AR8031_P1588_REAL_TIME3 0x03, 0x803F |
Definition at line 123 of file ar8031_driver.h.
◆ AR8031_P1588_REAL_TIME4
#define AR8031_P1588_REAL_TIME4 0x03, 0x8040 |
Definition at line 124 of file ar8031_driver.h.
◆ AR8031_P1588_REAL_TIME5
#define AR8031_P1588_REAL_TIME5 0x03, 0x8041 |
Definition at line 125 of file ar8031_driver.h.
◆ AR8031_P1588_REAL_TIME6
#define AR8031_P1588_REAL_TIME6 0x03, 0x8042 |
Definition at line 126 of file ar8031_driver.h.
◆ AR8031_P1588_RTC_FRAC_NANO1
#define AR8031_P1588_RTC_FRAC_NANO1 0x03, 0x8042 |
Definition at line 127 of file ar8031_driver.h.
◆ AR8031_P1588_RTC_FRAC_NANO2
#define AR8031_P1588_RTC_FRAC_NANO2 0x03, 0x8043 |
Definition at line 128 of file ar8031_driver.h.
◆ AR8031_P1588_RX_FRAC_NANO0
#define AR8031_P1588_RX_FRAC_NANO0 0x03, 0x801F |
Definition at line 91 of file ar8031_driver.h.
◆ AR8031_P1588_RX_FRAC_NANO1
#define AR8031_P1588_RX_FRAC_NANO1 0x03, 0x801E |
Definition at line 90 of file ar8031_driver.h.
◆ AR8031_P1588_RX_SEQ_ID
#define AR8031_P1588_RX_SEQ_ID 0x03, 0x8013 |
Definition at line 79 of file ar8031_driver.h.
◆ AR8031_P1588_RX_SRC_PORT_ID1
#define AR8031_P1588_RX_SRC_PORT_ID1 0x03, 0x8014 |
Definition at line 80 of file ar8031_driver.h.
◆ AR8031_P1588_RX_SRC_PORT_ID2
#define AR8031_P1588_RX_SRC_PORT_ID2 0x03, 0x8015 |
Definition at line 81 of file ar8031_driver.h.
◆ AR8031_P1588_RX_SRC_PORT_ID3
#define AR8031_P1588_RX_SRC_PORT_ID3 0x03, 0x8016 |
Definition at line 82 of file ar8031_driver.h.
◆ AR8031_P1588_RX_SRC_PORT_ID4
#define AR8031_P1588_RX_SRC_PORT_ID4 0x03, 0x8017 |
Definition at line 83 of file ar8031_driver.h.
◆ AR8031_P1588_RX_SRC_PORT_ID5
#define AR8031_P1588_RX_SRC_PORT_ID5 0x03, 0x8018 |
Definition at line 84 of file ar8031_driver.h.
◆ AR8031_P1588_RX_TIMESTAMP1
#define AR8031_P1588_RX_TIMESTAMP1 0x03, 0x8019 |
Definition at line 85 of file ar8031_driver.h.
◆ AR8031_P1588_RX_TIMESTAMP2
#define AR8031_P1588_RX_TIMESTAMP2 0x03, 0x801A |
Definition at line 86 of file ar8031_driver.h.
◆ AR8031_P1588_RX_TIMESTAMP3
#define AR8031_P1588_RX_TIMESTAMP3 0x03, 0x801B |
Definition at line 87 of file ar8031_driver.h.
◆ AR8031_P1588_RX_TIMESTAMP4
#define AR8031_P1588_RX_TIMESTAMP4 0x03, 0x801C |
Definition at line 88 of file ar8031_driver.h.
◆ AR8031_P1588_RX_TIMESTAMP5
#define AR8031_P1588_RX_TIMESTAMP5 0x03, 0x801D |
Definition at line 89 of file ar8031_driver.h.
◆ AR8031_P1588_SEC_OFFSET1
#define AR8031_P1588_SEC_OFFSET1 0x03, 0x803A |
Definition at line 118 of file ar8031_driver.h.
◆ AR8031_P1588_SEC_OFFSET2
#define AR8031_P1588_SEC_OFFSET2 0x03, 0x803B |
Definition at line 119 of file ar8031_driver.h.
◆ AR8031_P1588_SEC_OFFSET3
#define AR8031_P1588_SEC_OFFSET3 0x03, 0x803C |
Definition at line 120 of file ar8031_driver.h.
◆ AR8031_P1588_TX_FRAC_NANO1
#define AR8031_P1588_TX_FRAC_NANO1 0x03, 0x802B |
Definition at line 103 of file ar8031_driver.h.
◆ AR8031_P1588_TX_FRAC_NANO2
#define AR8031_P1588_TX_FRAC_NANO2 0x03, 0x802C |
Definition at line 104 of file ar8031_driver.h.
◆ AR8031_P1588_TX_LATENCY
#define AR8031_P1588_TX_LATENCY 0x03, 0x8035 |
Definition at line 113 of file ar8031_driver.h.
◆ AR8031_P1588_TX_SEQ_ID
#define AR8031_P1588_TX_SEQ_ID 0x03, 0x8020 |
Definition at line 92 of file ar8031_driver.h.
◆ AR8031_P1588_TX_SRC_PORT_ID1
#define AR8031_P1588_TX_SRC_PORT_ID1 0x03, 0x8021 |
Definition at line 93 of file ar8031_driver.h.
◆ AR8031_P1588_TX_SRC_PORT_ID2
#define AR8031_P1588_TX_SRC_PORT_ID2 0x03, 0x8022 |
Definition at line 94 of file ar8031_driver.h.
◆ AR8031_P1588_TX_SRC_PORT_ID3
#define AR8031_P1588_TX_SRC_PORT_ID3 0x03, 0x8023 |
Definition at line 95 of file ar8031_driver.h.
◆ AR8031_P1588_TX_SRC_PORT_ID4
#define AR8031_P1588_TX_SRC_PORT_ID4 0x03, 0x8024 |
Definition at line 96 of file ar8031_driver.h.
◆ AR8031_P1588_TX_SRC_PORT_ID5
#define AR8031_P1588_TX_SRC_PORT_ID5 0x03, 0x8025 |
Definition at line 97 of file ar8031_driver.h.
◆ AR8031_P1588_TX_TIMESTAMP1
#define AR8031_P1588_TX_TIMESTAMP1 0x03, 0x8026 |
Definition at line 98 of file ar8031_driver.h.
◆ AR8031_P1588_TX_TIMESTAMP2
#define AR8031_P1588_TX_TIMESTAMP2 0x03, 0x8027 |
Definition at line 99 of file ar8031_driver.h.
◆ AR8031_P1588_TX_TIMESTAMP3
#define AR8031_P1588_TX_TIMESTAMP3 0x03, 0x8028 |
Definition at line 100 of file ar8031_driver.h.
◆ AR8031_P1588_TX_TIMESTAMP4
#define AR8031_P1588_TX_TIMESTAMP4 0x03, 0x8029 |
Definition at line 101 of file ar8031_driver.h.
◆ AR8031_P1588_TX_TIMESTAMP5
#define AR8031_P1588_TX_TIMESTAMP5 0x03, 0x802A |
Definition at line 102 of file ar8031_driver.h.
◆ AR8031_PCS_CTRL
#define AR8031_PCS_CTRL 0x03, 0x0000 |
Definition at line 74 of file ar8031_driver.h.
◆ AR8031_PCS_STAT
#define AR8031_PCS_STAT 0x03, 0x0001 |
Definition at line 75 of file ar8031_driver.h.
◆ AR8031_PHY_ADDR
#define AR8031_PHY_ADDR 0 |
Definition at line 39 of file ar8031_driver.h.
◆ AR8031_PHY_STATUS
#define AR8031_PHY_STATUS 0x11 |
Definition at line 60 of file ar8031_driver.h.
◆ AR8031_PHY_STATUS_DUPLEX
#define AR8031_PHY_STATUS_DUPLEX 0x2000 |
Definition at line 290 of file ar8031_driver.h.
◆ AR8031_PHY_STATUS_JABBER
#define AR8031_PHY_STATUS_JABBER 0x0001 |
Definition at line 299 of file ar8031_driver.h.
◆ AR8031_PHY_STATUS_LINK
#define AR8031_PHY_STATUS_LINK 0x0400 |
Definition at line 293 of file ar8031_driver.h.
◆ AR8031_PHY_STATUS_MDI_CROSSOVER_STATUS
#define AR8031_PHY_STATUS_MDI_CROSSOVER_STATUS 0x0040 |
Definition at line 294 of file ar8031_driver.h.
◆ AR8031_PHY_STATUS_PAGE_RECEIVED
#define AR8031_PHY_STATUS_PAGE_RECEIVED 0x1000 |
Definition at line 291 of file ar8031_driver.h.
◆ AR8031_PHY_STATUS_POLARITY
#define AR8031_PHY_STATUS_POLARITY 0x0002 |
Definition at line 298 of file ar8031_driver.h.
◆ AR8031_PHY_STATUS_RX_PAUSE_EN
#define AR8031_PHY_STATUS_RX_PAUSE_EN 0x0004 |
Definition at line 297 of file ar8031_driver.h.
◆ AR8031_PHY_STATUS_SPEED
#define AR8031_PHY_STATUS_SPEED 0xC000 |
Definition at line 286 of file ar8031_driver.h.
◆ AR8031_PHY_STATUS_SPEED_1000MBPS
#define AR8031_PHY_STATUS_SPEED_1000MBPS 0x8000 |
Definition at line 289 of file ar8031_driver.h.
◆ AR8031_PHY_STATUS_SPEED_100MBPS
#define AR8031_PHY_STATUS_SPEED_100MBPS 0x4000 |
Definition at line 288 of file ar8031_driver.h.
◆ AR8031_PHY_STATUS_SPEED_10MBPS
#define AR8031_PHY_STATUS_SPEED_10MBPS 0x0000 |
Definition at line 287 of file ar8031_driver.h.
◆ AR8031_PHY_STATUS_SPEED_DUPLEX_RESOLVED
#define AR8031_PHY_STATUS_SPEED_DUPLEX_RESOLVED 0x0800 |
Definition at line 292 of file ar8031_driver.h.
◆ AR8031_PHY_STATUS_TX_PAUSE_EN
#define AR8031_PHY_STATUS_TX_PAUSE_EN 0x0008 |
Definition at line 296 of file ar8031_driver.h.
◆ AR8031_PHY_STATUS_WIRESPEED_DOWNGRADE
#define AR8031_PHY_STATUS_WIRESPEED_DOWNGRADE 0x0020 |
Definition at line 295 of file ar8031_driver.h.
◆ AR8031_PHYID1
#define AR8031_PHYID1 0x02 |
Definition at line 47 of file ar8031_driver.h.
◆ AR8031_PHYID1_OUI_MSB
#define AR8031_PHYID1_OUI_MSB 0xFFFF |
Definition at line 183 of file ar8031_driver.h.
◆ AR8031_PHYID1_OUI_MSB_DEFAULT
#define AR8031_PHYID1_OUI_MSB_DEFAULT 0x004D |
Definition at line 184 of file ar8031_driver.h.
◆ AR8031_PHYID2
#define AR8031_PHYID2 0x03 |
Definition at line 48 of file ar8031_driver.h.
◆ AR8031_PHYID2_MODEL_NUM
#define AR8031_PHYID2_MODEL_NUM 0x03F0 |
Definition at line 189 of file ar8031_driver.h.
◆ AR8031_PHYID2_MODEL_NUM_DEFAULT
#define AR8031_PHYID2_MODEL_NUM_DEFAULT 0x0070 |
Definition at line 190 of file ar8031_driver.h.
◆ AR8031_PHYID2_OUI_LSB
#define AR8031_PHYID2_OUI_LSB 0xFC00 |
Definition at line 187 of file ar8031_driver.h.
◆ AR8031_PHYID2_OUI_LSB_DEFAULT
#define AR8031_PHYID2_OUI_LSB_DEFAULT 0xD000 |
Definition at line 188 of file ar8031_driver.h.
◆ AR8031_PHYID2_REVISION_NUM
#define AR8031_PHYID2_REVISION_NUM 0x000F |
Definition at line 191 of file ar8031_driver.h.
◆ AR8031_REM_PHY_LPBK
#define AR8031_REM_PHY_LPBK 0x03, 0x805A |
Definition at line 132 of file ar8031_driver.h.
◆ AR8031_SGMII_CTRL1
#define AR8031_SGMII_CTRL1 0x07, 0x8005 |
Definition at line 147 of file ar8031_driver.h.
◆ AR8031_SGMII_CTRL2
#define AR8031_SGMII_CTRL2 0x07, 0x8011 |
Definition at line 148 of file ar8031_driver.h.
◆ AR8031_SGMII_CTRL3
#define AR8031_SGMII_CTRL3 0x07, 0x8012 |
Definition at line 149 of file ar8031_driver.h.
◆ AR8031_SMART_EEE_CTRL1
#define AR8031_SMART_EEE_CTRL1 0x03, 0x805B |
Definition at line 133 of file ar8031_driver.h.
◆ AR8031_SMART_EEE_CTRL2
#define AR8031_SMART_EEE_CTRL2 0x03, 0x805C |
Definition at line 134 of file ar8031_driver.h.
◆ AR8031_SMART_EEE_CTRL3
#define AR8031_SMART_EEE_CTRL3 0x03, 0x805D |
Definition at line 135 of file ar8031_driver.h.
◆ AR8031_SMART_SPEED
#define AR8031_SMART_SPEED 0x14 |
Definition at line 63 of file ar8031_driver.h.
◆ AR8031_SMART_SPEED_BYPASS_TIMER
#define AR8031_SMART_SPEED_BYPASS_TIMER 0x0002 |
Definition at line 338 of file ar8031_driver.h.
◆ AR8031_SMART_SPEED_EN
#define AR8031_SMART_SPEED_EN 0x0020 |
Definition at line 336 of file ar8031_driver.h.
◆ AR8031_SMART_SPEED_RETRY_LIMIT
#define AR8031_SMART_SPEED_RETRY_LIMIT 0x001C |
Definition at line 337 of file ar8031_driver.h.
◆ AR8031_WOL_INTERNAL_ADDR1
#define AR8031_WOL_INTERNAL_ADDR1 0x03, 0x804A |
Definition at line 129 of file ar8031_driver.h.
◆ AR8031_WOL_INTERNAL_ADDR2
#define AR8031_WOL_INTERNAL_ADDR2 0x03, 0x804B |
Definition at line 130 of file ar8031_driver.h.
◆ AR8031_WOL_INTERNAL_ADDR3
#define AR8031_WOL_INTERNAL_ADDR3 0x03, 0x804C |
Definition at line 131 of file ar8031_driver.h.
Function Documentation
◆ ar8031DisableIrq()
void ar8031DisableIrq | ( | NetInterface * | interface | ) |
Disable interrupts.
- Parameters
-
[in] interface Underlying network interface
Definition at line 202 of file ar8031_driver.c.
◆ ar8031DumpPhyReg()
void ar8031DumpPhyReg | ( | NetInterface * | interface | ) |
Dump PHY registers for debugging purpose.
- Parameters
-
[in] interface Underlying network interface
Definition at line 340 of file ar8031_driver.c.
◆ ar8031EnableIrq()
void ar8031EnableIrq | ( | NetInterface * | interface | ) |
Enable interrupts.
- Parameters
-
[in] interface Underlying network interface
Definition at line 187 of file ar8031_driver.c.
◆ ar8031EventHandler()
void ar8031EventHandler | ( | NetInterface * | interface | ) |
AR8031 event handler.
- Parameters
-
[in] interface Underlying network interface
Definition at line 217 of file ar8031_driver.c.
◆ ar8031Init()
error_t ar8031Init | ( | NetInterface * | interface | ) |
AR8031 PHY transceiver initialization.
- Parameters
-
[in] interface Underlying network interface
- Returns
- Error code
Definition at line 60 of file ar8031_driver.c.
◆ ar8031InitHook()
void ar8031InitHook | ( | NetInterface * | interface | ) |
AR8031 custom configuration.
- Parameters
-
[in] interface Underlying network interface
Definition at line 139 of file ar8031_driver.c.
◆ ar8031ReadMmdReg()
uint16_t ar8031ReadMmdReg | ( | NetInterface * | interface, |
uint8_t | devAddr, | ||
uint16_t | regAddr | ||
) |
Read MMD register.
- Parameters
-
[in] interface Underlying network interface [in] devAddr Device address [in] regAddr Register address
- Returns
- MMD register value
Definition at line 392 of file ar8031_driver.c.
◆ ar8031ReadPhyReg()
uint16_t ar8031ReadPhyReg | ( | NetInterface * | interface, |
uint8_t | address | ||
) |
Read PHY register.
- Parameters
-
[in] interface Underlying network interface [in] address PHY register address
- Returns
- Register value
Definition at line 314 of file ar8031_driver.c.
◆ ar8031Tick()
void ar8031Tick | ( | NetInterface * | interface | ) |
AR8031 timer handler.
- Parameters
-
[in] interface Underlying network interface
Definition at line 149 of file ar8031_driver.c.
◆ ar8031WriteMmdReg()
void ar8031WriteMmdReg | ( | NetInterface * | interface, |
uint8_t | devAddr, | ||
uint16_t | regAddr, | ||
uint16_t | data | ||
) |
Write MMD register.
- Parameters
-
[in] interface Underlying network interface [in] devAddr Device address [in] regAddr Register address [in] data MMD register value
Definition at line 365 of file ar8031_driver.c.
◆ ar8031WritePhyReg()
void ar8031WritePhyReg | ( | NetInterface * | interface, |
uint8_t | address, | ||
uint16_t | data | ||
) |
Write PHY register.
- Parameters
-
[in] interface Underlying network interface [in] address PHY register address [in] data Register value
Definition at line 290 of file ar8031_driver.c.
Variable Documentation
◆ ar8031PhyDriver
|
extern |
AR8031 Ethernet PHY driver.
Definition at line 44 of file ar8031_driver.c.