drivers/net/ethernet/sfc/efx_devlink.h
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/sfc/efx_devlink.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/sfc/efx_devlink.h- Extension
.h- Size
- 1853 bytes
- Lines
- 48
- 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
net_driver.hnet/devlink.h
Detected Declarations
struct efx_rep
Annotated Snippet
#ifndef _EFX_DEVLINK_H
#define _EFX_DEVLINK_H
#include "net_driver.h"
#include <net/devlink.h>
/* Custom devlink-info version object names for details that do not map to the
* generic standardized names.
*/
#define EFX_DEVLINK_INFO_VERSION_FW_MGMT_SUC "fw.mgmt.suc"
#define EFX_DEVLINK_INFO_VERSION_FW_MGMT_CMC "fw.mgmt.cmc"
#define EFX_DEVLINK_INFO_VERSION_FPGA_REV "fpga.rev"
#define EFX_DEVLINK_INFO_VERSION_DATAPATH_HW "fpga.app"
#define EFX_DEVLINK_INFO_VERSION_DATAPATH_FW DEVLINK_INFO_VERSION_GENERIC_FW_APP
#define EFX_DEVLINK_INFO_VERSION_SOC_BOOT "coproc.boot"
#define EFX_DEVLINK_INFO_VERSION_SOC_UBOOT "coproc.uboot"
#define EFX_DEVLINK_INFO_VERSION_SOC_MAIN "coproc.main"
#define EFX_DEVLINK_INFO_VERSION_SOC_RECOVERY "coproc.recovery"
#define EFX_DEVLINK_INFO_VERSION_FW_EXPROM "fw.exprom"
#define EFX_DEVLINK_INFO_VERSION_FW_UEFI "fw.uefi"
#define EFX_MAX_VERSION_INFO_LEN 64
int efx_probe_devlink_and_lock(struct efx_nic *efx);
void efx_probe_devlink_unlock(struct efx_nic *efx);
void efx_fini_devlink_lock(struct efx_nic *efx);
void efx_fini_devlink_and_unlock(struct efx_nic *efx);
#ifdef CONFIG_SFC_SRIOV
struct efx_rep;
void ef100_pf_set_devlink_port(struct efx_nic *efx);
void ef100_rep_set_devlink_port(struct efx_rep *efv);
void ef100_pf_unset_devlink_port(struct efx_nic *efx);
void ef100_rep_unset_devlink_port(struct efx_rep *efv);
#endif
#endif /* _EFX_DEVLINK_H */
Annotation
- Immediate include surface: `net_driver.h`, `net/devlink.h`.
- Detected declarations: `struct efx_rep`.
- 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.