linux/drivers/media/platform/chips-media/coda/imx-vdoa.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * i.MX6 Video Data Order Adapter (VDOA)
 *
 * Copyright (C) 2014 Philipp Zabel
 * Copyright (C) 2016 Pengutronix, Michael Tretter <[email protected]>
 */

#include <linux/clk.h>
#include <linux/device.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/dma-mapping.h>
#include <linux/platform_device.h>
#include <linux/videodev2.h>
#include <linux/slab.h>

#include "imx-vdoa.h"

#define VDOA_NAME

#define VDOAC
#define VDOASRR
#define VDOAIE
#define VDOAIST
#define VDOAFP
#define VDOAIEBA00
#define VDOAIEBA01
#define VDOAIEBA02
#define VDOAIEBA10
#define VDOAIEBA11
#define VDOAIEBA12
#define VDOASL
#define VDOAIUBO
#define VDOAVEBA0
#define VDOAVEBA1
#define VDOAVEBA2
#define VDOAVUBO
#define VDOASR

#define VDOAC_ISEL
#define VDOAC_PFS
#define VDOAC_SO
#define VDOAC_SYNC
#define VDOAC_NF
#define VDOAC_BNDM_MASK
#define VDOAC_BAND_HEIGHT_8
#define VDOAC_BAND_HEIGHT_16
#define VDOAC_BAND_HEIGHT_32

#define VDOASRR_START
#define VDOASRR_SWRST

#define VDOAIE_EITERR
#define VDOAIE_EIEOT

#define VDOAIST_TERR
#define VDOAIST_EOT

#define VDOAFP_FH_MASK
#define VDOAFP_FW_MASK

#define VDOASL_VSLY_MASK
#define VDOASL_ISLY_MASK

#define VDOASR_ERRW
#define VDOASR_EOB
#define VDOASR_CURRENT_FRAME
#define VDOASR_CURRENT_BUFFER

enum {};

struct vdoa_data {};

struct vdoa_q_data {};

struct vdoa_ctx {};

static irqreturn_t vdoa_irq_handler(int irq, void *data)
{}

int vdoa_wait_for_completion(struct vdoa_ctx *ctx)
{}
EXPORT_SYMBOL();

void vdoa_device_run(struct vdoa_ctx *ctx, dma_addr_t dst, dma_addr_t src)
{}
EXPORT_SYMBOL();

struct vdoa_ctx *vdoa_context_create(struct vdoa_data *vdoa)
{}
EXPORT_SYMBOL();

void vdoa_context_destroy(struct vdoa_ctx *ctx)
{}
EXPORT_SYMBOL();

int vdoa_context_configure(struct vdoa_ctx *ctx,
			   unsigned int width, unsigned int height,
			   u32 pixelformat)
{}
EXPORT_SYMBOL();

static int vdoa_probe(struct platform_device *pdev)
{}

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

static struct platform_driver vdoa_driver =;

module_platform_driver();

MODULE_DESCRIPTION();
MODULE_AUTHOR();
MODULE_ALIAS();
MODULE_LICENSE();