drivers/media/platform/mediatek/mdp/mtk_mdp_ipi.h
Source file repositories/reference/linux-study-clean/drivers/media/platform/mediatek/mdp/mtk_mdp_ipi.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/platform/mediatek/mdp/mtk_mdp_ipi.h- Extension
.h- Size
- 2658 bytes
- Lines
- 121
- 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
- No C-style include directives detected by the generator.
Detected Declarations
struct mdp_ipi_initstruct mdp_ipi_commstruct mdp_ipi_comm_ackstruct mdp_configstruct mdp_bufferstruct mdp_config_miscstruct mdp_process_vsienum mdp_ipi_msgid
Annotated Snippet
struct mdp_ipi_init {
uint32_t msg_id;
uint32_t ipi_id;
uint64_t ap_inst;
};
/**
* struct mdp_ipi_comm - for AP_MDP_PROCESS, AP_MDP_DEINIT
* @msg_id : AP_MDP_PROCESS, AP_MDP_DEINIT
* @ipi_id : IPI_MDP
* @ap_inst : AP mtk_mdp_vpu address
* @vpu_inst_addr : VPU MDP instance address
* @padding : Alignment padding
*/
struct mdp_ipi_comm {
uint32_t msg_id;
uint32_t ipi_id;
uint64_t ap_inst;
uint32_t vpu_inst_addr;
uint32_t padding;
};
/**
* struct mdp_ipi_comm_ack - for VPU_MDP_DEINIT_ACK, VPU_MDP_PROCESS_ACK
* @msg_id : VPU_MDP_DEINIT_ACK, VPU_MDP_PROCESS_ACK
* @ipi_id : IPI_MDP
* @ap_inst : AP mtk_mdp_vpu address
* @vpu_inst_addr : VPU MDP instance address
* @status : VPU exeuction result
*/
struct mdp_ipi_comm_ack {
uint32_t msg_id;
uint32_t ipi_id;
uint64_t ap_inst;
uint32_t vpu_inst_addr;
int32_t status;
};
/**
* struct mdp_config - configured for source/destination image
* @x : left
* @y : top
* @w : width
* @h : height
* @w_stride : bytes in horizontal
* @h_stride : bytes in vertical
* @crop_x : cropped left
* @crop_y : cropped top
* @crop_w : cropped width
* @crop_h : cropped height
* @format : color format
*/
struct mdp_config {
int32_t x;
int32_t y;
int32_t w;
int32_t h;
int32_t w_stride;
int32_t h_stride;
int32_t crop_x;
int32_t crop_y;
int32_t crop_w;
int32_t crop_h;
int32_t format;
};
struct mdp_buffer {
uint64_t addr_mva[MTK_MDP_MAX_NUM_PLANE];
int32_t plane_size[MTK_MDP_MAX_NUM_PLANE];
int32_t plane_num;
};
struct mdp_config_misc {
int32_t orientation; /* 0, 90, 180, 270 */
int32_t hflip; /* 1 will enable the flip */
int32_t vflip; /* 1 will enable the flip */
int32_t alpha; /* global alpha */
};
struct mdp_process_vsi {
struct mdp_config src_config;
struct mdp_buffer src_buffer;
struct mdp_config dst_config;
struct mdp_buffer dst_buffer;
struct mdp_config_misc misc;
};
#pragma pack(pop)
#endif /* __MTK_MDP_IPI_H__ */
Annotation
- Detected declarations: `struct mdp_ipi_init`, `struct mdp_ipi_comm`, `struct mdp_ipi_comm_ack`, `struct mdp_config`, `struct mdp_buffer`, `struct mdp_config_misc`, `struct mdp_process_vsi`, `enum mdp_ipi_msgid`.
- 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.