drivers/video/fbdev/matrox/i2c-matroxfb.c
Source file repositories/reference/linux-study-clean/drivers/video/fbdev/matrox/i2c-matroxfb.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/video/fbdev/matrox/i2c-matroxfb.c- Extension
.c- Size
- 6286 bytes
- Lines
- 235
- Domain
- Driver Families
- Bucket
- drivers/video
- 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
matroxfb_base.hmatroxfb_maven.hlinux/i2c.hlinux/slab.hlinux/i2c-algo-bit.h
Detected Declarations
struct matroxfb_dh_maven_infofunction matroxfb_read_gpiofunction matroxfb_set_gpiofunction matroxfb_i2c_setfunction matroxfb_gpio_setsdafunction matroxfb_gpio_setsclfunction matroxfb_gpio_getsdafunction matroxfb_gpio_getsclfunction i2c_bus_regfunction i2c_bit_bus_delfunction i2c_maven_donefunction i2c_ddc1_donefunction i2c_ddc2_donefunction i2c_matroxfb_probefunction i2c_matroxfb_removefunction i2c_matroxfb_initfunction i2c_matroxfb_exitmodule init i2c_matroxfb_init
Annotated Snippet
module_init(i2c_matroxfb_init);
module_exit(i2c_matroxfb_exit);
/* no __setup required */
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `matroxfb_base.h`, `matroxfb_maven.h`, `linux/i2c.h`, `linux/slab.h`, `linux/i2c-algo-bit.h`.
- Detected declarations: `struct matroxfb_dh_maven_info`, `function matroxfb_read_gpio`, `function matroxfb_set_gpio`, `function matroxfb_i2c_set`, `function matroxfb_gpio_setsda`, `function matroxfb_gpio_setscl`, `function matroxfb_gpio_getsda`, `function matroxfb_gpio_getscl`, `function i2c_bus_reg`, `function i2c_bit_bus_del`.
- Atlas domain: Driver Families / drivers/video.
- 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.