FILE
wx_lib.h
File preview with syntax highlighting.
linux-6.19.14/drivers/net/ethernet/wangxun/libwx/wx_lib.h
1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * WangXun Gigabit PCI Express Linux driver 4 * Copyright (c) 2019 - 2022 Beijing WangXun Technology Co., Ltd. 5 */ 6 7#ifndef _WX_LIB_H_ 8#define _WX_LIB_H_ 9 10struct wx_dec_ptype wx_decode_ptype(const u8 ptype); 11void wx_alloc_rx_buffers(struct wx_ring *rx_ring, u16 cleaned_count); 12u16 wx_desc_unused(struct wx_ring *ring); 13netdev_tx_t wx_xmit_frame(struct sk_buff *skb, 14 struct net_device *netdev); 15void wx_napi_enable_all(struct wx *wx); 16void wx_napi_disable_all(struct wx *wx); 17void wx_reset_interrupt_capability(struct wx *wx); 18void wx_clear_interrupt_scheme(struct wx *wx); 19int wx_init_interrupt_scheme(struct wx *wx); 20irqreturn_t wx_msix_clean_rings(int __always_unused irq, void *data); 21void wx_free_irq(struct wx *wx); 22int wx_setup_isb_resources(struct wx *wx); 23void wx_free_isb_resources(struct wx *wx); 24u32 wx_misc_isb(struct wx *wx, enum wx_isb_idx idx); 25void wx_write_eitr(struct wx_q_vector *q_vector); 26void wx_configure_vectors(struct wx *wx); 27void wx_clean_all_rx_rings(struct wx *wx); 28void wx_clean_all_tx_rings(struct wx *wx); 29void wx_free_resources(struct wx *wx); 30int wx_setup_resources(struct wx *wx); 31void wx_get_stats64(struct net_device *netdev, 32 struct rtnl_link_stats64 *stats); 33int wx_set_features(struct net_device *netdev, netdev_features_t features); 34netdev_features_t wx_fix_features(struct net_device *netdev, 35 netdev_features_t features); 36netdev_features_t wx_features_check(struct sk_buff *skb, 37 struct net_device *netdev, 38 netdev_features_t features); 39void wx_set_ring(struct wx *wx, u32 new_tx_count, 40 u32 new_rx_count, struct wx_ring *temp_ring); 41void wx_service_event_schedule(struct wx *wx); 42void wx_service_event_complete(struct wx *wx); 43void wx_service_timer(struct timer_list *t); 44 45#endif /* _WX_LIB_H_ */
~/
Read-only file preview.