drivers/net/wireless/intel/ipw2x00/ipw2100.h
Source file repositories/reference/linux-study-clean/drivers/net/wireless/intel/ipw2x00/ipw2100.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/intel/ipw2x00/ipw2100.h- Extension
.h- Size
- 40348 bytes
- Lines
- 1141
- 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/sched.hlinux/interrupt.hlinux/netdevice.hlinux/etherdevice.hlinux/list.hlinux/delay.hlinux/skbuff.hasm/io.hlinux/socket.hlinux/if_arp.hlinux/wireless.hnet/iw_handler.hnet/ieee80211_radiotap.hlinux/workqueue.hlinux/mutex.hlibipw.h
Detected Declarations
struct ipw2100_privstruct ipw2100_tx_packetstruct ipw2100_rx_packetstruct bd_statusstruct ipw2100_bdstruct ipw2100_bd_queuestruct ipw2100_statusstruct ipw2100_status_queuestruct ipw2100_wpa_assoc_framestruct ipw2100_cmd_headerstruct ipw2100_data_headerstruct host_commandstruct ipw2100_tx_packetstruct ipw2100_rx_packetstruct ipw2100_ordinalsstruct ipw2100_notificationstruct statisticstruct ipw2100_privstruct ipw2100_rxstruct ipw2100_fw_chunkstruct ipw2100_fw_chunk_setstruct ipw2100_fw
Annotated Snippet
struct bd_status {
union {
struct {
u8 nlf:1, txType:2, intEnabled:1, reserved:4;
} fields;
u8 field;
} info;
} __packed;
struct ipw2100_bd {
u32 host_addr;
u32 buf_length;
struct bd_status status;
/* number of fragments for frame (should be set only for
* 1st TBD) */
u8 num_fragments;
u8 reserved[6];
} __packed;
#define IPW_BD_QUEUE_LENGTH(n) (1<<n)
#define IPW_BD_ALIGNMENT(L) (L*sizeof(struct ipw2100_bd))
#define IPW_BD_STATUS_TX_FRAME_802_3 0x00
#define IPW_BD_STATUS_TX_FRAME_NOT_LAST_FRAGMENT 0x01
#define IPW_BD_STATUS_TX_FRAME_COMMAND 0x02
#define IPW_BD_STATUS_TX_FRAME_802_11 0x04
#define IPW_BD_STATUS_TX_INTERRUPT_ENABLE 0x08
struct ipw2100_bd_queue {
/* driver (virtual) pointer to queue */
struct ipw2100_bd *drv;
/* firmware (physical) pointer to queue */
dma_addr_t nic;
/* Length of phy memory allocated for BDs */
u32 size;
/* Number of BDs in queue (and in array) */
u32 entries;
/* Number of available BDs (invalid for NIC BDs) */
u32 available;
/* Offset of oldest used BD in array (next one to
* check for completion) */
u32 oldest;
/* Offset of next available (unused) BD */
u32 next;
};
#define RX_QUEUE_LENGTH 256
#define TX_QUEUE_LENGTH 256
#define HW_QUEUE_LENGTH 256
#define TX_PENDED_QUEUE_LENGTH (TX_QUEUE_LENGTH / NUMBER_OF_BD_PER_DATA_PACKET)
#define STATUS_TYPE_MASK 0x0000000f
#define COMMAND_STATUS_VAL 0
#define STATUS_CHANGE_VAL 1
#define P80211_DATA_VAL 2
#define P8023_DATA_VAL 3
#define HOST_NOTIFICATION_VAL 4
#define IPW2100_RSSI_TO_DBM (-98)
struct ipw2100_status {
u32 frame_size;
u16 status_fields;
u8 flags;
#define IPW_STATUS_FLAG_DECRYPTED (1<<0)
#define IPW_STATUS_FLAG_WEP_ENCRYPTED (1<<1)
#define IPW_STATUS_FLAG_CRC_ERROR (1<<2)
u8 rssi;
} __packed;
struct ipw2100_status_queue {
/* driver (virtual) pointer to queue */
struct ipw2100_status *drv;
/* firmware (physical) pointer to queue */
dma_addr_t nic;
/* Length of phy memory allocated for BDs */
u32 size;
};
#define HOST_COMMAND_PARAMS_REG_LEN 100
#define CMD_STATUS_PARAMS_REG_LEN 3
Annotation
- Immediate include surface: `linux/sched.h`, `linux/interrupt.h`, `linux/netdevice.h`, `linux/etherdevice.h`, `linux/list.h`, `linux/delay.h`, `linux/skbuff.h`, `asm/io.h`.
- Detected declarations: `struct ipw2100_priv`, `struct ipw2100_tx_packet`, `struct ipw2100_rx_packet`, `struct bd_status`, `struct ipw2100_bd`, `struct ipw2100_bd_queue`, `struct ipw2100_status`, `struct ipw2100_status_queue`, `struct ipw2100_wpa_assoc_frame`, `struct ipw2100_cmd_header`.
- 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.