drivers/net/ethernet/freescale/dpaa2/dpmac-cmd.h
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/freescale/dpaa2/dpmac-cmd.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/freescale/dpaa2/dpmac-cmd.h- Extension
.h- Size
- 2147 bytes
- Lines
- 95
- 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 dpmac_cmd_openstruct dpmac_rsp_get_attributesstruct dpmac_cmd_set_link_statestruct dpmac_cmd_get_counterstruct dpmac_rsp_get_counterstruct dpmac_rsp_get_api_versionstruct dpmac_cmd_set_protocolstruct dpmac_cmd_get_statistics
Annotated Snippet
struct dpmac_cmd_open {
__le32 dpmac_id;
};
struct dpmac_rsp_get_attributes {
u8 eth_if;
u8 link_type;
__le16 id;
__le32 max_rate;
};
#define DPMAC_STATE_SIZE 1
#define DPMAC_STATE_SHIFT 0
#define DPMAC_STATE_VALID_SIZE 1
#define DPMAC_STATE_VALID_SHIFT 1
struct dpmac_cmd_set_link_state {
__le64 options;
__le32 rate;
__le32 pad0;
/* from lsb: up:1, state_valid:1 */
u8 state;
u8 pad1[7];
__le64 supported;
__le64 advertising;
};
struct dpmac_cmd_get_counter {
u8 id;
};
struct dpmac_rsp_get_counter {
__le64 pad;
__le64 counter;
};
struct dpmac_rsp_get_api_version {
__le16 major;
__le16 minor;
};
struct dpmac_cmd_set_protocol {
u8 eth_if;
};
struct dpmac_cmd_get_statistics {
__le64 iova_cnt;
__le64 iova_values;
__le32 num_cnt;
};
#endif /* _FSL_DPMAC_CMD_H */
Annotation
- Detected declarations: `struct dpmac_cmd_open`, `struct dpmac_rsp_get_attributes`, `struct dpmac_cmd_set_link_state`, `struct dpmac_cmd_get_counter`, `struct dpmac_rsp_get_counter`, `struct dpmac_rsp_get_api_version`, `struct dpmac_cmd_set_protocol`, `struct dpmac_cmd_get_statistics`.
- 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.