drivers/net/ethernet/netronome/nfp/nic/main.h
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/netronome/nfp/nic/main.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/netronome/nfp/nic/main.h- Extension
.h- Size
- 1051 bytes
- Lines
- 47
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/netdevice.h
Detected Declarations
struct nfp_dcbstruct nfp_app_nic_privatefunction nfp_nic_dcb_initfunction nfp_nic_dcb_clean
Annotated Snippet
struct nfp_dcb {
u8 dscp2prio[NFP_NET_MAX_DSCP];
u8 prio2tc[NFP_NET_MAX_PRIO];
u8 tc2idx[IEEE_8021QAZ_MAX_TCS];
u64 tc_maxrate[IEEE_8021QAZ_MAX_TCS];
u8 tc_tx_pct[IEEE_8021QAZ_MAX_TCS];
u8 tc_tsa[IEEE_8021QAZ_MAX_TCS];
u8 dscp_cnt;
u8 trust_status;
bool rate_init;
bool ets_init;
struct nfp_cpp_area *dcbcfg_tbl_area;
u8 __iomem *dcbcfg_tbl;
u32 cfg_offset;
};
int nfp_nic_dcb_init(struct nfp_net *nn);
void nfp_nic_dcb_clean(struct nfp_net *nn);
#else
static inline int nfp_nic_dcb_init(struct nfp_net *nn) { return 0; }
static inline void nfp_nic_dcb_clean(struct nfp_net *nn) {}
#endif
struct nfp_app_nic_private {
#ifdef CONFIG_DCB
struct nfp_dcb dcb;
#endif
};
#endif
Annotation
- Immediate include surface: `linux/netdevice.h`.
- Detected declarations: `struct nfp_dcb`, `struct nfp_app_nic_private`, `function nfp_nic_dcb_init`, `function nfp_nic_dcb_clean`.
- Atlas domain: Driver Families / drivers/net.
- Implementation status: source implementation candidate.
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.