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 * 20*9d45ccf7SHans Verkuil * @core: vdec core struct 21*9d45ccf7SHans Verkuil * @data: EOS sequence 22*9d45ccf7SHans Verkuil * @len: length of EOS sequence 233e7f51bdSMaxime Jourdan */ 243e7f51bdSMaxime Jourdan int esparser_queue_eos(struct amvdec_core *core, const u8 *data, u32 len); 253e7f51bdSMaxime Jourdan 263e7f51bdSMaxime Jourdan /** 273e7f51bdSMaxime Jourdan * esparser_queue_all_src() - work handler that writes as many src buffers 283e7f51bdSMaxime Jourdan * as possible to the ESPARSER 29*9d45ccf7SHans Verkuil * 30*9d45ccf7SHans Verkuil * @work: work struct 313e7f51bdSMaxime Jourdan */ 323e7f51bdSMaxime Jourdan void esparser_queue_all_src(struct work_struct *work); 333e7f51bdSMaxime Jourdan 343e7f51bdSMaxime Jourdan #define ESPARSER_MIN_PACKET_SIZE SZ_4K 353e7f51bdSMaxime Jourdan 363e7f51bdSMaxime Jourdan #endif 37