drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c
Source file repositories/reference/linux-study-clean/drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c- Extension
.c- Size
- 27545 bytes
- Lines
- 1064
- 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/device.hlinux/dma-mapping.hlinux/err.hlinux/interrupt.hlinux/irqreturn.hlinux/pci.hlinux/sizes.hlinux/pm_runtime.hlinux/gpio/consumer.hintel-thc-dev.hintel-thc-hw.hintel-thc-wot.hquicki2c-dev.hquicki2c-hid.hquicki2c-protocol.h
Detected Declarations
function quicki2c_acpi_get_dsm_propertyfunction quicki2c_acpi_get_dsd_propertyfunction quicki2c_get_acpi_resourcesfunction quicki2c_irq_quick_handlerfunction try_recoverfunction handle_input_reportfunction quicki2c_irq_thread_handlerfunction quicki2c_dev_deinitfunction quicki2c_dma_adv_enablefunction quicki2c_dma_adv_disablefunction quicki2c_dma_initfunction quicki2c_dma_deinitfunction quicki2c_alloc_report_buffunction quicki2c_probefunction quicki2c_removefunction quicki2c_shutdownfunction quicki2c_suspendfunction quicki2c_resumefunction quicki2c_freezefunction quicki2c_thawfunction quicki2c_powerofffunction quicki2c_restorefunction quicki2c_runtime_suspendfunction quicki2c_runtime_resume
Annotated Snippet
static struct pci_driver quicki2c_driver = {
.name = KBUILD_MODNAME,
.id_table = quicki2c_pci_tbl,
.probe = quicki2c_probe,
.remove = quicki2c_remove,
.shutdown = quicki2c_shutdown,
.driver.pm = &quicki2c_pm_ops,
.driver.probe_type = PROBE_PREFER_ASYNCHRONOUS,
};
module_pci_driver(quicki2c_driver);
MODULE_AUTHOR("Xinpeng Sun <xinpeng.sun@intel.com>");
MODULE_AUTHOR("Even Xu <even.xu@intel.com>");
MODULE_DESCRIPTION("Intel(R) QuickI2C Driver");
MODULE_LICENSE("GPL");
MODULE_IMPORT_NS("INTEL_THC");
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/device.h`, `linux/dma-mapping.h`, `linux/err.h`, `linux/interrupt.h`, `linux/irqreturn.h`, `linux/pci.h`, `linux/sizes.h`.
- Detected declarations: `function quicki2c_acpi_get_dsm_property`, `function quicki2c_acpi_get_dsd_property`, `function quicki2c_get_acpi_resources`, `function quicki2c_irq_quick_handler`, `function try_recover`, `function handle_input_report`, `function quicki2c_irq_thread_handler`, `function quicki2c_dev_deinit`, `function quicki2c_dma_adv_enable`, `function quicki2c_dma_adv_disable`.
- 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.