drivers/mfd/intel_quark_i2c_gpio.c
Source file repositories/reference/linux-study-clean/drivers/mfd/intel_quark_i2c_gpio.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/mfd/intel_quark_i2c_gpio.c- Extension
.c- Size
- 8183 bytes
- Lines
- 310
- Domain
- Driver Families
- Bucket
- drivers/mfd
- 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.
- 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/pci.hlinux/mfd/core.hlinux/clkdev.hlinux/clk-provider.hlinux/dmi.hlinux/i2c.hlinux/property.h
Detected Declarations
struct intel_quark_mfdfunction intel_quark_register_i2c_clkfunction intel_quark_unregister_i2c_clkfunction intel_quark_i2c_setupfunction intel_quark_gpio_setupfunction intel_quark_mfd_probefunction intel_quark_mfd_remove
Annotated Snippet
static struct pci_driver intel_quark_mfd_driver = {
.name = "intel_quark_mfd_i2c_gpio",
.id_table = intel_quark_mfd_ids,
.probe = intel_quark_mfd_probe,
.remove = intel_quark_mfd_remove,
};
module_pci_driver(intel_quark_mfd_driver);
MODULE_AUTHOR("Raymond Tan <raymond.tan@intel.com>");
MODULE_DESCRIPTION("Intel Quark MFD PCI driver for I2C & GPIO");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/pci.h`, `linux/mfd/core.h`, `linux/clkdev.h`, `linux/clk-provider.h`, `linux/dmi.h`, `linux/i2c.h`.
- Detected declarations: `struct intel_quark_mfd`, `function intel_quark_register_i2c_clk`, `function intel_quark_unregister_i2c_clk`, `function intel_quark_i2c_setup`, `function intel_quark_gpio_setup`, `function intel_quark_mfd_probe`, `function intel_quark_mfd_remove`.
- Atlas domain: Driver Families / drivers/mfd.
- Implementation status: pattern implementation candidate.
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.