drivers/net/ethernet/moxa/moxart_ether.h
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/moxa/moxart_ether.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/moxa/moxart_ether.h- Extension
.h- Size
- 10533 bytes
- Lines
- 332
- 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
- No C-style include directives detected by the generator.
Detected Declarations
struct moxart_mac_priv_t
Annotated Snippet
struct moxart_mac_priv_t {
struct platform_device *pdev;
void __iomem *base;
unsigned int reg_maccr;
unsigned int reg_imr;
struct napi_struct napi;
struct net_device *ndev;
dma_addr_t rx_base;
dma_addr_t rx_mapping[RX_DESC_NUM];
void *rx_desc_base;
unsigned char *rx_buf_base;
unsigned char *rx_buf[RX_DESC_NUM];
unsigned int rx_head;
unsigned int rx_buf_size;
dma_addr_t tx_base;
dma_addr_t tx_mapping[TX_DESC_NUM];
void *tx_desc_base;
unsigned char *tx_buf_base;
unsigned char *tx_buf[RX_DESC_NUM];
unsigned int tx_head;
unsigned int tx_buf_size;
spinlock_t txlock;
unsigned int tx_len[TX_DESC_NUM];
struct sk_buff *tx_skb[TX_DESC_NUM];
unsigned int tx_tail;
};
#if TX_BUF_SIZE >= TX_BUF_SIZE_MAX
#error MOXA ART Ethernet device driver TX buffer is too large!
#endif
#if RX_BUF_SIZE >= RX_BUF_SIZE_MAX
#error MOXA ART Ethernet device driver RX buffer is too large!
#endif
#endif
Annotation
- Detected declarations: `struct moxart_mac_priv_t`.
- 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.