drivers/net/wireless/ath/carl9170/hw.h
Source file repositories/reference/linux-study-clean/drivers/net/wireless/ath/carl9170/hw.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/ath/carl9170/hw.h- Extension
.h- Size
- 38781 bytes
- Lines
- 885
- 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
- No C-style include directives detected by the generator.
Detected Declarations
struct ar9170_streamenum cpu_clockenum ar9170_usb_epenum ar9170_usb_fifoenum ar9170_tx_queues
Annotated Snippet
struct ar9170_stream {
__le16 length;
__le16 tag;
u8 payload[];
} __packed __aligned(4);
#define AR9170_STREAM_LEN 4
#define AR9170_MAX_ACKTABLE_ENTRIES 8
#define AR9170_MAX_VIRTUAL_MAC 7
#define AR9170_USB_EP_CTRL_MAX 64
#define AR9170_USB_EP_TX_MAX 512
#define AR9170_USB_EP_RX_MAX 512
#define AR9170_USB_EP_IRQ_MAX 64
#define AR9170_USB_EP_CMD_MAX 64
/* Trigger PRETBTT interrupt 6 Kus earlier */
#define CARL9170_PRETBTT_KUS 6
#define AR5416_MAX_RATE_POWER 63
#define SET_VAL(reg, value, newvalue) \
(value = ((value) & ~reg) | (((newvalue) << reg##_S) & reg))
#define SET_CONSTVAL(reg, newvalue) \
(((newvalue) << reg##_S) & reg)
#define MOD_VAL(reg, value, newvalue) \
(((value) & ~reg) | (((newvalue) << reg##_S) & reg))
#define GET_VAL(reg, value) \
(((value) & reg) >> reg##_S)
#endif /* __CARL9170_SHARED_HW_H */
Annotation
- Detected declarations: `struct ar9170_stream`, `enum cpu_clock`, `enum ar9170_usb_ep`, `enum ar9170_usb_fifo`, `enum ar9170_tx_queues`.
- 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.