mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
Port camera drivers below from /kenrel/nvidia to /kernel/nvidia-oot as OOT modules: - Fusa-capture driver - Tegra V4L2 framework driver - vi/csi driver - tegra camera platform driver Change-Id: I390af27096425bb11e0934201dd1a90f001bb3fa Signed-off-by: Frank Chen <frankc@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2780698 Reviewed-by: FNU Raunak <fraunak@nvidia.com> Reviewed-by: Ankur Pawar <ankurp@nvidia.com> Reviewed-by: Shiva Dubey <sdubey@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
46 lines
1.5 KiB
C
46 lines
1.5 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* tegracam_core.h - tegra camera framework core utilities
|
|
*
|
|
* Copyright (c) 2017-2022, NVIDIA Corporation. All rights reserved.
|
|
*/
|
|
|
|
#ifndef __TEGRACAM_CORE_H__
|
|
#define __TEGRACAM_CORE_H__
|
|
|
|
#include <media/camera_common.h>
|
|
|
|
struct tegracam_device {
|
|
struct camera_common_data *s_data;
|
|
struct media_pad pad;
|
|
u32 version;
|
|
bool is_streaming;
|
|
/* variables to be filled by the driver to register */
|
|
char name[32];
|
|
struct i2c_client *client;
|
|
struct device *dev;
|
|
u32 numctrls;
|
|
const u32 *ctrl_cid_list;
|
|
const struct regmap_config *dev_regmap_config;
|
|
struct camera_common_sensor_ops *sensor_ops;
|
|
const struct v4l2_subdev_ops *v4l2sd_ops;
|
|
const struct v4l2_subdev_internal_ops *v4l2sd_internal_ops;
|
|
const struct media_entity_operations *media_ops;
|
|
const struct tegracam_ctrl_ops *tcctrl_ops;
|
|
void *priv;
|
|
};
|
|
|
|
u32 tegracam_version(u8 major, u8 minor, u8 patch);
|
|
u32 tegracam_query_version(const char *of_dev_name);
|
|
struct tegracam_device *to_tegracam_device(struct camera_common_data *data);
|
|
|
|
void tegracam_set_privdata(struct tegracam_device *tc_dev, void *priv);
|
|
void *tegracam_get_privdata(struct tegracam_device *tc_dev);
|
|
|
|
int tegracam_v4l2subdev_register(struct tegracam_device *tc_dev,
|
|
bool is_sensor);
|
|
void tegracam_v4l2subdev_unregister(struct tegracam_device *tc_dev);
|
|
int tegracam_device_register(struct tegracam_device *tc_dev);
|
|
void tegracam_device_unregister(struct tegracam_device *tc_dev);
|
|
#endif
|