drivers/platform/x86/portwell-ec.c
Source file repositories/reference/linux-study-clean/drivers/platform/x86/portwell-ec.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/platform/x86/portwell-ec.c- Extension
.c- Size
- 11423 bytes
- Lines
- 461
- Domain
- Driver Families
- Bucket
- drivers/platform
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration 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.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/acpi.hlinux/bits.hlinux/bitfield.hlinux/dmi.hlinux/gpio/driver.hlinux/hwmon.hlinux/init.hlinux/io.hlinux/ioport.hlinux/module.hlinux/platform_device.hlinux/pm.hlinux/sizes.hlinux/string.hlinux/units.hlinux/watchdog.h
Detected Declarations
struct pwec_sensor_propstruct pwec_board_infofunction pwec_writefunction pwec_readfunction pwec_read16_stablefunction pwec_gpio_getfunction pwec_gpio_setfunction pwec_gpio_get_directionfunction pwec_gpio_direction_inputfunction pwec_gpio_direction_outputfunction pwec_wdt_write_timeoutfunction pwec_wdt_triggerfunction pwec_wdt_startfunction pwec_wdt_stopfunction pwec_wdt_set_timeoutfunction pwec_wdt_get_timeleftfunction pwec_hwmon_is_visiblefunction pwec_hwmon_readfunction pwec_hwmon_read_stringfunction pwec_firmware_vendor_checkfunction pwec_probefunction pwec_suspendfunction pwec_resumefunction pwec_initfunction pwec_exitmodule init pwec_init
Annotated Snippet
module_init(pwec_init);
module_exit(pwec_exit);
MODULE_AUTHOR("Yen-Chi Huang <jesse.huang@portwell.com.tw>");
MODULE_DESCRIPTION("Portwell EC Driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/bits.h`, `linux/bitfield.h`, `linux/dmi.h`, `linux/gpio/driver.h`, `linux/hwmon.h`, `linux/init.h`, `linux/io.h`.
- Detected declarations: `struct pwec_sensor_prop`, `struct pwec_board_info`, `function pwec_write`, `function pwec_read`, `function pwec_read16_stable`, `function pwec_gpio_get`, `function pwec_gpio_set`, `function pwec_gpio_get_direction`, `function pwec_gpio_direction_input`, `function pwec_gpio_direction_output`.
- Atlas domain: Driver Families / drivers/platform.
- Implementation status: integration 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.