13e7f51bdSMaxime Jourdan /* SPDX-License-Identifier: GPL-2.0+ */
23e7f51bdSMaxime Jourdan /*
33e7f51bdSMaxime Jourdan  * Copyright (C) 2018 BayLibre, SAS
43e7f51bdSMaxime Jourdan  * Author: Maxime Jourdan <mjourdan@baylibre.com>
53e7f51bdSMaxime Jourdan  */
63e7f51bdSMaxime Jourdan 
73e7f51bdSMaxime Jourdan #ifndef __MESON_VDEC_ESPARSER_H_
83e7f51bdSMaxime Jourdan #define __MESON_VDEC_ESPARSER_H_
93e7f51bdSMaxime Jourdan 
103e7f51bdSMaxime Jourdan #include <linux/platform_device.h>
113e7f51bdSMaxime Jourdan 
123e7f51bdSMaxime Jourdan #include "vdec.h"
133e7f51bdSMaxime Jourdan 
143e7f51bdSMaxime Jourdan int esparser_init(struct platform_device *pdev, struct amvdec_core *core);
153e7f51bdSMaxime Jourdan int esparser_power_up(struct amvdec_session *sess);
163e7f51bdSMaxime Jourdan 
173e7f51bdSMaxime Jourdan /**
183e7f51bdSMaxime Jourdan  * esparser_queue_eos() - write End Of Stream sequence to the ESPARSER
193e7f51bdSMaxime Jourdan  *
203e7f51bdSMaxime Jourdan  * @core vdec core struct
213e7f51bdSMaxime Jourdan  */
223e7f51bdSMaxime Jourdan int esparser_queue_eos(struct amvdec_core *core, const u8 *data, u32 len);
233e7f51bdSMaxime Jourdan 
243e7f51bdSMaxime Jourdan /**
253e7f51bdSMaxime Jourdan  * esparser_queue_all_src() - work handler that writes as many src buffers
263e7f51bdSMaxime Jourdan  * as possible to the ESPARSER
273e7f51bdSMaxime Jourdan  */
283e7f51bdSMaxime Jourdan void esparser_queue_all_src(struct work_struct *work);
293e7f51bdSMaxime Jourdan 
303e7f51bdSMaxime Jourdan #define ESPARSER_MIN_PACKET_SIZE SZ_4K
313e7f51bdSMaxime Jourdan 
323e7f51bdSMaxime Jourdan #endif
33