linux/drivers/media/platform/ti/omap3isp/isphist.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * isphist.c
 *
 * TI OMAP3 ISP - Histogram module
 *
 * Copyright (C) 2010 Nokia Corporation
 * Copyright (C) 2009 Texas Instruments, Inc.
 *
 * Contacts: David Cohen <[email protected]>
 *	     Laurent Pinchart <[email protected]>
 *	     Sakari Ailus <[email protected]>
 */

#include <linux/delay.h>
#include <linux/device.h>
#include <linux/dmaengine.h>
#include <linux/slab.h>
#include <linux/uaccess.h>

#include "isp.h"
#include "ispreg.h"
#include "isphist.h"

#define HIST_CONFIG_DMA

/*
 * hist_reset_mem - clear Histogram memory before start stats engine.
 */
static void hist_reset_mem(struct ispstat *hist)
{}

/*
 * hist_setup_regs - Helper function to update Histogram registers.
 */
static void hist_setup_regs(struct ispstat *hist, void *priv)
{}

static void hist_enable(struct ispstat *hist, int enable)
{}

static int hist_busy(struct ispstat *hist)
{}

static void hist_dma_cb(void *data)
{}

static int hist_buf_dma(struct ispstat *hist)
{}

static int hist_buf_pio(struct ispstat *hist)
{}

/*
 * hist_buf_process - Callback from ISP driver for HIST interrupt.
 */
static int hist_buf_process(struct ispstat *hist)
{}

static u32 hist_get_buf_size(struct omap3isp_hist_config *conf)
{}

/*
 * hist_validate_params - Helper function to check user given params.
 * @new_conf: Pointer to user configuration structure.
 *
 * Returns 0 on success configuration.
 */
static int hist_validate_params(struct ispstat *hist, void *new_conf)
{}

static int hist_comp_params(struct ispstat *hist,
			    struct omap3isp_hist_config *user_cfg)
{}

/*
 * hist_update_params - Helper function to check and store user given params.
 * @new_conf: Pointer to user configuration structure.
 */
static void hist_set_params(struct ispstat *hist, void *new_conf)
{}

static long hist_ioctl(struct v4l2_subdev *sd, unsigned int cmd, void *arg)
{}

static const struct ispstat_ops hist_ops =;

static const struct v4l2_subdev_core_ops hist_subdev_core_ops =;

static const struct v4l2_subdev_video_ops hist_subdev_video_ops =;

static const struct v4l2_subdev_ops hist_subdev_ops =;

/*
 * omap3isp_hist_init - Module Initialization.
 */
int omap3isp_hist_init(struct isp_device *isp)
{}

/*
 * omap3isp_hist_cleanup - Module cleanup.
 */
void omap3isp_hist_cleanup(struct isp_device *isp)
{}