File Index
Files and directories
Sign in
FILE

wx_hw.h

File preview with syntax highlighting.

linux-6.19.14/drivers/net/ethernet/wangxun/libwx/wx_hw.h C
 1/* SPDX-License-Identifier: GPL-2.0 */
 2/* Copyright (c) 2015 - 2022 Beijing WangXun Technology Co., Ltd. */
 3
 4#ifndef _WX_HW_H_
 5#define _WX_HW_H_
 6
 7#include <linux/phy.h>
 8
 9int wx_phy_read_reg_mdi_c22(struct mii_bus *bus, int phy_addr, int regnum);
10int wx_phy_write_reg_mdi_c22(struct mii_bus *bus, int phy_addr, int regnum, u16 value);
11int wx_phy_read_reg_mdi_c45(struct mii_bus *bus, int phy_addr, int devnum, int regnum);
12int wx_phy_write_reg_mdi_c45(struct mii_bus *bus, int phy_addr,
13			     int devnum, int regnum, u16 value);
14void wx_intr_enable(struct wx *wx, u64 qmask);
15void wx_irq_disable(struct wx *wx);
16int wx_check_flash_load(struct wx *wx, u32 check_bit);
17void wx_control_hw(struct wx *wx, bool drv);
18int wx_mng_present(struct wx *wx);
19int wx_host_interface_command(struct wx *wx, u32 *buffer,
20			      u32 length, u32 timeout, bool return_data);
21int wx_set_pps(struct wx *wx, bool enable, u64 nsec, u64 cycles);
22int wx_read_ee_hostif(struct wx *wx, u16 offset, u16 *data);
23int wx_read_ee_hostif_buffer(struct wx *wx,
24			     u16 offset, u16 words, u16 *data);
25void wx_init_eeprom_params(struct wx *wx);
26void wx_get_mac_addr(struct wx *wx, u8 *mac_addr);
27void wx_init_rx_addrs(struct wx *wx);
28void wx_mac_set_default_filter(struct wx *wx, u8 *addr);
29int wx_add_mac_filter(struct wx *wx, u8 *addr, u16 pool);
30int wx_del_mac_filter(struct wx *wx, u8 *addr, u16 pool);
31void wx_flush_sw_mac_table(struct wx *wx);
32u32 wx_mta_vector(struct wx *wx, u8 *mc_addr);
33int wx_set_mac(struct net_device *netdev, void *p);
34void wx_disable_rx(struct wx *wx);
35int wx_set_vf_spoofchk(struct net_device *netdev, int vf, bool setting);
36int wx_disable_sec_rx_path(struct wx *wx);
37void wx_enable_sec_rx_path(struct wx *wx);
38void wx_set_rx_mode(struct net_device *netdev);
39int wx_change_mtu(struct net_device *netdev, int new_mtu);
40void wx_disable_rx_queue(struct wx *wx, struct wx_ring *ring);
41void wx_enable_rx_queue(struct wx *wx, struct wx_ring *ring);
42u32 wx_rss_indir_tbl_entries(struct wx *wx);
43void wx_store_reta(struct wx *wx);
44void wx_store_rsskey(struct wx *wx);
45void wx_config_rss_field(struct wx *wx);
46void wx_enable_rss(struct wx *wx, bool enable);
47void wx_configure_rx(struct wx *wx);
48void wx_configure(struct wx *wx);
49void wx_start_hw(struct wx *wx);
50int wx_disable_pcie_master(struct wx *wx);
51int wx_stop_adapter(struct wx *wx);
52void wx_reset_mac(struct wx *wx);
53void wx_reset_misc(struct wx *wx);
54int wx_get_pcie_msix_counts(struct wx *wx, u16 *msix_count, u16 max_msix_count);
55int wx_sw_init(struct wx *wx);
56int wx_set_vfta(struct wx *wx, u32 vlan, u32 vind, bool vlan_on);
57int wx_vlan_rx_add_vid(struct net_device *netdev, __be16 proto, u16 vid);
58int wx_vlan_rx_kill_vid(struct net_device *netdev, __be16 proto, u16 vid);
59int wx_fc_enable(struct wx *wx, bool tx_pause, bool rx_pause);
60void wx_update_stats(struct wx *wx);
61void wx_clear_hw_cntrs(struct wx *wx);
62
63#endif /* _WX_HW_H_ */
~/ Read-only file preview.