drivers/net/ethernet/huawei/hinic3/hinic3_nic_dev.h
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/huawei/hinic3/hinic3_nic_dev.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/huawei/hinic3/hinic3_nic_dev.h- Extension
.h- Size
- 4123 bytes
- Lines
- 155
- Domain
- Driver Families
- Bucket
- drivers/net
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/if_vlan.hlinux/netdevice.hhinic3_hw_cfg.hhinic3_hwdev.hhinic3_mgmt_interface.h
Detected Declarations
struct hinic3_mac_filterstruct hinic3_rss_typestruct hinic3_irq_cfgstruct hinic3_dyna_txrxq_paramsstruct hinic3_intr_coal_infostruct hinic3_nic_devenum hinic3_flagsenum hinic3_event_work_flagsenum hinic3_rx_mode_stateenum hinic3_mac_filter_stateenum hinic3_rss_hash_type
Annotated Snippet
struct hinic3_mac_filter {
struct list_head list;
u8 addr[ETH_ALEN];
unsigned long state;
};
enum hinic3_rss_hash_type {
HINIC3_RSS_HASH_ENGINE_TYPE_XOR = 0,
HINIC3_RSS_HASH_ENGINE_TYPE_TOEP = 1,
};
struct hinic3_rss_type {
u8 tcp_ipv6_ext;
u8 ipv6_ext;
u8 tcp_ipv6;
u8 ipv6;
u8 tcp_ipv4;
u8 ipv4;
u8 udp_ipv6;
u8 udp_ipv4;
};
struct hinic3_irq_cfg {
struct net_device *netdev;
u16 msix_entry_idx;
/* provided by OS */
u32 irq_id;
char irq_name[IFNAMSIZ + 16];
struct napi_struct napi;
cpumask_t affinity_mask;
struct hinic3_txq *txq;
struct hinic3_rxq *rxq;
u16 total_events;
};
struct hinic3_dyna_txrxq_params {
u16 num_qps;
u32 sq_depth;
u32 rq_depth;
struct hinic3_dyna_txq_res *txqs_res;
struct hinic3_dyna_rxq_res *rxqs_res;
struct hinic3_irq_cfg *irq_cfg;
};
struct hinic3_intr_coal_info {
u8 pending_limit;
u8 coalesce_timer_cfg;
u8 resend_timer_cfg;
u8 rx_pending_limit_low;
u8 rx_pending_limit_high;
};
struct hinic3_nic_dev {
struct pci_dev *pdev;
struct net_device *netdev;
struct hinic3_hwdev *hwdev;
struct hinic3_nic_io *nic_io;
u32 msg_enable;
u16 max_qps;
u16 rx_buf_len;
u32 lro_replenish_thld;
unsigned long *vlan_bitmap;
unsigned long flags;
struct hinic3_nic_service_cap nic_svc_cap;
struct hinic3_dyna_txrxq_params q_params;
struct hinic3_txq *txqs;
struct hinic3_rxq *rxqs;
enum hinic3_rss_hash_type rss_hash_type;
struct hinic3_rss_type rss_type;
u8 *rss_hkey;
u16 *rss_indir;
u16 num_qp_irq;
struct msix_entry *qps_msix_entries;
struct hinic3_intr_coal_info *intr_coalesce;
u32 adaptive_rx_coal;
struct workqueue_struct *workq;
struct delayed_work periodic_work;
struct work_struct rx_mode_work;
/* lock for enable/disable port */
struct mutex port_state_mutex;
struct list_head uc_filter_list;
Annotation
- Immediate include surface: `linux/if_vlan.h`, `linux/netdevice.h`, `hinic3_hw_cfg.h`, `hinic3_hwdev.h`, `hinic3_mgmt_interface.h`.
- Detected declarations: `struct hinic3_mac_filter`, `struct hinic3_rss_type`, `struct hinic3_irq_cfg`, `struct hinic3_dyna_txrxq_params`, `struct hinic3_intr_coal_info`, `struct hinic3_nic_dev`, `enum hinic3_flags`, `enum hinic3_event_work_flags`, `enum hinic3_rx_mode_state`, `enum hinic3_mac_filter_state`.
- Atlas domain: Driver Families / drivers/net.
- Implementation status: source implementation candidate.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.