RTL8211E Gigabit Ethernet PHY driver. More...
#include "core/nic.h"
Go to the source code of this file.
Functions | |
error_t | rtl8211eInit (NetInterface *interface) |
RTL8211E PHY transceiver initialization. More... | |
void | rtl8211eInitHook (NetInterface *interface) |
RTL8211E custom configuration. More... | |
void | rtl8211eTick (NetInterface *interface) |
RTL8211E timer handler. More... | |
void | rtl8211eEnableIrq (NetInterface *interface) |
Enable interrupts. More... | |
void | rtl8211eDisableIrq (NetInterface *interface) |
Disable interrupts. More... | |
void | rtl8211eEventHandler (NetInterface *interface) |
RTL8211E event handler. More... | |
void | rtl8211eWritePhyReg (NetInterface *interface, uint8_t address, uint16_t data) |
Write PHY register. More... | |
uint16_t | rtl8211eReadPhyReg (NetInterface *interface, uint8_t address) |
Read PHY register. More... | |
void | rtl8211eDumpPhyReg (NetInterface *interface) |
Dump PHY registers for debugging purpose. More... | |
void | rtl8211eWriteMmdReg (NetInterface *interface, uint8_t devAddr, uint16_t regAddr, uint16_t data) |
Write MMD register. More... | |
uint16_t | rtl8211eReadMmdReg (NetInterface *interface, uint8_t devAddr, uint16_t regAddr) |
Read MMD register. More... | |
Variables | |
const PhyDriver | rtl8211ePhyDriver |
RTL8211E Ethernet PHY driver. More... | |
Detailed Description
RTL8211E 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 rtl8211e_driver.h.
Macro Definition Documentation
◆ RTL8211E_ANAR
#define RTL8211E_ANAR 0x04 |
Definition at line 49 of file rtl8211e_driver.h.
◆ RTL8211E_ANAR_100BT4
#define RTL8211E_ANAR_100BT4 0x0200 |
Definition at line 114 of file rtl8211e_driver.h.
◆ RTL8211E_ANAR_100BTX_FD
#define RTL8211E_ANAR_100BTX_FD 0x0100 |
Definition at line 115 of file rtl8211e_driver.h.
◆ RTL8211E_ANAR_100BTX_HD
#define RTL8211E_ANAR_100BTX_HD 0x0080 |
Definition at line 116 of file rtl8211e_driver.h.
◆ RTL8211E_ANAR_10BT_FD
#define RTL8211E_ANAR_10BT_FD 0x0040 |
Definition at line 117 of file rtl8211e_driver.h.
◆ RTL8211E_ANAR_10BT_HD
#define RTL8211E_ANAR_10BT_HD 0x0020 |
Definition at line 118 of file rtl8211e_driver.h.
◆ RTL8211E_ANAR_ASYM_PAUSE
#define RTL8211E_ANAR_ASYM_PAUSE 0x0800 |
Definition at line 112 of file rtl8211e_driver.h.
◆ RTL8211E_ANAR_NEXT_PAGE
#define RTL8211E_ANAR_NEXT_PAGE 0x8000 |
Definition at line 110 of file rtl8211e_driver.h.
◆ RTL8211E_ANAR_PAUSE
#define RTL8211E_ANAR_PAUSE 0x0400 |
Definition at line 113 of file rtl8211e_driver.h.
◆ RTL8211E_ANAR_REMOTE_FAULT
#define RTL8211E_ANAR_REMOTE_FAULT 0x2000 |
Definition at line 111 of file rtl8211e_driver.h.
◆ RTL8211E_ANAR_SELECTOR
#define RTL8211E_ANAR_SELECTOR 0x001F |
Definition at line 119 of file rtl8211e_driver.h.
◆ RTL8211E_ANAR_SELECTOR_DEFAULT
#define RTL8211E_ANAR_SELECTOR_DEFAULT 0x0001 |
Definition at line 120 of file rtl8211e_driver.h.
◆ RTL8211E_ANER
#define RTL8211E_ANER 0x06 |
Definition at line 51 of file rtl8211e_driver.h.
◆ RTL8211E_ANER_LP_AN_ABLE
#define RTL8211E_ANER_LP_AN_ABLE 0x0001 |
Definition at line 141 of file rtl8211e_driver.h.
◆ RTL8211E_ANER_LP_NEXT_PAGE_ABLE
#define RTL8211E_ANER_LP_NEXT_PAGE_ABLE 0x0008 |
Definition at line 138 of file rtl8211e_driver.h.
◆ RTL8211E_ANER_NEXT_PAGE_ABLE
#define RTL8211E_ANER_NEXT_PAGE_ABLE 0x0004 |
Definition at line 139 of file rtl8211e_driver.h.
◆ RTL8211E_ANER_PAGE_RECEIVED
#define RTL8211E_ANER_PAGE_RECEIVED 0x0002 |
Definition at line 140 of file rtl8211e_driver.h.
◆ RTL8211E_ANER_PAR_DETECT_FAULT
#define RTL8211E_ANER_PAR_DETECT_FAULT 0x0010 |
Definition at line 137 of file rtl8211e_driver.h.
◆ RTL8211E_ANLPAR
#define RTL8211E_ANLPAR 0x05 |
Definition at line 50 of file rtl8211e_driver.h.
◆ RTL8211E_ANLPAR_100BT4
#define RTL8211E_ANLPAR_100BT4 0x0200 |
Definition at line 128 of file rtl8211e_driver.h.
◆ RTL8211E_ANLPAR_100BTX_FD
#define RTL8211E_ANLPAR_100BTX_FD 0x0100 |
Definition at line 129 of file rtl8211e_driver.h.
◆ RTL8211E_ANLPAR_100BTX_HD
#define RTL8211E_ANLPAR_100BTX_HD 0x0080 |
Definition at line 130 of file rtl8211e_driver.h.
◆ RTL8211E_ANLPAR_10BT_FD
#define RTL8211E_ANLPAR_10BT_FD 0x0040 |
Definition at line 131 of file rtl8211e_driver.h.
◆ RTL8211E_ANLPAR_10BT_HD
#define RTL8211E_ANLPAR_10BT_HD 0x0020 |
Definition at line 132 of file rtl8211e_driver.h.
◆ RTL8211E_ANLPAR_ACK
#define RTL8211E_ANLPAR_ACK 0x4000 |
Definition at line 124 of file rtl8211e_driver.h.
◆ RTL8211E_ANLPAR_ASYM_PAUSE
#define RTL8211E_ANLPAR_ASYM_PAUSE 0x0800 |
Definition at line 126 of file rtl8211e_driver.h.
◆ RTL8211E_ANLPAR_NEXT_PAGE
#define RTL8211E_ANLPAR_NEXT_PAGE 0x8000 |
Definition at line 123 of file rtl8211e_driver.h.
◆ RTL8211E_ANLPAR_PAUSE
#define RTL8211E_ANLPAR_PAUSE 0x0400 |
Definition at line 127 of file rtl8211e_driver.h.
◆ RTL8211E_ANLPAR_REMOTE_FAULT
#define RTL8211E_ANLPAR_REMOTE_FAULT 0x2000 |
Definition at line 125 of file rtl8211e_driver.h.
◆ RTL8211E_ANLPAR_SELECTOR
#define RTL8211E_ANLPAR_SELECTOR 0x001F |
Definition at line 133 of file rtl8211e_driver.h.
◆ RTL8211E_ANLPAR_SELECTOR_DEFAULT
#define RTL8211E_ANLPAR_SELECTOR_DEFAULT 0x0001 |
Definition at line 134 of file rtl8211e_driver.h.
◆ RTL8211E_ANNPRR
#define RTL8211E_ANNPRR 0x08 |
Definition at line 53 of file rtl8211e_driver.h.
◆ RTL8211E_ANNPRR_ACK
#define RTL8211E_ANNPRR_ACK 0x4000 |
Definition at line 152 of file rtl8211e_driver.h.
◆ RTL8211E_ANNPRR_ACK2
#define RTL8211E_ANNPRR_ACK2 0x1000 |
Definition at line 154 of file rtl8211e_driver.h.
◆ RTL8211E_ANNPRR_MESSAGE
#define RTL8211E_ANNPRR_MESSAGE 0x07FF |
Definition at line 156 of file rtl8211e_driver.h.
◆ RTL8211E_ANNPRR_MSG_PAGE
#define RTL8211E_ANNPRR_MSG_PAGE 0x2000 |
Definition at line 153 of file rtl8211e_driver.h.
◆ RTL8211E_ANNPRR_NEXT_PAGE
#define RTL8211E_ANNPRR_NEXT_PAGE 0x8000 |
Definition at line 151 of file rtl8211e_driver.h.
◆ RTL8211E_ANNPRR_TOGGLE
#define RTL8211E_ANNPRR_TOGGLE 0x0800 |
Definition at line 155 of file rtl8211e_driver.h.
◆ RTL8211E_ANNPTR
#define RTL8211E_ANNPTR 0x07 |
Definition at line 52 of file rtl8211e_driver.h.
◆ RTL8211E_ANNPTR_ACK2
#define RTL8211E_ANNPTR_ACK2 0x1000 |
Definition at line 146 of file rtl8211e_driver.h.
◆ RTL8211E_ANNPTR_MESSAGE
#define RTL8211E_ANNPTR_MESSAGE 0x07FF |
Definition at line 148 of file rtl8211e_driver.h.
◆ RTL8211E_ANNPTR_MSG_PAGE
#define RTL8211E_ANNPTR_MSG_PAGE 0x2000 |
Definition at line 145 of file rtl8211e_driver.h.
◆ RTL8211E_ANNPTR_NEXT_PAGE
#define RTL8211E_ANNPTR_NEXT_PAGE 0x8000 |
Definition at line 144 of file rtl8211e_driver.h.
◆ RTL8211E_ANNPTR_TOGGLE
#define RTL8211E_ANNPTR_TOGGLE 0x0800 |
Definition at line 147 of file rtl8211e_driver.h.
◆ RTL8211E_BMCR
#define RTL8211E_BMCR 0x00 |
Definition at line 45 of file rtl8211e_driver.h.
◆ RTL8211E_BMCR_AN_EN
#define RTL8211E_BMCR_AN_EN 0x1000 |
Definition at line 72 of file rtl8211e_driver.h.
◆ RTL8211E_BMCR_COL_TEST
#define RTL8211E_BMCR_COL_TEST 0x0080 |
Definition at line 77 of file rtl8211e_driver.h.
◆ RTL8211E_BMCR_DUPLEX_MODE
#define RTL8211E_BMCR_DUPLEX_MODE 0x0100 |
Definition at line 76 of file rtl8211e_driver.h.
◆ RTL8211E_BMCR_ISOLATE
#define RTL8211E_BMCR_ISOLATE 0x0400 |
Definition at line 74 of file rtl8211e_driver.h.
◆ RTL8211E_BMCR_LOOPBACK
#define RTL8211E_BMCR_LOOPBACK 0x4000 |
Definition at line 70 of file rtl8211e_driver.h.
◆ RTL8211E_BMCR_POWER_DOWN
#define RTL8211E_BMCR_POWER_DOWN 0x0800 |
Definition at line 73 of file rtl8211e_driver.h.
◆ RTL8211E_BMCR_RESET
#define RTL8211E_BMCR_RESET 0x8000 |
Definition at line 69 of file rtl8211e_driver.h.
◆ RTL8211E_BMCR_RESTART_AN
#define RTL8211E_BMCR_RESTART_AN 0x0200 |
Definition at line 75 of file rtl8211e_driver.h.
◆ RTL8211E_BMCR_SPEED_SEL_LSB
#define RTL8211E_BMCR_SPEED_SEL_LSB 0x2000 |
Definition at line 71 of file rtl8211e_driver.h.
◆ RTL8211E_BMCR_SPEED_SEL_MSB
#define RTL8211E_BMCR_SPEED_SEL_MSB 0x0040 |
Definition at line 78 of file rtl8211e_driver.h.
◆ RTL8211E_BMSR
#define RTL8211E_BMSR 0x01 |
Definition at line 46 of file rtl8211e_driver.h.
◆ RTL8211E_BMSR_100BT2_FD
#define RTL8211E_BMSR_100BT2_FD 0x0400 |
Definition at line 86 of file rtl8211e_driver.h.
◆ RTL8211E_BMSR_100BT2_HD
#define RTL8211E_BMSR_100BT2_HD 0x0200 |
Definition at line 87 of file rtl8211e_driver.h.
◆ RTL8211E_BMSR_100BT4
#define RTL8211E_BMSR_100BT4 0x8000 |
Definition at line 81 of file rtl8211e_driver.h.
◆ RTL8211E_BMSR_100BTX_FD
#define RTL8211E_BMSR_100BTX_FD 0x4000 |
Definition at line 82 of file rtl8211e_driver.h.
◆ RTL8211E_BMSR_100BTX_HD
#define RTL8211E_BMSR_100BTX_HD 0x2000 |
Definition at line 83 of file rtl8211e_driver.h.
◆ RTL8211E_BMSR_10BT_FD
#define RTL8211E_BMSR_10BT_FD 0x1000 |
Definition at line 84 of file rtl8211e_driver.h.
◆ RTL8211E_BMSR_10BT_HD
#define RTL8211E_BMSR_10BT_HD 0x0800 |
Definition at line 85 of file rtl8211e_driver.h.
◆ RTL8211E_BMSR_AN_CAPABLE
#define RTL8211E_BMSR_AN_CAPABLE 0x0008 |
Definition at line 92 of file rtl8211e_driver.h.
◆ RTL8211E_BMSR_AN_COMPLETE
#define RTL8211E_BMSR_AN_COMPLETE 0x0020 |
Definition at line 90 of file rtl8211e_driver.h.
◆ RTL8211E_BMSR_EXTENDED_CAPABLE
#define RTL8211E_BMSR_EXTENDED_CAPABLE 0x0001 |
Definition at line 95 of file rtl8211e_driver.h.
◆ RTL8211E_BMSR_EXTENDED_STATUS
#define RTL8211E_BMSR_EXTENDED_STATUS 0x0100 |
Definition at line 88 of file rtl8211e_driver.h.
◆ RTL8211E_BMSR_JABBER_DETECT
#define RTL8211E_BMSR_JABBER_DETECT 0x0002 |
Definition at line 94 of file rtl8211e_driver.h.
◆ RTL8211E_BMSR_LINK_STATUS
#define RTL8211E_BMSR_LINK_STATUS 0x0004 |
Definition at line 93 of file rtl8211e_driver.h.
◆ RTL8211E_BMSR_PREAMBLE_SUPPR
#define RTL8211E_BMSR_PREAMBLE_SUPPR 0x0040 |
Definition at line 89 of file rtl8211e_driver.h.
◆ RTL8211E_BMSR_REMOTE_FAULT
#define RTL8211E_BMSR_REMOTE_FAULT 0x0010 |
Definition at line 91 of file rtl8211e_driver.h.
◆ RTL8211E_EPAGSR
#define RTL8211E_EPAGSR 0x1E |
Definition at line 65 of file rtl8211e_driver.h.
◆ RTL8211E_EPAGSR_EXT_PAGE_SEL
#define RTL8211E_EPAGSR_EXT_PAGE_SEL 0x00FF |
Definition at line 233 of file rtl8211e_driver.h.
◆ RTL8211E_GBCR
#define RTL8211E_GBCR 0x09 |
Definition at line 54 of file rtl8211e_driver.h.
◆ RTL8211E_GBCR_1000BT_FD
#define RTL8211E_GBCR_1000BT_FD 0x0200 |
Definition at line 163 of file rtl8211e_driver.h.
◆ RTL8211E_GBCR_MS_MAN_CONF_EN
#define RTL8211E_GBCR_MS_MAN_CONF_EN 0x1000 |
Definition at line 160 of file rtl8211e_driver.h.
◆ RTL8211E_GBCR_MS_MAN_CONF_VAL
#define RTL8211E_GBCR_MS_MAN_CONF_VAL 0x0800 |
Definition at line 161 of file rtl8211e_driver.h.
◆ RTL8211E_GBCR_PORT_TYPE
#define RTL8211E_GBCR_PORT_TYPE 0x0400 |
Definition at line 162 of file rtl8211e_driver.h.
◆ RTL8211E_GBCR_TEST_MODE
#define RTL8211E_GBCR_TEST_MODE 0xE000 |
Definition at line 159 of file rtl8211e_driver.h.
◆ RTL8211E_GBESR
#define RTL8211E_GBESR 0x0F |
Definition at line 58 of file rtl8211e_driver.h.
◆ RTL8211E_GBESR_1000BT_FD
#define RTL8211E_GBESR_1000BT_FD 0x2000 |
Definition at line 185 of file rtl8211e_driver.h.
◆ RTL8211E_GBESR_1000BT_HD
#define RTL8211E_GBESR_1000BT_HD 0x1000 |
Definition at line 186 of file rtl8211e_driver.h.
◆ RTL8211E_GBESR_1000BX_FD
#define RTL8211E_GBESR_1000BX_FD 0x8000 |
Definition at line 183 of file rtl8211e_driver.h.
◆ RTL8211E_GBESR_1000BX_HD
#define RTL8211E_GBESR_1000BX_HD 0x4000 |
Definition at line 184 of file rtl8211e_driver.h.
◆ RTL8211E_GBSR
#define RTL8211E_GBSR 0x0A |
Definition at line 55 of file rtl8211e_driver.h.
◆ RTL8211E_GBSR_IDLE_ERR_COUNT
#define RTL8211E_GBSR_IDLE_ERR_COUNT 0x00FF |
Definition at line 172 of file rtl8211e_driver.h.
◆ RTL8211E_GBSR_LOCAL_RECEIVER_STATUS
#define RTL8211E_GBSR_LOCAL_RECEIVER_STATUS 0x2000 |
Definition at line 168 of file rtl8211e_driver.h.
◆ RTL8211E_GBSR_LP_1000BT_FD
#define RTL8211E_GBSR_LP_1000BT_FD 0x0800 |
Definition at line 170 of file rtl8211e_driver.h.
◆ RTL8211E_GBSR_LP_1000BT_HD
#define RTL8211E_GBSR_LP_1000BT_HD 0x0400 |
Definition at line 171 of file rtl8211e_driver.h.
◆ RTL8211E_GBSR_MS_CONF_FAULT
#define RTL8211E_GBSR_MS_CONF_FAULT 0x8000 |
Definition at line 166 of file rtl8211e_driver.h.
◆ RTL8211E_GBSR_MS_CONF_RES
#define RTL8211E_GBSR_MS_CONF_RES 0x4000 |
Definition at line 167 of file rtl8211e_driver.h.
◆ RTL8211E_GBSR_REMOTE_RECEIVER_STATUS
#define RTL8211E_GBSR_REMOTE_RECEIVER_STATUS 0x1000 |
Definition at line 169 of file rtl8211e_driver.h.
◆ RTL8211E_INER
#define RTL8211E_INER 0x12 |
Definition at line 61 of file rtl8211e_driver.h.
◆ RTL8211E_INER_AN_COMPLETE
#define RTL8211E_INER_AN_COMPLETE 0x0800 |
Definition at line 214 of file rtl8211e_driver.h.
◆ RTL8211E_INER_AN_ERROR
#define RTL8211E_INER_AN_ERROR 0x8000 |
Definition at line 212 of file rtl8211e_driver.h.
◆ RTL8211E_INER_FALSE_CARRIER
#define RTL8211E_INER_FALSE_CARRIER 0x0100 |
Definition at line 217 of file rtl8211e_driver.h.
◆ RTL8211E_INER_JABBER
#define RTL8211E_INER_JABBER 0x0001 |
Definition at line 218 of file rtl8211e_driver.h.
◆ RTL8211E_INER_LINK_STATUS
#define RTL8211E_INER_LINK_STATUS 0x0400 |
Definition at line 215 of file rtl8211e_driver.h.
◆ RTL8211E_INER_PAGE_RECEIVED
#define RTL8211E_INER_PAGE_RECEIVED 0x1000 |
Definition at line 213 of file rtl8211e_driver.h.
◆ RTL8211E_INER_SYMBOL_ERROR
#define RTL8211E_INER_SYMBOL_ERROR 0x0200 |
Definition at line 216 of file rtl8211e_driver.h.
◆ RTL8211E_INSR
#define RTL8211E_INSR 0x13 |
Definition at line 62 of file rtl8211e_driver.h.
◆ RTL8211E_INSR_AN_COMPLETE
#define RTL8211E_INSR_AN_COMPLETE 0x0800 |
Definition at line 223 of file rtl8211e_driver.h.
◆ RTL8211E_INSR_AN_ERROR
#define RTL8211E_INSR_AN_ERROR 0x8000 |
Definition at line 221 of file rtl8211e_driver.h.
◆ RTL8211E_INSR_FALSE_CARRIER
#define RTL8211E_INSR_FALSE_CARRIER 0x0100 |
Definition at line 226 of file rtl8211e_driver.h.
◆ RTL8211E_INSR_JABBER
#define RTL8211E_INSR_JABBER 0x0001 |
Definition at line 227 of file rtl8211e_driver.h.
◆ RTL8211E_INSR_LINK_STATUS
#define RTL8211E_INSR_LINK_STATUS 0x0400 |
Definition at line 224 of file rtl8211e_driver.h.
◆ RTL8211E_INSR_PAGE_RECEIVED
#define RTL8211E_INSR_PAGE_RECEIVED 0x1000 |
Definition at line 222 of file rtl8211e_driver.h.
◆ RTL8211E_INSR_SYMBOL_ERROR
#define RTL8211E_INSR_SYMBOL_ERROR 0x0200 |
Definition at line 225 of file rtl8211e_driver.h.
◆ RTL8211E_LDPSR
#define RTL8211E_LDPSR 0x1B |
Definition at line 64 of file rtl8211e_driver.h.
◆ RTL8211E_LDPSR_POWER_SAVE_MODE
#define RTL8211E_LDPSR_POWER_SAVE_MODE 0x0001 |
Definition at line 230 of file rtl8211e_driver.h.
◆ RTL8211E_MMDAADR
#define RTL8211E_MMDAADR 0x0E |
Definition at line 57 of file rtl8211e_driver.h.
◆ RTL8211E_MMDACR
#define RTL8211E_MMDACR 0x0D |
Definition at line 56 of file rtl8211e_driver.h.
◆ RTL8211E_MMDACR_DEVAD
#define RTL8211E_MMDACR_DEVAD 0x001F |
Definition at line 180 of file rtl8211e_driver.h.
◆ RTL8211E_MMDACR_FUNC
#define RTL8211E_MMDACR_FUNC 0xC000 |
Definition at line 175 of file rtl8211e_driver.h.
◆ RTL8211E_MMDACR_FUNC_ADDR
#define RTL8211E_MMDACR_FUNC_ADDR 0x0000 |
Definition at line 176 of file rtl8211e_driver.h.
◆ RTL8211E_MMDACR_FUNC_DATA_NO_POST_INC
#define RTL8211E_MMDACR_FUNC_DATA_NO_POST_INC 0x4000 |
Definition at line 177 of file rtl8211e_driver.h.
◆ RTL8211E_MMDACR_FUNC_DATA_POST_INC_RW
#define RTL8211E_MMDACR_FUNC_DATA_POST_INC_RW 0x8000 |
Definition at line 178 of file rtl8211e_driver.h.
◆ RTL8211E_MMDACR_FUNC_DATA_POST_INC_W
#define RTL8211E_MMDACR_FUNC_DATA_POST_INC_W 0xC000 |
Definition at line 179 of file rtl8211e_driver.h.
◆ RTL8211E_PAGSR
#define RTL8211E_PAGSR 0x1F |
Definition at line 66 of file rtl8211e_driver.h.
◆ RTL8211E_PAGSR_PAGE_SEL
#define RTL8211E_PAGSR_PAGE_SEL 0x0007 |
Definition at line 236 of file rtl8211e_driver.h.
◆ RTL8211E_PHY_ADDR
#define RTL8211E_PHY_ADDR 1 |
Definition at line 39 of file rtl8211e_driver.h.
◆ RTL8211E_PHYCR
#define RTL8211E_PHYCR 0x10 |
Definition at line 59 of file rtl8211e_driver.h.
◆ RTL8211E_PHYCR_ASSERT_CRS_ON_TX
#define RTL8211E_PHYCR_ASSERT_CRS_ON_TX 0x0800 |
Definition at line 191 of file rtl8211e_driver.h.
◆ RTL8211E_PHYCR_CLK125_DIS
#define RTL8211E_PHYCR_CLK125_DIS 0x0010 |
Definition at line 195 of file rtl8211e_driver.h.
◆ RTL8211E_PHYCR_CROSSOVER_EN
#define RTL8211E_PHYCR_CROSSOVER_EN 0x0040 |
Definition at line 193 of file rtl8211e_driver.h.
◆ RTL8211E_PHYCR_FORCE_LINK_GOOD
#define RTL8211E_PHYCR_FORCE_LINK_GOOD 0x0400 |
Definition at line 192 of file rtl8211e_driver.h.
◆ RTL8211E_PHYCR_FPR_FAIL_SEL
#define RTL8211E_PHYCR_FPR_FAIL_SEL 0x7000 |
Definition at line 190 of file rtl8211e_driver.h.
◆ RTL8211E_PHYCR_JABBER_DIS
#define RTL8211E_PHYCR_JABBER_DIS 0x0001 |
Definition at line 196 of file rtl8211e_driver.h.
◆ RTL8211E_PHYCR_MDI_MODE
#define RTL8211E_PHYCR_MDI_MODE 0x0020 |
Definition at line 194 of file rtl8211e_driver.h.
◆ RTL8211E_PHYCR_RXC_DIS
#define RTL8211E_PHYCR_RXC_DIS 0x8000 |
Definition at line 189 of file rtl8211e_driver.h.
◆ RTL8211E_PHYID1
#define RTL8211E_PHYID1 0x02 |
Definition at line 47 of file rtl8211e_driver.h.
◆ RTL8211E_PHYID1_OUI_MSB
#define RTL8211E_PHYID1_OUI_MSB 0xFFFF |
Definition at line 98 of file rtl8211e_driver.h.
◆ RTL8211E_PHYID1_OUI_MSB_DEFAULT
#define RTL8211E_PHYID1_OUI_MSB_DEFAULT 0x001C |
Definition at line 99 of file rtl8211e_driver.h.
◆ RTL8211E_PHYID2
#define RTL8211E_PHYID2 0x03 |
Definition at line 48 of file rtl8211e_driver.h.
◆ RTL8211E_PHYID2_MODEL_NUM
#define RTL8211E_PHYID2_MODEL_NUM 0x03F0 |
Definition at line 104 of file rtl8211e_driver.h.
◆ RTL8211E_PHYID2_MODEL_NUM_DEFAULT
#define RTL8211E_PHYID2_MODEL_NUM_DEFAULT 0x0110 |
Definition at line 105 of file rtl8211e_driver.h.
◆ RTL8211E_PHYID2_OUI_LSB
#define RTL8211E_PHYID2_OUI_LSB 0xFC00 |
Definition at line 102 of file rtl8211e_driver.h.
◆ RTL8211E_PHYID2_OUI_LSB_DEFAULT
#define RTL8211E_PHYID2_OUI_LSB_DEFAULT 0xC800 |
Definition at line 103 of file rtl8211e_driver.h.
◆ RTL8211E_PHYID2_REVISION_NUM
#define RTL8211E_PHYID2_REVISION_NUM 0x000F |
Definition at line 106 of file rtl8211e_driver.h.
◆ RTL8211E_PHYID2_REVISION_NUM_DEFAULT
#define RTL8211E_PHYID2_REVISION_NUM_DEFAULT 0x0005 |
Definition at line 107 of file rtl8211e_driver.h.
◆ RTL8211E_PHYSR
#define RTL8211E_PHYSR 0x11 |
Definition at line 60 of file rtl8211e_driver.h.
◆ RTL8211E_PHYSR_DUPLEX
#define RTL8211E_PHYSR_DUPLEX 0x2000 |
Definition at line 203 of file rtl8211e_driver.h.
◆ RTL8211E_PHYSR_JABBER
#define RTL8211E_PHYSR_JABBER 0x0001 |
Definition at line 209 of file rtl8211e_driver.h.
◆ RTL8211E_PHYSR_LINK
#define RTL8211E_PHYSR_LINK 0x0400 |
Definition at line 206 of file rtl8211e_driver.h.
◆ RTL8211E_PHYSR_MDI_CROSSOVER_STATUS
#define RTL8211E_PHYSR_MDI_CROSSOVER_STATUS 0x0040 |
Definition at line 207 of file rtl8211e_driver.h.
◆ RTL8211E_PHYSR_PAGE_RECEIVED
#define RTL8211E_PHYSR_PAGE_RECEIVED 0x1000 |
Definition at line 204 of file rtl8211e_driver.h.
◆ RTL8211E_PHYSR_PRE_LINKOK
#define RTL8211E_PHYSR_PRE_LINKOK 0x0002 |
Definition at line 208 of file rtl8211e_driver.h.
◆ RTL8211E_PHYSR_SPEED
#define RTL8211E_PHYSR_SPEED 0xC000 |
Definition at line 199 of file rtl8211e_driver.h.
◆ RTL8211E_PHYSR_SPEED_1000MBPS
#define RTL8211E_PHYSR_SPEED_1000MBPS 0x8000 |
Definition at line 202 of file rtl8211e_driver.h.
◆ RTL8211E_PHYSR_SPEED_100MBPS
#define RTL8211E_PHYSR_SPEED_100MBPS 0x4000 |
Definition at line 201 of file rtl8211e_driver.h.
◆ RTL8211E_PHYSR_SPEED_10MBPS
#define RTL8211E_PHYSR_SPEED_10MBPS 0x0000 |
Definition at line 200 of file rtl8211e_driver.h.
◆ RTL8211E_PHYSR_SPEED_DUPLEX_RESOLVED
#define RTL8211E_PHYSR_SPEED_DUPLEX_RESOLVED 0x0800 |
Definition at line 205 of file rtl8211e_driver.h.
◆ RTL8211E_RXERC
#define RTL8211E_RXERC 0x18 |
Definition at line 63 of file rtl8211e_driver.h.
Function Documentation
◆ rtl8211eDisableIrq()
void rtl8211eDisableIrq | ( | NetInterface * | interface | ) |
Disable interrupts.
- Parameters
-
[in] interface Underlying network interface
Definition at line 180 of file rtl8211e_driver.c.
◆ rtl8211eDumpPhyReg()
void rtl8211eDumpPhyReg | ( | NetInterface * | interface | ) |
Dump PHY registers for debugging purpose.
- Parameters
-
[in] interface Underlying network interface
Definition at line 323 of file rtl8211e_driver.c.
◆ rtl8211eEnableIrq()
void rtl8211eEnableIrq | ( | NetInterface * | interface | ) |
Enable interrupts.
- Parameters
-
[in] interface Underlying network interface
Definition at line 165 of file rtl8211e_driver.c.
◆ rtl8211eEventHandler()
void rtl8211eEventHandler | ( | NetInterface * | interface | ) |
RTL8211E event handler.
- Parameters
-
[in] interface Underlying network interface
Definition at line 195 of file rtl8211e_driver.c.
◆ rtl8211eInit()
error_t rtl8211eInit | ( | NetInterface * | interface | ) |
RTL8211E PHY transceiver initialization.
- Parameters
-
[in] interface Underlying network interface
- Returns
- Error code
Definition at line 60 of file rtl8211e_driver.c.
◆ rtl8211eInitHook()
void rtl8211eInitHook | ( | NetInterface * | interface | ) |
RTL8211E custom configuration.
- Parameters
-
[in] interface Underlying network interface
Definition at line 117 of file rtl8211e_driver.c.
◆ rtl8211eReadMmdReg()
uint16_t rtl8211eReadMmdReg | ( | 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 375 of file rtl8211e_driver.c.
◆ rtl8211eReadPhyReg()
uint16_t rtl8211eReadPhyReg | ( | 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 297 of file rtl8211e_driver.c.
◆ rtl8211eTick()
void rtl8211eTick | ( | NetInterface * | interface | ) |
RTL8211E timer handler.
- Parameters
-
[in] interface Underlying network interface
Definition at line 127 of file rtl8211e_driver.c.
◆ rtl8211eWriteMmdReg()
void rtl8211eWriteMmdReg | ( | 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 348 of file rtl8211e_driver.c.
◆ rtl8211eWritePhyReg()
void rtl8211eWritePhyReg | ( | 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 273 of file rtl8211e_driver.c.
Variable Documentation
◆ rtl8211ePhyDriver
|
extern |
RTL8211E Ethernet PHY driver.
Definition at line 44 of file rtl8211e_driver.c.