drivers/media/platform/mediatek/mdp3/mdp_sm_mt8195.h
Source file repositories/reference/linux-study-clean/drivers/media/platform/mediatek/mdp3/mdp_sm_mt8195.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/platform/mediatek/mdp3/mdp_sm_mt8195.h- Extension
.h- Size
- 5690 bytes
- Lines
- 284
- Domain
- Driver Families
- Bucket
- drivers/media
- 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
mtk-mdp3-type.h
Detected Declarations
struct img_comp_frame_8195struct img_comp_subfrm_8195struct mdp_rdma_subfrm_8195struct mdp_rdma_data_8195struct mdp_fg_subfrm_8195struct mdp_fg_data_8195struct mdp_hdr_subfrm_8195struct mdp_hdr_data_8195struct mdp_aal_subfrm_8195struct mdp_aal_data_8195struct mdp_rsz_subfrm_8195struct mdp_rsz_data_8195struct mdp_tdshp_subfrm_8195struct mdp_tdshp_data_8195struct mdp_color_subfrm_8195struct mdp_color_data_8195struct mdp_ovl_subfrm_8195struct mdp_ovl_data_8195struct mdp_pad_subfrm_8195struct mdp_pad_data_8195struct mdp_tcc_subfrm_8195struct mdp_tcc_data_8195struct mdp_wrot_subfrm_8195struct mdp_wrot_data_8195struct mdp_wdma_subfrm_8195struct mdp_wdma_data_8195struct isp_data_8195struct img_compparam_8195struct img_config_8195
Annotated Snippet
struct img_comp_frame_8195 {
u32 output_disable;
u32 bypass;
u32 in_width;
u32 in_height;
u32 out_width;
u32 out_height;
struct img_crop crop;
u32 in_total_width;
u32 out_total_width;
} __packed;
struct img_comp_subfrm_8195 {
u32 tile_disable;
struct img_region in;
struct img_region out;
struct img_offset luma;
struct img_offset chroma;
s32 out_vertical; /* Output vertical index */
s32 out_horizontal; /* Output horizontal index */
} __packed;
struct mdp_rdma_subfrm_8195 {
u32 offset[IMG_MAX_PLANES];
u32 offset_0_p;
u32 src;
u32 clip;
u32 clip_ofst;
u32 in_tile_xleft;
u32 in_tile_ytop;
} __packed;
struct mdp_rdma_data_8195 {
u32 src_ctrl;
u32 comp_ctrl;
u32 control;
u32 iova[IMG_MAX_PLANES];
u32 iova_end[IMG_MAX_PLANES];
u32 mf_bkgd;
u32 mf_bkgd_in_pxl;
u32 sf_bkgd;
u32 ufo_dec_y;
u32 ufo_dec_c;
u32 transform;
u32 dmabuf_con0;
u32 ultra_th_high_con0;
u32 ultra_th_low_con0;
u32 dmabuf_con1;
u32 ultra_th_high_con1;
u32 ultra_th_low_con1;
u32 dmabuf_con2;
u32 ultra_th_high_con2;
u32 ultra_th_low_con2;
u32 dmabuf_con3;
struct mdp_rdma_subfrm_8195 subfrms[IMG_MAX_SUBFRAMES_8195];
} __packed;
struct mdp_fg_subfrm_8195 {
u32 info_0;
u32 info_1;
} __packed;
struct mdp_fg_data_8195 {
u32 ctrl_0;
u32 ck_en;
struct mdp_fg_subfrm_8195 subfrms[IMG_MAX_SUBFRAMES_8195];
} __packed;
struct mdp_hdr_subfrm_8195 {
u32 win_size;
u32 src;
u32 clip_ofst0;
u32 clip_ofst1;
u32 hist_ctrl_0;
u32 hist_ctrl_1;
u32 hdr_top;
u32 hist_addr;
} __packed;
struct mdp_hdr_data_8195 {
u32 top;
u32 relay;
struct mdp_hdr_subfrm_8195 subfrms[IMG_MAX_SUBFRAMES_8195];
} __packed;
struct mdp_aal_subfrm_8195 {
u32 src;
u32 clip;
u32 clip_ofst;
} __packed;
Annotation
- Immediate include surface: `mtk-mdp3-type.h`.
- Detected declarations: `struct img_comp_frame_8195`, `struct img_comp_subfrm_8195`, `struct mdp_rdma_subfrm_8195`, `struct mdp_rdma_data_8195`, `struct mdp_fg_subfrm_8195`, `struct mdp_fg_data_8195`, `struct mdp_hdr_subfrm_8195`, `struct mdp_hdr_data_8195`, `struct mdp_aal_subfrm_8195`, `struct mdp_aal_data_8195`.
- Atlas domain: Driver Families / drivers/media.
- 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.