linux/drivers/media/platform/qcom/venus/hfi.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
 * Copyright (C) 2017 Linaro Ltd.
 */
#include <linux/slab.h>
#include <linux/mutex.h>
#include <linux/list.h>
#include <linux/completion.h>
#include <linux/platform_device.h>
#include <linux/videodev2.h>

#include "core.h"
#include "hfi.h"
#include "hfi_cmds.h"
#include "hfi_venus.h"

#define TIMEOUT

static u32 to_codec_type(u32 pixfmt)
{}

int hfi_core_init(struct venus_core *core)
{}

int hfi_core_deinit(struct venus_core *core, bool blocking)
{}

int hfi_core_suspend(struct venus_core *core)
{}

int hfi_core_resume(struct venus_core *core, bool force)
{}

int hfi_core_trigger_ssr(struct venus_core *core, u32 type)
{}

int hfi_core_ping(struct venus_core *core)
{}

static int wait_session_msg(struct venus_inst *inst)
{}

int hfi_session_create(struct venus_inst *inst, const struct hfi_inst_ops *ops)
{}
EXPORT_SYMBOL_GPL();

int hfi_session_init(struct venus_inst *inst, u32 pixfmt)
{}
EXPORT_SYMBOL_GPL();

void hfi_session_destroy(struct venus_inst *inst)
{}
EXPORT_SYMBOL_GPL();

int hfi_session_deinit(struct venus_inst *inst)
{}
EXPORT_SYMBOL_GPL();

int hfi_session_start(struct venus_inst *inst)
{}
EXPORT_SYMBOL_GPL();

int hfi_session_stop(struct venus_inst *inst)
{}
EXPORT_SYMBOL_GPL();

int hfi_session_continue(struct venus_inst *inst)
{}
EXPORT_SYMBOL_GPL();

int hfi_session_abort(struct venus_inst *inst)
{}
EXPORT_SYMBOL_GPL();

int hfi_session_load_res(struct venus_inst *inst)
{}

int hfi_session_unload_res(struct venus_inst *inst)
{}
EXPORT_SYMBOL_GPL();

int hfi_session_flush(struct venus_inst *inst, u32 type, bool block)
{}
EXPORT_SYMBOL_GPL();

int hfi_session_set_buffers(struct venus_inst *inst, struct hfi_buffer_desc *bd)
{}

int hfi_session_unset_buffers(struct venus_inst *inst,
			      struct hfi_buffer_desc *bd)
{}

int hfi_session_get_property(struct venus_inst *inst, u32 ptype,
			     union hfi_get_property *hprop)
{}
EXPORT_SYMBOL_GPL();

int hfi_session_set_property(struct venus_inst *inst, u32 ptype, void *pdata)
{}
EXPORT_SYMBOL_GPL();

int hfi_session_process_buf(struct venus_inst *inst, struct hfi_frame_data *fd)
{}
EXPORT_SYMBOL_GPL();

irqreturn_t hfi_isr_thread(int irq, void *dev_id)
{}

irqreturn_t hfi_isr(int irq, void *dev)
{}

int hfi_create(struct venus_core *core, const struct hfi_core_ops *ops)
{}

void hfi_destroy(struct venus_core *core)
{}

void hfi_reinit(struct venus_core *core)
{}