drivers/video/fbdev/controlfb.h
Source file repositories/reference/linux-study-clean/drivers/video/fbdev/controlfb.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/video/fbdev/controlfb.h- Extension
.h- Size
- 4556 bytes
- Lines
- 144
- 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
- No C-style include directives detected by the generator.
Detected Declarations
struct cmap_regsstruct pregstruct control_regsstruct control_regintsstruct control_regvalsstruct max_cmodes
Annotated Snippet
struct cmap_regs {
unsigned char addr; /* index for both cmap and misc registers */
char pad1[15];
unsigned char crsr; /* cursor palette */
char pad2[15];
unsigned char dat; /* RADACAL misc register data */
char pad3[15];
unsigned char lut; /* cmap data */
char pad4[15];
};
/*
* Structure of the registers for the "control" display adaptor.
*/
#define PAD(x) char x[12]
struct preg { /* padded register */
unsigned r;
char pad[12];
};
struct control_regs {
struct preg vcount; /* vertical counter */
/* Vertical parameters are in units of 1/2 scan line */
struct preg vswin; /* between vsblank and vssync */
struct preg vsblank; /* vert start blank */
struct preg veblank; /* vert end blank (display start) */
struct preg vewin; /* between vesync and veblank */
struct preg vesync; /* vert end sync */
struct preg vssync; /* vert start sync */
struct preg vperiod; /* vert period */
struct preg piped; /* pipe delay hardware cursor */
/* Horizontal params are in units of 2 pixels */
struct preg hperiod; /* horiz period - 2 */
struct preg hsblank; /* horiz start blank */
struct preg heblank; /* horiz end blank */
struct preg hesync; /* horiz end sync */
struct preg hssync; /* horiz start sync */
struct preg heq; /* half horiz sync len */
struct preg hlfln; /* half horiz period */
struct preg hserr; /* horiz period - horiz sync len */
struct preg cnttst;
struct preg ctrl; /* display control */
struct preg start_addr; /* start address: 5 lsbs zero */
struct preg pitch; /* addrs diff between scan lines */
struct preg mon_sense; /* monitor sense bits */
struct preg vram_attr; /* enable vram banks */
struct preg mode;
struct preg rfrcnt; /* refresh count */
struct preg intr_ena; /* interrupt enable */
struct preg intr_stat; /* interrupt status */
struct preg res[5];
};
struct control_regints {
/* Vertical parameters are in units of 1/2 scan line */
unsigned vswin; /* between vsblank and vssync */
unsigned vsblank; /* vert start blank */
unsigned veblank; /* vert end blank (display start) */
unsigned vewin; /* between vesync and veblank */
unsigned vesync; /* vert end sync */
unsigned vssync; /* vert start sync */
unsigned vperiod; /* vert period */
unsigned piped; /* pipe delay hardware cursor */
/* Horizontal params are in units of 2 pixels */
/* Except, apparently, for hres > 1024 (or == 1280?) */
unsigned hperiod; /* horiz period - 2 */
unsigned hsblank; /* horiz start blank */
unsigned heblank; /* horiz end blank */
unsigned hesync; /* horiz end sync */
unsigned hssync; /* horiz start sync */
unsigned heq; /* half horiz sync len */
unsigned hlfln; /* half horiz period */
unsigned hserr; /* horiz period - horiz sync len */
};
/*
* Dot clock rate is
* 3.9064MHz * 2**clock_params[2] * clock_params[1] / clock_params[0].
*/
struct control_regvals {
unsigned regs[16]; /* for vswin .. hserr */
unsigned char mode;
unsigned char radacal_ctrl;
unsigned char clock_params[3];
};
#define CTRLFB_OFF 16 /* position of pixel 0 in frame buffer */
Annotation
- Detected declarations: `struct cmap_regs`, `struct preg`, `struct control_regs`, `struct control_regints`, `struct control_regvals`, `struct max_cmodes`.
- 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.