drivers/gpio/gpio-f7188x.c
Source file repositories/reference/linux-study-clean/drivers/gpio/gpio-f7188x.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpio/gpio-f7188x.c- Extension
.c- Size
- 16503 bytes
- Lines
- 672
- Domain
- Driver Families
- Bucket
- drivers/gpio
- 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.
- 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/module.hlinux/init.hlinux/platform_device.hlinux/io.hlinux/gpio/driver.hlinux/bitops.h
Detected Declarations
struct f7188x_siostruct f7188x_gpio_bankstruct f7188x_gpio_dataenum chipsfunction superio_inbfunction superio_inwfunction superio_outbfunction superio_enterfunction superio_selectfunction superio_exitfunction f7188x_gpio_get_directionfunction f7188x_gpio_direction_infunction f7188x_gpio_getfunction f7188x_gpio_direction_outfunction f7188x_gpio_setfunction f7188x_gpio_set_configfunction f7188x_gpio_probefunction f7188x_findfunction f7188x_gpio_device_addfunction f7188x_gpio_initfunction f7188x_gpio_exitmodule init f7188x_gpio_init
Annotated Snippet
subsys_initcall(f7188x_gpio_init);
static void __exit f7188x_gpio_exit(void)
{
platform_device_unregister(f7188x_gpio_pdev);
platform_driver_unregister(&f7188x_gpio_driver);
}
module_exit(f7188x_gpio_exit);
MODULE_DESCRIPTION("GPIO driver for Super-I/O chips F71869, F71869A, F71882FG, F71889A, F71889F and F81866");
MODULE_AUTHOR("Simon Guinot <simon.guinot@sequanux.org>");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/init.h`, `linux/platform_device.h`, `linux/io.h`, `linux/gpio/driver.h`, `linux/bitops.h`.
- Detected declarations: `struct f7188x_sio`, `struct f7188x_gpio_bank`, `struct f7188x_gpio_data`, `enum chips`, `function superio_inb`, `function superio_inw`, `function superio_outb`, `function superio_enter`, `function superio_select`, `function superio_exit`.
- Atlas domain: Driver Families / drivers/gpio.
- 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.