drivers/pwm/pwm-dwc.c
Source file repositories/reference/linux-study-clean/drivers/pwm/pwm-dwc.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/pwm/pwm-dwc.c- Extension
.c- Size
- 4215 bytes
- Lines
- 172
- Domain
- Driver Families
- Bucket
- drivers/pwm
- 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/bitops.hlinux/export.hlinux/kernel.hlinux/module.hlinux/pci.hlinux/pm_runtime.hlinux/pwm.hlinux/sizes.hpwm-dwc.h
Detected Declarations
function dwc_pwm_init_onefunction dwc_pwm_probefunction dwc_pwm_removefunction dwc_pwm_suspendfunction dwc_pwm_resume
Annotated Snippet
static struct pci_driver dwc_pwm_driver = {
.name = "pwm-dwc",
.probe = dwc_pwm_probe,
.remove = dwc_pwm_remove,
.id_table = dwc_pwm_id_table,
.driver = {
.pm = pm_sleep_ptr(&dwc_pwm_pm_ops),
},
};
module_pci_driver(dwc_pwm_driver);
MODULE_AUTHOR("Felipe Balbi (Intel)");
MODULE_AUTHOR("Jarkko Nikula <jarkko.nikula@linux.intel.com>");
MODULE_AUTHOR("Raymond Tan <raymond.tan@intel.com>");
MODULE_DESCRIPTION("DesignWare PWM Controller");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/bitops.h`, `linux/export.h`, `linux/kernel.h`, `linux/module.h`, `linux/pci.h`, `linux/pm_runtime.h`, `linux/pwm.h`, `linux/sizes.h`.
- Detected declarations: `function dwc_pwm_init_one`, `function dwc_pwm_probe`, `function dwc_pwm_remove`, `function dwc_pwm_suspend`, `function dwc_pwm_resume`.
- Atlas domain: Driver Families / drivers/pwm.
- 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.