drivers/net/ethernet/freescale/enetc/enetc_mailbox.h
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/freescale/enetc/enetc_mailbox.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/freescale/enetc/enetc_mailbox.h- Extension
.h- Size
- 6589 bytes
- Lines
- 171
- 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/crc-itu-t.h
Detected Declarations
struct enetc_msg_swbdstruct enetc_msg_headerstruct enetc_mac_addrstruct enetc_msg_mac_exact_filterstruct enetc_msg_genericenum enetc_msg_class_idenum enetc_msg_mac_filter_cmd_idenum enetc_msg_ip_revision_cmd_idenum enetc_mac_filter_class_code
Annotated Snippet
struct enetc_msg_swbd {
void *vaddr;
dma_addr_t dma;
int size;
};
/* The generic VSI-to-PSI message header */
struct enetc_msg_header {
__be16 crc16;
u8 class_id;
u8 cmd_id;
u8 proto_ver;
u8 len;
u8 resv0;
u8 cookie;
u8 resv2[8];
};
struct enetc_mac_addr {
u8 addr[ETH_ALEN]; /* Network byte order */
};
/* Message format of class_id 0x20 for exact MAC filter.
* cmd_id 0x0: set primary MAC
* cmd_id 0x1: Add entries to MAC address filter table
* cmd_id 0x2: Delete entries from MAC address filter table
* Note that cmd_id 0x1 and 0x2 are not supported yet.
*/
struct enetc_msg_mac_exact_filter {
struct enetc_msg_header hdr;
u8 mac_cnt; /* No need to set for cmd_id 0 */
u8 resv[3];
struct enetc_mac_addr mac[];
};
/* The generic message format applies to the following messages:
* Get IP revision message, class_id 0xf0.
* cmd_id 1: get IP minor revision
*/
struct enetc_msg_generic {
struct enetc_msg_header hdr;
u8 resv[16];
};
#endif
Annotation
- Immediate include surface: `linux/crc-itu-t.h`.
- Detected declarations: `struct enetc_msg_swbd`, `struct enetc_msg_header`, `struct enetc_mac_addr`, `struct enetc_msg_mac_exact_filter`, `struct enetc_msg_generic`, `enum enetc_msg_class_id`, `enum enetc_msg_mac_filter_cmd_id`, `enum enetc_msg_ip_revision_cmd_id`, `enum enetc_mac_filter_class_code`.
- 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.