
Add support for - set and get format - get min buffers - request buffers Change-Id: I0696386e10fc9571a99853070c108832873c4923 Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>
48 lines
1.6 KiB
C
48 lines
1.6 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2020, The Linux Foundation. All rights reserved.
|
|
*/
|
|
|
|
#ifndef _MSM_VIDC_DRIVER_H_
|
|
#define _MSM_VIDC_DRIVER_H_
|
|
|
|
#include <linux/workqueue.h>
|
|
#include <linux/iommu.h>
|
|
|
|
#include "msm_vidc_internal.h"
|
|
#include "msm_vidc_core.h"
|
|
#include "msm_vidc_inst.h"
|
|
|
|
static inline is_decode_session(struct msm_vidc_inst *inst)
|
|
{
|
|
return inst->domain == MSM_VIDC_DECODER;
|
|
}
|
|
|
|
static inline is_encode_session(struct msm_vidc_inst *inst)
|
|
{
|
|
return inst->domain == MSM_VIDC_ENCODER;
|
|
}
|
|
|
|
int msm_vidc_add_session(struct msm_vidc_inst *inst);
|
|
int msm_vidc_core_init(struct msm_vidc_core *core);
|
|
int msm_vidc_smmu_fault_handler(struct iommu_domain *domain,
|
|
struct device *dev, unsigned long iova, int flags, void *data);
|
|
int msm_vidc_trigger_ssr(struct msm_vidc_core *core,
|
|
enum msm_vidc_ssr_trigger_type type);
|
|
void msm_vidc_ssr_handler(struct work_struct *work);
|
|
void msm_vidc_pm_work_handler(struct work_struct *work);
|
|
void msm_vidc_fw_unload_handler(struct work_struct *work);
|
|
void msm_vidc_batch_handler(struct work_struct *work);
|
|
int msm_vidc_setup_event_queue(struct msm_vidc_inst *inst);
|
|
int msm_vidc_queue_init(struct msm_vidc_inst *inst);
|
|
u32 msm_vidc_convert_color_fmt(u32 v4l2_fmt);
|
|
int msm_vidc_get_control(struct msm_vidc_inst *inst, struct v4l2_ctrl *ctrl);
|
|
int msm_vidc_get_port_from_type(u32 type);
|
|
int msm_vidc_start_input(struct msm_vidc_inst *inst);
|
|
int msm_vidc_start_output(struct msm_vidc_inst *inst);
|
|
int msm_vidc_stop_input(struct msm_vidc_inst *inst);
|
|
int msm_vidc_stop_output(struct msm_vidc_inst *inst);
|
|
|
|
#endif // _MSM_VIDC_DRIVER_H_
|
|
|