drivers/net/ethernet/apm/xgene-v2/main.h
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/apm/xgene-v2/main.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/apm/xgene-v2/main.h- Extension
.h- Size
- 1513 bytes
- Lines
- 69
- 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/acpi.hlinux/clk.hlinux/efi.hlinux/if_vlan.hlinux/irq.hlinux/io.hlinux/module.hlinux/of_platform.hlinux/of_net.hlinux/of_mdio.hlinux/prefetch.hlinux/phy.hlinux/platform_device.hnet/ip.hmac.henet.hring.hethtool.h
Detected Declarations
struct xge_resourcestruct xge_statsstruct xge_pdata
Annotated Snippet
struct xge_resource {
void __iomem *base_addr;
int phy_mode;
u32 irq;
};
struct xge_stats {
u64 tx_packets;
u64 tx_bytes;
u64 rx_packets;
u64 rx_bytes;
u64 rx_errors;
};
/* ethernet private data */
struct xge_pdata {
struct xge_resource resources;
struct xge_desc_ring *tx_ring;
struct xge_desc_ring *rx_ring;
struct platform_device *pdev;
char irq_name[IRQ_ID_SIZE];
struct mii_bus *mdio_bus;
struct net_device *ndev;
struct napi_struct napi;
struct xge_stats stats;
int phy_speed;
u8 nbufs;
};
int xge_mdio_config(struct net_device *ndev);
void xge_mdio_remove(struct net_device *ndev);
#endif /* __XGENE_ENET_V2_MAIN_H__ */
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/clk.h`, `linux/efi.h`, `linux/if_vlan.h`, `linux/irq.h`, `linux/io.h`, `linux/module.h`, `linux/of_platform.h`.
- Detected declarations: `struct xge_resource`, `struct xge_stats`, `struct xge_pdata`.
- 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.