1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (C) 2018 BayLibre, SAS
4  * Author: Maxime Jourdan <mjourdan@baylibre.com>
5  */
6 
7 #ifndef __MESON_VDEC_PLATFORM_H_
8 #define __MESON_VDEC_PLATFORM_H_
9 
10 #include "vdec.h"
11 
12 struct amvdec_format;
13 
14 enum vdec_revision {
15 	VDEC_REVISION_GXBB,
16 	VDEC_REVISION_GXL,
17 	VDEC_REVISION_GXM,
18 	VDEC_REVISION_G12A,
19 	VDEC_REVISION_SM1,
20 };
21 
22 struct vdec_platform {
23 	const struct amvdec_format *formats;
24 	const u32 num_formats;
25 	enum vdec_revision revision;
26 };
27 
28 extern const struct vdec_platform vdec_platform_gxbb;
29 extern const struct vdec_platform vdec_platform_gxm;
30 extern const struct vdec_platform vdec_platform_gxl;
31 extern const struct vdec_platform vdec_platform_g12a;
32 extern const struct vdec_platform vdec_platform_sm1;
33 
34 #endif
35