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_ESPARSER_H_ 8 #define __MESON_VDEC_ESPARSER_H_ 9 10 #include <linux/platform_device.h> 11 12 #include "vdec.h" 13 14 int esparser_init(struct platform_device *pdev, struct amvdec_core *core); 15 int esparser_power_up(struct amvdec_session *sess); 16 17 /** 18 * esparser_queue_eos() - write End Of Stream sequence to the ESPARSER 19 * 20 * @core: vdec core struct 21 * @data: EOS sequence 22 * @len: length of EOS sequence 23 */ 24 int esparser_queue_eos(struct amvdec_core *core, const u8 *data, u32 len); 25 26 /** 27 * esparser_queue_all_src() - work handler that writes as many src buffers 28 * as possible to the ESPARSER 29 * 30 * @work: work struct 31 */ 32 void esparser_queue_all_src(struct work_struct *work); 33 34 #define ESPARSER_MIN_PACKET_SIZE SZ_4K 35 36 #endif 37