18#ifndef __HAL_DRIVER_${SERIES/ETH_IP}_ETH_H__
19#define __HAL_DRIVER_${SERIES/ETH_IP}_ETH_H__
25#if VSF_HAL_USE_ETH == ENABLED
44#if defined(__VSF_HAL_${ETH_IP}_ETH_CLASS_IMPLEMENT)
45# define __VSF_CLASS_IMPLEMENT__
46#elif defined(__VSF_HAL_${ETH_IP}_ETH_CLASS_INHERIT__)
47# define __VSF_CLASS_INHERIT__
64#ifndef VSF_${ETH_IP}_ETH_CFG_MULTI_CLASS
65# define VSF_${ETH_IP}_ETH_CFG_MULTI_CLASS VSF_ETH_CFG_MULTI_CLASS
89#define VSF_ETH_CFG_REIMPLEMENT_TYPE_PHY_MODE ENABLED
90#define VSF_ETH_CFG_REIMPLEMENT_TYPE_MODE ENABLED
91#define VSF_ETH_CFG_REIMPLEMENT_TYPE_IRQ_MASK ENABLED
92#define VSF_ETH_CFG_REIMPLEMENT_TYPE_CTRL ENABLED
93#define VSF_ETH_CFG_REIMPLEMENT_TYPE_CFG ENABLED
94#define VSF_ETH_CFG_REIMPLEMENT_TYPE_STATUS ENABLED
95#define VSF_ETH_CFG_REIMPLEMENT_TYPE_CAPABILITY ENABLED
96#define VSF_ETH_CFG_REIMPLEMENT_TYPE_BUF_MODE ENABLED
97#define VSF_ETH_CFG_REIMPLEMENT_TYPE_BUF_DESC ENABLED
98#define VSF_ETH_CFG_REIMPLEMENT_TYPE_SEND_BUF_DESC ENABLED
99#define VSF_ETH_CFG_REIMPLEMENT_TYPE_RECV_BUF_DESC ENABLED
100#define VSF_ETH_CFG_REIMPLEMENT_TYPE_SG_SEND_BUF ENABLED
101#define VSF_ETH_CFG_REIMPLEMENT_TYPE_SG_RECV_BUF ENABLED
109#if VSF_${ETH_IP}_CFG_MULTI_CLASS == ENABLED
128#if VSF_ETH_CFG_REIMPLEMENT_TYPE_PHY_MODE == ENABLED
143#if VSF_ETH_CFG_REIMPLEMENT_TYPE_MODE == ENABLED
152#if VSF_ETH_CFG_REIMPLEMENT_TYPE_IRQ_MASK == ENABLED
165#if VSF_ETH_CFG_REIMPLEMENT_TYPE_CTRL == ENABLED
173#if VSF_ETH_CFG_REIMPLEMENT_TYPE_CFG == ENABLED
190#if VSF_ETH_CFG_REIMPLEMENT_TYPE_STATUS == ENABLED
203#if VSF_ETH_CFG_REIMPLEMENT_TYPE_CAPABILITY == ENABLED
205#if VSF_ETH_CFG_INHERIT_HAL_CAPABILITY == ENABLED
225#if VSF_ETH_CFG_REIMPLEMENT_TYPE_BUF_MODE == ENABLED
234#if VSF_ETH_CFG_REIMPLEMENT_TYPE_BUF_DESC == ENABLED
242#if VSF_ETH_CFG_REIMPLEMENT_TYPE_SEND_BUF_DESC == ENABLED
246#if VSF_ETH_CFG_REIMPLEMENT_TYPE_RECV_BUF_DESC == ENABLED
250#if VSF_ETH_CFG_REIMPLEMENT_TYPE_SG_SEND_BUF == ENABLED
254#if VSF_ETH_CFG_REIMPLEMENT_TYPE_SG_RECV_BUF == ENABLED
274#undef __VSF_HAL_${ETH_IP}_ETH_CLASS_IMPLEMENT
275#undef __VSF_HAL_${ETH_IP}_ETH_CLASS_INHERIT__
vsf_arch_prio_t
Definition cortex_a_generic.h:88
vsf_eth_buf_desc_t vsf_eth_recv_buf_desc_t
Definition eth.h:247
vsf_eth_irq_mask_t
Definition eth.h:153
@ VSF_ETH_IRQ_MASK_ERROR
Definition eth.h:159
@ VSF_ETH_IRQ_MASK_RX_AVAILABLE
Definition eth.h:154
@ VSF_ETH_IRQ_MASK_PHY_LINK_CHANGE
Definition eth.h:158
@ VSF_ETH_IRQ_MASK_SG_TX_COMPLETE
Definition eth.h:157
@ VSF_ETH_IRQ_MASK_SG_RX_AVAILABLE
Definition eth.h:156
@ VSF_ETH_IRQ_MASK_TX_COMPLETE
Definition eth.h:155
vsf_eth_ctrl_t
Definition eth.h:166
@ VSF_ETH_CTRL_GET_MAC_ADDRESS
Definition eth.h:167
vsf_eth_buf_mode_t
Definition eth.h:226
@ VSF_ETH_BUF_MODE_TX_CHECKSUM_OFFLOAD
Definition eth.h:227
@ VSF_ETH_BUF_MODE_RX_CHECKSUM_OFFLOAD
Definition eth.h:228
vsf_eth_isr_t isr
Definition eth.h:123
vsf_eth_mode_t
Definition eth.h:144
@ VSF_ETH_MODE_TX_CHECKSUM_OFFLOAD
Definition eth.h:145
@ VSF_ETH_MODE_RX_CHECKSUM_OFFLOAD
Definition eth.h:146
vsf_eth_phy_mode_t
Definition eth.h:129
@ VSF_ETH_PHY_MODE_LINK_UP
Definition eth.h:137
@ VSF_ETH_PHY_MODE_SPEED_1000M
Definition eth.h:132
@ VSF_ETH_PHY_MODE_SPEED_100M
Definition eth.h:131
@ VSF_ETH_PHY_MODE_SPEED_10M
Definition eth.h:130
@ VSF_ETH_PHY_MODE_DUPLEX_HALF
Definition eth.h:134
@ VSF_ETH_PHY_MODE_DUPLEX_FULL
Definition eth.h:135
vsf_eth_buf_desc_t vsf_eth_send_sg_buf_desc_t
Definition eth.h:251
vsf_eth_buf_desc_t vsf_eth_send_buf_desc_t
Definition eth.h:243
vsf_eth_buf_desc_t vsf_eth_recv_sg_buf_desc_t
Definition eth.h:255
void vsf_eth_isr_handler_t(void *target_ptr, vsf_eth_t *eth_ptr, vsf_eth_irq_mask_t irq_mask)
Definition eth.h:175
#define vsf_class(__name)
Definition ooc_class.h:52
const i_spi_t vsf_spi_irq_mask_t irq_mask
Definition spi_interface.h:38
unsigned uint32_t
Definition stdint.h:9
unsigned char uint8_t
Definition stdint.h:5
Definition vsf_template_eth.h:716
void * payload
Definition vsf_template_eth.h:718
vsf_eth_buf_mode_t mode
Definition vsf_template_eth.h:717
size_t len
Definition vsf_template_eth.h:719
Predefined VSF ETH capability that can be reimplemented in specific hal drivers. The vsf_eth_capabili...
Definition vsf_template_eth.h:676
uint32_t is_send_buf_releasable_immediately
Definition vsf_template_eth.h:693
uint32_t is_sg_send_buf_releasable_immediately
Definition vsf_template_eth.h:700
inherit(vsf_peripheral_capability_t) vsf_eth_mode_t support_modes
vsf_eth_phy_mode_t support_phy_modes
Supported PHY modes, refer to vsf_eth_phy_mode_t.
Definition vsf_template_eth.h:682
uint32_t value
Definition vsf_template_eth.h:686
vsf_eth_irq_mask_t support_irq_mask
Supported IRQ masks, refer to vsf_eth_irq_mask_t.
Definition vsf_template_eth.h:683
ETH configuration structure.
Definition vsf_template_eth.h:636
uint8_t mac_address[6]
MAC address, 6 bytes.
Definition vsf_template_eth.h:639
vsf_eth_phy_mode_t phy_mode
PHY mode, refer to vsf_eth_phy_mode_t.
Definition vsf_template_eth.h:638
vsf_eth_isr_t isr
ETH interrupt configuration, refer to vsf_eth_isr_t.
Definition vsf_template_eth.h:640
vsf_eth_mode_t mode
ETH mode, refer to vsf_eth_mode_t.
Definition vsf_template_eth.h:637
ETH interrupt configuration structure.
Definition vsf_template_eth.h:623
vsf_eth_isr_handler_t * handler_fn
Interrupt handler function pointer.
Definition vsf_template_eth.h:624
void * target_ptr
User-defined target pointer.
Definition vsf_template_eth.h:625
vsf_arch_prio_t prio
Interrupt priority.
Definition vsf_template_eth.h:626
ETH status information structure Contains the current status of ETH operations and FIFO thresholds.
Definition vsf_template_eth.h:653
uint32_t is_tx_ready
TX is ready to accept data.
Definition vsf_template_eth.h:659
uint32_t is_rx_available
RX data is available.
Definition vsf_template_eth.h:658
ETH instance structure, used for ETH Multi Class support, not needed in non Multi Class mode.
Definition vsf_template_eth.h:791
Definition vsf_template_hal_driver.h:204
Definition vsf_template_hal_driver.h:197
vk_av_control_value_t value
Definition vsf_audio.h:171
vsf_eth_irq_mask_t
Definition vsf_template_eth.h:577
vsf_eth_ctrl_t
Definition vsf_template_eth.h:748
vsf_eth_buf_mode_t
Definition vsf_template_eth.h:707
vsf_eth_mode_t
Predefined VSF ETH modes that can be reimplemented in specific HAL drivers.The following modes must b...
Definition vsf_template_eth.h:462
vsf_eth_phy_mode_t
Predefined VSF ETH modes that can be reimplemented in specific HAL drivers.The following modes must b...
Definition vsf_template_eth.h:383