mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
headers : move/modified header for User-space ABI
copied/moved/modified headers from the driver directory to the include/uapi directory, which have IOCTL components required to get access from user space as per Linux kernel user-space ABI. Bug 2062672 Signed-off-by: Ankit Patel <anpatel@nvidia.com> Change-Id: Ie70b2839e0a1031a685ff3e4bb93c73741645f44 (cherry picked from commit 348c5ff55d7499222f154aea9e9893e6cfa677ce) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2318682 Reviewed-by: automaticguardword <automaticguardword@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Prafull Suryawanshi
parent
4625e85131
commit
3c80738a18
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* drivers/misc/tegra-cec/tegra_cec.h
|
* drivers/misc/tegra-cec/tegra_cec.h
|
||||||
*
|
*
|
||||||
* Copyright (c) 2012-2017, NVIDIA CORPORATION. All rights reserved.
|
* Copyright (c) 2012-2020, NVIDIA CORPORATION. All rights reserved.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify it
|
* This program is free software; you can redistribute it and/or modify it
|
||||||
* under the terms and conditions of the GNU General Public License,
|
* under the terms and conditions of the GNU General Public License,
|
||||||
@@ -21,6 +21,7 @@
|
|||||||
|
|
||||||
#include <linux/pm.h>
|
#include <linux/pm.h>
|
||||||
#include <asm/atomic.h>
|
#include <asm/atomic.h>
|
||||||
|
#include <uapi/misc/tegra_cec.h>
|
||||||
|
|
||||||
#define TEGRA_CEC_FRAME_MAX_LENGTH 16
|
#define TEGRA_CEC_FRAME_MAX_LENGTH 16
|
||||||
|
|
||||||
@@ -165,12 +166,4 @@ static int tegra_cec_remove(struct platform_device *pdev);
|
|||||||
|
|
||||||
#define TEGRA_CEC_NAME "tegra_cec"
|
#define TEGRA_CEC_NAME "tegra_cec"
|
||||||
|
|
||||||
#define TEGRA_CEC_IOC_MAGIC 'C'
|
|
||||||
|
|
||||||
#define TEGRA_CEC_IOCTL_ERROR_RECOVERY _IO(TEGRA_CEC_IOC_MAGIC, 1)
|
|
||||||
#define TEGRA_CEC_IOCTL_DUMP_REGISTERS _IO(TEGRA_CEC_IOC_MAGIC, 2)
|
|
||||||
#define TEGRA_CEC_IOCTL_SET_RX_SNOOP _IO(TEGRA_CEC_IOC_MAGIC, 3)
|
|
||||||
#define TEGRA_CEC_IOCTL_GET_RX_SNOOP _IO(TEGRA_CEC_IOC_MAGIC, 4)
|
|
||||||
#define TEGRA_CEC_IOCTL_GET_POST_RECOVERY _IO(TEGRA_CEC_IOC_MAGIC, 5)
|
|
||||||
|
|
||||||
#endif /* TEGRA_CEC_H */
|
#endif /* TEGRA_CEC_H */
|
||||||
|
|||||||
31
include/uapi/misc/tegra_cec.h
Normal file
31
include/uapi/misc/tegra_cec.h
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
/*
|
||||||
|
* include/uapi/misc/tegra_cec.h
|
||||||
|
*
|
||||||
|
* Copyright (c) 2012-2020, NVIDIA CORPORATION. All rights reserved.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it
|
||||||
|
* under the terms and conditions of the GNU General Public License,
|
||||||
|
* version 2, as published by the Free Software Foundation.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||||
|
* more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef __UAPI_TEGRA_CEC_H
|
||||||
|
#define __UAPI_TEGRA_CEC_H
|
||||||
|
|
||||||
|
#define TEGRA_CEC_IOC_MAGIC 'C'
|
||||||
|
|
||||||
|
#define TEGRA_CEC_IOCTL_ERROR_RECOVERY _IO(TEGRA_CEC_IOC_MAGIC, 1)
|
||||||
|
#define TEGRA_CEC_IOCTL_DUMP_REGISTERS _IO(TEGRA_CEC_IOC_MAGIC, 2)
|
||||||
|
#define TEGRA_CEC_IOCTL_SET_RX_SNOOP _IO(TEGRA_CEC_IOC_MAGIC, 3)
|
||||||
|
#define TEGRA_CEC_IOCTL_GET_RX_SNOOP _IO(TEGRA_CEC_IOC_MAGIC, 4)
|
||||||
|
#define TEGRA_CEC_IOCTL_GET_POST_RECOVERY _IO(TEGRA_CEC_IOC_MAGIC, 5)
|
||||||
|
|
||||||
|
#endif /* __UAPI_TEGRA_CEC_H */
|
||||||
Reference in New Issue
Block a user