drivers/net/wireless/purelifi/plfxlc/mac.h
Source file repositories/reference/linux-study-clean/drivers/net/wireless/purelifi/plfxlc/mac.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/purelifi/plfxlc/mac.h- Extension
.h- Size
- 4838 bytes
- Lines
- 185
- 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/kernel.hnet/mac80211.hchip.h
Detected Declarations
struct plfxlc_ctrlsetstruct plfxlc_headerstruct tx_statusstruct beaconstruct plfxlc_macenum plfxlc_device_flagsfunction plfxlc_hw_macfunction plfxlc_chip_to_macfunction plfxlc_usb_to_mac
Annotated Snippet
struct plfxlc_ctrlset {
/* id should be plf_usb_req_enum */
__be32 id;
__be32 len;
u8 modulation;
u8 control;
u8 service;
u8 pad;
__le16 packet_length;
__le16 current_length;
__le16 next_frame_length;
__le16 tx_length;
__be32 payload_len_nw;
} __packed;
/* overlay */
struct plfxlc_header {
struct plfxlc_ctrlset plf_ctrl;
u32 frametype;
u8 *dmac;
} __packed;
struct tx_status {
u8 type;
u8 id;
u8 rate;
u8 pad;
u8 mac[ETH_ALEN];
u8 retry;
u8 failure;
} __packed;
struct beacon {
struct delayed_work watchdog_work;
struct sk_buff *cur_beacon;
unsigned long last_update;
u16 interval;
u8 period;
};
enum plfxlc_device_flags {
PURELIFI_DEVICE_RUNNING,
};
struct plfxlc_mac {
struct ieee80211_hw *hw;
struct ieee80211_vif *vif;
struct beacon beacon;
struct work_struct set_rts_cts_work;
struct work_struct process_intr;
struct plfxlc_mc_hash multicast_hash;
struct sk_buff_head ack_wait_queue;
struct ieee80211_channel channels[14];
struct ieee80211_rate rates[12];
struct ieee80211_supported_band band;
struct plfxlc_chip chip;
spinlock_t lock; /* lock for mac data */
u8 intr_buffer[USB_MAX_EP_INT_BUFFER];
char serial_number[PURELIFI_SERIAL_LEN];
unsigned char hw_address[ETH_ALEN];
u8 default_regdomain;
unsigned long flags;
bool pass_failed_fcs;
bool pass_ctrl;
bool ack_pending;
int ack_signal;
int associated;
u8 regdomain;
u8 channel;
int type;
u64 crc_errors;
u64 rssi;
};
static inline struct plfxlc_mac *
plfxlc_hw_mac(struct ieee80211_hw *hw)
{
return hw->priv;
}
static inline struct plfxlc_mac *
plfxlc_chip_to_mac(struct plfxlc_chip *chip)
{
return container_of(chip, struct plfxlc_mac, chip);
}
static inline struct plfxlc_mac *
plfxlc_usb_to_mac(struct plfxlc_usb *usb)
{
return plfxlc_chip_to_mac(plfxlc_usb_to_chip(usb));
Annotation
- Immediate include surface: `linux/kernel.h`, `net/mac80211.h`, `chip.h`.
- Detected declarations: `struct plfxlc_ctrlset`, `struct plfxlc_header`, `struct tx_status`, `struct beacon`, `struct plfxlc_mac`, `enum plfxlc_device_flags`, `function plfxlc_hw_mac`, `function plfxlc_chip_to_mac`, `function plfxlc_usb_to_mac`.
- 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.