drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h- Extension
.h- Size
- 40915 bytes
- Lines
- 1547
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- 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 bnx2xstruct eth_contextstruct bnx2x_raw_objstruct bnx2x_mac_ramrod_datastruct bnx2x_vlan_ramrod_datastruct bnx2x_vlan_mac_ramrod_datastruct bnx2x_vlan_mac_datastruct bnx2x_exeq_elemstruct bnx2x_exe_queue_objstruct bnx2x_exe_queue_objstruct bnx2x_vlan_mac_registry_elemstruct bnx2x_vlan_mac_ramrod_paramsstruct bnx2x_vlan_mac_objstruct bnx2x_rx_mode_ramrod_paramsstruct bnx2x_rx_mode_objstruct bnx2x_mcast_list_elemstruct bnx2x_mcast_ramrod_paramsstruct bnx2x_mcast_objstruct bnx2x_credit_pool_objstruct bnx2x_config_rss_paramsstruct bnx2x_rss_config_objstruct bnx2x_queue_init_paramsstruct bnx2x_queue_terminate_paramsstruct bnx2x_queue_cfc_del_paramsstruct bnx2x_queue_update_paramsstruct bnx2x_queue_update_tpa_paramsstruct rxq_pause_paramsstruct bnx2x_general_setup_paramsstruct bnx2x_rxq_setup_paramsstruct bnx2x_txq_setup_paramsstruct bnx2x_queue_setup_paramsstruct bnx2x_queue_setup_tx_only_paramsstruct bnx2x_queue_state_paramsstruct bnx2x_viflist_paramsstruct bnx2x_queue_sp_objstruct bnx2x_func_hw_init_paramsstruct bnx2x_func_hw_reset_paramsstruct bnx2x_func_start_paramsstruct bnx2x_func_switch_update_paramsstruct bnx2x_func_afex_update_paramsstruct bnx2x_func_afex_viflists_paramsstruct bnx2x_func_tx_start_paramsstruct bnx2x_func_set_timesync_paramsstruct bnx2x_func_state_paramsstruct bnx2x_func_sp_drv_opsstruct bnx2x_func_sp_objenum bnx2x_vlan_mac_cmdenum bnx2x_mcast_cmd
Annotated Snippet
struct bnx2x_raw_obj {
u8 func_id;
/* Queue params */
u8 cl_id;
u32 cid;
/* Ramrod data buffer params */
void *rdata;
dma_addr_t rdata_mapping;
/* Ramrod state params */
int state; /* "ramrod is pending" state bit */
unsigned long *pstate; /* pointer to state buffer */
bnx2x_obj_type obj_type;
int (*wait_comp)(struct bnx2x *bp,
struct bnx2x_raw_obj *o);
bool (*check_pending)(struct bnx2x_raw_obj *o);
void (*clear_pending)(struct bnx2x_raw_obj *o);
void (*set_pending)(struct bnx2x_raw_obj *o);
};
/************************* VLAN-MAC commands related parameters ***************/
struct bnx2x_mac_ramrod_data {
u8 mac[ETH_ALEN];
u8 is_inner_mac;
};
struct bnx2x_vlan_ramrod_data {
u16 vlan;
};
struct bnx2x_vlan_mac_ramrod_data {
u8 mac[ETH_ALEN];
u8 is_inner_mac;
u16 vlan;
};
union bnx2x_classification_ramrod_data {
struct bnx2x_mac_ramrod_data mac;
struct bnx2x_vlan_ramrod_data vlan;
struct bnx2x_vlan_mac_ramrod_data vlan_mac;
};
/* VLAN_MAC commands */
enum bnx2x_vlan_mac_cmd {
BNX2X_VLAN_MAC_ADD,
BNX2X_VLAN_MAC_DEL,
BNX2X_VLAN_MAC_MOVE,
};
struct bnx2x_vlan_mac_data {
/* Requested command: BNX2X_VLAN_MAC_XX */
enum bnx2x_vlan_mac_cmd cmd;
/* used to contain the data related vlan_mac_flags bits from
* ramrod parameters.
*/
unsigned long vlan_mac_flags;
/* Needed for MOVE command */
struct bnx2x_vlan_mac_obj *target_obj;
union bnx2x_classification_ramrod_data u;
};
/*************************** Exe Queue obj ************************************/
union bnx2x_exe_queue_cmd_data {
struct bnx2x_vlan_mac_data vlan_mac;
struct {
/* TODO */
} mcast;
};
struct bnx2x_exeq_elem {
struct list_head link;
/* Length of this element in the exe_chunk. */
int cmd_len;
union bnx2x_exe_queue_cmd_data cmd_data;
};
union bnx2x_qable_obj;
union bnx2x_exeq_comp_elem {
union event_ring_elem *elem;
Annotation
- Detected declarations: `struct bnx2x`, `struct eth_context`, `struct bnx2x_raw_obj`, `struct bnx2x_mac_ramrod_data`, `struct bnx2x_vlan_ramrod_data`, `struct bnx2x_vlan_mac_ramrod_data`, `struct bnx2x_vlan_mac_data`, `struct bnx2x_exeq_elem`, `struct bnx2x_exe_queue_obj`, `struct bnx2x_exe_queue_obj`.
- Atlas domain: Driver Families / drivers/net.
- Implementation status: source implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.