drivers/media/platform/mediatek/vcodec/decoder/vdec_ipi_msg.h
Source file repositories/reference/linux-study-clean/drivers/media/platform/mediatek/vcodec/decoder/vdec_ipi_msg.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/platform/mediatek/vcodec/decoder/vdec_ipi_msg.h- Extension
.h- Size
- 3956 bytes
- Lines
- 154
- 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 vdec_ap_ipi_cmdstruct vdec_vpu_ipi_ackstruct vdec_ap_ipi_initstruct vdec_ap_ipi_dec_startstruct vdec_vpu_ipi_init_ackstruct vdec_ap_ipi_get_paramstruct vdec_vpu_ipi_get_param_ackenum vdec_ipi_msgid
Annotated Snippet
struct vdec_ap_ipi_cmd {
uint32_t msg_id;
union {
uint32_t vpu_inst_addr;
uint32_t inst_id;
};
u32 codec_type;
u32 reserved;
};
/**
* struct vdec_vpu_ipi_ack - generic VPU to AP ipi command format
* @msg_id : vdec_ipi_msgid
* @status : VPU exeuction result
* @ap_inst_addr : AP video decoder instance address
*/
struct vdec_vpu_ipi_ack {
uint32_t msg_id;
int32_t status;
uint64_t ap_inst_addr;
};
/**
* struct vdec_ap_ipi_init - for AP_IPIMSG_DEC_INIT
* @msg_id : AP_IPIMSG_DEC_INIT
* @codec_type : codec fourcc
* @ap_inst_addr : AP video decoder instance address
*/
struct vdec_ap_ipi_init {
uint32_t msg_id;
u32 codec_type;
uint64_t ap_inst_addr;
};
/**
* struct vdec_ap_ipi_dec_start - for AP_IPIMSG_DEC_START
* @msg_id : AP_IPIMSG_DEC_START
* @vpu_inst_addr : VPU decoder instance address. Used if ABI version < 2.
* @inst_id : instance ID. Used if the ABI version >= 2.
* @data : Header info
* H264 decoder [0]:buf_sz [1]:nal_start
* VP8 decoder [0]:width/height
* VP9 decoder [0]:profile, [1][2] width/height
* @codec_type : codec fourcc
*/
struct vdec_ap_ipi_dec_start {
uint32_t msg_id;
union {
uint32_t vpu_inst_addr;
uint32_t inst_id;
};
uint32_t data[3];
u32 codec_type;
};
/**
* struct vdec_vpu_ipi_init_ack - for VPU_IPIMSG_DEC_INIT_ACK
* @msg_id : VPU_IPIMSG_DEC_INIT_ACK
* @status : VPU exeuction result
* @ap_inst_addr : AP vcodec_vpu_inst instance address
* @vpu_inst_addr : VPU decoder instance address
* @vdec_abi_version: ABI version of the firmware. Kernel can use it to
* ensure that it is compatible with the firmware.
* This field is not valid for MT8173 and must not be
* accessed for this chip.
* @inst_id : instance ID. Valid only if the ABI version >= 2.
*/
struct vdec_vpu_ipi_init_ack {
uint32_t msg_id;
int32_t status;
uint64_t ap_inst_addr;
uint32_t vpu_inst_addr;
uint32_t vdec_abi_version;
uint32_t inst_id;
};
/**
* struct vdec_ap_ipi_get_param - for AP_IPIMSG_DEC_GET_PARAM
* @msg_id : AP_IPIMSG_DEC_GET_PARAM
* @inst_id : instance ID. Used if the ABI version >= 2.
* @data : picture information
* @param_type : get param type
* @codec_type : Codec fourcc
*/
struct vdec_ap_ipi_get_param {
u32 msg_id;
u32 inst_id;
u32 data[4];
u32 param_type;
u32 codec_type;
Annotation
- Detected declarations: `struct vdec_ap_ipi_cmd`, `struct vdec_vpu_ipi_ack`, `struct vdec_ap_ipi_init`, `struct vdec_ap_ipi_dec_start`, `struct vdec_vpu_ipi_init_ack`, `struct vdec_ap_ipi_get_param`, `struct vdec_vpu_ipi_get_param_ack`, `enum vdec_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.