linux/drivers/media/platform/amphion/vpu_core.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright 2020-2021 NXP
 */

#include <linux/init.h>
#include <linux/interconnect.h>
#include <linux/ioctl.h>
#include <linux/list.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/types.h>
#include <linux/pm_runtime.h>
#include <linux/pm_domain.h>
#include <linux/firmware.h>
#include <linux/vmalloc.h>
#include "vpu.h"
#include "vpu_defs.h"
#include "vpu_core.h"
#include "vpu_mbox.h"
#include "vpu_msgs.h"
#include "vpu_rpc.h"
#include "vpu_cmds.h"

void csr_writel(struct vpu_core *core, u32 reg, u32 val)
{}

u32 csr_readl(struct vpu_core *core, u32 reg)
{}

static int vpu_core_load_firmware(struct vpu_core *core)
{}

static int vpu_core_boot_done(struct vpu_core *core)
{}

static int vpu_core_wait_boot_done(struct vpu_core *core)
{}

static int vpu_core_boot(struct vpu_core *core, bool load)
{}

static int vpu_core_shutdown(struct vpu_core *core)
{}

static int vpu_core_restore(struct vpu_core *core)
{}

static int __vpu_alloc_dma(struct device *dev, struct vpu_buffer *buf)
{}

void vpu_free_dma(struct vpu_buffer *buf)
{}

int vpu_alloc_dma(struct vpu_core *core, struct vpu_buffer *buf)
{}

void vpu_core_set_state(struct vpu_core *core, enum vpu_core_state state)
{}

static void vpu_core_update_state(struct vpu_core *core)
{}

static struct vpu_core *vpu_core_find_proper_by_type(struct vpu_dev *vpu, u32 type)
{}

static bool vpu_core_is_exist(struct vpu_dev *vpu, struct vpu_core *core)
{}

static void vpu_core_get_vpu(struct vpu_core *core)
{}

static int vpu_core_register(struct device *dev, struct vpu_core *core)
{}

static void vpu_core_put_vpu(struct vpu_core *core)
{}

static int vpu_core_unregister(struct device *dev, struct vpu_core *core)
{}

static int vpu_core_acquire_instance(struct vpu_core *core)
{}

static void vpu_core_release_instance(struct vpu_core *core, int id)
{}

struct vpu_inst *vpu_inst_get(struct vpu_inst *inst)
{}

void vpu_inst_put(struct vpu_inst *inst)
{}

struct vpu_core *vpu_request_core(struct vpu_dev *vpu, enum vpu_core_type type)
{}

void vpu_release_core(struct vpu_core *core)
{}

int vpu_inst_register(struct vpu_inst *inst)
{}

int vpu_inst_unregister(struct vpu_inst *inst)
{}

struct vpu_inst *vpu_core_find_instance(struct vpu_core *core, u32 index)
{}

const struct vpu_core_resources *vpu_get_resource(struct vpu_inst *inst)
{}

static int vpu_core_parse_dt(struct vpu_core *core, struct device_node *np)
{}

static int vpu_core_probe(struct platform_device *pdev)
{}

static void vpu_core_remove(struct platform_device *pdev)
{}

static int __maybe_unused vpu_core_runtime_resume(struct device *dev)
{}

static int __maybe_unused vpu_core_runtime_suspend(struct device *dev)
{}

static void vpu_core_cancel_work(struct vpu_core *core)
{}

static void vpu_core_resume_work(struct vpu_core *core)
{}

static int __maybe_unused vpu_core_resume(struct device *dev)
{}

static int __maybe_unused vpu_core_suspend(struct device *dev)
{}

static const struct dev_pm_ops vpu_core_pm_ops =;

static struct vpu_core_resources imx8q_enc =;

static struct vpu_core_resources imx8q_dec =;

static const struct of_device_id vpu_core_dt_match[] =;
MODULE_DEVICE_TABLE(of, vpu_core_dt_match);

static struct platform_driver amphion_vpu_core_driver =;

int __init vpu_core_driver_init(void)
{}

void __exit vpu_core_driver_exit(void)
{}