drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
Source file repositories/reference/linux-study-clean/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c- Extension
.c- Size
- 77287 bytes
- Lines
- 2786
- 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 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/kernel.hlinux/module.hlinux/firmware.hlinux/pci.hlinux/vmalloc.hlinux/delay.hlinux/interrupt.hlinux/bcma/bcma.hlinux/sched.hlinux/sched/signal.hlinux/kthread.hlinux/io.hlinux/random.hlinux/unaligned.hsoc.hchipcommon.hbrcmu_utils.hbrcmu_wifi.hbrcm_hw_ids.hdebug.hbus.hcommonring.hmsgbuf.hpcie.hfirmware.hchip.hcore.hcommon.h
Detected Declarations
struct brcmf_pcie_consolestruct brcmf_pcie_shared_infostruct brcmf_otp_paramsstruct brcmf_pciedev_infostruct brcmf_pcie_ringbufstruct brcmf_pcie_dhi_ringinfostruct brcmf_pcie_reginfostruct brcmf_random_seed_footerstruct brcmf_pcie_drvdataenum brcmf_pcie_statefunction brcmf_pcie_read_reg16function brcmf_pcie_read_reg32function brcmf_pcie_write_reg32function brcmf_pcie_read_tcm8function brcmf_pcie_read_tcm16function brcmf_pcie_write_tcm16function brcmf_pcie_read_idxfunction brcmf_pcie_write_idxfunction brcmf_pcie_read_tcm32function brcmf_pcie_write_tcm32function brcmf_pcie_read_ram32function brcmf_pcie_write_ram32function brcmf_pcie_copy_dev_tomemfunction CHIPCREGOFFSfunction brcmf_pcie_reset_devicefunction brcmf_pcie_attachfunction brcmf_pcie_enter_download_statefunction brcmf_pcie_exit_download_statefunction brcmf_pcie_send_mb_datafunction brcmf_pcie_handle_mb_datafunction brcmf_pcie_bus_console_initfunction brcmf_pcie_bus_console_readfunction brcmf_pcie_intr_disablefunction brcmf_pcie_intr_enablefunction brcmf_pcie_hostreadyfunction brcmf_pcie_quick_check_isrfunction brcmf_pcie_isr_threadfunction brcmf_pcie_request_irqfunction brcmf_pcie_release_irqfunction brcmf_pcie_ring_mb_write_rptrfunction brcmf_pcie_ring_mb_write_wptrfunction brcmf_pcie_ring_mb_ring_bellfunction brcmf_pcie_ring_mb_update_rptrfunction brcmf_pcie_ring_mb_update_wptrfunction brcmf_pcie_init_dmabuffer_for_devicefunction brcmf_pcie_alloc_dma_and_ringfunction brcmf_pcie_release_ringbufferfunction brcmf_pcie_release_ringbuffers
Annotated Snippet
static struct pci_driver brcmf_pciedrvr = {
.name = KBUILD_MODNAME,
.id_table = brcmf_pcie_devid_table,
.probe = brcmf_pcie_probe,
.remove = brcmf_pcie_remove,
#ifdef CONFIG_PM
.driver.pm = &brcmf_pciedrvr_pm,
#endif
.driver.coredump = brcmf_dev_coredump,
};
int brcmf_pcie_register(void)
{
brcmf_dbg(PCIE, "Enter\n");
return pci_register_driver(&brcmf_pciedrvr);
}
void brcmf_pcie_exit(void)
{
brcmf_dbg(PCIE, "Enter\n");
pci_unregister_driver(&brcmf_pciedrvr);
}
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/firmware.h`, `linux/pci.h`, `linux/vmalloc.h`, `linux/delay.h`, `linux/interrupt.h`, `linux/bcma/bcma.h`.
- Detected declarations: `struct brcmf_pcie_console`, `struct brcmf_pcie_shared_info`, `struct brcmf_otp_params`, `struct brcmf_pciedev_info`, `struct brcmf_pcie_ringbuf`, `struct brcmf_pcie_dhi_ringinfo`, `struct brcmf_pcie_reginfo`, `struct brcmf_random_seed_footer`, `struct brcmf_pcie_drvdata`, `enum brcmf_pcie_state`.
- Atlas domain: Driver Families / drivers/net.
- Implementation status: pattern implementation candidate.
- 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.