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_GXLX, 18 VDEC_REVISION_GXM, 19 VDEC_REVISION_G12A, 20 VDEC_REVISION_SM1, 21 }; 22 23 struct vdec_platform { 24 const struct amvdec_format *formats; 25 const u32 num_formats; 26 enum vdec_revision revision; 27 }; 28 29 extern const struct vdec_platform vdec_platform_gxbb; 30 extern const struct vdec_platform vdec_platform_gxm; 31 extern const struct vdec_platform vdec_platform_gxl; 32 extern const struct vdec_platform vdec_platform_gxlx; 33 extern const struct vdec_platform vdec_platform_g12a; 34 extern const struct vdec_platform vdec_platform_sm1; 35 36 #endif 37