ics1894_driver.h File Reference

ICS1894-32 Ethernet PHY driver. More...

#include "core/nic.h"

Go to the source code of this file.

Macros

#define ICS1894_PHY_ADDR   5
 
#define ICS1894_BMCR   0x00
 
#define ICS1894_BMSR   0x01
 
#define ICS1894_PHYID1   0x02
 
#define ICS1894_PHYID2   0x03
 
#define ICS1894_ANAR   0x04
 
#define ICS1894_ANLPAR   0x05
 
#define ICS1894_ANER   0x06
 
#define ICS1894_ANNPT   0x07
 
#define ICS1894_ANNPLPAR   0x08
 
#define ICS1894_ECR1   0x10
 
#define ICS1894_QPDSR   0x11
 
#define ICS1894_10BT_OP   0x12
 
#define ICS1894_ECR2   0x13
 
#define ICS1894_ECR3   0x14
 
#define ICS1894_ECR4   0x15
 
#define ICS1894_ECR5   0x16
 
#define ICS1894_ECR6   0x17
 
#define ICS1894_ECR7   0x18
 
#define ICS1894_BMCR_RESET   0x8000
 
#define ICS1894_BMCR_LOOPBACK   0x4000
 
#define ICS1894_BMCR_SPEED_SEL   0x2000
 
#define ICS1894_BMCR_AN_EN   0x1000
 
#define ICS1894_BMCR_POWER_DOWN   0x0800
 
#define ICS1894_BMCR_ISOLATE   0x0400
 
#define ICS1894_BMCR_RESTART_AN   0x0200
 
#define ICS1894_BMCR_DUPLEX_MODE   0x0100
 
#define ICS1894_BMCR_COL_TEST   0x0080
 
#define ICS1894_BMSR_100BT4   0x8000
 
#define ICS1894_BMSR_100BTX_FD   0x4000
 
#define ICS1894_BMSR_100BTX_HD   0x2000
 
#define ICS1894_BMSR_10BT_FD   0x1000
 
#define ICS1894_BMSR_10BT_HD   0x0800
 
#define ICS1894_BMSR_MF_PREAMBLE_SUPPR   0x0040
 
#define ICS1894_BMSR_AN_COMPLETE   0x0020
 
#define ICS1894_BMSR_REMOTE_FAULT   0x0010
 
#define ICS1894_BMSR_AN_CAPABLE   0x0008
 
#define ICS1894_BMSR_LINK_STATUS   0x0004
 
#define ICS1894_BMSR_JABBER_DETECT   0x0002
 
#define ICS1894_BMSR_EXTENDED_CAPABLE   0x0001
 
#define ICS1894_PHYID1_OUI_MSB   0xFFFF
 
#define ICS1894_PHYID1_OUI_MSB_DEFAULT   0x0015
 
#define ICS1894_PHYID2_OUI_LSB   0xFC00
 
#define ICS1894_PHYID2_OUI_LSB_DEFAULT   0xF400
 
#define ICS1894_PHYID2_MODEL_NUM   0x03F0
 
#define ICS1894_PHYID2_MODEL_NUM_DEFAULT   0x0050
 
#define ICS1894_PHYID2_REVISION_NUM   0x000F
 
#define ICS1894_PHYID2_REVISION_NUM_DEFAULT   0x0000
 
#define ICS1894_ANAR_NEXT_PAGE   0x8000
 
#define ICS1894_ANAR_REMOTE_FAULT   0x2000
 
#define ICS1894_ANAR_100BT4   0x0200
 
#define ICS1894_ANAR_100BTX_FD   0x0100
 
#define ICS1894_ANAR_100BTX_HD   0x0080
 
#define ICS1894_ANAR_10BT_FD   0x0040
 
#define ICS1894_ANAR_10BT_HD   0x0020
 
#define ICS1894_ANAR_SELECTOR   0x001F
 
#define ICS1894_ANAR_SELECTOR_DEFAULT   0x0001
 
#define ICS1894_ANLPAR_NEXT_PAGE   0x8000
 
#define ICS1894_ANLPAR_ACK   0x4000
 
#define ICS1894_ANLPAR_REMOTE_FAULT   0x2000
 
#define ICS1894_ANLPAR_100BT4   0x0200
 
#define ICS1894_ANLPAR_100BTX_FD   0x0100
 
#define ICS1894_ANLPAR_100BTX_HD   0x0080
 
#define ICS1894_ANLPAR_10BT_FD   0x0040
 
#define ICS1894_ANLPAR_10BT_HD   0x0020
 
#define ICS1894_ANLPAR_SELECTOR   0x001F
 
#define ICS1894_ANER_PAR_DETECT_FAULT   0x0010
 
#define ICS1894_ANER_LP_NEXT_PAGE_ABLE   0x0008
 
#define ICS1894_ANER_NEXT_PAGE_ABLE   0x0004
 
#define ICS1894_ANER_PAGE_RECEIVED   0x0002
 
#define ICS1894_ANER_LP_AN_ABLE   0x0001
 
#define ICS1894_ANNPT_NEXT_PAGE   0x8000
 
#define ICS1894_ANNPT_MSG_PAGE   0x2000
 
#define ICS1894_ANNPT_ACK2   0x1000
 
#define ICS1894_ANNPT_TOGGLE   0x0800
 
#define ICS1894_ANNPT_MESSAGE   0x07FF
 
#define ICS1894_ANNPLPAR_NEXT_PAGE   0x8000
 
#define ICS1894_ANNPLPAR_MSG_PAGE   0x2000
 
#define ICS1894_ANNPLPAR_ACK2   0x1000
 
#define ICS1894_ANNPLPAR_TOGGLE   0x0800
 
#define ICS1894_ANNPLPAR_MESSAGE   0x07FF
 
#define ICS1894_ECR1_CMD_OVERRIDE_WR_EN   0x8000
 
#define ICS1894_ECR1_PHY_ADDR   0x07C0
 
#define ICS1894_ECR1_STREAM_CIPHER_TEST_MODE   0x0020
 
#define ICS1894_ECR1_NRZ_NRZI_ENCODING   0x0008
 
#define ICS1894_ECR1_TRANSMIT_INVALID_CODES   0x0004
 
#define ICS1894_ECR1_STREAM_CIPHER_DIS   0x0001
 
#define ICS1894_QPDSR_DATA_RATE   0x8000
 
#define ICS1894_QPDSR_DATA_RATE_10MBPS   0x0000
 
#define ICS1894_QPDSR_DATA_RATE_100MBPS   0x8000
 
#define ICS1894_QPDSR_DUPLEX   0x4000
 
#define ICS1894_QPDSR_DUPLEX_HD   0x0000
 
#define ICS1894_QPDSR_DUPLEX_FD   0x4000
 
#define ICS1894_QPDSR_AN_PROGRESS_MONITOR   0x3800
 
#define ICS1894_QPDSR_100BTX_SIGNAL_LOST   0x0400
 
#define ICS1894_QPDSR_100_PLL_LOCK_ERROR   0x0200
 
#define ICS1894_QPDSR_FALSE_CARRIER_DETECT   0x0100
 
#define ICS1894_QPDSR_INVALID_SYMBOL_DETECT   0x0080
 
#define ICS1894_QPDSR_HALT_SYMBOL_DETECT   0x0040
 
#define ICS1894_QPDSR_PREMATURE_END_DETECT   0x0020
 
#define ICS1894_QPDSR_AN_COMPLETE   0x0010
 
#define ICS1894_QPDSR_100BTX_SIGNAL_DETECT   0x0008
 
#define ICS1894_QPDSR_JABBER_DETECT   0x0004
 
#define ICS1894_QPDSR_REMOTE_FAULT   0x0002
 
#define ICS1894_QPDSR_LINK_STATUS   0x0001
 
#define ICS1894_10BT_OP_REMOTE_JABBER_DETECT   0x8000
 
#define ICS1894_10BT_OP_POLARITY_REV   0x4000
 
#define ICS1894_10BT_OP_DATA_BUS_MODE   0x3000
 
#define ICS1894_10BT_OP_DATA_BUS_MODE_MII   0x0000
 
#define ICS1894_10BT_OP_DATA_BUS_MODE_SI   0x1000
 
#define ICS1894_10BT_OP_DATA_BUS_MODE_RMII   0x2000
 
#define ICS1894_10BT_OP_AMDIXEN   0x0800
 
#define ICS1894_10BT_OP_RXTRI   0x0400
 
#define ICS1894_10BT_OP_REGEN   0x0200
 
#define ICS1894_10BT_OP_TM_SWITCH   0x0100
 
#define ICS1894_10BT_OP_JABBER_INHIBIT   0x0020
 
#define ICS1894_10BT_OP_AUTO_POLARITY_INHIBIT   0x0008
 
#define ICS1894_10BT_OP_SQE_TEST_INHIBIT   0x0004
 
#define ICS1894_10BT_OP_LINK_LOSS_INHIBIT   0x0002
 
#define ICS1894_10BT_OP_SQUELCH_INHIBIT   0x0001
 
#define ICS1894_ECR2_NODE_MODE   0x8000
 
#define ICS1894_ECR2_HW_SW_MODE_SPEED_SEL   0x4000
 
#define ICS1894_ECR2_REMOTE_FAULT   0x2000
 
#define ICS1894_ECR2_REGISTER_BANK_SEL   0x1800
 
#define ICS1894_ECR2_AMDIX_EN   0x0200
 
#define ICS1894_ECR2_MDI_MODE   0x0100
 
#define ICS1894_ECR2_TPTRI   0x0080
 
#define ICS1894_ECR2_AUTO_100BTX_PD   0x0001
 
#define ICS1894_ECR3_STR_ENHANCE   0x8000
 
#define ICS1894_ECR3_FAST_OFF   0x4000
 
#define ICS1894_ECR3_LED4_MODE   0x3000
 
#define ICS1894_ECR3_LED4_MODE_RX   0x0000
 
#define ICS1894_ECR3_LED4_MODE_COL   0x1000
 
#define ICS1894_ECR3_LED4_MODE_FD   0x2000
 
#define ICS1894_ECR3_LED4_MODE_OFF   0x3000
 
#define ICS1894_ECR3_LED3_MODE   0x0E00
 
#define ICS1894_ECR3_LED3_MODE_LINK   0x0000
 
#define ICS1894_ECR3_LED3_MODE_ACT   0x0200
 
#define ICS1894_ECR3_LED3_MODE_TX   0x0400
 
#define ICS1894_ECR3_LED3_MODE_RX   0x0600
 
#define ICS1894_ECR3_LED3_MODE_COL   0x0800
 
#define ICS1894_ECR3_LED3_MODE_100_10   0x0A00
 
#define ICS1894_ECR3_LED3_MODE_FD   0x0C00
 
#define ICS1894_ECR3_LED3_MODE_OFF   0x0E00
 
#define ICS1894_ECR3_LED2_MODE   0x01C0
 
#define ICS1894_ECR3_LED2_MODE_LINK   0x0000
 
#define ICS1894_ECR3_LED2_MODE_ACT   0x0040
 
#define ICS1894_ECR3_LED2_MODE_TX   0x0080
 
#define ICS1894_ECR3_LED2_MODE_RX   0x00C0
 
#define ICS1894_ECR3_LED2_MODE_COL   0x0100
 
#define ICS1894_ECR3_LED2_MODE_100_10   0x0140
 
#define ICS1894_ECR3_LED2_MODE_FD   0x0180
 
#define ICS1894_ECR3_LED2_MODE_OFF   0x01C0
 
#define ICS1894_ECR3_LED1_MODE   0x0038
 
#define ICS1894_ECR3_LED1_MODE_LINK   0x0000
 
#define ICS1894_ECR3_LED1_MODE_ACT   0x0008
 
#define ICS1894_ECR3_LED1_MODE_TX   0x0010
 
#define ICS1894_ECR3_LED1_MODE_RX   0x0018
 
#define ICS1894_ECR3_LED1_MODE_COL   0x0020
 
#define ICS1894_ECR3_LED1_MODE_100_10   0x0028
 
#define ICS1894_ECR3_LED1_MODE_FD   0x0030
 
#define ICS1894_ECR3_LED1_MODE_OFF   0x0038
 
#define ICS1894_ECR3_LED0_MODE   0x0007
 
#define ICS1894_ECR3_LED0_MODE_LINK   0x0000
 
#define ICS1894_ECR3_LED0_MODE_ACT   0x0001
 
#define ICS1894_ECR3_LED0_MODE_TX   0x0002
 
#define ICS1894_ECR3_LED0_MODE_RX   0x0003
 
#define ICS1894_ECR3_LED0_MODE_COL   0x0004
 
#define ICS1894_ECR3_LED0_MODE_100_10   0x0005
 
#define ICS1894_ECR3_LED0_MODE_FD   0x0006
 
#define ICS1894_ECR3_LED0_MODE_LINK_STAT   0x0007
 
#define ICS1894_ECR4_RXER_CNT   0xFFFF
 
#define ICS1894_ECR5_INT_OUT_EN   0x8000
 
#define ICS1894_ECR5_INT_FLAG_RD_CLEAR_EN   0x4000
 
#define ICS1894_ECR5_Int_pol   0x2000
 
#define ICS1894_ECR5_INT_FLAG_AUTO_CLEAR_EN   0x1000
 
#define ICS1894_ECR5_INT_FLAG_RE_SETUP_EN   0x0800
 
#define ICS1894_ECR5_DPD_WU_INT_EN   0x0400
 
#define ICS1894_ECR5_DPD_INT_EN   0x0200
 
#define ICS1894_ECR5_AN_COMPLETE_INT_EN   0x0100
 
#define ICS1894_ECR5_JABBER_INT_EN   0x0080
 
#define ICS1894_ECR5_RX_ERROR_INT_EN   0x0040
 
#define ICS1894_ECR5_PAGE_RECEIVED_INT_EN   0x0020
 
#define ICS1894_ECR5_PAR_DETECT_FAULT_INT_EN   0x0010
 
#define ICS1894_ECR5_LP_ACK_INT_EN   0x0008
 
#define ICS1894_ECR5_LINK_DOWN_INT_EN   0x0004
 
#define ICS1894_ECR5_REMOTE_FAULT_INT_EN   0x0002
 
#define ICS1894_ECR5_LINK_UP_INT_EN   0x0001
 
#define ICS1894_ECR6_DPD_WU_INT   0x0400
 
#define ICS1894_ECR6_DPD_INT   0x0200
 
#define ICS1894_ECR6_AN_COMPLETE_INT   0x0100
 
#define ICS1894_ECR6_JABBER_INT   0x0080
 
#define ICS1894_ECR6_RX_ERROR_INT   0x0040
 
#define ICS1894_ECR6_PAGE_RECEIVED_INT   0x0020
 
#define ICS1894_ECR6_PAR_DETECT_FAULT_INT   0x0010
 
#define ICS1894_ECR6_LP_ACK_INT   0x0008
 
#define ICS1894_ECR6_LINK_DOWN_INT   0x0004
 
#define ICS1894_ECR6_REMOTE_FAULT_INT   0x0002
 
#define ICS1894_ECR6_LINK_UP_INT   0x0001
 
#define ICS1894_ECR7_FIFO_HALF   0xF000
 
#define ICS1894_ECR7_DPD_EN   0x0100
 
#define ICS1894_ECR7_TPLL_10_100_DPD_EN   0x0080
 
#define ICS1894_ECR7_RX_100_DPD_EN   0x0040
 
#define ICS1894_ECR7_ADMIX_TX_DPD_EN   0x0020
 
#define ICS1894_ECR7_CDR_100_CDR_DPD_EN   0x0010
 

Functions

error_t ics1894Init (NetInterface *interface)
 ICS1894 PHY transceiver initialization. More...
 
void ics1894InitHook (NetInterface *interface)
 ICS1894 custom configuration. More...
 
void ics1894Tick (NetInterface *interface)
 ICS1894 timer handler. More...
 
void ics1894EnableIrq (NetInterface *interface)
 Enable interrupts. More...
 
void ics1894DisableIrq (NetInterface *interface)
 Disable interrupts. More...
 
void ics1894EventHandler (NetInterface *interface)
 ICS1894 event handler. More...
 
void ics1894WritePhyReg (NetInterface *interface, uint8_t address, uint16_t data)
 Write PHY register. More...
 
uint16_t ics1894ReadPhyReg (NetInterface *interface, uint8_t address)
 Read PHY register. More...
 
void ics1894DumpPhyReg (NetInterface *interface)
 Dump PHY registers for debugging purpose. More...
 

Variables

const PhyDriver ics1894PhyDriver
 ICS1894 Ethernet PHY driver. More...
 

Detailed Description

ICS1894-32 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.

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

Definition in file ics1894_driver.h.

Macro Definition Documentation

◆ ICS1894_10BT_OP

#define ICS1894_10BT_OP   0x12

Definition at line 56 of file ics1894_driver.h.

◆ ICS1894_10BT_OP_AMDIXEN

#define ICS1894_10BT_OP_AMDIXEN   0x0800

Definition at line 179 of file ics1894_driver.h.

◆ ICS1894_10BT_OP_AUTO_POLARITY_INHIBIT

#define ICS1894_10BT_OP_AUTO_POLARITY_INHIBIT   0x0008

Definition at line 184 of file ics1894_driver.h.

◆ ICS1894_10BT_OP_DATA_BUS_MODE

#define ICS1894_10BT_OP_DATA_BUS_MODE   0x3000

Definition at line 175 of file ics1894_driver.h.

◆ ICS1894_10BT_OP_DATA_BUS_MODE_MII

#define ICS1894_10BT_OP_DATA_BUS_MODE_MII   0x0000

Definition at line 176 of file ics1894_driver.h.

◆ ICS1894_10BT_OP_DATA_BUS_MODE_RMII

#define ICS1894_10BT_OP_DATA_BUS_MODE_RMII   0x2000

Definition at line 178 of file ics1894_driver.h.

◆ ICS1894_10BT_OP_DATA_BUS_MODE_SI

#define ICS1894_10BT_OP_DATA_BUS_MODE_SI   0x1000

Definition at line 177 of file ics1894_driver.h.

◆ ICS1894_10BT_OP_JABBER_INHIBIT

#define ICS1894_10BT_OP_JABBER_INHIBIT   0x0020

Definition at line 183 of file ics1894_driver.h.

◆ ICS1894_10BT_OP_LINK_LOSS_INHIBIT

#define ICS1894_10BT_OP_LINK_LOSS_INHIBIT   0x0002

Definition at line 186 of file ics1894_driver.h.

◆ ICS1894_10BT_OP_POLARITY_REV

#define ICS1894_10BT_OP_POLARITY_REV   0x4000

Definition at line 174 of file ics1894_driver.h.

◆ ICS1894_10BT_OP_REGEN

#define ICS1894_10BT_OP_REGEN   0x0200

Definition at line 181 of file ics1894_driver.h.

◆ ICS1894_10BT_OP_REMOTE_JABBER_DETECT

#define ICS1894_10BT_OP_REMOTE_JABBER_DETECT   0x8000

Definition at line 173 of file ics1894_driver.h.

◆ ICS1894_10BT_OP_RXTRI

#define ICS1894_10BT_OP_RXTRI   0x0400

Definition at line 180 of file ics1894_driver.h.

◆ ICS1894_10BT_OP_SQE_TEST_INHIBIT

#define ICS1894_10BT_OP_SQE_TEST_INHIBIT   0x0004

Definition at line 185 of file ics1894_driver.h.

◆ ICS1894_10BT_OP_SQUELCH_INHIBIT

#define ICS1894_10BT_OP_SQUELCH_INHIBIT   0x0001

Definition at line 187 of file ics1894_driver.h.

◆ ICS1894_10BT_OP_TM_SWITCH

#define ICS1894_10BT_OP_TM_SWITCH   0x0100

Definition at line 182 of file ics1894_driver.h.

◆ ICS1894_ANAR

#define ICS1894_ANAR   0x04

Definition at line 49 of file ics1894_driver.h.

◆ ICS1894_ANAR_100BT4

#define ICS1894_ANAR_100BT4   0x0200

Definition at line 104 of file ics1894_driver.h.

◆ ICS1894_ANAR_100BTX_FD

#define ICS1894_ANAR_100BTX_FD   0x0100

Definition at line 105 of file ics1894_driver.h.

◆ ICS1894_ANAR_100BTX_HD

#define ICS1894_ANAR_100BTX_HD   0x0080

Definition at line 106 of file ics1894_driver.h.

◆ ICS1894_ANAR_10BT_FD

#define ICS1894_ANAR_10BT_FD   0x0040

Definition at line 107 of file ics1894_driver.h.

◆ ICS1894_ANAR_10BT_HD

#define ICS1894_ANAR_10BT_HD   0x0020

Definition at line 108 of file ics1894_driver.h.

◆ ICS1894_ANAR_NEXT_PAGE

#define ICS1894_ANAR_NEXT_PAGE   0x8000

Definition at line 102 of file ics1894_driver.h.

◆ ICS1894_ANAR_REMOTE_FAULT

#define ICS1894_ANAR_REMOTE_FAULT   0x2000

Definition at line 103 of file ics1894_driver.h.

◆ ICS1894_ANAR_SELECTOR

#define ICS1894_ANAR_SELECTOR   0x001F

Definition at line 109 of file ics1894_driver.h.

◆ ICS1894_ANAR_SELECTOR_DEFAULT

#define ICS1894_ANAR_SELECTOR_DEFAULT   0x0001

Definition at line 110 of file ics1894_driver.h.

◆ ICS1894_ANER

#define ICS1894_ANER   0x06

Definition at line 51 of file ics1894_driver.h.

◆ ICS1894_ANER_LP_AN_ABLE

#define ICS1894_ANER_LP_AN_ABLE   0x0001

Definition at line 128 of file ics1894_driver.h.

◆ ICS1894_ANER_LP_NEXT_PAGE_ABLE

#define ICS1894_ANER_LP_NEXT_PAGE_ABLE   0x0008

Definition at line 125 of file ics1894_driver.h.

◆ ICS1894_ANER_NEXT_PAGE_ABLE

#define ICS1894_ANER_NEXT_PAGE_ABLE   0x0004

Definition at line 126 of file ics1894_driver.h.

◆ ICS1894_ANER_PAGE_RECEIVED

#define ICS1894_ANER_PAGE_RECEIVED   0x0002

Definition at line 127 of file ics1894_driver.h.

◆ ICS1894_ANER_PAR_DETECT_FAULT

#define ICS1894_ANER_PAR_DETECT_FAULT   0x0010

Definition at line 124 of file ics1894_driver.h.

◆ ICS1894_ANLPAR

#define ICS1894_ANLPAR   0x05

Definition at line 50 of file ics1894_driver.h.

◆ ICS1894_ANLPAR_100BT4

#define ICS1894_ANLPAR_100BT4   0x0200

Definition at line 116 of file ics1894_driver.h.

◆ ICS1894_ANLPAR_100BTX_FD

#define ICS1894_ANLPAR_100BTX_FD   0x0100

Definition at line 117 of file ics1894_driver.h.

◆ ICS1894_ANLPAR_100BTX_HD

#define ICS1894_ANLPAR_100BTX_HD   0x0080

Definition at line 118 of file ics1894_driver.h.

◆ ICS1894_ANLPAR_10BT_FD

#define ICS1894_ANLPAR_10BT_FD   0x0040

Definition at line 119 of file ics1894_driver.h.

◆ ICS1894_ANLPAR_10BT_HD

#define ICS1894_ANLPAR_10BT_HD   0x0020

Definition at line 120 of file ics1894_driver.h.

◆ ICS1894_ANLPAR_ACK

#define ICS1894_ANLPAR_ACK   0x4000

Definition at line 114 of file ics1894_driver.h.

◆ ICS1894_ANLPAR_NEXT_PAGE

#define ICS1894_ANLPAR_NEXT_PAGE   0x8000

Definition at line 113 of file ics1894_driver.h.

◆ ICS1894_ANLPAR_REMOTE_FAULT

#define ICS1894_ANLPAR_REMOTE_FAULT   0x2000

Definition at line 115 of file ics1894_driver.h.

◆ ICS1894_ANLPAR_SELECTOR

#define ICS1894_ANLPAR_SELECTOR   0x001F

Definition at line 121 of file ics1894_driver.h.

◆ ICS1894_ANNPLPAR

#define ICS1894_ANNPLPAR   0x08

Definition at line 53 of file ics1894_driver.h.

◆ ICS1894_ANNPLPAR_ACK2

#define ICS1894_ANNPLPAR_ACK2   0x1000

Definition at line 140 of file ics1894_driver.h.

◆ ICS1894_ANNPLPAR_MESSAGE

#define ICS1894_ANNPLPAR_MESSAGE   0x07FF

Definition at line 142 of file ics1894_driver.h.

◆ ICS1894_ANNPLPAR_MSG_PAGE

#define ICS1894_ANNPLPAR_MSG_PAGE   0x2000

Definition at line 139 of file ics1894_driver.h.

◆ ICS1894_ANNPLPAR_NEXT_PAGE

#define ICS1894_ANNPLPAR_NEXT_PAGE   0x8000

Definition at line 138 of file ics1894_driver.h.

◆ ICS1894_ANNPLPAR_TOGGLE

#define ICS1894_ANNPLPAR_TOGGLE   0x0800

Definition at line 141 of file ics1894_driver.h.

◆ ICS1894_ANNPT

#define ICS1894_ANNPT   0x07

Definition at line 52 of file ics1894_driver.h.

◆ ICS1894_ANNPT_ACK2

#define ICS1894_ANNPT_ACK2   0x1000

Definition at line 133 of file ics1894_driver.h.

◆ ICS1894_ANNPT_MESSAGE

#define ICS1894_ANNPT_MESSAGE   0x07FF

Definition at line 135 of file ics1894_driver.h.

◆ ICS1894_ANNPT_MSG_PAGE

#define ICS1894_ANNPT_MSG_PAGE   0x2000

Definition at line 132 of file ics1894_driver.h.

◆ ICS1894_ANNPT_NEXT_PAGE

#define ICS1894_ANNPT_NEXT_PAGE   0x8000

Definition at line 131 of file ics1894_driver.h.

◆ ICS1894_ANNPT_TOGGLE

#define ICS1894_ANNPT_TOGGLE   0x0800

Definition at line 134 of file ics1894_driver.h.

◆ ICS1894_BMCR

#define ICS1894_BMCR   0x00

Definition at line 45 of file ics1894_driver.h.

◆ ICS1894_BMCR_AN_EN

#define ICS1894_BMCR_AN_EN   0x1000

Definition at line 68 of file ics1894_driver.h.

◆ ICS1894_BMCR_COL_TEST

#define ICS1894_BMCR_COL_TEST   0x0080

Definition at line 73 of file ics1894_driver.h.

◆ ICS1894_BMCR_DUPLEX_MODE

#define ICS1894_BMCR_DUPLEX_MODE   0x0100

Definition at line 72 of file ics1894_driver.h.

◆ ICS1894_BMCR_ISOLATE

#define ICS1894_BMCR_ISOLATE   0x0400

Definition at line 70 of file ics1894_driver.h.

◆ ICS1894_BMCR_LOOPBACK

#define ICS1894_BMCR_LOOPBACK   0x4000

Definition at line 66 of file ics1894_driver.h.

◆ ICS1894_BMCR_POWER_DOWN

#define ICS1894_BMCR_POWER_DOWN   0x0800

Definition at line 69 of file ics1894_driver.h.

◆ ICS1894_BMCR_RESET

#define ICS1894_BMCR_RESET   0x8000

Definition at line 65 of file ics1894_driver.h.

◆ ICS1894_BMCR_RESTART_AN

#define ICS1894_BMCR_RESTART_AN   0x0200

Definition at line 71 of file ics1894_driver.h.

◆ ICS1894_BMCR_SPEED_SEL

#define ICS1894_BMCR_SPEED_SEL   0x2000

Definition at line 67 of file ics1894_driver.h.

◆ ICS1894_BMSR

#define ICS1894_BMSR   0x01

Definition at line 46 of file ics1894_driver.h.

◆ ICS1894_BMSR_100BT4

#define ICS1894_BMSR_100BT4   0x8000

Definition at line 76 of file ics1894_driver.h.

◆ ICS1894_BMSR_100BTX_FD

#define ICS1894_BMSR_100BTX_FD   0x4000

Definition at line 77 of file ics1894_driver.h.

◆ ICS1894_BMSR_100BTX_HD

#define ICS1894_BMSR_100BTX_HD   0x2000

Definition at line 78 of file ics1894_driver.h.

◆ ICS1894_BMSR_10BT_FD

#define ICS1894_BMSR_10BT_FD   0x1000

Definition at line 79 of file ics1894_driver.h.

◆ ICS1894_BMSR_10BT_HD

#define ICS1894_BMSR_10BT_HD   0x0800

Definition at line 80 of file ics1894_driver.h.

◆ ICS1894_BMSR_AN_CAPABLE

#define ICS1894_BMSR_AN_CAPABLE   0x0008

Definition at line 84 of file ics1894_driver.h.

◆ ICS1894_BMSR_AN_COMPLETE

#define ICS1894_BMSR_AN_COMPLETE   0x0020

Definition at line 82 of file ics1894_driver.h.

◆ ICS1894_BMSR_EXTENDED_CAPABLE

#define ICS1894_BMSR_EXTENDED_CAPABLE   0x0001

Definition at line 87 of file ics1894_driver.h.

◆ ICS1894_BMSR_JABBER_DETECT

#define ICS1894_BMSR_JABBER_DETECT   0x0002

Definition at line 86 of file ics1894_driver.h.

◆ ICS1894_BMSR_LINK_STATUS

#define ICS1894_BMSR_LINK_STATUS   0x0004

Definition at line 85 of file ics1894_driver.h.

◆ ICS1894_BMSR_MF_PREAMBLE_SUPPR

#define ICS1894_BMSR_MF_PREAMBLE_SUPPR   0x0040

Definition at line 81 of file ics1894_driver.h.

◆ ICS1894_BMSR_REMOTE_FAULT

#define ICS1894_BMSR_REMOTE_FAULT   0x0010

Definition at line 83 of file ics1894_driver.h.

◆ ICS1894_ECR1

#define ICS1894_ECR1   0x10

Definition at line 54 of file ics1894_driver.h.

◆ ICS1894_ECR1_CMD_OVERRIDE_WR_EN

#define ICS1894_ECR1_CMD_OVERRIDE_WR_EN   0x8000

Definition at line 145 of file ics1894_driver.h.

◆ ICS1894_ECR1_NRZ_NRZI_ENCODING

#define ICS1894_ECR1_NRZ_NRZI_ENCODING   0x0008

Definition at line 148 of file ics1894_driver.h.

◆ ICS1894_ECR1_PHY_ADDR

#define ICS1894_ECR1_PHY_ADDR   0x07C0

Definition at line 146 of file ics1894_driver.h.

◆ ICS1894_ECR1_STREAM_CIPHER_DIS

#define ICS1894_ECR1_STREAM_CIPHER_DIS   0x0001

Definition at line 150 of file ics1894_driver.h.

◆ ICS1894_ECR1_STREAM_CIPHER_TEST_MODE

#define ICS1894_ECR1_STREAM_CIPHER_TEST_MODE   0x0020

Definition at line 147 of file ics1894_driver.h.

◆ ICS1894_ECR1_TRANSMIT_INVALID_CODES

#define ICS1894_ECR1_TRANSMIT_INVALID_CODES   0x0004

Definition at line 149 of file ics1894_driver.h.

◆ ICS1894_ECR2

#define ICS1894_ECR2   0x13

Definition at line 57 of file ics1894_driver.h.

◆ ICS1894_ECR2_AMDIX_EN

#define ICS1894_ECR2_AMDIX_EN   0x0200

Definition at line 194 of file ics1894_driver.h.

◆ ICS1894_ECR2_AUTO_100BTX_PD

#define ICS1894_ECR2_AUTO_100BTX_PD   0x0001

Definition at line 197 of file ics1894_driver.h.

◆ ICS1894_ECR2_HW_SW_MODE_SPEED_SEL

#define ICS1894_ECR2_HW_SW_MODE_SPEED_SEL   0x4000

Definition at line 191 of file ics1894_driver.h.

◆ ICS1894_ECR2_MDI_MODE

#define ICS1894_ECR2_MDI_MODE   0x0100

Definition at line 195 of file ics1894_driver.h.

◆ ICS1894_ECR2_NODE_MODE

#define ICS1894_ECR2_NODE_MODE   0x8000

Definition at line 190 of file ics1894_driver.h.

◆ ICS1894_ECR2_REGISTER_BANK_SEL

#define ICS1894_ECR2_REGISTER_BANK_SEL   0x1800

Definition at line 193 of file ics1894_driver.h.

◆ ICS1894_ECR2_REMOTE_FAULT

#define ICS1894_ECR2_REMOTE_FAULT   0x2000

Definition at line 192 of file ics1894_driver.h.

◆ ICS1894_ECR2_TPTRI

#define ICS1894_ECR2_TPTRI   0x0080

Definition at line 196 of file ics1894_driver.h.

◆ ICS1894_ECR3

#define ICS1894_ECR3   0x14

Definition at line 58 of file ics1894_driver.h.

◆ ICS1894_ECR3_FAST_OFF

#define ICS1894_ECR3_FAST_OFF   0x4000

Definition at line 201 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED0_MODE

#define ICS1894_ECR3_LED0_MODE   0x0007

Definition at line 234 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED0_MODE_100_10

#define ICS1894_ECR3_LED0_MODE_100_10   0x0005

Definition at line 240 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED0_MODE_ACT

#define ICS1894_ECR3_LED0_MODE_ACT   0x0001

Definition at line 236 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED0_MODE_COL

#define ICS1894_ECR3_LED0_MODE_COL   0x0004

Definition at line 239 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED0_MODE_FD

#define ICS1894_ECR3_LED0_MODE_FD   0x0006

Definition at line 241 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED0_MODE_LINK

#define ICS1894_ECR3_LED0_MODE_LINK   0x0000

Definition at line 235 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED0_MODE_LINK_STAT

#define ICS1894_ECR3_LED0_MODE_LINK_STAT   0x0007

Definition at line 242 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED0_MODE_RX

#define ICS1894_ECR3_LED0_MODE_RX   0x0003

Definition at line 238 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED0_MODE_TX

#define ICS1894_ECR3_LED0_MODE_TX   0x0002

Definition at line 237 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED1_MODE

#define ICS1894_ECR3_LED1_MODE   0x0038

Definition at line 225 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED1_MODE_100_10

#define ICS1894_ECR3_LED1_MODE_100_10   0x0028

Definition at line 231 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED1_MODE_ACT

#define ICS1894_ECR3_LED1_MODE_ACT   0x0008

Definition at line 227 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED1_MODE_COL

#define ICS1894_ECR3_LED1_MODE_COL   0x0020

Definition at line 230 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED1_MODE_FD

#define ICS1894_ECR3_LED1_MODE_FD   0x0030

Definition at line 232 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED1_MODE_LINK

#define ICS1894_ECR3_LED1_MODE_LINK   0x0000

Definition at line 226 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED1_MODE_OFF

#define ICS1894_ECR3_LED1_MODE_OFF   0x0038

Definition at line 233 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED1_MODE_RX

#define ICS1894_ECR3_LED1_MODE_RX   0x0018

Definition at line 229 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED1_MODE_TX

#define ICS1894_ECR3_LED1_MODE_TX   0x0010

Definition at line 228 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED2_MODE

#define ICS1894_ECR3_LED2_MODE   0x01C0

Definition at line 216 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED2_MODE_100_10

#define ICS1894_ECR3_LED2_MODE_100_10   0x0140

Definition at line 222 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED2_MODE_ACT

#define ICS1894_ECR3_LED2_MODE_ACT   0x0040

Definition at line 218 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED2_MODE_COL

#define ICS1894_ECR3_LED2_MODE_COL   0x0100

Definition at line 221 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED2_MODE_FD

#define ICS1894_ECR3_LED2_MODE_FD   0x0180

Definition at line 223 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED2_MODE_LINK

#define ICS1894_ECR3_LED2_MODE_LINK   0x0000

Definition at line 217 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED2_MODE_OFF

#define ICS1894_ECR3_LED2_MODE_OFF   0x01C0

Definition at line 224 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED2_MODE_RX

#define ICS1894_ECR3_LED2_MODE_RX   0x00C0

Definition at line 220 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED2_MODE_TX

#define ICS1894_ECR3_LED2_MODE_TX   0x0080

Definition at line 219 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED3_MODE

#define ICS1894_ECR3_LED3_MODE   0x0E00

Definition at line 207 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED3_MODE_100_10

#define ICS1894_ECR3_LED3_MODE_100_10   0x0A00

Definition at line 213 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED3_MODE_ACT

#define ICS1894_ECR3_LED3_MODE_ACT   0x0200

Definition at line 209 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED3_MODE_COL

#define ICS1894_ECR3_LED3_MODE_COL   0x0800

Definition at line 212 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED3_MODE_FD

#define ICS1894_ECR3_LED3_MODE_FD   0x0C00

Definition at line 214 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED3_MODE_LINK

#define ICS1894_ECR3_LED3_MODE_LINK   0x0000

Definition at line 208 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED3_MODE_OFF

#define ICS1894_ECR3_LED3_MODE_OFF   0x0E00

Definition at line 215 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED3_MODE_RX

#define ICS1894_ECR3_LED3_MODE_RX   0x0600

Definition at line 211 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED3_MODE_TX

#define ICS1894_ECR3_LED3_MODE_TX   0x0400

Definition at line 210 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED4_MODE

#define ICS1894_ECR3_LED4_MODE   0x3000

Definition at line 202 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED4_MODE_COL

#define ICS1894_ECR3_LED4_MODE_COL   0x1000

Definition at line 204 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED4_MODE_FD

#define ICS1894_ECR3_LED4_MODE_FD   0x2000

Definition at line 205 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED4_MODE_OFF

#define ICS1894_ECR3_LED4_MODE_OFF   0x3000

Definition at line 206 of file ics1894_driver.h.

◆ ICS1894_ECR3_LED4_MODE_RX

#define ICS1894_ECR3_LED4_MODE_RX   0x0000

Definition at line 203 of file ics1894_driver.h.

◆ ICS1894_ECR3_STR_ENHANCE

#define ICS1894_ECR3_STR_ENHANCE   0x8000

Definition at line 200 of file ics1894_driver.h.

◆ ICS1894_ECR4

#define ICS1894_ECR4   0x15

Definition at line 59 of file ics1894_driver.h.

◆ ICS1894_ECR4_RXER_CNT

#define ICS1894_ECR4_RXER_CNT   0xFFFF

Definition at line 245 of file ics1894_driver.h.

◆ ICS1894_ECR5

#define ICS1894_ECR5   0x16

Definition at line 60 of file ics1894_driver.h.

◆ ICS1894_ECR5_AN_COMPLETE_INT_EN

#define ICS1894_ECR5_AN_COMPLETE_INT_EN   0x0100

Definition at line 255 of file ics1894_driver.h.

◆ ICS1894_ECR5_DPD_INT_EN

#define ICS1894_ECR5_DPD_INT_EN   0x0200

Definition at line 254 of file ics1894_driver.h.

◆ ICS1894_ECR5_DPD_WU_INT_EN

#define ICS1894_ECR5_DPD_WU_INT_EN   0x0400

Definition at line 253 of file ics1894_driver.h.

◆ ICS1894_ECR5_INT_FLAG_AUTO_CLEAR_EN

#define ICS1894_ECR5_INT_FLAG_AUTO_CLEAR_EN   0x1000

Definition at line 251 of file ics1894_driver.h.

◆ ICS1894_ECR5_INT_FLAG_RD_CLEAR_EN

#define ICS1894_ECR5_INT_FLAG_RD_CLEAR_EN   0x4000

Definition at line 249 of file ics1894_driver.h.

◆ ICS1894_ECR5_INT_FLAG_RE_SETUP_EN

#define ICS1894_ECR5_INT_FLAG_RE_SETUP_EN   0x0800

Definition at line 252 of file ics1894_driver.h.

◆ ICS1894_ECR5_INT_OUT_EN

#define ICS1894_ECR5_INT_OUT_EN   0x8000

Definition at line 248 of file ics1894_driver.h.

◆ ICS1894_ECR5_Int_pol

#define ICS1894_ECR5_Int_pol   0x2000

Definition at line 250 of file ics1894_driver.h.

◆ ICS1894_ECR5_JABBER_INT_EN

#define ICS1894_ECR5_JABBER_INT_EN   0x0080

Definition at line 256 of file ics1894_driver.h.

◆ ICS1894_ECR5_LINK_DOWN_INT_EN

#define ICS1894_ECR5_LINK_DOWN_INT_EN   0x0004

Definition at line 261 of file ics1894_driver.h.

◆ ICS1894_ECR5_LINK_UP_INT_EN

#define ICS1894_ECR5_LINK_UP_INT_EN   0x0001

Definition at line 263 of file ics1894_driver.h.

◆ ICS1894_ECR5_LP_ACK_INT_EN

#define ICS1894_ECR5_LP_ACK_INT_EN   0x0008

Definition at line 260 of file ics1894_driver.h.

◆ ICS1894_ECR5_PAGE_RECEIVED_INT_EN

#define ICS1894_ECR5_PAGE_RECEIVED_INT_EN   0x0020

Definition at line 258 of file ics1894_driver.h.

◆ ICS1894_ECR5_PAR_DETECT_FAULT_INT_EN

#define ICS1894_ECR5_PAR_DETECT_FAULT_INT_EN   0x0010

Definition at line 259 of file ics1894_driver.h.

◆ ICS1894_ECR5_REMOTE_FAULT_INT_EN

#define ICS1894_ECR5_REMOTE_FAULT_INT_EN   0x0002

Definition at line 262 of file ics1894_driver.h.

◆ ICS1894_ECR5_RX_ERROR_INT_EN

#define ICS1894_ECR5_RX_ERROR_INT_EN   0x0040

Definition at line 257 of file ics1894_driver.h.

◆ ICS1894_ECR6

#define ICS1894_ECR6   0x17

Definition at line 61 of file ics1894_driver.h.

◆ ICS1894_ECR6_AN_COMPLETE_INT

#define ICS1894_ECR6_AN_COMPLETE_INT   0x0100

Definition at line 268 of file ics1894_driver.h.

◆ ICS1894_ECR6_DPD_INT

#define ICS1894_ECR6_DPD_INT   0x0200

Definition at line 267 of file ics1894_driver.h.

◆ ICS1894_ECR6_DPD_WU_INT

#define ICS1894_ECR6_DPD_WU_INT   0x0400

Definition at line 266 of file ics1894_driver.h.

◆ ICS1894_ECR6_JABBER_INT

#define ICS1894_ECR6_JABBER_INT   0x0080

Definition at line 269 of file ics1894_driver.h.

◆ ICS1894_ECR6_LINK_DOWN_INT

#define ICS1894_ECR6_LINK_DOWN_INT   0x0004

Definition at line 274 of file ics1894_driver.h.

◆ ICS1894_ECR6_LINK_UP_INT

#define ICS1894_ECR6_LINK_UP_INT   0x0001

Definition at line 276 of file ics1894_driver.h.

◆ ICS1894_ECR6_LP_ACK_INT

#define ICS1894_ECR6_LP_ACK_INT   0x0008

Definition at line 273 of file ics1894_driver.h.

◆ ICS1894_ECR6_PAGE_RECEIVED_INT

#define ICS1894_ECR6_PAGE_RECEIVED_INT   0x0020

Definition at line 271 of file ics1894_driver.h.

◆ ICS1894_ECR6_PAR_DETECT_FAULT_INT

#define ICS1894_ECR6_PAR_DETECT_FAULT_INT   0x0010

Definition at line 272 of file ics1894_driver.h.

◆ ICS1894_ECR6_REMOTE_FAULT_INT

#define ICS1894_ECR6_REMOTE_FAULT_INT   0x0002

Definition at line 275 of file ics1894_driver.h.

◆ ICS1894_ECR6_RX_ERROR_INT

#define ICS1894_ECR6_RX_ERROR_INT   0x0040

Definition at line 270 of file ics1894_driver.h.

◆ ICS1894_ECR7

#define ICS1894_ECR7   0x18

Definition at line 62 of file ics1894_driver.h.

◆ ICS1894_ECR7_ADMIX_TX_DPD_EN

#define ICS1894_ECR7_ADMIX_TX_DPD_EN   0x0020

Definition at line 283 of file ics1894_driver.h.

◆ ICS1894_ECR7_CDR_100_CDR_DPD_EN

#define ICS1894_ECR7_CDR_100_CDR_DPD_EN   0x0010

Definition at line 284 of file ics1894_driver.h.

◆ ICS1894_ECR7_DPD_EN

#define ICS1894_ECR7_DPD_EN   0x0100

Definition at line 280 of file ics1894_driver.h.

◆ ICS1894_ECR7_FIFO_HALF

#define ICS1894_ECR7_FIFO_HALF   0xF000

Definition at line 279 of file ics1894_driver.h.

◆ ICS1894_ECR7_RX_100_DPD_EN

#define ICS1894_ECR7_RX_100_DPD_EN   0x0040

Definition at line 282 of file ics1894_driver.h.

◆ ICS1894_ECR7_TPLL_10_100_DPD_EN

#define ICS1894_ECR7_TPLL_10_100_DPD_EN   0x0080

Definition at line 281 of file ics1894_driver.h.

◆ ICS1894_PHY_ADDR

#define ICS1894_PHY_ADDR   5

Definition at line 39 of file ics1894_driver.h.

◆ ICS1894_PHYID1

#define ICS1894_PHYID1   0x02

Definition at line 47 of file ics1894_driver.h.

◆ ICS1894_PHYID1_OUI_MSB

#define ICS1894_PHYID1_OUI_MSB   0xFFFF

Definition at line 90 of file ics1894_driver.h.

◆ ICS1894_PHYID1_OUI_MSB_DEFAULT

#define ICS1894_PHYID1_OUI_MSB_DEFAULT   0x0015

Definition at line 91 of file ics1894_driver.h.

◆ ICS1894_PHYID2

#define ICS1894_PHYID2   0x03

Definition at line 48 of file ics1894_driver.h.

◆ ICS1894_PHYID2_MODEL_NUM

#define ICS1894_PHYID2_MODEL_NUM   0x03F0

Definition at line 96 of file ics1894_driver.h.

◆ ICS1894_PHYID2_MODEL_NUM_DEFAULT

#define ICS1894_PHYID2_MODEL_NUM_DEFAULT   0x0050

Definition at line 97 of file ics1894_driver.h.

◆ ICS1894_PHYID2_OUI_LSB

#define ICS1894_PHYID2_OUI_LSB   0xFC00

Definition at line 94 of file ics1894_driver.h.

◆ ICS1894_PHYID2_OUI_LSB_DEFAULT

#define ICS1894_PHYID2_OUI_LSB_DEFAULT   0xF400

Definition at line 95 of file ics1894_driver.h.

◆ ICS1894_PHYID2_REVISION_NUM

#define ICS1894_PHYID2_REVISION_NUM   0x000F

Definition at line 98 of file ics1894_driver.h.

◆ ICS1894_PHYID2_REVISION_NUM_DEFAULT

#define ICS1894_PHYID2_REVISION_NUM_DEFAULT   0x0000

Definition at line 99 of file ics1894_driver.h.

◆ ICS1894_QPDSR

#define ICS1894_QPDSR   0x11

Definition at line 55 of file ics1894_driver.h.

◆ ICS1894_QPDSR_100_PLL_LOCK_ERROR

#define ICS1894_QPDSR_100_PLL_LOCK_ERROR   0x0200

Definition at line 161 of file ics1894_driver.h.

◆ ICS1894_QPDSR_100BTX_SIGNAL_DETECT

#define ICS1894_QPDSR_100BTX_SIGNAL_DETECT   0x0008

Definition at line 167 of file ics1894_driver.h.

◆ ICS1894_QPDSR_100BTX_SIGNAL_LOST

#define ICS1894_QPDSR_100BTX_SIGNAL_LOST   0x0400

Definition at line 160 of file ics1894_driver.h.

◆ ICS1894_QPDSR_AN_COMPLETE

#define ICS1894_QPDSR_AN_COMPLETE   0x0010

Definition at line 166 of file ics1894_driver.h.

◆ ICS1894_QPDSR_AN_PROGRESS_MONITOR

#define ICS1894_QPDSR_AN_PROGRESS_MONITOR   0x3800

Definition at line 159 of file ics1894_driver.h.

◆ ICS1894_QPDSR_DATA_RATE

#define ICS1894_QPDSR_DATA_RATE   0x8000

Definition at line 153 of file ics1894_driver.h.

◆ ICS1894_QPDSR_DATA_RATE_100MBPS

#define ICS1894_QPDSR_DATA_RATE_100MBPS   0x8000

Definition at line 155 of file ics1894_driver.h.

◆ ICS1894_QPDSR_DATA_RATE_10MBPS

#define ICS1894_QPDSR_DATA_RATE_10MBPS   0x0000

Definition at line 154 of file ics1894_driver.h.

◆ ICS1894_QPDSR_DUPLEX

#define ICS1894_QPDSR_DUPLEX   0x4000

Definition at line 156 of file ics1894_driver.h.

◆ ICS1894_QPDSR_DUPLEX_FD

#define ICS1894_QPDSR_DUPLEX_FD   0x4000

Definition at line 158 of file ics1894_driver.h.

◆ ICS1894_QPDSR_DUPLEX_HD

#define ICS1894_QPDSR_DUPLEX_HD   0x0000

Definition at line 157 of file ics1894_driver.h.

◆ ICS1894_QPDSR_FALSE_CARRIER_DETECT

#define ICS1894_QPDSR_FALSE_CARRIER_DETECT   0x0100

Definition at line 162 of file ics1894_driver.h.

◆ ICS1894_QPDSR_HALT_SYMBOL_DETECT

#define ICS1894_QPDSR_HALT_SYMBOL_DETECT   0x0040

Definition at line 164 of file ics1894_driver.h.

◆ ICS1894_QPDSR_INVALID_SYMBOL_DETECT

#define ICS1894_QPDSR_INVALID_SYMBOL_DETECT   0x0080

Definition at line 163 of file ics1894_driver.h.

◆ ICS1894_QPDSR_JABBER_DETECT

#define ICS1894_QPDSR_JABBER_DETECT   0x0004

Definition at line 168 of file ics1894_driver.h.

◆ ICS1894_QPDSR_LINK_STATUS

#define ICS1894_QPDSR_LINK_STATUS   0x0001

Definition at line 170 of file ics1894_driver.h.

◆ ICS1894_QPDSR_PREMATURE_END_DETECT

#define ICS1894_QPDSR_PREMATURE_END_DETECT   0x0020

Definition at line 165 of file ics1894_driver.h.

◆ ICS1894_QPDSR_REMOTE_FAULT

#define ICS1894_QPDSR_REMOTE_FAULT   0x0002

Definition at line 169 of file ics1894_driver.h.

Function Documentation

◆ ics1894DisableIrq()

void ics1894DisableIrq ( NetInterface interface)

Disable interrupts.

Parameters
[in]interfaceUnderlying network interface

Definition at line 179 of file ics1894_driver.c.

◆ ics1894DumpPhyReg()

void ics1894DumpPhyReg ( NetInterface interface)

Dump PHY registers for debugging purpose.

Parameters
[in]interfaceUnderlying network interface

Definition at line 293 of file ics1894_driver.c.

◆ ics1894EnableIrq()

void ics1894EnableIrq ( NetInterface interface)

Enable interrupts.

Parameters
[in]interfaceUnderlying network interface

Definition at line 169 of file ics1894_driver.c.

◆ ics1894EventHandler()

void ics1894EventHandler ( NetInterface interface)

ICS1894 event handler.

Parameters
[in]interfaceUnderlying network interface

Definition at line 189 of file ics1894_driver.c.

◆ ics1894Init()

error_t ics1894Init ( NetInterface interface)

ICS1894 PHY transceiver initialization.

Parameters
[in]interfaceUnderlying network interface
Returns
Error code

Definition at line 60 of file ics1894_driver.c.

◆ ics1894InitHook()

void ics1894InitHook ( NetInterface interface)

ICS1894 custom configuration.

Parameters
[in]interfaceUnderlying network interface

Definition at line 125 of file ics1894_driver.c.

◆ ics1894ReadPhyReg()

uint16_t ics1894ReadPhyReg ( NetInterface interface,
uint8_t  address 
)

Read PHY register.

Parameters
[in]interfaceUnderlying network interface
[in]addressPHY register address
Returns
Register value

Definition at line 267 of file ics1894_driver.c.

◆ ics1894Tick()

void ics1894Tick ( NetInterface interface)

ICS1894 timer handler.

Parameters
[in]interfaceUnderlying network interface

Definition at line 135 of file ics1894_driver.c.

◆ ics1894WritePhyReg()

void ics1894WritePhyReg ( NetInterface interface,
uint8_t  address,
uint16_t  data 
)

Write PHY register.

Parameters
[in]interfaceUnderlying network interface
[in]addressPHY register address
[in]dataRegister value

Definition at line 243 of file ics1894_driver.c.

Variable Documentation

◆ ics1894PhyDriver

const PhyDriver ics1894PhyDriver
extern

ICS1894 Ethernet PHY driver.

Definition at line 44 of file ics1894_driver.c.