1
2
3
4
5
6
7
8 #ifndef __MTK_MDP_IPI_H__
9 #define __MTK_MDP_IPI_H__
10
11 #define MTK_MDP_MAX_NUM_PLANE 3
12
13 enum mdp_ipi_msgid {
14 AP_MDP_INIT = 0xd000,
15 AP_MDP_DEINIT = 0xd001,
16 AP_MDP_PROCESS = 0xd002,
17
18 VPU_MDP_INIT_ACK = 0xe000,
19 VPU_MDP_DEINIT_ACK = 0xe001,
20 VPU_MDP_PROCESS_ACK = 0xe002
21 };
22
23 #pragma pack(push, 4)
24
25
26
27
28
29
30
31 struct mdp_ipi_init {
32 uint32_t msg_id;
33 uint32_t ipi_id;
34 uint64_t ap_inst;
35 };
36
37
38
39
40
41
42
43
44 struct mdp_ipi_comm {
45 uint32_t msg_id;
46 uint32_t ipi_id;
47 uint64_t ap_inst;
48 uint32_t vpu_inst_addr;
49 };
50
51
52
53
54
55
56
57
58
59 struct mdp_ipi_comm_ack {
60 uint32_t msg_id;
61 uint32_t ipi_id;
62 uint64_t ap_inst;
63 uint32_t vpu_inst_addr;
64 int32_t status;
65 };
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81 struct mdp_config {
82 int32_t x;
83 int32_t y;
84 int32_t w;
85 int32_t h;
86 int32_t w_stride;
87 int32_t h_stride;
88 int32_t crop_x;
89 int32_t crop_y;
90 int32_t crop_w;
91 int32_t crop_h;
92 int32_t format;
93 };
94
95 struct mdp_buffer {
96 uint64_t addr_mva[MTK_MDP_MAX_NUM_PLANE];
97 int32_t plane_size[MTK_MDP_MAX_NUM_PLANE];
98 int32_t plane_num;
99 };
100
101 struct mdp_config_misc {
102 int32_t orientation;
103 int32_t hflip;
104 int32_t vflip;
105 int32_t alpha;
106 };
107
108 struct mdp_process_vsi {
109 struct mdp_config src_config;
110 struct mdp_buffer src_buffer;
111 struct mdp_config dst_config;
112 struct mdp_buffer dst_buffer;
113 struct mdp_config_misc misc;
114 };
115
116 #pragma pack(pop)
117
118 #endif