drivers/video/fbdev/omap2/omapfb/dss/dispc.h
Source file repositories/reference/linux-study-clean/drivers/video/fbdev/omap2/omapfb/dss/dispc.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/video/fbdev/omap2/omapfb/dss/dispc.h- Extension
.h- Size
- 17433 bytes
- Lines
- 908
- 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 dispc_coeffunction DISPC_DEFAULT_COLORfunction DISPC_TRANS_COLORfunction DISPC_TIMING_Hfunction DISPC_TIMING_Vfunction DISPC_POL_FREQfunction DISPC_DIVISORofunction DISPC_SIZE_MGRfunction DISPC_DATA_CYCLE1function DISPC_DATA_CYCLE2function DISPC_DATA_CYCLE3function DISPC_CPR_COEF_Rfunction DISPC_CPR_COEF_Gfunction DISPC_CPR_COEF_Bfunction DISPC_OVL_BASEfunction DISPC_BA0_OFFSETfunction DISPC_BA1_OFFSETfunction DISPC_BA0_UV_OFFSETfunction DISPC_BA1_UV_OFFSETfunction DISPC_POS_OFFSETfunction DISPC_SIZE_OFFSETfunction DISPC_ATTR_OFFSETfunction DISPC_ATTR2_OFFSETfunction DISPC_FIFO_THRESH_OFFSETfunction DISPC_FIFO_SIZE_STATUS_OFFSETfunction DISPC_ROW_INC_OFFSETfunction DISPC_PIX_INC_OFFSETfunction DISPC_WINDOW_SKIP_OFFSETfunction DISPC_TABLE_BA_OFFSETfunction DISPC_FIR_OFFSETfunction DISPC_FIR2_OFFSETfunction DISPC_PIC_SIZE_OFFSETfunction DISPC_ACCU0_OFFSETfunction DISPC_ACCU2_0_OFFSETfunction DISPC_ACCU1_OFFSETfunction DISPC_ACCU2_1_OFFSETfunction DISPC_FIR_COEF_H_OFFSETfunction DISPC_FIR_COEF_H2_OFFSETfunction DISPC_FIR_COEF_HV_OFFSETfunction DISPC_FIR_COEF_HV2_OFFSETfunction DISPC_CONV_COEF_OFFSETfunction DISPC_FIR_COEF_V_OFFSETfunction DISPC_FIR_COEF_V2_OFFSETfunction DISPC_PRELOAD_OFFSETfunction DISPC_MFLAG_THRESHOLD_OFFSET
Annotated Snippet
struct dispc_coef {
s8 hc4_vc22;
s8 hc3_vc2;
u8 hc2_vc1;
s8 hc1_vc0;
s8 hc0_vc00;
};
const struct dispc_coef *dispc_ovl_get_scale_coef(int inc, int five_taps);
/* DISPC manager/channel specific registers */
static inline u16 DISPC_DEFAULT_COLOR(enum omap_channel channel)
{
switch (channel) {
case OMAP_DSS_CHANNEL_LCD:
return 0x004C;
case OMAP_DSS_CHANNEL_DIGIT:
return 0x0050;
case OMAP_DSS_CHANNEL_LCD2:
return 0x03AC;
case OMAP_DSS_CHANNEL_LCD3:
return 0x0814;
default:
BUG();
return 0;
}
}
static inline u16 DISPC_TRANS_COLOR(enum omap_channel channel)
{
switch (channel) {
case OMAP_DSS_CHANNEL_LCD:
return 0x0054;
case OMAP_DSS_CHANNEL_DIGIT:
return 0x0058;
case OMAP_DSS_CHANNEL_LCD2:
return 0x03B0;
case OMAP_DSS_CHANNEL_LCD3:
return 0x0818;
default:
BUG();
return 0;
}
}
static inline u16 DISPC_TIMING_H(enum omap_channel channel)
{
switch (channel) {
case OMAP_DSS_CHANNEL_LCD:
return 0x0064;
case OMAP_DSS_CHANNEL_DIGIT:
BUG();
return 0;
case OMAP_DSS_CHANNEL_LCD2:
return 0x0400;
case OMAP_DSS_CHANNEL_LCD3:
return 0x0840;
default:
BUG();
return 0;
}
}
static inline u16 DISPC_TIMING_V(enum omap_channel channel)
{
switch (channel) {
case OMAP_DSS_CHANNEL_LCD:
return 0x0068;
case OMAP_DSS_CHANNEL_DIGIT:
BUG();
return 0;
case OMAP_DSS_CHANNEL_LCD2:
return 0x0404;
case OMAP_DSS_CHANNEL_LCD3:
return 0x0844;
default:
BUG();
return 0;
}
}
static inline u16 DISPC_POL_FREQ(enum omap_channel channel)
{
switch (channel) {
case OMAP_DSS_CHANNEL_LCD:
return 0x006C;
case OMAP_DSS_CHANNEL_DIGIT:
BUG();
return 0;
case OMAP_DSS_CHANNEL_LCD2:
Annotation
- Detected declarations: `struct dispc_coef`, `function DISPC_DEFAULT_COLOR`, `function DISPC_TRANS_COLOR`, `function DISPC_TIMING_H`, `function DISPC_TIMING_V`, `function DISPC_POL_FREQ`, `function DISPC_DIVISORo`, `function DISPC_SIZE_MGR`, `function DISPC_DATA_CYCLE1`, `function DISPC_DATA_CYCLE2`.
- 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.