aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/staging/media/tegra-video/video.h
blob: fadaf2189dc9d9e79f3c60d82d0689a85085b122 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (C) 2020 NVIDIA CORPORATION.  All rights reserved.
 */

#ifndef __TEGRA_VIDEO_H__
#define __TEGRA_VIDEO_H__

#include <linux/host1x.h>

#include <media/media-device.h>
#include <media/v4l2-device.h>

#include "vi.h"
#include "csi.h"

struct tegra_video_device {
	struct v4l2_device v4l2_dev;
	struct media_device media_dev;
	struct tegra_vi *vi;
	struct tegra_csi *csi;
};

int tegra_v4l2_nodes_setup_tpg(struct tegra_video_device *vid);
void tegra_v4l2_nodes_cleanup_tpg(struct tegra_video_device *vid);

extern struct platform_driver tegra_vi_driver;
extern struct platform_driver tegra_csi_driver;
#endif