drivers/net/wireless/ath/ath11k/pci.c
Source file repositories/reference/linux-study-clean/drivers/net/wireless/ath/ath11k/pci.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/ath/ath11k/pci.c- Extension
.c- Size
- 35000 bytes
- Lines
- 1331
- Domain
- Driver Families
- Bucket
- drivers/net
- Inferred role
- Driver Families: operation-table or driver-model contract
- Status
- pattern 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 an operation table; this is where Linux turns generic core objects into subsystem-specific behavior.
- Touches user memory; correctness depends on fault-safe copying and privilege boundary handling.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/module.hlinux/msi.hlinux/pci.hlinux/of.hlinux/time.hlinux/vmalloc.hpci.hcore.hhif.hmhi.hdebug.hpcic.hqmi.h
Detected Declarations
function ath11k_pci_bus_wake_upfunction ath11k_pci_bus_releasefunction ath11k_pci_get_window_startfunction ath11k_pci_select_windowfunction ath11k_pci_window_write32function ath11k_pci_window_read32function ath11k_pci_get_msi_irqfunction ath11k_pci_select_static_windowfunction ath11k_pci_restore_windowfunction ath11k_pci_soc_global_resetfunction ath11k_pci_clear_dbg_registersfunction ath11k_pci_set_link_regfunction ath11k_pci_fix_l1ssfunction ath11k_pci_enable_ltssmfunction ath11k_pci_clear_all_intrsfunction ath11k_pci_set_wlaon_pwr_ctrlfunction ath11k_pci_force_wakefunction ath11k_pci_sw_resetfunction ath11k_pci_init_qmi_ce_configfunction ath11k_pci_msi_configfunction ath11k_pci_msi_enablefunction ath11k_pci_msi_disablefunction ath11k_pci_alloc_msifunction ath11k_pci_free_msifunction ath11k_pci_config_msi_datafunction ath11k_pci_claimfunction ath11k_pci_free_regionfunction ath11k_pci_aspm_disablefunction ath11k_pci_aspm_restorefunction ath11k_pci_coredump_calculate_sizefunction ath11k_pci_coredump_downloadfunction ath11k_pci_power_upfunction ath11k_pci_power_downfunction ath11k_pci_hif_suspendfunction ath11k_pci_hif_resumefunction ath11k_pci_hif_ce_irq_enablefunction ath11k_pci_hif_ce_irq_disablefunction ath11k_pci_startfunction ath11k_pci_read_hw_versionfunction ath11k_pci_set_irq_affinity_hintfunction ath11k_pci_probefunction ath11k_pci_removefunction ath11k_pci_shutdownfunction ath11k_pci_pm_suspendfunction ath11k_pci_pm_resumefunction ath11k_pci_pm_suspend_latefunction ath11k_pci_pm_resume_earlyfunction ath11k_pci_init
Annotated Snippet
static struct pci_driver ath11k_pci_driver = {
.name = "ath11k_pci",
.id_table = ath11k_pci_id_table,
.probe = ath11k_pci_probe,
.remove = ath11k_pci_remove,
.shutdown = ath11k_pci_shutdown,
#ifdef CONFIG_PM
.driver.pm = &ath11k_pci_pm_ops,
#endif
};
static int ath11k_pci_init(void)
{
int ret;
ret = pci_register_driver(&ath11k_pci_driver);
if (ret)
pr_err("failed to register ath11k pci driver: %d\n",
ret);
return ret;
}
module_init(ath11k_pci_init);
static void ath11k_pci_exit(void)
{
pci_unregister_driver(&ath11k_pci_driver);
}
module_exit(ath11k_pci_exit);
MODULE_DESCRIPTION("Driver support for Qualcomm Technologies PCIe 802.11ax WLAN devices");
MODULE_LICENSE("Dual BSD/GPL");
/* firmware files */
MODULE_FIRMWARE(ATH11K_FW_DIR "/QCA6390/hw2.0/*");
MODULE_FIRMWARE(ATH11K_FW_DIR "/QCN9074/hw1.0/*");
MODULE_FIRMWARE(ATH11K_FW_DIR "/WCN6855/hw2.0/*");
MODULE_FIRMWARE(ATH11K_FW_DIR "/WCN6855/hw2.1/*");
Annotation
- Immediate include surface: `linux/module.h`, `linux/msi.h`, `linux/pci.h`, `linux/of.h`, `linux/time.h`, `linux/vmalloc.h`, `pci.h`, `core.h`.
- Detected declarations: `function ath11k_pci_bus_wake_up`, `function ath11k_pci_bus_release`, `function ath11k_pci_get_window_start`, `function ath11k_pci_select_window`, `function ath11k_pci_window_write32`, `function ath11k_pci_window_read32`, `function ath11k_pci_get_msi_irq`, `function ath11k_pci_select_static_window`, `function ath11k_pci_restore_window`, `function ath11k_pci_soc_global_reset`.
- Atlas domain: Driver Families / drivers/net.
- Implementation status: pattern implementation candidate.
- This snippet crosses the user/kernel memory boundary; validate fault handling and access checks before translating the pattern.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
- 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.