#ifndef __STMMAC_HWIF_H__
#define __STMMAC_HWIF_H__
#include <linux/netdevice.h>
#include <linux/stmmac.h>
#define stmmac_do_void_callback(__priv, __module, __cname, __arg0, __args...) …
#define stmmac_do_callback(__priv, __module, __cname, __arg0, __args...) …
struct stmmac_extra_stats;
struct stmmac_priv;
struct stmmac_safety_stats;
struct dma_desc;
struct dma_extended_desc;
struct dma_edesc;
struct stmmac_desc_ops { … };
#define stmmac_init_rx_desc(__priv, __args...) …
#define stmmac_init_tx_desc(__priv, __args...) …
#define stmmac_prepare_tx_desc(__priv, __args...) …
#define stmmac_prepare_tso_tx_desc(__priv, __args...) …
#define stmmac_set_tx_owner(__priv, __args...) …
#define stmmac_get_tx_owner(__priv, __args...) …
#define stmmac_release_tx_desc(__priv, __args...) …
#define stmmac_set_tx_ic(__priv, __args...) …
#define stmmac_get_tx_ls(__priv, __args...) …
#define stmmac_get_rx_vlan_tci(__priv, __args...) …
#define stmmac_get_rx_vlan_valid(__priv, __args...) …
#define stmmac_tx_status(__priv, __args...) …
#define stmmac_get_tx_len(__priv, __args...) …
#define stmmac_set_rx_owner(__priv, __args...) …
#define stmmac_get_rx_frame_len(__priv, __args...) …
#define stmmac_rx_status(__priv, __args...) …
#define stmmac_rx_extended_status(__priv, __args...) …
#define stmmac_enable_tx_timestamp(__priv, __args...) …
#define stmmac_get_tx_timestamp_status(__priv, __args...) …
#define stmmac_get_timestamp(__priv, __args...) …
#define stmmac_get_rx_timestamp_status(__priv, __args...) …
#define stmmac_display_ring(__priv, __args...) …
#define stmmac_set_mss(__priv, __args...) …
#define stmmac_set_desc_addr(__priv, __args...) …
#define stmmac_clear_desc(__priv, __args...) …
#define stmmac_get_rx_hash(__priv, __args...) …
#define stmmac_get_rx_header_len(__priv, __args...) …
#define stmmac_set_desc_sec_addr(__priv, __args...) …
#define stmmac_set_desc_sarc(__priv, __args...) …
#define stmmac_set_desc_vlan_tag(__priv, __args...) …
#define stmmac_set_desc_vlan(__priv, __args...) …
#define stmmac_set_desc_tbs(__priv, __args...) …
struct stmmac_dma_cfg;
struct dma_features;
struct stmmac_dma_ops { … };
#define stmmac_dma_init(__priv, __args...) …
#define stmmac_init_chan(__priv, __args...) …
#define stmmac_init_rx_chan(__priv, __args...) …
#define stmmac_init_tx_chan(__priv, __args...) …
#define stmmac_axi(__priv, __args...) …
#define stmmac_dump_dma_regs(__priv, __args...) …
#define stmmac_dma_rx_mode(__priv, __args...) …
#define stmmac_dma_tx_mode(__priv, __args...) …
#define stmmac_dma_diagnostic_fr(__priv, __args...) …
#define stmmac_enable_dma_transmission(__priv, __args...) …
#define stmmac_enable_dma_irq(__priv, __args...) …
#define stmmac_disable_dma_irq(__priv, __args...) …
#define stmmac_start_tx(__priv, __args...) …
#define stmmac_stop_tx(__priv, __args...) …
#define stmmac_start_rx(__priv, __args...) …
#define stmmac_stop_rx(__priv, __args...) …
#define stmmac_dma_interrupt_status(__priv, __args...) …
#define stmmac_get_hw_feature(__priv, __args...) …
#define stmmac_rx_watchdog(__priv, __args...) …
#define stmmac_set_tx_ring_len(__priv, __args...) …
#define stmmac_set_rx_ring_len(__priv, __args...) …
#define stmmac_set_rx_tail_ptr(__priv, __args...) …
#define stmmac_set_tx_tail_ptr(__priv, __args...) …
#define stmmac_enable_tso(__priv, __args...) …
#define stmmac_dma_qmode(__priv, __args...) …
#define stmmac_set_dma_bfsize(__priv, __args...) …
#define stmmac_enable_sph(__priv, __args...) …
#define stmmac_enable_tbs(__priv, __args...) …
struct mac_device_info;
struct net_device;
struct rgmii_adv;
struct stmmac_tc_entry;
struct stmmac_pps_cfg;
struct stmmac_rss;
struct stmmac_est;
struct stmmac_ops { … };
#define stmmac_core_init(__priv, __args...) …
#define stmmac_mac_update_caps(__priv) …
#define stmmac_mac_set(__priv, __args...) …
#define stmmac_rx_ipc(__priv, __args...) …
#define stmmac_rx_queue_enable(__priv, __args...) …
#define stmmac_rx_queue_prio(__priv, __args...) …
#define stmmac_tx_queue_prio(__priv, __args...) …
#define stmmac_rx_queue_routing(__priv, __args...) …
#define stmmac_prog_mtl_rx_algorithms(__priv, __args...) …
#define stmmac_prog_mtl_tx_algorithms(__priv, __args...) …
#define stmmac_set_mtl_tx_queue_weight(__priv, __args...) …
#define stmmac_map_mtl_to_dma(__priv, __args...) …
#define stmmac_config_cbs(__priv, __args...) …
#define stmmac_dump_mac_regs(__priv, __args...) …
#define stmmac_host_irq_status(__priv, __args...) …
#define stmmac_host_mtl_irq_status(__priv, __args...) …
#define stmmac_set_filter(__priv, __args...) …
#define stmmac_flow_ctrl(__priv, __args...) …
#define stmmac_pmt(__priv, __args...) …
#define stmmac_set_umac_addr(__priv, __args...) …
#define stmmac_get_umac_addr(__priv, __args...) …
#define stmmac_set_eee_mode(__priv, __args...) …
#define stmmac_reset_eee_mode(__priv, __args...) …
#define stmmac_set_eee_lpi_timer(__priv, __args...) …
#define stmmac_set_eee_timer(__priv, __args...) …
#define stmmac_set_eee_pls(__priv, __args...) …
#define stmmac_mac_debug(__priv, __args...) …
#define stmmac_pcs_ctrl_ane(__priv, __args...) …
#define stmmac_pcs_get_adv_lp(__priv, __args...) …
#define stmmac_safety_feat_config(__priv, __args...) …
#define stmmac_safety_feat_irq_status(__priv, __args...) …
#define stmmac_safety_feat_dump(__priv, __args...) …
#define stmmac_rxp_config(__priv, __args...) …
#define stmmac_flex_pps_config(__priv, __args...) …
#define stmmac_set_mac_loopback(__priv, __args...) …
#define stmmac_rss_configure(__priv, __args...) …
#define stmmac_update_vlan_hash(__priv, __args...) …
#define stmmac_enable_vlan(__priv, __args...) …
#define stmmac_rx_hw_vlan(__priv, __args...) …
#define stmmac_set_hw_vlan_mode(__priv, __args...) …
#define stmmac_add_hw_vlan_rx_fltr(__priv, __args...) …
#define stmmac_del_hw_vlan_rx_fltr(__priv, __args...) …
#define stmmac_restore_hw_vlan_rx_fltr(__priv, __args...) …
#define stmmac_get_mac_tx_timestamp(__priv, __args...) …
#define stmmac_sarc_configure(__priv, __args...) …
#define stmmac_config_l3_filter(__priv, __args...) …
#define stmmac_config_l4_filter(__priv, __args...) …
#define stmmac_set_arp_offload(__priv, __args...) …
#define stmmac_fpe_configure(__priv, __args...) …
#define stmmac_fpe_send_mpacket(__priv, __args...) …
#define stmmac_fpe_irq_status(__priv, __args...) …
struct stmmac_hwtimestamp { … };
#define stmmac_config_hw_tstamping(__priv, __args...) …
#define stmmac_config_sub_second_increment(__priv, __args...) …
#define stmmac_init_systime(__priv, __args...) …
#define stmmac_config_addend(__priv, __args...) …
#define stmmac_adjust_systime(__priv, __args...) …
#define stmmac_get_systime(__priv, __args...) …
#define stmmac_get_ptptime(__priv, __args...) …
#define stmmac_timestamp_interrupt(__priv, __args...) …
#define stmmac_hwtstamp_correct_latency(__priv, __args...) …
struct stmmac_tx_queue;
struct stmmac_rx_queue;
struct stmmac_mode_ops { … };
#define stmmac_mode_init(__priv, __args...) …
#define stmmac_is_jumbo_frm(__priv, __args...) …
#define stmmac_jumbo_frm(__priv, __args...) …
#define stmmac_set_16kib_bfsize(__priv, __args...) …
#define stmmac_init_desc3(__priv, __args...) …
#define stmmac_refill_desc3(__priv, __args...) …
#define stmmac_clean_desc3(__priv, __args...) …
struct tc_cls_u32_offload;
struct tc_cbs_qopt_offload;
struct flow_cls_offload;
struct tc_taprio_qopt_offload;
struct tc_etf_qopt_offload;
struct tc_query_caps_base;
struct stmmac_tc_ops { … };
#define stmmac_tc_init(__priv, __args...) …
#define stmmac_tc_setup_cls_u32(__priv, __args...) …
#define stmmac_tc_setup_cbs(__priv, __args...) …
#define stmmac_tc_setup_cls(__priv, __args...) …
#define stmmac_tc_setup_taprio(__priv, __args...) …
#define stmmac_tc_setup_etf(__priv, __args...) …
#define stmmac_tc_query_caps(__priv, __args...) …
struct stmmac_counters;
struct stmmac_mmc_ops { … };
#define stmmac_mmc_ctrl(__priv, __args...) …
#define stmmac_mmc_intr_all_mask(__priv, __args...) …
#define stmmac_mmc_read(__priv, __args...) …
struct stmmac_est_ops { … };
#define stmmac_est_configure(__priv, __args...) …
#define stmmac_est_irq_status(__priv, __args...) …
struct stmmac_regs_off { … };
extern const struct stmmac_ops dwmac100_ops;
extern const struct stmmac_dma_ops dwmac100_dma_ops;
extern const struct stmmac_ops dwmac1000_ops;
extern const struct stmmac_dma_ops dwmac1000_dma_ops;
extern const struct stmmac_ops dwmac4_ops;
extern const struct stmmac_dma_ops dwmac4_dma_ops;
extern const struct stmmac_ops dwmac410_ops;
extern const struct stmmac_dma_ops dwmac410_dma_ops;
extern const struct stmmac_ops dwmac510_ops;
extern const struct stmmac_tc_ops dwmac510_tc_ops;
extern const struct stmmac_ops dwxgmac210_ops;
extern const struct stmmac_ops dwxlgmac2_ops;
extern const struct stmmac_dma_ops dwxgmac210_dma_ops;
extern const struct stmmac_desc_ops dwxgmac210_desc_ops;
extern const struct stmmac_mmc_ops dwmac_mmc_ops;
extern const struct stmmac_mmc_ops dwxgmac_mmc_ops;
extern const struct stmmac_est_ops dwmac510_est_ops;
#define GMAC_VERSION …
#define GMAC4_VERSION …
int stmmac_reset(struct stmmac_priv *priv, void __iomem *ioaddr);
int stmmac_hwif_init(struct stmmac_priv *priv);
#endif