drivers/video/fbdev/aty/mach64_accel.c
Source file repositories/reference/linux-study-clean/drivers/video/fbdev/aty/mach64_accel.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/video/fbdev/aty/mach64_accel.c- Extension
.c- Size
- 11896 bytes
- Lines
- 430
- Domain
- Driver Families
- Bucket
- drivers/video
- Inferred role
- Driver Families: implementation source
- Status
- source 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/delay.hlinux/unaligned.hlinux/fb.hvideo/mach64.hatyfb.h
Detected Declarations
function rotation24bppfunction aty_reset_enginefunction reset_GTC_3D_enginefunction aty_init_enginefunction draw_rectfunction atyfb_copyareafunction atyfb_fillrectfunction atyfb_imageblit
Annotated Snippet
if (mult24 == 3) {
mult24 = 0;
inbit--;
width--;
}
/* next byte */
if (inbit < 0 || width == 0) {
src_bytes--;
pbitmapin++;
inbit = 7;
if (width == 0) {
width = image->width;
outbit = 0;
}
}
}
}
wait_for_fifo(1, par);
aty_st_le32(HOST_DATA0, le32_to_cpu(hostdword), par);
}
} else {
u32 *pbitmap, dwords = (src_bytes + 3) / 4;
for (pbitmap = (u32*)(image->data); dwords; dwords--, pbitmap++) {
wait_for_fifo(1, par);
aty_st_le32(HOST_DATA0, get_unaligned_le32(pbitmap), par);
}
}
}
Annotation
- Immediate include surface: `linux/delay.h`, `linux/unaligned.h`, `linux/fb.h`, `video/mach64.h`, `atyfb.h`.
- Detected declarations: `function rotation24bpp`, `function aty_reset_engine`, `function reset_GTC_3D_engine`, `function aty_init_engine`, `function draw_rect`, `function atyfb_copyarea`, `function atyfb_fillrect`, `function atyfb_imageblit`.
- Atlas domain: Driver Families / drivers/video.
- 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.