KSZ9131 Gigabit Ethernet PHY driver. More...
#include "core/nic.h"
Go to the source code of this file.
Functions | |
error_t | ksz9131Init (NetInterface *interface) |
KSZ9131 PHY transceiver initialization. More... | |
void | ksz9131InitHook (NetInterface *interface) |
KSZ9131 custom configuration. More... | |
void | ksz9131Tick (NetInterface *interface) |
KSZ9131 timer handler. More... | |
void | ksz9131EnableIrq (NetInterface *interface) |
Enable interrupts. More... | |
void | ksz9131DisableIrq (NetInterface *interface) |
Disable interrupts. More... | |
void | ksz9131EventHandler (NetInterface *interface) |
KSZ9131 event handler. More... | |
void | ksz9131WritePhyReg (NetInterface *interface, uint8_t address, uint16_t data) |
Write PHY register. More... | |
uint16_t | ksz9131ReadPhyReg (NetInterface *interface, uint8_t address) |
Read PHY register. More... | |
void | ksz9131DumpPhyReg (NetInterface *interface) |
Dump PHY registers for debugging purpose. More... | |
void | ksz9131WriteMmdReg (NetInterface *interface, uint8_t devAddr, uint16_t regAddr, uint16_t data) |
Write MMD register. More... | |
uint16_t | ksz9131ReadMmdReg (NetInterface *interface, uint8_t devAddr, uint16_t regAddr) |
Read MMD register. More... | |
Variables | |
const PhyDriver | ksz9131PhyDriver |
KSZ9131 Ethernet PHY driver. More... | |
Detailed Description
KSZ9131 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 ksz9131_driver.h.
Macro Definition Documentation
◆ KSZ9131_AFED_CTRL
#define KSZ9131_AFED_CTRL 0x1C, 0x09 |
Definition at line 165 of file ksz9131_driver.h.
◆ KSZ9131_ANAR
#define KSZ9131_ANAR 0x04 |
Definition at line 49 of file ksz9131_driver.h.
◆ KSZ9131_ANAR_100BT4
#define KSZ9131_ANAR_100BT4 0x0200 |
Definition at line 219 of file ksz9131_driver.h.
◆ KSZ9131_ANAR_100BTX_FD
#define KSZ9131_ANAR_100BTX_FD 0x0100 |
Definition at line 220 of file ksz9131_driver.h.
◆ KSZ9131_ANAR_100BTX_HD
#define KSZ9131_ANAR_100BTX_HD 0x0080 |
Definition at line 221 of file ksz9131_driver.h.
◆ KSZ9131_ANAR_10BT_FD
#define KSZ9131_ANAR_10BT_FD 0x0040 |
Definition at line 222 of file ksz9131_driver.h.
◆ KSZ9131_ANAR_10BT_HD
#define KSZ9131_ANAR_10BT_HD 0x0020 |
Definition at line 223 of file ksz9131_driver.h.
◆ KSZ9131_ANAR_ASYM_PAUSE
#define KSZ9131_ANAR_ASYM_PAUSE 0x0800 |
Definition at line 217 of file ksz9131_driver.h.
◆ KSZ9131_ANAR_EXTENDED_NEXT_PAGE
#define KSZ9131_ANAR_EXTENDED_NEXT_PAGE 0x1000 |
Definition at line 216 of file ksz9131_driver.h.
◆ KSZ9131_ANAR_NEXT_PAGE
#define KSZ9131_ANAR_NEXT_PAGE 0x8000 |
Definition at line 214 of file ksz9131_driver.h.
◆ KSZ9131_ANAR_REMOTE_FAULT
#define KSZ9131_ANAR_REMOTE_FAULT 0x2000 |
Definition at line 215 of file ksz9131_driver.h.
◆ KSZ9131_ANAR_SELECTOR
#define KSZ9131_ANAR_SELECTOR 0x001F |
Definition at line 224 of file ksz9131_driver.h.
◆ KSZ9131_ANAR_SELECTOR_DEFAULT
#define KSZ9131_ANAR_SELECTOR_DEFAULT 0x0001 |
Definition at line 225 of file ksz9131_driver.h.
◆ KSZ9131_ANAR_SYM_PAUSE
#define KSZ9131_ANAR_SYM_PAUSE 0x0400 |
Definition at line 218 of file ksz9131_driver.h.
◆ KSZ9131_ANER
#define KSZ9131_ANER 0x06 |
Definition at line 51 of file ksz9131_driver.h.
◆ KSZ9131_ANER_LP_AN_ABLE
#define KSZ9131_ANER_LP_AN_ABLE 0x0001 |
Definition at line 249 of file ksz9131_driver.h.
◆ KSZ9131_ANER_LP_NEXT_PAGE_ABLE
#define KSZ9131_ANER_LP_NEXT_PAGE_ABLE 0x0008 |
Definition at line 246 of file ksz9131_driver.h.
◆ KSZ9131_ANER_NEXT_PAGE_ABLE
#define KSZ9131_ANER_NEXT_PAGE_ABLE 0x0004 |
Definition at line 247 of file ksz9131_driver.h.
◆ KSZ9131_ANER_PAGE_RECEIVED
#define KSZ9131_ANER_PAGE_RECEIVED 0x0002 |
Definition at line 248 of file ksz9131_driver.h.
◆ KSZ9131_ANER_PAR_DETECT_FAULT
#define KSZ9131_ANER_PAR_DETECT_FAULT 0x0010 |
Definition at line 245 of file ksz9131_driver.h.
◆ KSZ9131_ANER_RECEIVE_NP_LOC_ABLE
#define KSZ9131_ANER_RECEIVE_NP_LOC_ABLE 0x0040 |
Definition at line 243 of file ksz9131_driver.h.
◆ KSZ9131_ANER_RECEIVE_NP_STOR_LOC
#define KSZ9131_ANER_RECEIVE_NP_STOR_LOC 0x0020 |
Definition at line 244 of file ksz9131_driver.h.
◆ KSZ9131_ANLPAR
#define KSZ9131_ANLPAR 0x05 |
Definition at line 50 of file ksz9131_driver.h.
◆ KSZ9131_ANLPAR_100BT4
#define KSZ9131_ANLPAR_100BT4 0x0200 |
Definition at line 234 of file ksz9131_driver.h.
◆ KSZ9131_ANLPAR_100BTX_FD
#define KSZ9131_ANLPAR_100BTX_FD 0x0100 |
Definition at line 235 of file ksz9131_driver.h.
◆ KSZ9131_ANLPAR_100BTX_HD
#define KSZ9131_ANLPAR_100BTX_HD 0x0080 |
Definition at line 236 of file ksz9131_driver.h.
◆ KSZ9131_ANLPAR_10BT_FD
#define KSZ9131_ANLPAR_10BT_FD 0x0040 |
Definition at line 237 of file ksz9131_driver.h.
◆ KSZ9131_ANLPAR_10BT_HD
#define KSZ9131_ANLPAR_10BT_HD 0x0020 |
Definition at line 238 of file ksz9131_driver.h.
◆ KSZ9131_ANLPAR_ACK
#define KSZ9131_ANLPAR_ACK 0x4000 |
Definition at line 229 of file ksz9131_driver.h.
◆ KSZ9131_ANLPAR_ASYM_PAUSE
#define KSZ9131_ANLPAR_ASYM_PAUSE 0x0800 |
Definition at line 232 of file ksz9131_driver.h.
◆ KSZ9131_ANLPAR_EXTENDED_NEXT_PAGE
#define KSZ9131_ANLPAR_EXTENDED_NEXT_PAGE 0x1000 |
Definition at line 231 of file ksz9131_driver.h.
◆ KSZ9131_ANLPAR_NEXT_PAGE
#define KSZ9131_ANLPAR_NEXT_PAGE 0x8000 |
Definition at line 228 of file ksz9131_driver.h.
◆ KSZ9131_ANLPAR_PAUSE
#define KSZ9131_ANLPAR_PAUSE 0x0400 |
Definition at line 233 of file ksz9131_driver.h.
◆ KSZ9131_ANLPAR_REMOTE_FAULT
#define KSZ9131_ANLPAR_REMOTE_FAULT 0x2000 |
Definition at line 230 of file ksz9131_driver.h.
◆ KSZ9131_ANLPAR_SELECTOR
#define KSZ9131_ANLPAR_SELECTOR 0x001F |
Definition at line 239 of file ksz9131_driver.h.
◆ KSZ9131_ANLPAR_SELECTOR_DEFAULT
#define KSZ9131_ANLPAR_SELECTOR_DEFAULT 0x0001 |
Definition at line 240 of file ksz9131_driver.h.
◆ KSZ9131_ANNPRR
#define KSZ9131_ANNPRR 0x08 |
Definition at line 53 of file ksz9131_driver.h.
◆ KSZ9131_ANNPRR_ACK
#define KSZ9131_ANNPRR_ACK 0x4000 |
Definition at line 260 of file ksz9131_driver.h.
◆ KSZ9131_ANNPRR_ACK2
#define KSZ9131_ANNPRR_ACK2 0x1000 |
Definition at line 262 of file ksz9131_driver.h.
◆ KSZ9131_ANNPRR_MESSAGE
#define KSZ9131_ANNPRR_MESSAGE 0x07FF |
Definition at line 264 of file ksz9131_driver.h.
◆ KSZ9131_ANNPRR_MSG_PAGE
#define KSZ9131_ANNPRR_MSG_PAGE 0x2000 |
Definition at line 261 of file ksz9131_driver.h.
◆ KSZ9131_ANNPRR_NEXT_PAGE
#define KSZ9131_ANNPRR_NEXT_PAGE 0x8000 |
Definition at line 259 of file ksz9131_driver.h.
◆ KSZ9131_ANNPRR_TOGGLE
#define KSZ9131_ANNPRR_TOGGLE 0x0800 |
Definition at line 263 of file ksz9131_driver.h.
◆ KSZ9131_ANNPTR
#define KSZ9131_ANNPTR 0x07 |
Definition at line 52 of file ksz9131_driver.h.
◆ KSZ9131_ANNPTR_ACK2
#define KSZ9131_ANNPTR_ACK2 0x1000 |
Definition at line 254 of file ksz9131_driver.h.
◆ KSZ9131_ANNPTR_MESSAGE
#define KSZ9131_ANNPTR_MESSAGE 0x07FF |
Definition at line 256 of file ksz9131_driver.h.
◆ KSZ9131_ANNPTR_MSG_PAGE
#define KSZ9131_ANNPTR_MSG_PAGE 0x2000 |
Definition at line 253 of file ksz9131_driver.h.
◆ KSZ9131_ANNPTR_NEXT_PAGE
#define KSZ9131_ANNPTR_NEXT_PAGE 0x8000 |
Definition at line 252 of file ksz9131_driver.h.
◆ KSZ9131_ANNPTR_TOGGLE
#define KSZ9131_ANNPTR_TOGGLE 0x0800 |
Definition at line 255 of file ksz9131_driver.h.
◆ KSZ9131_AUTOMDI
#define KSZ9131_AUTOMDI 0x1C |
Definition at line 68 of file ksz9131_driver.h.
◆ KSZ9131_AUTOMDI_MDI_SET
#define KSZ9131_AUTOMDI_MDI_SET 0x0080 |
Definition at line 364 of file ksz9131_driver.h.
◆ KSZ9131_AUTOMDI_SWAP_OFF
#define KSZ9131_AUTOMDI_SWAP_OFF 0x0040 |
Definition at line 365 of file ksz9131_driver.h.
◆ KSZ9131_BMCR
#define KSZ9131_BMCR 0x00 |
Definition at line 45 of file ksz9131_driver.h.
◆ KSZ9131_BMCR_AN_EN
#define KSZ9131_BMCR_AN_EN 0x1000 |
Definition at line 176 of file ksz9131_driver.h.
◆ KSZ9131_BMCR_COL_TEST
#define KSZ9131_BMCR_COL_TEST 0x0080 |
Definition at line 181 of file ksz9131_driver.h.
◆ KSZ9131_BMCR_DUPLEX_MODE
#define KSZ9131_BMCR_DUPLEX_MODE 0x0100 |
Definition at line 180 of file ksz9131_driver.h.
◆ KSZ9131_BMCR_ISOLATE
#define KSZ9131_BMCR_ISOLATE 0x0400 |
Definition at line 178 of file ksz9131_driver.h.
◆ KSZ9131_BMCR_LOOPBACK
#define KSZ9131_BMCR_LOOPBACK 0x4000 |
Definition at line 174 of file ksz9131_driver.h.
◆ KSZ9131_BMCR_POWER_DOWN
#define KSZ9131_BMCR_POWER_DOWN 0x0800 |
Definition at line 177 of file ksz9131_driver.h.
◆ KSZ9131_BMCR_RESET
#define KSZ9131_BMCR_RESET 0x8000 |
Definition at line 173 of file ksz9131_driver.h.
◆ KSZ9131_BMCR_RESTART_AN
#define KSZ9131_BMCR_RESTART_AN 0x0200 |
Definition at line 179 of file ksz9131_driver.h.
◆ KSZ9131_BMCR_SPEED_SEL_LSB
#define KSZ9131_BMCR_SPEED_SEL_LSB 0x2000 |
Definition at line 175 of file ksz9131_driver.h.
◆ KSZ9131_BMCR_SPEED_SEL_MSB
#define KSZ9131_BMCR_SPEED_SEL_MSB 0x0040 |
Definition at line 182 of file ksz9131_driver.h.
◆ KSZ9131_BMSR
#define KSZ9131_BMSR 0x01 |
Definition at line 46 of file ksz9131_driver.h.
◆ KSZ9131_BMSR_100BT2_FD
#define KSZ9131_BMSR_100BT2_FD 0x0400 |
Definition at line 190 of file ksz9131_driver.h.
◆ KSZ9131_BMSR_100BT2_HD
#define KSZ9131_BMSR_100BT2_HD 0x0200 |
Definition at line 191 of file ksz9131_driver.h.
◆ KSZ9131_BMSR_100BT4
#define KSZ9131_BMSR_100BT4 0x8000 |
Definition at line 185 of file ksz9131_driver.h.
◆ KSZ9131_BMSR_100BTX_FD
#define KSZ9131_BMSR_100BTX_FD 0x4000 |
Definition at line 186 of file ksz9131_driver.h.
◆ KSZ9131_BMSR_100BTX_HD
#define KSZ9131_BMSR_100BTX_HD 0x2000 |
Definition at line 187 of file ksz9131_driver.h.
◆ KSZ9131_BMSR_10BT_FD
#define KSZ9131_BMSR_10BT_FD 0x1000 |
Definition at line 188 of file ksz9131_driver.h.
◆ KSZ9131_BMSR_10BT_HD
#define KSZ9131_BMSR_10BT_HD 0x0800 |
Definition at line 189 of file ksz9131_driver.h.
◆ KSZ9131_BMSR_AN_CAPABLE
#define KSZ9131_BMSR_AN_CAPABLE 0x0008 |
Definition at line 197 of file ksz9131_driver.h.
◆ KSZ9131_BMSR_AN_COMPLETE
#define KSZ9131_BMSR_AN_COMPLETE 0x0020 |
Definition at line 195 of file ksz9131_driver.h.
◆ KSZ9131_BMSR_EXTENDED_CAPABLE
#define KSZ9131_BMSR_EXTENDED_CAPABLE 0x0001 |
Definition at line 200 of file ksz9131_driver.h.
◆ KSZ9131_BMSR_EXTENDED_STATUS
#define KSZ9131_BMSR_EXTENDED_STATUS 0x0100 |
Definition at line 192 of file ksz9131_driver.h.
◆ KSZ9131_BMSR_JABBER_DETECT
#define KSZ9131_BMSR_JABBER_DETECT 0x0002 |
Definition at line 199 of file ksz9131_driver.h.
◆ KSZ9131_BMSR_LINK_STATUS
#define KSZ9131_BMSR_LINK_STATUS 0x0004 |
Definition at line 198 of file ksz9131_driver.h.
◆ KSZ9131_BMSR_MF_PREAMBLE_SUPPR
#define KSZ9131_BMSR_MF_PREAMBLE_SUPPR 0x0040 |
Definition at line 194 of file ksz9131_driver.h.
◆ KSZ9131_BMSR_REMOTE_FAULT
#define KSZ9131_BMSR_REMOTE_FAULT 0x0010 |
Definition at line 196 of file ksz9131_driver.h.
◆ KSZ9131_BMSR_UNIDIRECTIONAL_ABLE
#define KSZ9131_BMSR_UNIDIRECTIONAL_ABLE 0x0080 |
Definition at line 193 of file ksz9131_driver.h.
◆ KSZ9131_CLK_PAD_SKEW
#define KSZ9131_CLK_PAD_SKEW 0x02, 0x08 |
Definition at line 89 of file ksz9131_driver.h.
◆ KSZ9131_CLOCK_INV_CTRL_SIGNAL_PAD_SKEW
#define KSZ9131_CLOCK_INV_CTRL_SIGNAL_PAD_SKEW 0x02, 0x04 |
Definition at line 86 of file ksz9131_driver.h.
◆ KSZ9131_COMMON_CTRL
#define KSZ9131_COMMON_CTRL 0x02, 0x00 |
Definition at line 82 of file ksz9131_driver.h.
◆ KSZ9131_CUSTOM_PKT0_CRC_HI
#define KSZ9131_CUSTOM_PKT0_CRC_HI 0x02, 0x15 |
Definition at line 101 of file ksz9131_driver.h.
◆ KSZ9131_CUSTOM_PKT0_CRC_LO
#define KSZ9131_CUSTOM_PKT0_CRC_LO 0x02, 0x14 |
Definition at line 100 of file ksz9131_driver.h.
◆ KSZ9131_CUSTOM_PKT0_MASK_HH
#define KSZ9131_CUSTOM_PKT0_MASK_HH 0x02, 0x1F |
Definition at line 111 of file ksz9131_driver.h.
◆ KSZ9131_CUSTOM_PKT0_MASK_HL
#define KSZ9131_CUSTOM_PKT0_MASK_HL 0x02, 0x1E |
Definition at line 110 of file ksz9131_driver.h.
◆ KSZ9131_CUSTOM_PKT0_MASK_LH
#define KSZ9131_CUSTOM_PKT0_MASK_LH 0x02, 0x1D |
Definition at line 109 of file ksz9131_driver.h.
◆ KSZ9131_CUSTOM_PKT0_MASK_LL
#define KSZ9131_CUSTOM_PKT0_MASK_LL 0x02, 0x1C |
Definition at line 108 of file ksz9131_driver.h.
◆ KSZ9131_CUSTOM_PKT0_RCVD_CRC_H
#define KSZ9131_CUSTOM_PKT0_RCVD_CRC_H 0x02, 0x31 |
Definition at line 129 of file ksz9131_driver.h.
◆ KSZ9131_CUSTOM_PKT0_RCVD_CRC_L
#define KSZ9131_CUSTOM_PKT0_RCVD_CRC_L 0x02, 0x30 |
Definition at line 128 of file ksz9131_driver.h.
◆ KSZ9131_CUSTOM_PKT1_CRC_HI
#define KSZ9131_CUSTOM_PKT1_CRC_HI 0x02, 0x17 |
Definition at line 103 of file ksz9131_driver.h.
◆ KSZ9131_CUSTOM_PKT1_CRC_LO
#define KSZ9131_CUSTOM_PKT1_CRC_LO 0x02, 0x16 |
Definition at line 102 of file ksz9131_driver.h.
◆ KSZ9131_CUSTOM_PKT1_MASK_HH
#define KSZ9131_CUSTOM_PKT1_MASK_HH 0x02, 0x23 |
Definition at line 115 of file ksz9131_driver.h.
◆ KSZ9131_CUSTOM_PKT1_MASK_HL
#define KSZ9131_CUSTOM_PKT1_MASK_HL 0x02, 0x22 |
Definition at line 114 of file ksz9131_driver.h.
◆ KSZ9131_CUSTOM_PKT1_MASK_LH
#define KSZ9131_CUSTOM_PKT1_MASK_LH 0x02, 0x21 |
Definition at line 113 of file ksz9131_driver.h.
◆ KSZ9131_CUSTOM_PKT1_MASK_LL
#define KSZ9131_CUSTOM_PKT1_MASK_LL 0x02, 0x20 |
Definition at line 112 of file ksz9131_driver.h.
◆ KSZ9131_CUSTOM_PKT1_RCVD_CRC_H
#define KSZ9131_CUSTOM_PKT1_RCVD_CRC_H 0x02, 0x33 |
Definition at line 131 of file ksz9131_driver.h.
◆ KSZ9131_CUSTOM_PKT1_RCVD_CRC_L
#define KSZ9131_CUSTOM_PKT1_RCVD_CRC_L 0x02, 0x32 |
Definition at line 130 of file ksz9131_driver.h.
◆ KSZ9131_CUSTOM_PKT2_CRC_HI
#define KSZ9131_CUSTOM_PKT2_CRC_HI 0x02, 0x19 |
Definition at line 105 of file ksz9131_driver.h.
◆ KSZ9131_CUSTOM_PKT2_CRC_LO
#define KSZ9131_CUSTOM_PKT2_CRC_LO 0x02, 0x18 |
Definition at line 104 of file ksz9131_driver.h.
◆ KSZ9131_CUSTOM_PKT2_MASK_HH
#define KSZ9131_CUSTOM_PKT2_MASK_HH 0x02, 0x27 |
Definition at line 119 of file ksz9131_driver.h.
◆ KSZ9131_CUSTOM_PKT2_MASK_HL
#define KSZ9131_CUSTOM_PKT2_MASK_HL 0x02, 0x26 |
Definition at line 118 of file ksz9131_driver.h.
◆ KSZ9131_CUSTOM_PKT2_MASK_LH
#define KSZ9131_CUSTOM_PKT2_MASK_LH 0x02, 0x25 |
Definition at line 117 of file ksz9131_driver.h.
◆ KSZ9131_CUSTOM_PKT2_MASK_LL
#define KSZ9131_CUSTOM_PKT2_MASK_LL 0x02, 0x24 |
Definition at line 116 of file ksz9131_driver.h.
◆ KSZ9131_CUSTOM_PKT2_RCVD_CRC_H
#define KSZ9131_CUSTOM_PKT2_RCVD_CRC_H 0x02, 0x35 |
Definition at line 133 of file ksz9131_driver.h.
◆ KSZ9131_CUSTOM_PKT2_RCVD_CRC_L
#define KSZ9131_CUSTOM_PKT2_RCVD_CRC_L 0x02, 0x34 |
Definition at line 132 of file ksz9131_driver.h.
◆ KSZ9131_CUSTOM_PKT3_CRC_HI
#define KSZ9131_CUSTOM_PKT3_CRC_HI 0x02, 0x1B |
Definition at line 107 of file ksz9131_driver.h.
◆ KSZ9131_CUSTOM_PKT3_CRC_LO
#define KSZ9131_CUSTOM_PKT3_CRC_LO 0x02, 0x1A |
Definition at line 106 of file ksz9131_driver.h.
◆ KSZ9131_CUSTOM_PKT3_MASK_HH
#define KSZ9131_CUSTOM_PKT3_MASK_HH 0x02, 0x2B |
Definition at line 123 of file ksz9131_driver.h.
◆ KSZ9131_CUSTOM_PKT3_MASK_HL
#define KSZ9131_CUSTOM_PKT3_MASK_HL 0x02, 0x2A |
Definition at line 122 of file ksz9131_driver.h.
◆ KSZ9131_CUSTOM_PKT3_MASK_LH
#define KSZ9131_CUSTOM_PKT3_MASK_LH 0x02, 0x29 |
Definition at line 121 of file ksz9131_driver.h.
◆ KSZ9131_CUSTOM_PKT3_MASK_LL
#define KSZ9131_CUSTOM_PKT3_MASK_LL 0x02, 0x28 |
Definition at line 120 of file ksz9131_driver.h.
◆ KSZ9131_CUSTOM_PKT3_RCVD_CRC_H
#define KSZ9131_CUSTOM_PKT3_RCVD_CRC_H 0x02, 0x37 |
Definition at line 135 of file ksz9131_driver.h.
◆ KSZ9131_CUSTOM_PKT3_RCVD_CRC_L
#define KSZ9131_CUSTOM_PKT3_RCVD_CRC_L 0x02, 0x36 |
Definition at line 134 of file ksz9131_driver.h.
◆ KSZ9131_DCQ_CONFIG
#define KSZ9131_DCQ_CONFIG 0x01, 0xE7 |
Definition at line 80 of file ksz9131_driver.h.
◆ KSZ9131_DCQ_CTRL
#define KSZ9131_DCQ_CTRL 0x01, 0xE6 |
Definition at line 79 of file ksz9131_driver.h.
◆ KSZ9131_DCQ_MEAN_SQUARE_ERROR
#define KSZ9131_DCQ_MEAN_SQUARE_ERROR 0x01, 0xE2 |
Definition at line 75 of file ksz9131_driver.h.
◆ KSZ9131_DCQ_MEAN_SQUARE_ERROR_WORST_CASE
#define KSZ9131_DCQ_MEAN_SQUARE_ERROR_WORST_CASE 0x01, 0xE3 |
Definition at line 76 of file ksz9131_driver.h.
◆ KSZ9131_DCQ_PEAK_MSE
#define KSZ9131_DCQ_PEAK_MSE 0x01, 0xE5 |
Definition at line 78 of file ksz9131_driver.h.
◆ KSZ9131_DCQ_SQI
#define KSZ9131_DCQ_SQI 0x01, 0xE4 |
Definition at line 77 of file ksz9131_driver.h.
◆ KSZ9131_DCQ_SQI_TABLE
#define KSZ9131_DCQ_SQI_TABLE 0x01, 0xE8 |
Definition at line 81 of file ksz9131_driver.h.
◆ KSZ9131_DPMAPCSS
#define KSZ9131_DPMAPCSS 0x13 |
Definition at line 61 of file ksz9131_driver.h.
◆ KSZ9131_DPMAPCSS_1000BT_LINK_STATUS
#define KSZ9131_DPMAPCSS_1000BT_LINK_STATUS 0x0002 |
Definition at line 317 of file ksz9131_driver.h.
◆ KSZ9131_DPMAPCSS_100BTX_LINK_STATUS
#define KSZ9131_DPMAPCSS_100BTX_LINK_STATUS 0x0001 |
Definition at line 318 of file ksz9131_driver.h.
◆ KSZ9131_EDPD_CTRL
#define KSZ9131_EDPD_CTRL 0x1C, 0x24 |
Definition at line 167 of file ksz9131_driver.h.
◆ KSZ9131_EEE_100_TIMER0
#define KSZ9131_EEE_100_TIMER0 0x03, 0x18 |
Definition at line 156 of file ksz9131_driver.h.
◆ KSZ9131_EEE_100_TIMER1
#define KSZ9131_EEE_100_TIMER1 0x03, 0x19 |
Definition at line 157 of file ksz9131_driver.h.
◆ KSZ9131_EEE_100_TIMER2
#define KSZ9131_EEE_100_TIMER2 0x03, 0x1A |
Definition at line 158 of file ksz9131_driver.h.
◆ KSZ9131_EEE_100_TIMER3
#define KSZ9131_EEE_100_TIMER3 0x03, 0x1B |
Definition at line 159 of file ksz9131_driver.h.
◆ KSZ9131_EEE_ADV
#define KSZ9131_EEE_ADV 0x07, 0x3C |
Definition at line 160 of file ksz9131_driver.h.
◆ KSZ9131_EEE_CTRL_CAPABILITY
#define KSZ9131_EEE_CTRL_CAPABILITY 0x03, 0x14 |
Definition at line 154 of file ksz9131_driver.h.
◆ KSZ9131_EEE_LINK_FAIL_TIMER
#define KSZ9131_EEE_LINK_FAIL_TIMER 0x03, 0x0A |
Definition at line 148 of file ksz9131_driver.h.
◆ KSZ9131_EEE_LP_ABILITY
#define KSZ9131_EEE_LP_ABILITY 0x07, 0x3D |
Definition at line 161 of file ksz9131_driver.h.
◆ KSZ9131_EEE_LP_ABILITY_OVERRIDE
#define KSZ9131_EEE_LP_ABILITY_OVERRIDE 0x07, 0x3E |
Definition at line 162 of file ksz9131_driver.h.
◆ KSZ9131_EEE_MSG_CODE
#define KSZ9131_EEE_MSG_CODE 0x07, 0x3F |
Definition at line 163 of file ksz9131_driver.h.
◆ KSZ9131_EEE_POST_UPDATE_TIMER
#define KSZ9131_EEE_POST_UPDATE_TIMER 0x03, 0x0B |
Definition at line 149 of file ksz9131_driver.h.
◆ KSZ9131_EEE_QUIET_TIMER
#define KSZ9131_EEE_QUIET_TIMER 0x03, 0x08 |
Definition at line 146 of file ksz9131_driver.h.
◆ KSZ9131_EEE_UPDATE_TIMER
#define KSZ9131_EEE_UPDATE_TIMER 0x03, 0x09 |
Definition at line 147 of file ksz9131_driver.h.
◆ KSZ9131_EEE_WAIT_WQ_TIMER
#define KSZ9131_EEE_WAIT_WQ_TIMER 0x03, 0x0C |
Definition at line 150 of file ksz9131_driver.h.
◆ KSZ9131_EEE_WAKE_ERROR_COUNTER
#define KSZ9131_EEE_WAKE_ERROR_COUNTER 0x03, 0x16 |
Definition at line 155 of file ksz9131_driver.h.
◆ KSZ9131_EEE_WAKE_MZ_TIMER
#define KSZ9131_EEE_WAKE_MZ_TIMER 0x03, 0x0F |
Definition at line 153 of file ksz9131_driver.h.
◆ KSZ9131_EEE_WAKE_TIMER
#define KSZ9131_EEE_WAKE_TIMER 0x03, 0x0D |
Definition at line 151 of file ksz9131_driver.h.
◆ KSZ9131_EEE_WAKE_TX_TIMER
#define KSZ9131_EEE_WAKE_TX_TIMER 0x03, 0x0E |
Definition at line 152 of file ksz9131_driver.h.
◆ KSZ9131_EMITX_COEFF
#define KSZ9131_EMITX_COEFF 0x1C, 0x26 |
Definition at line 169 of file ksz9131_driver.h.
◆ KSZ9131_EMITX_CTRL
#define KSZ9131_EMITX_CTRL 0x1C, 0x25 |
Definition at line 168 of file ksz9131_driver.h.
◆ KSZ9131_EXT_LOOPBACK
#define KSZ9131_EXT_LOOPBACK 0x1E |
Definition at line 70 of file ksz9131_driver.h.
◆ KSZ9131_EXT_LOOPBACK_EXT_LPBK
#define KSZ9131_EXT_LOOPBACK_EXT_LPBK 0x0008 |
Definition at line 374 of file ksz9131_driver.h.
◆ KSZ9131_GBCR
#define KSZ9131_GBCR 0x09 |
Definition at line 54 of file ksz9131_driver.h.
◆ KSZ9131_GBCR_1000BT_FD
#define KSZ9131_GBCR_1000BT_FD 0x0200 |
Definition at line 271 of file ksz9131_driver.h.
◆ KSZ9131_GBCR_1000BT_HD
#define KSZ9131_GBCR_1000BT_HD 0x0100 |
Definition at line 272 of file ksz9131_driver.h.
◆ KSZ9131_GBCR_MS_MAN_CONF_EN
#define KSZ9131_GBCR_MS_MAN_CONF_EN 0x1000 |
Definition at line 268 of file ksz9131_driver.h.
◆ KSZ9131_GBCR_MS_MAN_CONF_VAL
#define KSZ9131_GBCR_MS_MAN_CONF_VAL 0x0800 |
Definition at line 269 of file ksz9131_driver.h.
◆ KSZ9131_GBCR_PORT_TYPE
#define KSZ9131_GBCR_PORT_TYPE 0x0400 |
Definition at line 270 of file ksz9131_driver.h.
◆ KSZ9131_GBCR_TEST_MODE
#define KSZ9131_GBCR_TEST_MODE 0xE000 |
Definition at line 267 of file ksz9131_driver.h.
◆ KSZ9131_GBESR
#define KSZ9131_GBESR 0x0F |
Definition at line 58 of file ksz9131_driver.h.
◆ KSZ9131_GBESR_1000BT_FD
#define KSZ9131_GBESR_1000BT_FD 0x2000 |
Definition at line 294 of file ksz9131_driver.h.
◆ KSZ9131_GBESR_1000BT_HD
#define KSZ9131_GBESR_1000BT_HD 0x1000 |
Definition at line 295 of file ksz9131_driver.h.
◆ KSZ9131_GBESR_1000BX_FD
#define KSZ9131_GBESR_1000BX_FD 0x8000 |
Definition at line 292 of file ksz9131_driver.h.
◆ KSZ9131_GBESR_1000BX_HD
#define KSZ9131_GBESR_1000BX_HD 0x4000 |
Definition at line 293 of file ksz9131_driver.h.
◆ KSZ9131_GBSR
#define KSZ9131_GBSR 0x0A |
Definition at line 55 of file ksz9131_driver.h.
◆ KSZ9131_GBSR_IDLE_ERR_COUNT
#define KSZ9131_GBSR_IDLE_ERR_COUNT 0x00FF |
Definition at line 281 of file ksz9131_driver.h.
◆ KSZ9131_GBSR_LOCAL_RECEIVER_STATUS
#define KSZ9131_GBSR_LOCAL_RECEIVER_STATUS 0x2000 |
Definition at line 277 of file ksz9131_driver.h.
◆ KSZ9131_GBSR_LP_1000BT_FD
#define KSZ9131_GBSR_LP_1000BT_FD 0x0800 |
Definition at line 279 of file ksz9131_driver.h.
◆ KSZ9131_GBSR_LP_1000BT_HD
#define KSZ9131_GBSR_LP_1000BT_HD 0x0400 |
Definition at line 280 of file ksz9131_driver.h.
◆ KSZ9131_GBSR_MS_CONF_FAULT
#define KSZ9131_GBSR_MS_CONF_FAULT 0x8000 |
Definition at line 275 of file ksz9131_driver.h.
◆ KSZ9131_GBSR_MS_CONF_RES
#define KSZ9131_GBSR_MS_CONF_RES 0x4000 |
Definition at line 276 of file ksz9131_driver.h.
◆ KSZ9131_GBSR_REMOTE_RECEIVER_STATUS
#define KSZ9131_GBSR_REMOTE_RECEIVER_STATUS 0x1000 |
Definition at line 278 of file ksz9131_driver.h.
◆ KSZ9131_ICSR
#define KSZ9131_ICSR 0x1B |
Definition at line 67 of file ksz9131_driver.h.
◆ KSZ9131_ICSR_JABBER_IE
#define KSZ9131_ICSR_JABBER_IE 0x8000 |
Definition at line 346 of file ksz9131_driver.h.
◆ KSZ9131_ICSR_JABBER_IF
#define KSZ9131_ICSR_JABBER_IF 0x0080 |
Definition at line 354 of file ksz9131_driver.h.
◆ KSZ9131_ICSR_LINK_DOWN_IE
#define KSZ9131_ICSR_LINK_DOWN_IE 0x0400 |
Definition at line 351 of file ksz9131_driver.h.
◆ KSZ9131_ICSR_LINK_DOWN_IF
#define KSZ9131_ICSR_LINK_DOWN_IF 0x0004 |
Definition at line 359 of file ksz9131_driver.h.
◆ KSZ9131_ICSR_LINK_UP_IE
#define KSZ9131_ICSR_LINK_UP_IE 0x0100 |
Definition at line 353 of file ksz9131_driver.h.
◆ KSZ9131_ICSR_LINK_UP_IF
#define KSZ9131_ICSR_LINK_UP_IF 0x0001 |
Definition at line 361 of file ksz9131_driver.h.
◆ KSZ9131_ICSR_LP_ACK_IE
#define KSZ9131_ICSR_LP_ACK_IE 0x0800 |
Definition at line 350 of file ksz9131_driver.h.
◆ KSZ9131_ICSR_LP_ACK_IF
#define KSZ9131_ICSR_LP_ACK_IF 0x0008 |
Definition at line 358 of file ksz9131_driver.h.
◆ KSZ9131_ICSR_PAGE_RECEIVED_IE
#define KSZ9131_ICSR_PAGE_RECEIVED_IE 0x2000 |
Definition at line 348 of file ksz9131_driver.h.
◆ KSZ9131_ICSR_PAGE_RECEIVED_IF
#define KSZ9131_ICSR_PAGE_RECEIVED_IF 0x0020 |
Definition at line 356 of file ksz9131_driver.h.
◆ KSZ9131_ICSR_PAR_DETECT_FAULT_IE
#define KSZ9131_ICSR_PAR_DETECT_FAULT_IE 0x1000 |
Definition at line 349 of file ksz9131_driver.h.
◆ KSZ9131_ICSR_PAR_DETECT_FAULT_IF
#define KSZ9131_ICSR_PAR_DETECT_FAULT_IF 0x0010 |
Definition at line 357 of file ksz9131_driver.h.
◆ KSZ9131_ICSR_RECEIVE_ERROR_IE
#define KSZ9131_ICSR_RECEIVE_ERROR_IE 0x4000 |
Definition at line 347 of file ksz9131_driver.h.
◆ KSZ9131_ICSR_RECEIVE_ERROR_IF
#define KSZ9131_ICSR_RECEIVE_ERROR_IF 0x0040 |
Definition at line 355 of file ksz9131_driver.h.
◆ KSZ9131_ICSR_REMOTE_FAULT_IE
#define KSZ9131_ICSR_REMOTE_FAULT_IE 0x0200 |
Definition at line 352 of file ksz9131_driver.h.
◆ KSZ9131_ICSR_REMOTE_FAULT_IF
#define KSZ9131_ICSR_REMOTE_FAULT_IF 0x0002 |
Definition at line 360 of file ksz9131_driver.h.
◆ KSZ9131_LDO_CTRL
#define KSZ9131_LDO_CTRL 0x1C, 0x0E |
Definition at line 166 of file ksz9131_driver.h.
◆ KSZ9131_LED_BEHAVIOR
#define KSZ9131_LED_BEHAVIOR 0x17 |
Definition at line 64 of file ksz9131_driver.h.
◆ KSZ9131_LED_BEHAVIOR_LED_ACT_OUT_SEL
#define KSZ9131_LED_BEHAVIOR_LED_ACT_OUT_SEL 0x4000 |
Definition at line 325 of file ksz9131_driver.h.
◆ KSZ9131_LED_BEHAVIOR_LED_BLINK_RATE
#define KSZ9131_LED_BEHAVIOR_LED_BLINK_RATE 0x0C00 |
Definition at line 327 of file ksz9131_driver.h.
◆ KSZ9131_LED_BEHAVIOR_LED_BLINK_RATE_10HZ
#define KSZ9131_LED_BEHAVIOR_LED_BLINK_RATE_10HZ 0x0800 |
Definition at line 330 of file ksz9131_driver.h.
◆ KSZ9131_LED_BEHAVIOR_LED_BLINK_RATE_20HZ
#define KSZ9131_LED_BEHAVIOR_LED_BLINK_RATE_20HZ 0x0C00 |
Definition at line 331 of file ksz9131_driver.h.
◆ KSZ9131_LED_BEHAVIOR_LED_BLINK_RATE_2_5HZ
#define KSZ9131_LED_BEHAVIOR_LED_BLINK_RATE_2_5HZ 0x0000 |
Definition at line 328 of file ksz9131_driver.h.
◆ KSZ9131_LED_BEHAVIOR_LED_BLINK_RATE_5HZ
#define KSZ9131_LED_BEHAVIOR_LED_BLINK_RATE_5HZ 0x0400 |
Definition at line 329 of file ksz9131_driver.h.
◆ KSZ9131_LED_BEHAVIOR_LED_COMBINATION_DIS
#define KSZ9131_LED_BEHAVIOR_LED_COMBINATION_DIS 0x0003 |
Definition at line 335 of file ksz9131_driver.h.
◆ KSZ9131_LED_BEHAVIOR_LED_COMBINATION_DIS_LED1
#define KSZ9131_LED_BEHAVIOR_LED_COMBINATION_DIS_LED1 0x0001 |
Definition at line 337 of file ksz9131_driver.h.
◆ KSZ9131_LED_BEHAVIOR_LED_COMBINATION_DIS_LED2
#define KSZ9131_LED_BEHAVIOR_LED_COMBINATION_DIS_LED2 0x0002 |
Definition at line 336 of file ksz9131_driver.h.
◆ KSZ9131_LED_BEHAVIOR_LED_PULSE_STRECH_EN
#define KSZ9131_LED_BEHAVIOR_LED_PULSE_STRECH_EN 0x0060 |
Definition at line 332 of file ksz9131_driver.h.
◆ KSZ9131_LED_BEHAVIOR_LED_PULSE_STRECH_EN_LED1
#define KSZ9131_LED_BEHAVIOR_LED_PULSE_STRECH_EN_LED1 0x0020 |
Definition at line 334 of file ksz9131_driver.h.
◆ KSZ9131_LED_BEHAVIOR_LED_PULSE_STRECH_EN_LED2
#define KSZ9131_LED_BEHAVIOR_LED_PULSE_STRECH_EN_LED2 0x0040 |
Definition at line 333 of file ksz9131_driver.h.
◆ KSZ9131_LED_BEHAVIOR_LED_PULSING_EN
#define KSZ9131_LED_BEHAVIOR_LED_PULSING_EN 0x1000 |
Definition at line 326 of file ksz9131_driver.h.
◆ KSZ9131_LED_MODE_SEL
#define KSZ9131_LED_MODE_SEL 0x16 |
Definition at line 63 of file ksz9131_driver.h.
◆ KSZ9131_LED_MODE_SEL_LED1_CONFIG
#define KSZ9131_LED_MODE_SEL_LED1_CONFIG 0x000F |
Definition at line 322 of file ksz9131_driver.h.
◆ KSZ9131_LED_MODE_SEL_LED2_CONFIG
#define KSZ9131_LED_MODE_SEL_LED2_CONFIG 0x00F0 |
Definition at line 321 of file ksz9131_driver.h.
◆ KSZ9131_LEGACY_LED_MODE
#define KSZ9131_LEGACY_LED_MODE 0x1A |
Definition at line 66 of file ksz9131_driver.h.
◆ KSZ9131_LEGACY_LED_MODE_KSZ9031_LED_MODE
#define KSZ9131_LEGACY_LED_MODE_KSZ9031_LED_MODE 0x4000 |
Definition at line 343 of file ksz9131_driver.h.
◆ KSZ9131_LINKMD
#define KSZ9131_LINKMD 0x12 |
Definition at line 60 of file ksz9131_driver.h.
◆ KSZ9131_LINKMD_FAULT_DATA
#define KSZ9131_LINKMD_FAULT_DATA 0x00FF |
Definition at line 314 of file ksz9131_driver.h.
◆ KSZ9131_LINKMD_PAIR
#define KSZ9131_LINKMD_PAIR 0x3000 |
Definition at line 303 of file ksz9131_driver.h.
◆ KSZ9131_LINKMD_PAIR_A
#define KSZ9131_LINKMD_PAIR_A 0x0000 |
Definition at line 304 of file ksz9131_driver.h.
◆ KSZ9131_LINKMD_PAIR_B
#define KSZ9131_LINKMD_PAIR_B 0x1000 |
Definition at line 305 of file ksz9131_driver.h.
◆ KSZ9131_LINKMD_PAIR_C
#define KSZ9131_LINKMD_PAIR_C 0x2000 |
Definition at line 306 of file ksz9131_driver.h.
◆ KSZ9131_LINKMD_PAIR_D
#define KSZ9131_LINKMD_PAIR_D 0x3000 |
Definition at line 307 of file ksz9131_driver.h.
◆ KSZ9131_LINKMD_SEL
#define KSZ9131_LINKMD_SEL 0x0C00 |
Definition at line 308 of file ksz9131_driver.h.
◆ KSZ9131_LINKMD_STATUS
#define KSZ9131_LINKMD_STATUS 0x0300 |
Definition at line 309 of file ksz9131_driver.h.
◆ KSZ9131_LINKMD_STATUS_NORMAL
#define KSZ9131_LINKMD_STATUS_NORMAL 0x0000 |
Definition at line 310 of file ksz9131_driver.h.
◆ KSZ9131_LINKMD_STATUS_OPEN
#define KSZ9131_LINKMD_STATUS_OPEN 0x0100 |
Definition at line 311 of file ksz9131_driver.h.
◆ KSZ9131_LINKMD_STATUS_SHORT
#define KSZ9131_LINKMD_STATUS_SHORT 0x0200 |
Definition at line 312 of file ksz9131_driver.h.
◆ KSZ9131_LINKMD_STATUS_TEST_FAILED
#define KSZ9131_LINKMD_STATUS_TEST_FAILED 0x0300 |
Definition at line 313 of file ksz9131_driver.h.
◆ KSZ9131_LINKMD_TEST_EN
#define KSZ9131_LINKMD_TEST_EN 0x8000 |
Definition at line 301 of file ksz9131_driver.h.
◆ KSZ9131_LINKMD_TX_DIS
#define KSZ9131_LINKMD_TX_DIS 0x4000 |
Definition at line 302 of file ksz9131_driver.h.
◆ KSZ9131_MDIO_DRIVE
#define KSZ9131_MDIO_DRIVE 0x19 |
Definition at line 65 of file ksz9131_driver.h.
◆ KSZ9131_MDIO_DRIVE_MDIO_DRIVE
#define KSZ9131_MDIO_DRIVE_MDIO_DRIVE 0x0002 |
Definition at line 340 of file ksz9131_driver.h.
◆ KSZ9131_MEAN_SLICER_ERROR
#define KSZ9131_MEAN_SLICER_ERROR 0x01, 0xE1 |
Definition at line 74 of file ksz9131_driver.h.
◆ KSZ9131_MMD31_REG19
#define KSZ9131_MMD31_REG19 0x1F, 0x13 |
Definition at line 170 of file ksz9131_driver.h.
◆ KSZ9131_MMDAADR
#define KSZ9131_MMDAADR 0x0E |
Definition at line 57 of file ksz9131_driver.h.
◆ KSZ9131_MMDACR
#define KSZ9131_MMDACR 0x0D |
Definition at line 56 of file ksz9131_driver.h.
◆ KSZ9131_MMDACR_DEVAD
#define KSZ9131_MMDACR_DEVAD 0x001F |
Definition at line 289 of file ksz9131_driver.h.
◆ KSZ9131_MMDACR_FUNC
#define KSZ9131_MMDACR_FUNC 0xC000 |
Definition at line 284 of file ksz9131_driver.h.
◆ KSZ9131_MMDACR_FUNC_ADDR
#define KSZ9131_MMDACR_FUNC_ADDR 0x0000 |
Definition at line 285 of file ksz9131_driver.h.
◆ KSZ9131_MMDACR_FUNC_DATA_NO_POST_INC
#define KSZ9131_MMDACR_FUNC_DATA_NO_POST_INC 0x4000 |
Definition at line 286 of file ksz9131_driver.h.
◆ KSZ9131_MMDACR_FUNC_DATA_POST_INC_RW
#define KSZ9131_MMDACR_FUNC_DATA_POST_INC_RW 0x8000 |
Definition at line 287 of file ksz9131_driver.h.
◆ KSZ9131_MMDACR_FUNC_DATA_POST_INC_W
#define KSZ9131_MMDACR_FUNC_DATA_POST_INC_W 0xC000 |
Definition at line 288 of file ksz9131_driver.h.
◆ KSZ9131_OP_MODE_STRAP
#define KSZ9131_OP_MODE_STRAP 0x02, 0x03 |
Definition at line 85 of file ksz9131_driver.h.
◆ KSZ9131_OP_MODE_STRAP_OVERRIDE
#define KSZ9131_OP_MODE_STRAP_OVERRIDE 0x02, 0x02 |
Definition at line 84 of file ksz9131_driver.h.
◆ KSZ9131_PCS_CTRL1
#define KSZ9131_PCS_CTRL1 0x03, 0x00 |
Definition at line 144 of file ksz9131_driver.h.
◆ KSZ9131_PCS_STAT1
#define KSZ9131_PCS_STAT1 0x03, 0x01 |
Definition at line 145 of file ksz9131_driver.h.
◆ KSZ9131_PHY_ADDR
#define KSZ9131_PHY_ADDR 3 |
Definition at line 39 of file ksz9131_driver.h.
◆ KSZ9131_PHYCON
#define KSZ9131_PHYCON 0x1F |
Definition at line 71 of file ksz9131_driver.h.
◆ KSZ9131_PHYCON_1000BT_MS_STATUS
#define KSZ9131_PHYCON_1000BT_MS_STATUS 0x0004 |
Definition at line 384 of file ksz9131_driver.h.
◆ KSZ9131_PHYCON_DUPLEX_STATUS
#define KSZ9131_PHYCON_DUPLEX_STATUS 0x0008 |
Definition at line 383 of file ksz9131_driver.h.
◆ KSZ9131_PHYCON_INT_POL_INVERT
#define KSZ9131_PHYCON_INT_POL_INVERT 0x4000 |
Definition at line 377 of file ksz9131_driver.h.
◆ KSZ9131_PHYCON_JABBER_EN
#define KSZ9131_PHYCON_JABBER_EN 0x0200 |
Definition at line 378 of file ksz9131_driver.h.
◆ KSZ9131_PHYCON_LINK_STATUS_CHECK_FAIL
#define KSZ9131_PHYCON_LINK_STATUS_CHECK_FAIL 0x0001 |
Definition at line 386 of file ksz9131_driver.h.
◆ KSZ9131_PHYCON_SOFT_RESET
#define KSZ9131_PHYCON_SOFT_RESET 0x0002 |
Definition at line 385 of file ksz9131_driver.h.
◆ KSZ9131_PHYCON_SPEED_1000BT
#define KSZ9131_PHYCON_SPEED_1000BT 0x0040 |
Definition at line 380 of file ksz9131_driver.h.
◆ KSZ9131_PHYCON_SPEED_100BTX
#define KSZ9131_PHYCON_SPEED_100BTX 0x0020 |
Definition at line 381 of file ksz9131_driver.h.
◆ KSZ9131_PHYCON_SPEED_10BT
#define KSZ9131_PHYCON_SPEED_10BT 0x0010 |
Definition at line 382 of file ksz9131_driver.h.
◆ KSZ9131_PHYCON_SQE_TEST_EN
#define KSZ9131_PHYCON_SQE_TEST_EN 0x0100 |
Definition at line 379 of file ksz9131_driver.h.
◆ KSZ9131_PHYID1
#define KSZ9131_PHYID1 0x02 |
Definition at line 47 of file ksz9131_driver.h.
◆ KSZ9131_PHYID1_PHY_ID_MSB
#define KSZ9131_PHYID1_PHY_ID_MSB 0xFFFF |
Definition at line 203 of file ksz9131_driver.h.
◆ KSZ9131_PHYID1_PHY_ID_MSB_DEFAULT
#define KSZ9131_PHYID1_PHY_ID_MSB_DEFAULT 0x0022 |
Definition at line 204 of file ksz9131_driver.h.
◆ KSZ9131_PHYID2
#define KSZ9131_PHYID2 0x03 |
Definition at line 48 of file ksz9131_driver.h.
◆ KSZ9131_PHYID2_MODEL_NUM
#define KSZ9131_PHYID2_MODEL_NUM 0x03F0 |
Definition at line 209 of file ksz9131_driver.h.
◆ KSZ9131_PHYID2_MODEL_NUM_DEFAULT
#define KSZ9131_PHYID2_MODEL_NUM_DEFAULT 0x0240 |
Definition at line 210 of file ksz9131_driver.h.
◆ KSZ9131_PHYID2_PHY_ID_LSB
#define KSZ9131_PHYID2_PHY_ID_LSB 0xFC00 |
Definition at line 207 of file ksz9131_driver.h.
◆ KSZ9131_PHYID2_PHY_ID_LSB_DEFAULT
#define KSZ9131_PHYID2_PHY_ID_LSB_DEFAULT 0x1400 |
Definition at line 208 of file ksz9131_driver.h.
◆ KSZ9131_PHYID2_REVISION_NUM
#define KSZ9131_PHYID2_REVISION_NUM 0x000F |
Definition at line 211 of file ksz9131_driver.h.
◆ KSZ9131_RGMII_RX_DATA_PAD_SKEW
#define KSZ9131_RGMII_RX_DATA_PAD_SKEW 0x02, 0x05 |
Definition at line 87 of file ksz9131_driver.h.
◆ KSZ9131_RGMII_TX_DATA_PAD_SKEW
#define KSZ9131_RGMII_TX_DATA_PAD_SKEW 0x02, 0x06 |
Definition at line 88 of file ksz9131_driver.h.
◆ KSZ9131_RLB
#define KSZ9131_RLB 0x11 |
Definition at line 59 of file ksz9131_driver.h.
◆ KSZ9131_RLB_REMOTE_LOOPBACK
#define KSZ9131_RLB_REMOTE_LOOPBACK 0x0100 |
Definition at line 298 of file ksz9131_driver.h.
◆ KSZ9131_RX_DLL_CTRL
#define KSZ9131_RX_DLL_CTRL 0x02, 0x4C |
Definition at line 142 of file ksz9131_driver.h.
◆ KSZ9131_RX_DLL_CTRL_BYPASS_RXDLL
#define KSZ9131_RX_DLL_CTRL_BYPASS_RXDLL 0x1000 |
Definition at line 391 of file ksz9131_driver.h.
◆ KSZ9131_RX_DLL_CTRL_RXDLL_RESET
#define KSZ9131_RX_DLL_CTRL_RXDLL_RESET 0x2000 |
Definition at line 390 of file ksz9131_driver.h.
◆ KSZ9131_RX_DLL_CTRL_RXDLL_TAP_ADJ
#define KSZ9131_RX_DLL_CTRL_RXDLL_TAP_ADJ 0x003F |
Definition at line 394 of file ksz9131_driver.h.
◆ KSZ9131_RX_DLL_CTRL_RXDLL_TAP_ADJ_DEFAULT
#define KSZ9131_RX_DLL_CTRL_RXDLL_TAP_ADJ_DEFAULT 0x0011 |
Definition at line 395 of file ksz9131_driver.h.
◆ KSZ9131_RX_DLL_CTRL_RXDLL_TAP_SEL
#define KSZ9131_RX_DLL_CTRL_RXDLL_TAP_SEL 0x0FC0 |
Definition at line 392 of file ksz9131_driver.h.
◆ KSZ9131_RX_DLL_CTRL_RXDLL_TAP_SEL_DEFAULT
#define KSZ9131_RX_DLL_CTRL_RXDLL_TAP_SEL_DEFAULT 0x06C0 |
Definition at line 393 of file ksz9131_driver.h.
◆ KSZ9131_RX_DLL_CTRL_RXDLL_TUNE_DIS
#define KSZ9131_RX_DLL_CTRL_RXDLL_TUNE_DIS 0x4000 |
Definition at line 389 of file ksz9131_driver.h.
◆ KSZ9131_RXERCTR
#define KSZ9131_RXERCTR 0x15 |
Definition at line 62 of file ksz9131_driver.h.
◆ KSZ9131_SELF_TEST_BAD_SFD_COUNT_HI
#define KSZ9131_SELF_TEST_BAD_SFD_COUNT_HI 0x02, 0x41 |
Definition at line 141 of file ksz9131_driver.h.
◆ KSZ9131_SELF_TEST_BAD_SFD_COUNT_LO
#define KSZ9131_SELF_TEST_BAD_SFD_COUNT_LO 0x02, 0x40 |
Definition at line 140 of file ksz9131_driver.h.
◆ KSZ9131_SELF_TEST_CORRECT_COUNT_HI
#define KSZ9131_SELF_TEST_CORRECT_COUNT_HI 0x02, 0x3D |
Definition at line 137 of file ksz9131_driver.h.
◆ KSZ9131_SELF_TEST_CORRECT_COUNT_LO
#define KSZ9131_SELF_TEST_CORRECT_COUNT_LO 0x02, 0x3C |
Definition at line 136 of file ksz9131_driver.h.
◆ KSZ9131_SELF_TEST_EN
#define KSZ9131_SELF_TEST_EN 0x02, 0x0E |
Definition at line 95 of file ksz9131_driver.h.
◆ KSZ9131_SELF_TEST_ERROR_COUNT_HI
#define KSZ9131_SELF_TEST_ERROR_COUNT_HI 0x02, 0x3F |
Definition at line 139 of file ksz9131_driver.h.
◆ KSZ9131_SELF_TEST_ERROR_COUNT_LO
#define KSZ9131_SELF_TEST_ERROR_COUNT_LO 0x02, 0x3E |
Definition at line 138 of file ksz9131_driver.h.
◆ KSZ9131_SELF_TEST_FRAME_COUNT_EN
#define KSZ9131_SELF_TEST_FRAME_COUNT_EN 0x02, 0x0C |
Definition at line 93 of file ksz9131_driver.h.
◆ KSZ9131_SELF_TEST_PGEN_EN
#define KSZ9131_SELF_TEST_PGEN_EN 0x02, 0x0D |
Definition at line 94 of file ksz9131_driver.h.
◆ KSZ9131_SELF_TEST_PKT_COUNT_HI
#define KSZ9131_SELF_TEST_PKT_COUNT_HI 0x02, 0x0A |
Definition at line 91 of file ksz9131_driver.h.
◆ KSZ9131_SELF_TEST_PKT_COUNT_LO
#define KSZ9131_SELF_TEST_PKT_COUNT_LO 0x02, 0x09 |
Definition at line 90 of file ksz9131_driver.h.
◆ KSZ9131_SELF_TEST_STAT
#define KSZ9131_SELF_TEST_STAT 0x02, 0x0B |
Definition at line 92 of file ksz9131_driver.h.
◆ KSZ9131_SPDC
#define KSZ9131_SPDC 0x1D |
Definition at line 69 of file ksz9131_driver.h.
◆ KSZ9131_SPDC_CLK_GATE_OVERRIDE
#define KSZ9131_SPDC_CLK_GATE_OVERRIDE 0x0800 |
Definition at line 368 of file ksz9131_driver.h.
◆ KSZ9131_SPDC_IO_DC_TEST_EN
#define KSZ9131_SPDC_IO_DC_TEST_EN 0x0080 |
Definition at line 370 of file ksz9131_driver.h.
◆ KSZ9131_SPDC_PLL_DIS
#define KSZ9131_SPDC_PLL_DIS 0x0400 |
Definition at line 369 of file ksz9131_driver.h.
◆ KSZ9131_SPDC_VOH
#define KSZ9131_SPDC_VOH 0x0040 |
Definition at line 371 of file ksz9131_driver.h.
◆ KSZ9131_STRAP_STAT
#define KSZ9131_STRAP_STAT 0x02, 0x01 |
Definition at line 83 of file ksz9131_driver.h.
◆ KSZ9131_TX_DLL_CTRL
#define KSZ9131_TX_DLL_CTRL 0x02, 0x4D |
Definition at line 143 of file ksz9131_driver.h.
◆ KSZ9131_TX_DLL_CTRL_BYPASS_TXDLL
#define KSZ9131_TX_DLL_CTRL_BYPASS_TXDLL 0x1000 |
Definition at line 400 of file ksz9131_driver.h.
◆ KSZ9131_TX_DLL_CTRL_TXDLL_RESET
#define KSZ9131_TX_DLL_CTRL_TXDLL_RESET 0x2000 |
Definition at line 399 of file ksz9131_driver.h.
◆ KSZ9131_TX_DLL_CTRL_TXDLL_TAP_ADJ
#define KSZ9131_TX_DLL_CTRL_TXDLL_TAP_ADJ 0x003F |
Definition at line 403 of file ksz9131_driver.h.
◆ KSZ9131_TX_DLL_CTRL_TXDLL_TAP_ADJ_DEFAULT
#define KSZ9131_TX_DLL_CTRL_TXDLL_TAP_ADJ_DEFAULT 0x0011 |
Definition at line 404 of file ksz9131_driver.h.
◆ KSZ9131_TX_DLL_CTRL_TXDLL_TAP_SEL
#define KSZ9131_TX_DLL_CTRL_TXDLL_TAP_SEL 0x0FC0 |
Definition at line 401 of file ksz9131_driver.h.
◆ KSZ9131_TX_DLL_CTRL_TXDLL_TAP_SEL_DEFAULT
#define KSZ9131_TX_DLL_CTRL_TXDLL_TAP_SEL_DEFAULT 0x0440 |
Definition at line 402 of file ksz9131_driver.h.
◆ KSZ9131_TX_DLL_CTRL_TXDLL_TUNE_DIS
#define KSZ9131_TX_DLL_CTRL_TXDLL_TUNE_DIS 0x4000 |
Definition at line 398 of file ksz9131_driver.h.
◆ KSZ9131_WOL_CTRL
#define KSZ9131_WOL_CTRL 0x02, 0x10 |
Definition at line 96 of file ksz9131_driver.h.
◆ KSZ9131_WOL_CTRL_STAT
#define KSZ9131_WOL_CTRL_STAT 0x02, 0x2C |
Definition at line 124 of file ksz9131_driver.h.
◆ KSZ9131_WOL_CUSTOM_PKT_RECEIVE_STAT
#define KSZ9131_WOL_CUSTOM_PKT_RECEIVE_STAT 0x02, 0x2D |
Definition at line 125 of file ksz9131_driver.h.
◆ KSZ9131_WOL_DATA_MODULE_STAT
#define KSZ9131_WOL_DATA_MODULE_STAT 0x02, 0x2F |
Definition at line 127 of file ksz9131_driver.h.
◆ KSZ9131_WOL_MAC_HI
#define KSZ9131_WOL_MAC_HI 0x02, 0x13 |
Definition at line 99 of file ksz9131_driver.h.
◆ KSZ9131_WOL_MAC_LO
#define KSZ9131_WOL_MAC_LO 0x02, 0x11 |
Definition at line 97 of file ksz9131_driver.h.
◆ KSZ9131_WOL_MAC_MI
#define KSZ9131_WOL_MAC_MI 0x02, 0x12 |
Definition at line 98 of file ksz9131_driver.h.
◆ KSZ9131_WOL_MAGIC_PKT_RECEIVE_STAT
#define KSZ9131_WOL_MAGIC_PKT_RECEIVE_STAT 0x02, 0x2E |
Definition at line 126 of file ksz9131_driver.h.
◆ KSZ9131_XTAL_CTRL
#define KSZ9131_XTAL_CTRL 0x1C, 0x01 |
Definition at line 164 of file ksz9131_driver.h.
Function Documentation
◆ ksz9131DisableIrq()
void ksz9131DisableIrq | ( | NetInterface * | interface | ) |
Disable interrupts.
- Parameters
-
[in] interface Underlying network interface
Definition at line 187 of file ksz9131_driver.c.
◆ ksz9131DumpPhyReg()
void ksz9131DumpPhyReg | ( | NetInterface * | interface | ) |
Dump PHY registers for debugging purpose.
- Parameters
-
[in] interface Underlying network interface
Definition at line 330 of file ksz9131_driver.c.
◆ ksz9131EnableIrq()
void ksz9131EnableIrq | ( | NetInterface * | interface | ) |
Enable interrupts.
- Parameters
-
[in] interface Underlying network interface
Definition at line 172 of file ksz9131_driver.c.
◆ ksz9131EventHandler()
void ksz9131EventHandler | ( | NetInterface * | interface | ) |
KSZ9131 event handler.
- Parameters
-
[in] interface Underlying network interface
Definition at line 202 of file ksz9131_driver.c.
◆ ksz9131Init()
error_t ksz9131Init | ( | NetInterface * | interface | ) |
KSZ9131 PHY transceiver initialization.
- Parameters
-
[in] interface Underlying network interface
- Returns
- Error code
Definition at line 60 of file ksz9131_driver.c.
◆ ksz9131InitHook()
void ksz9131InitHook | ( | NetInterface * | interface | ) |
KSZ9131 custom configuration.
- Parameters
-
[in] interface Underlying network interface
Definition at line 117 of file ksz9131_driver.c.
◆ ksz9131ReadMmdReg()
uint16_t ksz9131ReadMmdReg | ( | 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 382 of file ksz9131_driver.c.
◆ ksz9131ReadPhyReg()
uint16_t ksz9131ReadPhyReg | ( | 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 304 of file ksz9131_driver.c.
◆ ksz9131Tick()
void ksz9131Tick | ( | NetInterface * | interface | ) |
KSZ9131 timer handler.
- Parameters
-
[in] interface Underlying network interface
Definition at line 134 of file ksz9131_driver.c.
◆ ksz9131WriteMmdReg()
void ksz9131WriteMmdReg | ( | 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 355 of file ksz9131_driver.c.
◆ ksz9131WritePhyReg()
void ksz9131WritePhyReg | ( | 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 280 of file ksz9131_driver.c.
Variable Documentation
◆ ksz9131PhyDriver
|
extern |
KSZ9131 Ethernet PHY driver.
Definition at line 44 of file ksz9131_driver.c.