drivers/hid/intel-thc-hid/intel-quickspi/pci-quickspi.c
Source file repositories/reference/linux-study-clean/drivers/hid/intel-thc-hid/intel-quickspi/pci-quickspi.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/hid/intel-thc-hid/intel-quickspi/pci-quickspi.c- Extension
.c- Size
- 27073 bytes
- Lines
- 1069
- Domain
- Driver Families
- Bucket
- drivers/hid
- 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/acpi.hlinux/bitfield.hlinux/device.hlinux/dma-mapping.hlinux/err.hlinux/interrupt.hlinux/irqreturn.hlinux/pci.hlinux/pm_runtime.hlinux/gpio/consumer.hintel-thc-dev.hintel-thc-hw.hintel-thc-wot.hquickspi-dev.hquickspi-hid.hquickspi-protocol.h
Detected Declarations
function thc_acpi_get_propertyfunction quickspi_get_acpi_resourcesfunction quickspi_irq_quick_handlerfunction try_recoverfunction quickspi_irq_thread_handlerfunction quickspi_dev_deinitfunction quickspi_dma_initfunction quickspi_dma_deinitfunction quickspi_alloc_report_buffunction quickspi_probefunction quickspi_removefunction quickspi_shutdownfunction quickspi_suspendfunction quickspi_resumefunction quickspi_freezefunction quickspi_thawfunction quickspi_powerofffunction quickspi_restorefunction quickspi_runtime_suspendfunction quickspi_runtime_resume
Annotated Snippet
static struct pci_driver quickspi_driver = {
.name = KBUILD_MODNAME,
.id_table = quickspi_pci_tbl,
.probe = quickspi_probe,
.remove = quickspi_remove,
.shutdown = quickspi_shutdown,
.driver.pm = &quickspi_pm_ops,
.driver.probe_type = PROBE_PREFER_ASYNCHRONOUS,
};
module_pci_driver(quickspi_driver);
MODULE_AUTHOR("Xinpeng Sun <xinpeng.sun@intel.com>");
MODULE_AUTHOR("Even Xu <even.xu@intel.com>");
MODULE_DESCRIPTION("Intel(R) QuickSPI Driver");
MODULE_LICENSE("GPL");
MODULE_IMPORT_NS("INTEL_THC");
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/bitfield.h`, `linux/device.h`, `linux/dma-mapping.h`, `linux/err.h`, `linux/interrupt.h`, `linux/irqreturn.h`, `linux/pci.h`.
- Detected declarations: `function thc_acpi_get_property`, `function quickspi_get_acpi_resources`, `function quickspi_irq_quick_handler`, `function try_recover`, `function quickspi_irq_thread_handler`, `function quickspi_dev_deinit`, `function quickspi_dma_init`, `function quickspi_dma_deinit`, `function quickspi_alloc_report_buf`, `function quickspi_probe`.
- Atlas domain: Driver Families / drivers/hid.
- 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.