| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (c) 2012-2016, The Linux Foundation. All rights reserved. |
|---|
| 3 | 4 | * Copyright (C) 2017 Linaro Ltd. |
|---|
| 4 | | - * |
|---|
| 5 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 6 | | - * it under the terms of the GNU General Public License version 2 and |
|---|
| 7 | | - * only version 2 as published by the Free Software Foundation. |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 10 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 11 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 12 | | - * GNU General Public License for more details. |
|---|
| 13 | | - * |
|---|
| 14 | 5 | */ |
|---|
| 15 | 6 | #ifndef __VENUS_HFI_MSGS_H__ |
|---|
| 16 | 7 | #define __VENUS_HFI_MSGS_H__ |
|---|
| .. | .. |
|---|
| 164 | 155 | u32 input_tag; |
|---|
| 165 | 156 | u32 packet_buffer; |
|---|
| 166 | 157 | u32 extradata_buffer; |
|---|
| 167 | | - u32 data[0]; |
|---|
| 158 | + u32 data[]; |
|---|
| 168 | 159 | }; |
|---|
| 169 | 160 | |
|---|
| 170 | 161 | struct hfi_msg_session_fbd_compressed_pkt { |
|---|
| .. | .. |
|---|
| 184 | 175 | u32 picture_type; |
|---|
| 185 | 176 | u32 packet_buffer; |
|---|
| 186 | 177 | u32 extradata_buffer; |
|---|
| 187 | | - u32 data[0]; |
|---|
| 178 | + u32 data[]; |
|---|
| 188 | 179 | }; |
|---|
| 189 | 180 | |
|---|
| 190 | 181 | struct hfi_msg_session_fbd_uncompressed_plane0_pkt { |
|---|
| .. | .. |
|---|
| 211 | 202 | u32 picture_type; |
|---|
| 212 | 203 | u32 packet_buffer; |
|---|
| 213 | 204 | u32 extradata_buffer; |
|---|
| 214 | | - u32 data[0]; |
|---|
| 205 | + u32 data[]; |
|---|
| 215 | 206 | }; |
|---|
| 216 | 207 | |
|---|
| 217 | 208 | struct hfi_msg_session_fbd_uncompressed_plane1_pkt { |
|---|
| .. | .. |
|---|
| 220 | 211 | u32 filled_len; |
|---|
| 221 | 212 | u32 offset; |
|---|
| 222 | 213 | u32 packet_buffer2; |
|---|
| 223 | | - u32 data[0]; |
|---|
| 214 | + u32 data[]; |
|---|
| 224 | 215 | }; |
|---|
| 225 | 216 | |
|---|
| 226 | 217 | struct hfi_msg_session_fbd_uncompressed_plane2_pkt { |
|---|
| .. | .. |
|---|
| 229 | 220 | u32 filled_len; |
|---|
| 230 | 221 | u32 offset; |
|---|
| 231 | 222 | u32 packet_buffer3; |
|---|
| 232 | | - u32 data[0]; |
|---|
| 223 | + u32 data[]; |
|---|
| 233 | 224 | }; |
|---|
| 234 | 225 | |
|---|
| 235 | 226 | struct hfi_msg_session_parse_sequence_header_done_pkt { |
|---|