drivers/net/ethernet/broadcom/bnge/bnge_auxr.h
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/broadcom/bnge/bnge_auxr.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/broadcom/bnge/bnge_auxr.h- Extension
.h- Size
- 1804 bytes
- Lines
- 85
- 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.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/auxiliary_bus.h
Detected Declarations
struct hwrm_async_event_cmplstruct bngestruct bnge_msix_infostruct bnge_fw_msgstruct bnge_auxr_infostruct bnge_auxr_dev
Annotated Snippet
struct bnge_msix_info {
u32 vector;
u32 ring_idx;
u32 db_offset;
};
struct bnge_fw_msg {
void *msg;
int msg_len;
void *resp;
int resp_max_len;
int timeout;
};
struct bnge_auxr_info {
void *handle;
u16 msix_requested;
};
enum {
BNGE_ARDEV_ROCEV1_SUPP = BIT(0),
BNGE_ARDEV_ROCEV2_SUPP = BIT(1),
BNGE_ARDEV_MSIX_ALLOC = BIT(2),
};
#define BNGE_ARDEV_ROCE_SUPP (BNGE_ARDEV_ROCEV1_SUPP | \
BNGE_ARDEV_ROCEV2_SUPP)
struct bnge_auxr_dev {
struct net_device *net;
struct pci_dev *pdev;
void __iomem *bar0;
struct bnge_msix_info msix_info[BNGE_MAX_ROCE_MSIX];
u32 flags;
struct bnge_auxr_info *auxr_info;
/* Doorbell BAR size in bytes mapped by L2 driver. */
int l2_db_size;
/* Doorbell BAR size in bytes mapped as non-cacheable. */
int l2_db_size_nc;
/* Doorbell offset in bytes within l2_db_size_nc. */
int l2_db_offset;
u16 chip_num;
u16 hw_ring_stats_size;
u16 pf_port_id;
unsigned long en_state;
u16 auxr_num_msix_vec;
u16 auxr_num_ctxs;
/* serialize auxr operations */
struct mutex auxr_dev_lock;
};
void bnge_rdma_aux_device_uninit(struct bnge_dev *bdev);
void bnge_rdma_aux_device_del(struct bnge_dev *bdev);
void bnge_rdma_aux_device_add(struct bnge_dev *bdev);
void bnge_rdma_aux_device_init(struct bnge_dev *bdev);
int bnge_register_dev(struct bnge_auxr_dev *adev,
void *handle);
void bnge_unregister_dev(struct bnge_auxr_dev *adev);
int bnge_send_msg(struct bnge_auxr_dev *adev, struct bnge_fw_msg *fw_msg);
#endif /* _BNGE_AUXR_H_ */
Annotation
- Immediate include surface: `linux/auxiliary_bus.h`.
- Detected declarations: `struct hwrm_async_event_cmpl`, `struct bnge`, `struct bnge_msix_info`, `struct bnge_fw_msg`, `struct bnge_auxr_info`, `struct bnge_auxr_dev`.
- Atlas domain: Driver Families / drivers/net.
- Implementation status: source implementation candidate.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.