drivers/video/fbdev/atafb.c
Source file repositories/reference/linux-study-clean/drivers/video/fbdev/atafb.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/video/fbdev/atafb.c- Extension
.c- Size
- 88709 bytes
- Lines
- 3189
- 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.
- Touches user memory; correctness depends on fault-safe copying and privilege boundary handling.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/kernel.hlinux/errno.hlinux/string.hlinux/mm.hlinux/delay.hlinux/init.hlinux/interrupt.hlinux/platform_device.hasm/setup.hlinux/uaccess.hasm/irq.hasm/io.hasm/atarihw.hasm/atariints.hasm/atari_stram.hlinux/fb.hasm/atarikb.hc2p.hatafb.h
Detected Declarations
struct falcon_hwenum cardtypefunction get_video_modefunction tt_encode_fixfunction tt_decode_varfunction tt_encode_varfunction tt_get_parfunction tt_set_parfunction tt_setcolregfunction tt_detectfunction hxx_prescalefunction falcon_encode_fixfunction falcon_decode_varfunction falcon_encode_varfunction falcon_get_parfunction falcon_set_parfunction falcon_vbl_switcherfunction falcon_pan_displayfunction falcon_setcolregfunction falcon_blankfunction falcon_detectfunction stste_encode_fixfunction stste_decode_varfunction stste_encode_varfunction stste_get_parfunction stste_set_parfunction stste_setcolregfunction stste_detectfunction stste_set_screen_basefunction st_ovsc_switchfunction ext_encode_fixfunction ext_decode_varfunction ext_encode_varfunction ext_get_parfunction ext_set_parfunction ext_setcolregfunction ext_detectfunction set_screen_basefunction pan_displayfunction ata_get_parfunction ata_set_parfunction do_fb_set_varfunction register_framebufferfunction atafb_get_varfunction atafb_set_dispfunction atafb_pan_displayfunction atafb_fillrectfunction atafb_copyarea
Annotated Snippet
device_initcall(atafb_init);
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/errno.h`, `linux/string.h`, `linux/mm.h`, `linux/delay.h`, `linux/init.h`, `linux/interrupt.h`, `linux/platform_device.h`.
- Detected declarations: `struct falcon_hw`, `enum cardtype`, `function get_video_mode`, `function tt_encode_fix`, `function tt_decode_var`, `function tt_encode_var`, `function tt_get_par`, `function tt_set_par`, `function tt_setcolreg`, `function tt_detect`.
- Atlas domain: Driver Families / drivers/video.
- Implementation status: integration implementation candidate.
- This snippet crosses the user/kernel memory boundary; validate fault handling and access checks before translating the pattern.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.