drivers/net/wwan/t7xx/t7xx_pci.c
Source file repositories/reference/linux-study-clean/drivers/net/wwan/t7xx/t7xx_pci.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wwan/t7xx/t7xx_pci.c- Extension
.c- Size
- 24470 bytes
- Lines
- 965
- 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.
- 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/atomic.hlinux/bits.hlinux/completion.hlinux/device.hlinux/dma-mapping.hlinux/gfp.hlinux/interrupt.hlinux/io.hlinux/iopoll.hlinux/jiffies.hlinux/list.hlinux/module.hlinux/mutex.hlinux/pci.hlinux/pm.hlinux/pm_runtime.hlinux/spinlock.ht7xx_mhccif.ht7xx_modem_ops.ht7xx_pci.ht7xx_pcie_mac.ht7xx_reg.ht7xx_state_monitor.ht7xx_port_proxy.h
Detected Declarations
enum t7xx_pm_statefunction t7xx_mode_storefunction t7xx_mode_showfunction t7xx_debug_ports_storefunction t7xx_debug_ports_showfunction t7xx_mode_updatefunction t7xx_dev_set_sleep_capabilityfunction t7xx_wait_pm_configfunction t7xx_pci_pm_initfunction t7xx_pci_pm_init_latefunction t7xx_pci_pm_reinitfunction t7xx_pci_pm_exp_detectedfunction t7xx_pci_pm_entity_registerfunction t7xx_pci_pm_entity_unregisterfunction t7xx_pci_sleep_disable_completefunction t7xx_pci_disable_sleepfunction t7xx_pci_enable_sleepfunction t7xx_send_pm_requestfunction __t7xx_pci_pm_suspendfunction READ_ONCEfunction list_for_each_entryfunction list_for_each_entryfunction t7xx_pcie_interrupt_reinitfunction t7xx_pcie_reinitfunction t7xx_send_fsm_commandfunction t7xx_pci_reprobe_earlyfunction t7xx_pci_reprobefunction __t7xx_pci_pm_resumefunction list_for_each_entryfunction list_for_each_entryfunction t7xx_pci_pm_resume_noirqfunction t7xx_pci_shutdownfunction t7xx_pci_pm_preparefunction t7xx_pci_pm_suspendfunction t7xx_pci_pm_resumefunction t7xx_pci_pm_thawfunction t7xx_pci_pm_runtime_suspendfunction t7xx_pci_pm_runtime_resumefunction t7xx_request_irqfunction t7xx_setup_msixfunction t7xx_interrupt_initfunction t7xx_pci_infracfg_ao_calcfunction t7xx_pci_probefunction t7xx_pci_remove
Annotated Snippet
static struct pci_driver t7xx_pci_driver = {
.name = DRIVER_NAME,
.id_table = t7xx_pci_table,
.probe = t7xx_pci_probe,
.remove = t7xx_pci_remove,
.driver.pm = &t7xx_pci_pm_ops,
.shutdown = t7xx_pci_shutdown,
};
module_pci_driver(t7xx_pci_driver);
MODULE_AUTHOR("MediaTek Inc");
MODULE_DESCRIPTION("MediaTek PCIe 5G WWAN modem T7xx driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/atomic.h`, `linux/bits.h`, `linux/completion.h`, `linux/device.h`, `linux/dma-mapping.h`, `linux/gfp.h`, `linux/interrupt.h`, `linux/io.h`.
- Detected declarations: `enum t7xx_pm_state`, `function t7xx_mode_store`, `function t7xx_mode_show`, `function t7xx_debug_ports_store`, `function t7xx_debug_ports_show`, `function t7xx_mode_update`, `function t7xx_dev_set_sleep_capability`, `function t7xx_wait_pm_config`, `function t7xx_pci_pm_init`, `function t7xx_pci_pm_init_late`.
- Atlas domain: Driver Families / drivers/net.
- Implementation status: pattern implementation candidate.
- 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.