arch/x86/boot/video-vga.c
Source file repositories/reference/linux-study-clean/arch/x86/boot/video-vga.c
File Facts
- System
- Linux kernel
- Corpus path
arch/x86/boot/video-vga.c- Extension
.c- Size
- 5660 bytes
- Lines
- 287
- Domain
- Architecture Layer
- Bucket
- arch/x86
- Inferred role
- Architecture Layer: implementation source
- Status
- source implementation candidate
Why This File Exists
CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
boot.hvideo.h
Detected Declarations
function vga_set_basic_modefunction vga_set_8fontfunction vga_set_14fontfunction vga_set_80x43function vga_crtcfunction vga_set_480_scanlinesfunction vga_set_vertical_endfunction vga_set_80x30function vga_set_80x34function vga_set_80x60function vga_set_modefunction vga_probe
Annotated Snippet
if (oreg.al == 0x1a) {
adapter = ADAPTER_VGA;
#ifndef _WAKEUP
boot_params.screen_info.orig_video_isVGA = 1;
#endif
} else {
adapter = ADAPTER_EGA;
}
} else {
adapter = ADAPTER_CGA;
}
video_vga.modes = mode_lists[adapter];
video_vga.card_name = card_name[adapter];
return mode_count[adapter];
}
static __videocard video_vga = {
.card_name = "VGA",
.probe = vga_probe,
.set_mode = vga_set_mode,
};
Annotation
- Immediate include surface: `boot.h`, `video.h`.
- Detected declarations: `function vga_set_basic_mode`, `function vga_set_8font`, `function vga_set_14font`, `function vga_set_80x43`, `function vga_crtc`, `function vga_set_480_scanlines`, `function vga_set_vertical_end`, `function vga_set_80x30`, `function vga_set_80x34`, `function vga_set_80x60`.
- Atlas domain: Architecture Layer / arch/x86.
- Implementation status: source 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.