techpack: video: add video driver
Add initial video driver files. Change-Id: Icd48bbf31e435cf36f149d6c3267cf3a4d7913b3 Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>
このコミットが含まれているのは:
41
driver/vidc/inc/msm_vidc_driver.h
ノーマルファイル
41
driver/vidc/inc/msm_vidc_driver.h
ノーマルファイル
@@ -0,0 +1,41 @@
|
||||
/* 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);
|
||||
|
||||
#endif // _MSM_VIDC_DRIVER_H_
|
||||
|
新しいイシューから参照
ユーザーをブロックする