Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Copyright (C) 2020 NVIDIA CORPORATION.  All rights reserved.
0004  */
0005 
0006 #ifndef __TEGRA_VIDEO_H__
0007 #define __TEGRA_VIDEO_H__
0008 
0009 #include <linux/host1x.h>
0010 
0011 #include <media/media-device.h>
0012 #include <media/v4l2-device.h>
0013 
0014 #include "vi.h"
0015 #include "csi.h"
0016 
0017 struct tegra_video_device {
0018     struct v4l2_device v4l2_dev;
0019     struct media_device media_dev;
0020     struct tegra_vi *vi;
0021     struct tegra_csi *csi;
0022 };
0023 
0024 int tegra_v4l2_nodes_setup_tpg(struct tegra_video_device *vid);
0025 void tegra_v4l2_nodes_cleanup_tpg(struct tegra_video_device *vid);
0026 
0027 extern struct platform_driver tegra_vi_driver;
0028 extern struct platform_driver tegra_csi_driver;
0029 #endif