KSZ9031 Gigabit Ethernet PHY driver. More...
#include "core/nic.h"
Go to the source code of this file.
Functions | |
error_t | ksz9031Init (NetInterface *interface) |
KSZ9031 PHY transceiver initialization. More... | |
void | ksz9031InitHook (NetInterface *interface) |
KSZ9031 custom configuration. More... | |
void | ksz9031Tick (NetInterface *interface) |
KSZ9031 timer handler. More... | |
void | ksz9031EnableIrq (NetInterface *interface) |
Enable interrupts. More... | |
void | ksz9031DisableIrq (NetInterface *interface) |
Disable interrupts. More... | |
void | ksz9031EventHandler (NetInterface *interface) |
KSZ9031 event handler. More... | |
void | ksz9031WritePhyReg (NetInterface *interface, uint8_t address, uint16_t data) |
Write PHY register. More... | |
uint16_t | ksz9031ReadPhyReg (NetInterface *interface, uint8_t address) |
Read PHY register. More... | |
void | ksz9031DumpPhyReg (NetInterface *interface) |
Dump PHY registers for debugging purpose. More... | |
void | ksz9031WriteMmdReg (NetInterface *interface, uint8_t devAddr, uint16_t regAddr, uint16_t data) |
Write MMD register. More... | |
uint16_t | ksz9031ReadMmdReg (NetInterface *interface, uint8_t devAddr, uint16_t regAddr) |
Read MMD register. More... | |
Variables | |
const PhyDriver | ksz9031PhyDriver |
KSZ9031 Ethernet PHY driver. More... | |
Detailed Description
KSZ9031 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 ksz9031_driver.h.
Macro Definition Documentation
◆ KSZ9031_1000BASE_T_LINK_UP_TIME_CTRL
#define KSZ9031_1000BASE_T_LINK_UP_TIME_CTRL 0x01, 0x5A |
Definition at line 70 of file ksz9031_driver.h.
◆ KSZ9031_1000BASE_T_LINK_UP_TIME_CTRL_1000BASE_T_LINK_UP_TIME
#define KSZ9031_1000BASE_T_LINK_UP_TIME_CTRL_1000BASE_T_LINK_UP_TIME 0x000E |
Definition at line 278 of file ksz9031_driver.h.
◆ KSZ9031_AN_FLP_BURST_TRANSMIT_HI
#define KSZ9031_AN_FLP_BURST_TRANSMIT_HI 0x00, 0x04 |
Definition at line 69 of file ksz9031_driver.h.
◆ KSZ9031_AN_FLP_BURST_TRANSMIT_LO
#define KSZ9031_AN_FLP_BURST_TRANSMIT_LO 0x00, 0x03 |
Definition at line 68 of file ksz9031_driver.h.
◆ KSZ9031_ANALOG_CTRL4
#define KSZ9031_ANALOG_CTRL4 0x1C, 0x04 |
Definition at line 107 of file ksz9031_driver.h.
◆ KSZ9031_ANALOG_CTRL4_10BASE_TE_MODE
#define KSZ9031_ANALOG_CTRL4_10BASE_TE_MODE 0x0400 |
Definition at line 345 of file ksz9031_driver.h.
◆ KSZ9031_ANAR
#define KSZ9031_ANAR 0x04 |
Definition at line 49 of file ksz9031_driver.h.
◆ KSZ9031_ANAR_100BT4
#define KSZ9031_ANAR_100BT4 0x0200 |
Definition at line 151 of file ksz9031_driver.h.
◆ KSZ9031_ANAR_100BTX_FD
#define KSZ9031_ANAR_100BTX_FD 0x0100 |
Definition at line 152 of file ksz9031_driver.h.
◆ KSZ9031_ANAR_100BTX_HD
#define KSZ9031_ANAR_100BTX_HD 0x0080 |
Definition at line 153 of file ksz9031_driver.h.
◆ KSZ9031_ANAR_10BT_FD
#define KSZ9031_ANAR_10BT_FD 0x0040 |
Definition at line 154 of file ksz9031_driver.h.
◆ KSZ9031_ANAR_10BT_HD
#define KSZ9031_ANAR_10BT_HD 0x0020 |
Definition at line 155 of file ksz9031_driver.h.
◆ KSZ9031_ANAR_NEXT_PAGE
#define KSZ9031_ANAR_NEXT_PAGE 0x8000 |
Definition at line 148 of file ksz9031_driver.h.
◆ KSZ9031_ANAR_PAUSE
#define KSZ9031_ANAR_PAUSE 0x0C00 |
Definition at line 150 of file ksz9031_driver.h.
◆ KSZ9031_ANAR_REMOTE_FAULT
#define KSZ9031_ANAR_REMOTE_FAULT 0x2000 |
Definition at line 149 of file ksz9031_driver.h.
◆ KSZ9031_ANAR_SELECTOR
#define KSZ9031_ANAR_SELECTOR 0x001F |
Definition at line 156 of file ksz9031_driver.h.
◆ KSZ9031_ANAR_SELECTOR_DEFAULT
#define KSZ9031_ANAR_SELECTOR_DEFAULT 0x0001 |
Definition at line 157 of file ksz9031_driver.h.
◆ KSZ9031_ANER
#define KSZ9031_ANER 0x06 |
Definition at line 51 of file ksz9031_driver.h.
◆ KSZ9031_ANER_LP_AN_ABLE
#define KSZ9031_ANER_LP_AN_ABLE 0x0001 |
Definition at line 177 of file ksz9031_driver.h.
◆ KSZ9031_ANER_LP_NEXT_PAGE_ABLE
#define KSZ9031_ANER_LP_NEXT_PAGE_ABLE 0x0008 |
Definition at line 174 of file ksz9031_driver.h.
◆ KSZ9031_ANER_NEXT_PAGE_ABLE
#define KSZ9031_ANER_NEXT_PAGE_ABLE 0x0004 |
Definition at line 175 of file ksz9031_driver.h.
◆ KSZ9031_ANER_PAGE_RECEIVED
#define KSZ9031_ANER_PAGE_RECEIVED 0x0002 |
Definition at line 176 of file ksz9031_driver.h.
◆ KSZ9031_ANER_PAR_DETECT_FAULT
#define KSZ9031_ANER_PAR_DETECT_FAULT 0x0010 |
Definition at line 173 of file ksz9031_driver.h.
◆ KSZ9031_ANLPAR
#define KSZ9031_ANLPAR 0x05 |
Definition at line 50 of file ksz9031_driver.h.
◆ KSZ9031_ANLPAR_100BT4
#define KSZ9031_ANLPAR_100BT4 0x0200 |
Definition at line 164 of file ksz9031_driver.h.
◆ KSZ9031_ANLPAR_100BTX_FD
#define KSZ9031_ANLPAR_100BTX_FD 0x0100 |
Definition at line 165 of file ksz9031_driver.h.
◆ KSZ9031_ANLPAR_100BTX_HD
#define KSZ9031_ANLPAR_100BTX_HD 0x0080 |
Definition at line 166 of file ksz9031_driver.h.
◆ KSZ9031_ANLPAR_10BT_FD
#define KSZ9031_ANLPAR_10BT_FD 0x0040 |
Definition at line 167 of file ksz9031_driver.h.
◆ KSZ9031_ANLPAR_10BT_HD
#define KSZ9031_ANLPAR_10BT_HD 0x0020 |
Definition at line 168 of file ksz9031_driver.h.
◆ KSZ9031_ANLPAR_ACK
#define KSZ9031_ANLPAR_ACK 0x4000 |
Definition at line 161 of file ksz9031_driver.h.
◆ KSZ9031_ANLPAR_NEXT_PAGE
#define KSZ9031_ANLPAR_NEXT_PAGE 0x8000 |
Definition at line 160 of file ksz9031_driver.h.
◆ KSZ9031_ANLPAR_PAUSE
#define KSZ9031_ANLPAR_PAUSE 0x0C00 |
Definition at line 163 of file ksz9031_driver.h.
◆ KSZ9031_ANLPAR_REMOTE_FAULT
#define KSZ9031_ANLPAR_REMOTE_FAULT 0x2000 |
Definition at line 162 of file ksz9031_driver.h.
◆ KSZ9031_ANLPAR_SELECTOR
#define KSZ9031_ANLPAR_SELECTOR 0x001F |
Definition at line 169 of file ksz9031_driver.h.
◆ KSZ9031_ANLPAR_SELECTOR_DEFAULT
#define KSZ9031_ANLPAR_SELECTOR_DEFAULT 0x0001 |
Definition at line 170 of file ksz9031_driver.h.
◆ KSZ9031_ANLPNPR
#define KSZ9031_ANLPNPR 0x08 |
Definition at line 53 of file ksz9031_driver.h.
◆ KSZ9031_ANLPNPR_ACK
#define KSZ9031_ANLPNPR_ACK 0x4000 |
Definition at line 188 of file ksz9031_driver.h.
◆ KSZ9031_ANLPNPR_ACK2
#define KSZ9031_ANLPNPR_ACK2 0x1000 |
Definition at line 190 of file ksz9031_driver.h.
◆ KSZ9031_ANLPNPR_MESSAGE
#define KSZ9031_ANLPNPR_MESSAGE 0x07FF |
Definition at line 192 of file ksz9031_driver.h.
◆ KSZ9031_ANLPNPR_MSG_PAGE
#define KSZ9031_ANLPNPR_MSG_PAGE 0x2000 |
Definition at line 189 of file ksz9031_driver.h.
◆ KSZ9031_ANLPNPR_NEXT_PAGE
#define KSZ9031_ANLPNPR_NEXT_PAGE 0x8000 |
Definition at line 187 of file ksz9031_driver.h.
◆ KSZ9031_ANLPNPR_TOGGLE
#define KSZ9031_ANLPNPR_TOGGLE 0x0800 |
Definition at line 191 of file ksz9031_driver.h.
◆ KSZ9031_ANNPR
#define KSZ9031_ANNPR 0x07 |
Definition at line 52 of file ksz9031_driver.h.
◆ KSZ9031_ANNPR_ACK2
#define KSZ9031_ANNPR_ACK2 0x1000 |
Definition at line 182 of file ksz9031_driver.h.
◆ KSZ9031_ANNPR_MESSAGE
#define KSZ9031_ANNPR_MESSAGE 0x07FF |
Definition at line 184 of file ksz9031_driver.h.
◆ KSZ9031_ANNPR_MSG_PAGE
#define KSZ9031_ANNPR_MSG_PAGE 0x2000 |
Definition at line 181 of file ksz9031_driver.h.
◆ KSZ9031_ANNPR_NEXT_PAGE
#define KSZ9031_ANNPR_NEXT_PAGE 0x8000 |
Definition at line 180 of file ksz9031_driver.h.
◆ KSZ9031_ANNPR_TOGGLE
#define KSZ9031_ANNPR_TOGGLE 0x0800 |
Definition at line 183 of file ksz9031_driver.h.
◆ KSZ9031_AUTOMDI
#define KSZ9031_AUTOMDI 0x1C |
Definition at line 64 of file ksz9031_driver.h.
◆ KSZ9031_AUTOMDI_MDI_SET
#define KSZ9031_AUTOMDI_MDI_SET 0x0080 |
Definition at line 264 of file ksz9031_driver.h.
◆ KSZ9031_AUTOMDI_SWAP_OFF
#define KSZ9031_AUTOMDI_SWAP_OFF 0x0040 |
Definition at line 265 of file ksz9031_driver.h.
◆ KSZ9031_BMCR
#define KSZ9031_BMCR 0x00 |
Definition at line 45 of file ksz9031_driver.h.
◆ KSZ9031_BMCR_AN_EN
#define KSZ9031_BMCR_AN_EN 0x1000 |
Definition at line 114 of file ksz9031_driver.h.
◆ KSZ9031_BMCR_DUPLEX_MODE
#define KSZ9031_BMCR_DUPLEX_MODE 0x0100 |
Definition at line 118 of file ksz9031_driver.h.
◆ KSZ9031_BMCR_ISOLATE
#define KSZ9031_BMCR_ISOLATE 0x0400 |
Definition at line 116 of file ksz9031_driver.h.
◆ KSZ9031_BMCR_LOOPBACK
#define KSZ9031_BMCR_LOOPBACK 0x4000 |
Definition at line 112 of file ksz9031_driver.h.
◆ KSZ9031_BMCR_POWER_DOWN
#define KSZ9031_BMCR_POWER_DOWN 0x0800 |
Definition at line 115 of file ksz9031_driver.h.
◆ KSZ9031_BMCR_RESET
#define KSZ9031_BMCR_RESET 0x8000 |
Definition at line 111 of file ksz9031_driver.h.
◆ KSZ9031_BMCR_RESTART_AN
#define KSZ9031_BMCR_RESTART_AN 0x0200 |
Definition at line 117 of file ksz9031_driver.h.
◆ KSZ9031_BMCR_SPEED_SEL_LSB
#define KSZ9031_BMCR_SPEED_SEL_LSB 0x2000 |
Definition at line 113 of file ksz9031_driver.h.
◆ KSZ9031_BMCR_SPEED_SEL_MSB
#define KSZ9031_BMCR_SPEED_SEL_MSB 0x0040 |
Definition at line 119 of file ksz9031_driver.h.
◆ KSZ9031_BMSR
#define KSZ9031_BMSR 0x01 |
Definition at line 46 of file ksz9031_driver.h.
◆ KSZ9031_BMSR_100BT4
#define KSZ9031_BMSR_100BT4 0x8000 |
Definition at line 122 of file ksz9031_driver.h.
◆ KSZ9031_BMSR_100BTX_FD
#define KSZ9031_BMSR_100BTX_FD 0x4000 |
Definition at line 123 of file ksz9031_driver.h.
◆ KSZ9031_BMSR_100BTX_HD
#define KSZ9031_BMSR_100BTX_HD 0x2000 |
Definition at line 124 of file ksz9031_driver.h.
◆ KSZ9031_BMSR_10BT_FD
#define KSZ9031_BMSR_10BT_FD 0x1000 |
Definition at line 125 of file ksz9031_driver.h.
◆ KSZ9031_BMSR_10BT_HD
#define KSZ9031_BMSR_10BT_HD 0x0800 |
Definition at line 126 of file ksz9031_driver.h.
◆ KSZ9031_BMSR_AN_CAPABLE
#define KSZ9031_BMSR_AN_CAPABLE 0x0008 |
Definition at line 131 of file ksz9031_driver.h.
◆ KSZ9031_BMSR_AN_COMPLETE
#define KSZ9031_BMSR_AN_COMPLETE 0x0020 |
Definition at line 129 of file ksz9031_driver.h.
◆ KSZ9031_BMSR_EXTENDED_CAPABLE
#define KSZ9031_BMSR_EXTENDED_CAPABLE 0x0001 |
Definition at line 134 of file ksz9031_driver.h.
◆ KSZ9031_BMSR_EXTENDED_STATUS
#define KSZ9031_BMSR_EXTENDED_STATUS 0x0100 |
Definition at line 127 of file ksz9031_driver.h.
◆ KSZ9031_BMSR_JABBER_DETECT
#define KSZ9031_BMSR_JABBER_DETECT 0x0002 |
Definition at line 133 of file ksz9031_driver.h.
◆ KSZ9031_BMSR_LINK_STATUS
#define KSZ9031_BMSR_LINK_STATUS 0x0004 |
Definition at line 132 of file ksz9031_driver.h.
◆ KSZ9031_BMSR_NO_PREAMBLE
#define KSZ9031_BMSR_NO_PREAMBLE 0x0040 |
Definition at line 128 of file ksz9031_driver.h.
◆ KSZ9031_BMSR_REMOTE_FAULT
#define KSZ9031_BMSR_REMOTE_FAULT 0x0010 |
Definition at line 130 of file ksz9031_driver.h.
◆ KSZ9031_COMMON_CTRL
#define KSZ9031_COMMON_CTRL 0x02, 0x00 |
Definition at line 71 of file ksz9031_driver.h.
◆ KSZ9031_COMMON_CTRL_CLK125_EN_STATUS
#define KSZ9031_COMMON_CTRL_CLK125_EN_STATUS 0x0002 |
Definition at line 283 of file ksz9031_driver.h.
◆ KSZ9031_COMMON_CTRL_LED_MODE
#define KSZ9031_COMMON_CTRL_LED_MODE 0x0008 |
Definition at line 282 of file ksz9031_driver.h.
◆ KSZ9031_COMMON_CTRL_LED_MODE_OVERRIDE
#define KSZ9031_COMMON_CTRL_LED_MODE_OVERRIDE 0x0010 |
Definition at line 281 of file ksz9031_driver.h.
◆ KSZ9031_DPMAPCSS
#define KSZ9031_DPMAPCSS 0x13 |
Definition at line 61 of file ksz9031_driver.h.
◆ KSZ9031_DPMAPCSS_1000BT_LINK_STATUS
#define KSZ9031_DPMAPCSS_1000BT_LINK_STATUS 0x0004 |
Definition at line 242 of file ksz9031_driver.h.
◆ KSZ9031_DPMAPCSS_100BTX_LINK_STATUS
#define KSZ9031_DPMAPCSS_100BTX_LINK_STATUS 0x0002 |
Definition at line 243 of file ksz9031_driver.h.
◆ KSZ9031_EDPD_CTRL
#define KSZ9031_EDPD_CTRL 0x1C, 0x23 |
Definition at line 108 of file ksz9031_driver.h.
◆ KSZ9031_EDPD_CTRL_EDPD_MODE_EN
#define KSZ9031_EDPD_CTRL_EDPD_MODE_EN 0x0001 |
Definition at line 348 of file ksz9031_driver.h.
◆ KSZ9031_GBCR
#define KSZ9031_GBCR 0x09 |
Definition at line 54 of file ksz9031_driver.h.
◆ KSZ9031_GBCR_1000BT_FD
#define KSZ9031_GBCR_1000BT_FD 0x0200 |
Definition at line 199 of file ksz9031_driver.h.
◆ KSZ9031_GBCR_1000BT_HD
#define KSZ9031_GBCR_1000BT_HD 0x0100 |
Definition at line 200 of file ksz9031_driver.h.
◆ KSZ9031_GBCR_MS_MAN_CONF_EN
#define KSZ9031_GBCR_MS_MAN_CONF_EN 0x1000 |
Definition at line 196 of file ksz9031_driver.h.
◆ KSZ9031_GBCR_MS_MAN_CONF_VAL
#define KSZ9031_GBCR_MS_MAN_CONF_VAL 0x0800 |
Definition at line 197 of file ksz9031_driver.h.
◆ KSZ9031_GBCR_PORT_TYPE
#define KSZ9031_GBCR_PORT_TYPE 0x0400 |
Definition at line 198 of file ksz9031_driver.h.
◆ KSZ9031_GBCR_TEST_MODE
#define KSZ9031_GBCR_TEST_MODE 0xE000 |
Definition at line 195 of file ksz9031_driver.h.
◆ KSZ9031_GBESR
#define KSZ9031_GBESR 0x0F |
Definition at line 58 of file ksz9031_driver.h.
◆ KSZ9031_GBESR_1000BT_FD
#define KSZ9031_GBESR_1000BT_FD 0x2000 |
Definition at line 222 of file ksz9031_driver.h.
◆ KSZ9031_GBESR_1000BT_HD
#define KSZ9031_GBESR_1000BT_HD 0x1000 |
Definition at line 223 of file ksz9031_driver.h.
◆ KSZ9031_GBESR_1000BX_FD
#define KSZ9031_GBESR_1000BX_FD 0x8000 |
Definition at line 220 of file ksz9031_driver.h.
◆ KSZ9031_GBESR_1000BX_HD
#define KSZ9031_GBESR_1000BX_HD 0x4000 |
Definition at line 221 of file ksz9031_driver.h.
◆ KSZ9031_GBSR
#define KSZ9031_GBSR 0x0A |
Definition at line 55 of file ksz9031_driver.h.
◆ KSZ9031_GBSR_IDLE_ERR_COUNT
#define KSZ9031_GBSR_IDLE_ERR_COUNT 0x00FF |
Definition at line 209 of file ksz9031_driver.h.
◆ KSZ9031_GBSR_LOCAL_RECEIVER_STATUS
#define KSZ9031_GBSR_LOCAL_RECEIVER_STATUS 0x2000 |
Definition at line 205 of file ksz9031_driver.h.
◆ KSZ9031_GBSR_LP_1000BT_FD
#define KSZ9031_GBSR_LP_1000BT_FD 0x0800 |
Definition at line 207 of file ksz9031_driver.h.
◆ KSZ9031_GBSR_LP_1000BT_HD
#define KSZ9031_GBSR_LP_1000BT_HD 0x0400 |
Definition at line 208 of file ksz9031_driver.h.
◆ KSZ9031_GBSR_MS_CONF_FAULT
#define KSZ9031_GBSR_MS_CONF_FAULT 0x8000 |
Definition at line 203 of file ksz9031_driver.h.
◆ KSZ9031_GBSR_MS_CONF_RES
#define KSZ9031_GBSR_MS_CONF_RES 0x4000 |
Definition at line 204 of file ksz9031_driver.h.
◆ KSZ9031_GBSR_REMOTE_RECEIVER_STATUS
#define KSZ9031_GBSR_REMOTE_RECEIVER_STATUS 0x1000 |
Definition at line 206 of file ksz9031_driver.h.
◆ KSZ9031_GMII_CLK_PAD_SKEW
#define KSZ9031_GMII_CLK_PAD_SKEW 0x02, 0x08 |
Definition at line 78 of file ksz9031_driver.h.
◆ KSZ9031_GMII_CLK_PAD_SKEW_GTX_CLK
#define KSZ9031_GMII_CLK_PAD_SKEW_GTX_CLK 0x03E0 |
Definition at line 329 of file ksz9031_driver.h.
◆ KSZ9031_GMII_CLK_PAD_SKEW_GTX_CLK_DEFAULT
#define KSZ9031_GMII_CLK_PAD_SKEW_GTX_CLK_DEFAULT 0x01E0 |
Definition at line 330 of file ksz9031_driver.h.
◆ KSZ9031_GMII_CLK_PAD_SKEW_RX_CLK
#define KSZ9031_GMII_CLK_PAD_SKEW_RX_CLK 0x001F |
Definition at line 331 of file ksz9031_driver.h.
◆ KSZ9031_GMII_CLK_PAD_SKEW_RX_CLK_DEFAULT
#define KSZ9031_GMII_CLK_PAD_SKEW_RX_CLK_DEFAULT 0x000F |
Definition at line 332 of file ksz9031_driver.h.
◆ KSZ9031_ICSR
#define KSZ9031_ICSR 0x1B |
Definition at line 63 of file ksz9031_driver.h.
◆ KSZ9031_ICSR_JABBER_IE
#define KSZ9031_ICSR_JABBER_IE 0x8000 |
Definition at line 246 of file ksz9031_driver.h.
◆ KSZ9031_ICSR_JABBER_IF
#define KSZ9031_ICSR_JABBER_IF 0x0080 |
Definition at line 254 of file ksz9031_driver.h.
◆ KSZ9031_ICSR_LINK_DOWN_IE
#define KSZ9031_ICSR_LINK_DOWN_IE 0x0400 |
Definition at line 251 of file ksz9031_driver.h.
◆ KSZ9031_ICSR_LINK_DOWN_IF
#define KSZ9031_ICSR_LINK_DOWN_IF 0x0004 |
Definition at line 259 of file ksz9031_driver.h.
◆ KSZ9031_ICSR_LINK_UP_IE
#define KSZ9031_ICSR_LINK_UP_IE 0x0100 |
Definition at line 253 of file ksz9031_driver.h.
◆ KSZ9031_ICSR_LINK_UP_IF
#define KSZ9031_ICSR_LINK_UP_IF 0x0001 |
Definition at line 261 of file ksz9031_driver.h.
◆ KSZ9031_ICSR_LP_ACK_IE
#define KSZ9031_ICSR_LP_ACK_IE 0x0800 |
Definition at line 250 of file ksz9031_driver.h.
◆ KSZ9031_ICSR_LP_ACK_IF
#define KSZ9031_ICSR_LP_ACK_IF 0x0008 |
Definition at line 258 of file ksz9031_driver.h.
◆ KSZ9031_ICSR_PAGE_RECEIVED_IE
#define KSZ9031_ICSR_PAGE_RECEIVED_IE 0x2000 |
Definition at line 248 of file ksz9031_driver.h.
◆ KSZ9031_ICSR_PAGE_RECEIVED_IF
#define KSZ9031_ICSR_PAGE_RECEIVED_IF 0x0020 |
Definition at line 256 of file ksz9031_driver.h.
◆ KSZ9031_ICSR_PAR_DETECT_FAULT_IE
#define KSZ9031_ICSR_PAR_DETECT_FAULT_IE 0x1000 |
Definition at line 249 of file ksz9031_driver.h.
◆ KSZ9031_ICSR_PAR_DETECT_FAULT_IF
#define KSZ9031_ICSR_PAR_DETECT_FAULT_IF 0x0010 |
Definition at line 257 of file ksz9031_driver.h.
◆ KSZ9031_ICSR_RECEIVE_ERROR_IE
#define KSZ9031_ICSR_RECEIVE_ERROR_IE 0x4000 |
Definition at line 247 of file ksz9031_driver.h.
◆ KSZ9031_ICSR_RECEIVE_ERROR_IF
#define KSZ9031_ICSR_RECEIVE_ERROR_IF 0x0040 |
Definition at line 255 of file ksz9031_driver.h.
◆ KSZ9031_ICSR_REMOTE_FAULT_IE
#define KSZ9031_ICSR_REMOTE_FAULT_IE 0x0200 |
Definition at line 252 of file ksz9031_driver.h.
◆ KSZ9031_ICSR_REMOTE_FAULT_IF
#define KSZ9031_ICSR_REMOTE_FAULT_IF 0x0002 |
Definition at line 260 of file ksz9031_driver.h.
◆ KSZ9031_LINKMD
#define KSZ9031_LINKMD 0x12 |
Definition at line 60 of file ksz9031_driver.h.
◆ KSZ9031_LINKMD_FAULT_DATA
#define KSZ9031_LINKMD_FAULT_DATA 0x00FF |
Definition at line 239 of file ksz9031_driver.h.
◆ KSZ9031_LINKMD_PAIR
#define KSZ9031_LINKMD_PAIR 0x3000 |
Definition at line 230 of file ksz9031_driver.h.
◆ KSZ9031_LINKMD_PAIR_A
#define KSZ9031_LINKMD_PAIR_A 0x0000 |
Definition at line 231 of file ksz9031_driver.h.
◆ KSZ9031_LINKMD_PAIR_B
#define KSZ9031_LINKMD_PAIR_B 0x1000 |
Definition at line 232 of file ksz9031_driver.h.
◆ KSZ9031_LINKMD_PAIR_C
#define KSZ9031_LINKMD_PAIR_C 0x2000 |
Definition at line 233 of file ksz9031_driver.h.
◆ KSZ9031_LINKMD_PAIR_D
#define KSZ9031_LINKMD_PAIR_D 0x3000 |
Definition at line 234 of file ksz9031_driver.h.
◆ KSZ9031_LINKMD_STATUS
#define KSZ9031_LINKMD_STATUS 0x0300 |
Definition at line 235 of file ksz9031_driver.h.
◆ KSZ9031_LINKMD_STATUS_NORMAL
#define KSZ9031_LINKMD_STATUS_NORMAL 0x0000 |
Definition at line 236 of file ksz9031_driver.h.
◆ KSZ9031_LINKMD_STATUS_OPEN
#define KSZ9031_LINKMD_STATUS_OPEN 0x0100 |
Definition at line 237 of file ksz9031_driver.h.
◆ KSZ9031_LINKMD_STATUS_SHORT
#define KSZ9031_LINKMD_STATUS_SHORT 0x0200 |
Definition at line 238 of file ksz9031_driver.h.
◆ KSZ9031_LINKMD_TEST_EN
#define KSZ9031_LINKMD_TEST_EN 0x8000 |
Definition at line 229 of file ksz9031_driver.h.
◆ KSZ9031_MMDAADR
#define KSZ9031_MMDAADR 0x0E |
Definition at line 57 of file ksz9031_driver.h.
◆ KSZ9031_MMDACR
#define KSZ9031_MMDACR 0x0D |
Definition at line 56 of file ksz9031_driver.h.
◆ KSZ9031_MMDACR_DEVAD
#define KSZ9031_MMDACR_DEVAD 0x001F |
Definition at line 217 of file ksz9031_driver.h.
◆ KSZ9031_MMDACR_FUNC
#define KSZ9031_MMDACR_FUNC 0xC000 |
Definition at line 212 of file ksz9031_driver.h.
◆ KSZ9031_MMDACR_FUNC_ADDR
#define KSZ9031_MMDACR_FUNC_ADDR 0x0000 |
Definition at line 213 of file ksz9031_driver.h.
◆ KSZ9031_MMDACR_FUNC_DATA_NO_POST_INC
#define KSZ9031_MMDACR_FUNC_DATA_NO_POST_INC 0x4000 |
Definition at line 214 of file ksz9031_driver.h.
◆ KSZ9031_MMDACR_FUNC_DATA_POST_INC_RW
#define KSZ9031_MMDACR_FUNC_DATA_POST_INC_RW 0x8000 |
Definition at line 215 of file ksz9031_driver.h.
◆ KSZ9031_MMDACR_FUNC_DATA_POST_INC_W
#define KSZ9031_MMDACR_FUNC_DATA_POST_INC_W 0xC000 |
Definition at line 216 of file ksz9031_driver.h.
◆ KSZ9031_OP_MODE_STRAP_OVERRIDE
#define KSZ9031_OP_MODE_STRAP_OVERRIDE 0x02, 0x02 |
Definition at line 73 of file ksz9031_driver.h.
◆ KSZ9031_OP_MODE_STRAP_OVERRIDE_CHIP_PD_OVERRIDE
#define KSZ9031_OP_MODE_STRAP_OVERRIDE_CHIP_PD_OVERRIDE 0x0080 |
Definition at line 293 of file ksz9031_driver.h.
◆ KSZ9031_OP_MODE_STRAP_OVERRIDE_GMII_MII_OVERRIDE
#define KSZ9031_OP_MODE_STRAP_OVERRIDE_GMII_MII_OVERRIDE 0x0002 |
Definition at line 295 of file ksz9031_driver.h.
◆ KSZ9031_OP_MODE_STRAP_OVERRIDE_NAND_TREE_OVERRIDE
#define KSZ9031_OP_MODE_STRAP_OVERRIDE_NAND_TREE_OVERRIDE 0x0010 |
Definition at line 294 of file ksz9031_driver.h.
◆ KSZ9031_OP_MODE_STRAP_OVERRIDE_PME_N1_OUT_EN
#define KSZ9031_OP_MODE_STRAP_OVERRIDE_PME_N1_OUT_EN 0x0100 |
Definition at line 292 of file ksz9031_driver.h.
◆ KSZ9031_OP_MODE_STRAP_OVERRIDE_PME_N2_OUT_EN
#define KSZ9031_OP_MODE_STRAP_OVERRIDE_PME_N2_OUT_EN 0x0400 |
Definition at line 291 of file ksz9031_driver.h.
◆ KSZ9031_OP_MODE_STRAP_STAT
#define KSZ9031_OP_MODE_STRAP_STAT 0x02, 0x03 |
Definition at line 74 of file ksz9031_driver.h.
◆ KSZ9031_OP_MODE_STRAP_STAT_CHIP_PD_STRAP_IN_STATUS
#define KSZ9031_OP_MODE_STRAP_STAT_CHIP_PD_STRAP_IN_STATUS 0x0080 |
Definition at line 298 of file ksz9031_driver.h.
◆ KSZ9031_OP_MODE_STRAP_STAT_GMII_MII_STRAP_IN_STATUS
#define KSZ9031_OP_MODE_STRAP_STAT_GMII_MII_STRAP_IN_STATUS 0x0002 |
Definition at line 300 of file ksz9031_driver.h.
◆ KSZ9031_OP_MODE_STRAP_STAT_NAND_TREE_STRAP_IN_STATUS
#define KSZ9031_OP_MODE_STRAP_STAT_NAND_TREE_STRAP_IN_STATUS 0x0010 |
Definition at line 299 of file ksz9031_driver.h.
◆ KSZ9031_PHY_ADDR
#define KSZ9031_PHY_ADDR 7 |
Definition at line 39 of file ksz9031_driver.h.
◆ KSZ9031_PHYCON
#define KSZ9031_PHYCON 0x1F |
Definition at line 65 of file ksz9031_driver.h.
◆ KSZ9031_PHYCON_1000BT_MS_STATUS
#define KSZ9031_PHYCON_1000BT_MS_STATUS 0x0004 |
Definition at line 274 of file ksz9031_driver.h.
◆ KSZ9031_PHYCON_DUPLEX_STATUS
#define KSZ9031_PHYCON_DUPLEX_STATUS 0x0008 |
Definition at line 273 of file ksz9031_driver.h.
◆ KSZ9031_PHYCON_INT_LEVEL
#define KSZ9031_PHYCON_INT_LEVEL 0x4000 |
Definition at line 268 of file ksz9031_driver.h.
◆ KSZ9031_PHYCON_JABBER_EN
#define KSZ9031_PHYCON_JABBER_EN 0x0200 |
Definition at line 269 of file ksz9031_driver.h.
◆ KSZ9031_PHYCON_LINK_STATUS_CHECK_FAIL
#define KSZ9031_PHYCON_LINK_STATUS_CHECK_FAIL 0x0001 |
Definition at line 275 of file ksz9031_driver.h.
◆ KSZ9031_PHYCON_SPEED_1000BT
#define KSZ9031_PHYCON_SPEED_1000BT 0x0040 |
Definition at line 270 of file ksz9031_driver.h.
◆ KSZ9031_PHYCON_SPEED_100BTX
#define KSZ9031_PHYCON_SPEED_100BTX 0x0020 |
Definition at line 271 of file ksz9031_driver.h.
◆ KSZ9031_PHYCON_SPEED_10BT
#define KSZ9031_PHYCON_SPEED_10BT 0x0010 |
Definition at line 272 of file ksz9031_driver.h.
◆ KSZ9031_PHYID1
#define KSZ9031_PHYID1 0x02 |
Definition at line 47 of file ksz9031_driver.h.
◆ KSZ9031_PHYID1_PHY_ID_MSB
#define KSZ9031_PHYID1_PHY_ID_MSB 0xFFFF |
Definition at line 137 of file ksz9031_driver.h.
◆ KSZ9031_PHYID1_PHY_ID_MSB_DEFAULT
#define KSZ9031_PHYID1_PHY_ID_MSB_DEFAULT 0x0022 |
Definition at line 138 of file ksz9031_driver.h.
◆ KSZ9031_PHYID2
#define KSZ9031_PHYID2 0x03 |
Definition at line 48 of file ksz9031_driver.h.
◆ KSZ9031_PHYID2_MODEL_NUM
#define KSZ9031_PHYID2_MODEL_NUM 0x03F0 |
Definition at line 143 of file ksz9031_driver.h.
◆ KSZ9031_PHYID2_MODEL_NUM_DEFAULT
#define KSZ9031_PHYID2_MODEL_NUM_DEFAULT 0x0220 |
Definition at line 144 of file ksz9031_driver.h.
◆ KSZ9031_PHYID2_PHY_ID_LSB
#define KSZ9031_PHYID2_PHY_ID_LSB 0xFC00 |
Definition at line 141 of file ksz9031_driver.h.
◆ KSZ9031_PHYID2_PHY_ID_LSB_DEFAULT
#define KSZ9031_PHYID2_PHY_ID_LSB_DEFAULT 0x1400 |
Definition at line 142 of file ksz9031_driver.h.
◆ KSZ9031_PHYID2_REVISION_NUM
#define KSZ9031_PHYID2_REVISION_NUM 0x000F |
Definition at line 145 of file ksz9031_driver.h.
◆ KSZ9031_RGMII_CTRL_SIGNAL_PAD_SKEW
#define KSZ9031_RGMII_CTRL_SIGNAL_PAD_SKEW 0x02, 0x04 |
Definition at line 75 of file ksz9031_driver.h.
◆ KSZ9031_RGMII_CTRL_SIGNAL_PAD_SKEW_RX_DV
#define KSZ9031_RGMII_CTRL_SIGNAL_PAD_SKEW_RX_DV 0x00F0 |
Definition at line 303 of file ksz9031_driver.h.
◆ KSZ9031_RGMII_CTRL_SIGNAL_PAD_SKEW_RX_DV_DEFAULT
#define KSZ9031_RGMII_CTRL_SIGNAL_PAD_SKEW_RX_DV_DEFAULT 0x0070 |
Definition at line 304 of file ksz9031_driver.h.
◆ KSZ9031_RGMII_CTRL_SIGNAL_PAD_SKEW_TX_EN
#define KSZ9031_RGMII_CTRL_SIGNAL_PAD_SKEW_TX_EN 0x000F |
Definition at line 305 of file ksz9031_driver.h.
◆ KSZ9031_RGMII_CTRL_SIGNAL_PAD_SKEW_TX_EN_DEFAULT
#define KSZ9031_RGMII_CTRL_SIGNAL_PAD_SKEW_TX_EN_DEFAULT 0x0007 |
Definition at line 306 of file ksz9031_driver.h.
◆ KSZ9031_RGMII_RX_DATA_PAD_SKEW
#define KSZ9031_RGMII_RX_DATA_PAD_SKEW 0x02, 0x05 |
Definition at line 76 of file ksz9031_driver.h.
◆ KSZ9031_RGMII_RX_DATA_PAD_SKEW_RXD0
#define KSZ9031_RGMII_RX_DATA_PAD_SKEW_RXD0 0x000F |
Definition at line 315 of file ksz9031_driver.h.
◆ KSZ9031_RGMII_RX_DATA_PAD_SKEW_RXD0_DEFAULT
#define KSZ9031_RGMII_RX_DATA_PAD_SKEW_RXD0_DEFAULT 0x0007 |
Definition at line 316 of file ksz9031_driver.h.
◆ KSZ9031_RGMII_RX_DATA_PAD_SKEW_RXD1
#define KSZ9031_RGMII_RX_DATA_PAD_SKEW_RXD1 0x00F0 |
Definition at line 313 of file ksz9031_driver.h.
◆ KSZ9031_RGMII_RX_DATA_PAD_SKEW_RXD1_DEFAULT
#define KSZ9031_RGMII_RX_DATA_PAD_SKEW_RXD1_DEFAULT 0x0070 |
Definition at line 314 of file ksz9031_driver.h.
◆ KSZ9031_RGMII_RX_DATA_PAD_SKEW_RXD2
#define KSZ9031_RGMII_RX_DATA_PAD_SKEW_RXD2 0x0F00 |
Definition at line 311 of file ksz9031_driver.h.
◆ KSZ9031_RGMII_RX_DATA_PAD_SKEW_RXD2_DEFAULT
#define KSZ9031_RGMII_RX_DATA_PAD_SKEW_RXD2_DEFAULT 0x0700 |
Definition at line 312 of file ksz9031_driver.h.
◆ KSZ9031_RGMII_RX_DATA_PAD_SKEW_RXD3
#define KSZ9031_RGMII_RX_DATA_PAD_SKEW_RXD3 0xF000 |
Definition at line 309 of file ksz9031_driver.h.
◆ KSZ9031_RGMII_RX_DATA_PAD_SKEW_RXD3_DEFAULT
#define KSZ9031_RGMII_RX_DATA_PAD_SKEW_RXD3_DEFAULT 0x7000 |
Definition at line 310 of file ksz9031_driver.h.
◆ KSZ9031_RGMII_TX_DATA_PAD_SKEW
#define KSZ9031_RGMII_TX_DATA_PAD_SKEW 0x02, 0x06 |
Definition at line 77 of file ksz9031_driver.h.
◆ KSZ9031_RGMII_TX_DATA_PAD_SKEW_TXD0
#define KSZ9031_RGMII_TX_DATA_PAD_SKEW_TXD0 0x000F |
Definition at line 325 of file ksz9031_driver.h.
◆ KSZ9031_RGMII_TX_DATA_PAD_SKEW_TXD0_DEFAULT
#define KSZ9031_RGMII_TX_DATA_PAD_SKEW_TXD0_DEFAULT 0x0007 |
Definition at line 326 of file ksz9031_driver.h.
◆ KSZ9031_RGMII_TX_DATA_PAD_SKEW_TXD1
#define KSZ9031_RGMII_TX_DATA_PAD_SKEW_TXD1 0x00F0 |
Definition at line 323 of file ksz9031_driver.h.
◆ KSZ9031_RGMII_TX_DATA_PAD_SKEW_TXD1_DEFAULT
#define KSZ9031_RGMII_TX_DATA_PAD_SKEW_TXD1_DEFAULT 0x0070 |
Definition at line 324 of file ksz9031_driver.h.
◆ KSZ9031_RGMII_TX_DATA_PAD_SKEW_TXD2
#define KSZ9031_RGMII_TX_DATA_PAD_SKEW_TXD2 0x0F00 |
Definition at line 321 of file ksz9031_driver.h.
◆ KSZ9031_RGMII_TX_DATA_PAD_SKEW_TXD2_DEFAULT
#define KSZ9031_RGMII_TX_DATA_PAD_SKEW_TXD2_DEFAULT 0x0700 |
Definition at line 322 of file ksz9031_driver.h.
◆ KSZ9031_RGMII_TX_DATA_PAD_SKEW_TXD3
#define KSZ9031_RGMII_TX_DATA_PAD_SKEW_TXD3 0xF000 |
Definition at line 319 of file ksz9031_driver.h.
◆ KSZ9031_RGMII_TX_DATA_PAD_SKEW_TXD3_DEFAULT
#define KSZ9031_RGMII_TX_DATA_PAD_SKEW_TXD3_DEFAULT 0x7000 |
Definition at line 320 of file ksz9031_driver.h.
◆ KSZ9031_RLB
#define KSZ9031_RLB 0x11 |
Definition at line 59 of file ksz9031_driver.h.
◆ KSZ9031_RLB_REMOTE_LOOPBACK
#define KSZ9031_RLB_REMOTE_LOOPBACK 0x0100 |
Definition at line 226 of file ksz9031_driver.h.
◆ KSZ9031_RXERCTR
#define KSZ9031_RXERCTR 0x15 |
Definition at line 62 of file ksz9031_driver.h.
◆ KSZ9031_STRAP_STAT
#define KSZ9031_STRAP_STAT 0x02, 0x01 |
Definition at line 72 of file ksz9031_driver.h.
◆ KSZ9031_STRAP_STAT_CLK125_EN_STRAP_IN_STATUS
#define KSZ9031_STRAP_STAT_CLK125_EN_STRAP_IN_STATUS 0x0020 |
Definition at line 287 of file ksz9031_driver.h.
◆ KSZ9031_STRAP_STAT_LED_MODE_STARP_IN_STATUS
#define KSZ9031_STRAP_STAT_LED_MODE_STARP_IN_STATUS 0x0080 |
Definition at line 286 of file ksz9031_driver.h.
◆ KSZ9031_STRAP_STAT_PHYAD_STRAP_IN_VALUE
#define KSZ9031_STRAP_STAT_PHYAD_STRAP_IN_VALUE 0x0007 |
Definition at line 288 of file ksz9031_driver.h.
◆ KSZ9031_WOL_CTRL
#define KSZ9031_WOL_CTRL 0x02, 0x10 |
Definition at line 79 of file ksz9031_driver.h.
◆ KSZ9031_WOL_CTRL_CUSTOM_PKT_TYPE_0_DETECT_EN
#define KSZ9031_WOL_CTRL_CUSTOM_PKT_TYPE_0_DETECT_EN 0x0004 |
Definition at line 340 of file ksz9031_driver.h.
◆ KSZ9031_WOL_CTRL_CUSTOM_PKT_TYPE_1_DETECT_EN
#define KSZ9031_WOL_CTRL_CUSTOM_PKT_TYPE_1_DETECT_EN 0x0008 |
Definition at line 339 of file ksz9031_driver.h.
◆ KSZ9031_WOL_CTRL_CUSTOM_PKT_TYPE_2_DETECT_EN
#define KSZ9031_WOL_CTRL_CUSTOM_PKT_TYPE_2_DETECT_EN 0x0010 |
Definition at line 338 of file ksz9031_driver.h.
◆ KSZ9031_WOL_CTRL_CUSTOM_PKT_TYPE_3_DETECT_EN
#define KSZ9031_WOL_CTRL_CUSTOM_PKT_TYPE_3_DETECT_EN 0x0020 |
Definition at line 337 of file ksz9031_driver.h.
◆ KSZ9031_WOL_CTRL_LINK_DOWN_DETECT_EN
#define KSZ9031_WOL_CTRL_LINK_DOWN_DETECT_EN 0x0002 |
Definition at line 341 of file ksz9031_driver.h.
◆ KSZ9031_WOL_CTRL_LINK_UP_DETECT_EN
#define KSZ9031_WOL_CTRL_LINK_UP_DETECT_EN 0x0001 |
Definition at line 342 of file ksz9031_driver.h.
◆ KSZ9031_WOL_CTRL_MAGIC_PKT_DETECT_EN
#define KSZ9031_WOL_CTRL_MAGIC_PKT_DETECT_EN 0x0040 |
Definition at line 336 of file ksz9031_driver.h.
◆ KSZ9031_WOL_CTRL_PME_OUT_SEL
#define KSZ9031_WOL_CTRL_PME_OUT_SEL 0xC000 |
Definition at line 335 of file ksz9031_driver.h.
◆ KSZ9031_WOL_CUSTOM_PKT_TYPE0_CRC0
#define KSZ9031_WOL_CUSTOM_PKT_TYPE0_CRC0 0x02, 0x14 |
Definition at line 83 of file ksz9031_driver.h.
◆ KSZ9031_WOL_CUSTOM_PKT_TYPE0_CRC1
#define KSZ9031_WOL_CUSTOM_PKT_TYPE0_CRC1 0x02, 0x15 |
Definition at line 84 of file ksz9031_driver.h.
◆ KSZ9031_WOL_CUSTOM_PKT_TYPE0_MASK0
#define KSZ9031_WOL_CUSTOM_PKT_TYPE0_MASK0 0x02, 0x1C |
Definition at line 91 of file ksz9031_driver.h.
◆ KSZ9031_WOL_CUSTOM_PKT_TYPE0_MASK1
#define KSZ9031_WOL_CUSTOM_PKT_TYPE0_MASK1 0x02, 0x1D |
Definition at line 92 of file ksz9031_driver.h.
◆ KSZ9031_WOL_CUSTOM_PKT_TYPE0_MASK2
#define KSZ9031_WOL_CUSTOM_PKT_TYPE0_MASK2 0x02, 0x1E |
Definition at line 93 of file ksz9031_driver.h.
◆ KSZ9031_WOL_CUSTOM_PKT_TYPE0_MASK3
#define KSZ9031_WOL_CUSTOM_PKT_TYPE0_MASK3 0x02, 0x1F |
Definition at line 94 of file ksz9031_driver.h.
◆ KSZ9031_WOL_CUSTOM_PKT_TYPE1_CRC0
#define KSZ9031_WOL_CUSTOM_PKT_TYPE1_CRC0 0x02, 0x16 |
Definition at line 85 of file ksz9031_driver.h.
◆ KSZ9031_WOL_CUSTOM_PKT_TYPE1_CRC1
#define KSZ9031_WOL_CUSTOM_PKT_TYPE1_CRC1 0x02, 0x17 |
Definition at line 86 of file ksz9031_driver.h.
◆ KSZ9031_WOL_CUSTOM_PKT_TYPE1_MASK0
#define KSZ9031_WOL_CUSTOM_PKT_TYPE1_MASK0 0x02, 0x20 |
Definition at line 95 of file ksz9031_driver.h.
◆ KSZ9031_WOL_CUSTOM_PKT_TYPE1_MASK1
#define KSZ9031_WOL_CUSTOM_PKT_TYPE1_MASK1 0x02, 0x21 |
Definition at line 96 of file ksz9031_driver.h.
◆ KSZ9031_WOL_CUSTOM_PKT_TYPE1_MASK2
#define KSZ9031_WOL_CUSTOM_PKT_TYPE1_MASK2 0x02, 0x22 |
Definition at line 97 of file ksz9031_driver.h.
◆ KSZ9031_WOL_CUSTOM_PKT_TYPE1_MASK3
#define KSZ9031_WOL_CUSTOM_PKT_TYPE1_MASK3 0x02, 0x23 |
Definition at line 98 of file ksz9031_driver.h.
◆ KSZ9031_WOL_CUSTOM_PKT_TYPE2_CRC0
#define KSZ9031_WOL_CUSTOM_PKT_TYPE2_CRC0 0x02, 0x18 |
Definition at line 87 of file ksz9031_driver.h.
◆ KSZ9031_WOL_CUSTOM_PKT_TYPE2_CRC1
#define KSZ9031_WOL_CUSTOM_PKT_TYPE2_CRC1 0x02, 0x19 |
Definition at line 88 of file ksz9031_driver.h.
◆ KSZ9031_WOL_CUSTOM_PKT_TYPE2_MASK0
#define KSZ9031_WOL_CUSTOM_PKT_TYPE2_MASK0 0x02, 0x24 |
Definition at line 99 of file ksz9031_driver.h.
◆ KSZ9031_WOL_CUSTOM_PKT_TYPE2_MASK1
#define KSZ9031_WOL_CUSTOM_PKT_TYPE2_MASK1 0x02, 0x25 |
Definition at line 100 of file ksz9031_driver.h.
◆ KSZ9031_WOL_CUSTOM_PKT_TYPE2_MASK2
#define KSZ9031_WOL_CUSTOM_PKT_TYPE2_MASK2 0x02, 0x26 |
Definition at line 101 of file ksz9031_driver.h.
◆ KSZ9031_WOL_CUSTOM_PKT_TYPE2_MASK3
#define KSZ9031_WOL_CUSTOM_PKT_TYPE2_MASK3 0x02, 0x27 |
Definition at line 102 of file ksz9031_driver.h.
◆ KSZ9031_WOL_CUSTOM_PKT_TYPE3_CRC0
#define KSZ9031_WOL_CUSTOM_PKT_TYPE3_CRC0 0x02, 0x1A |
Definition at line 89 of file ksz9031_driver.h.
◆ KSZ9031_WOL_CUSTOM_PKT_TYPE3_CRC1
#define KSZ9031_WOL_CUSTOM_PKT_TYPE3_CRC1 0x02, 0x1B |
Definition at line 90 of file ksz9031_driver.h.
◆ KSZ9031_WOL_CUSTOM_PKT_TYPE3_MASK0
#define KSZ9031_WOL_CUSTOM_PKT_TYPE3_MASK0 0x02, 0x28 |
Definition at line 103 of file ksz9031_driver.h.
◆ KSZ9031_WOL_CUSTOM_PKT_TYPE3_MASK1
#define KSZ9031_WOL_CUSTOM_PKT_TYPE3_MASK1 0x02, 0x29 |
Definition at line 104 of file ksz9031_driver.h.
◆ KSZ9031_WOL_CUSTOM_PKT_TYPE3_MASK2
#define KSZ9031_WOL_CUSTOM_PKT_TYPE3_MASK2 0x02, 0x2A |
Definition at line 105 of file ksz9031_driver.h.
◆ KSZ9031_WOL_CUSTOM_PKT_TYPE3_MASK3
#define KSZ9031_WOL_CUSTOM_PKT_TYPE3_MASK3 0x02, 0x2B |
Definition at line 106 of file ksz9031_driver.h.
◆ KSZ9031_WOL_MAGIC_PKT_MAC_DA0
#define KSZ9031_WOL_MAGIC_PKT_MAC_DA0 0x02, 0x11 |
Definition at line 80 of file ksz9031_driver.h.
◆ KSZ9031_WOL_MAGIC_PKT_MAC_DA1
#define KSZ9031_WOL_MAGIC_PKT_MAC_DA1 0x02, 0x12 |
Definition at line 81 of file ksz9031_driver.h.
◆ KSZ9031_WOL_MAGIC_PKT_MAC_DA2
#define KSZ9031_WOL_MAGIC_PKT_MAC_DA2 0x02, 0x13 |
Definition at line 82 of file ksz9031_driver.h.
Function Documentation
◆ ksz9031DisableIrq()
void ksz9031DisableIrq | ( | NetInterface * | interface | ) |
Disable interrupts.
- Parameters
-
[in] interface Underlying network interface
Definition at line 195 of file ksz9031_driver.c.
◆ ksz9031DumpPhyReg()
void ksz9031DumpPhyReg | ( | NetInterface * | interface | ) |
Dump PHY registers for debugging purpose.
- Parameters
-
[in] interface Underlying network interface
Definition at line 338 of file ksz9031_driver.c.
◆ ksz9031EnableIrq()
void ksz9031EnableIrq | ( | NetInterface * | interface | ) |
Enable interrupts.
- Parameters
-
[in] interface Underlying network interface
Definition at line 180 of file ksz9031_driver.c.
◆ ksz9031EventHandler()
void ksz9031EventHandler | ( | NetInterface * | interface | ) |
KSZ9031 event handler.
- Parameters
-
[in] interface Underlying network interface
Definition at line 210 of file ksz9031_driver.c.
◆ ksz9031Init()
error_t ksz9031Init | ( | NetInterface * | interface | ) |
KSZ9031 PHY transceiver initialization.
- Parameters
-
[in] interface Underlying network interface
- Returns
- Error code
Definition at line 60 of file ksz9031_driver.c.
◆ ksz9031InitHook()
void ksz9031InitHook | ( | NetInterface * | interface | ) |
KSZ9031 custom configuration.
- Parameters
-
[in] interface Underlying network interface
Definition at line 132 of file ksz9031_driver.c.
◆ ksz9031ReadMmdReg()
uint16_t ksz9031ReadMmdReg | ( | 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 390 of file ksz9031_driver.c.
◆ ksz9031ReadPhyReg()
uint16_t ksz9031ReadPhyReg | ( | 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 312 of file ksz9031_driver.c.
◆ ksz9031Tick()
void ksz9031Tick | ( | NetInterface * | interface | ) |
KSZ9031 timer handler.
- Parameters
-
[in] interface Underlying network interface
Definition at line 142 of file ksz9031_driver.c.
◆ ksz9031WriteMmdReg()
void ksz9031WriteMmdReg | ( | 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 363 of file ksz9031_driver.c.
◆ ksz9031WritePhyReg()
void ksz9031WritePhyReg | ( | 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 288 of file ksz9031_driver.c.
Variable Documentation
◆ ksz9031PhyDriver
|
extern |
KSZ9031 Ethernet PHY driver.
Definition at line 44 of file ksz9031_driver.c.