media: camera: Build ISC as OOT module

Convert automotive ISC kernel driver to OOT module.

Jira CAMERASW-7592

Change-Id: I0a81b58df941ef38bf0fb3226086e13b6d68d012
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2811344
Reviewed-by: Justin Kim (SW-TEGRA) <juskim@nvidia.com>
Reviewed-by: Shiva Dubey <sdubey@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Frank Chen
2022-11-17 11:26:13 -08:00
committed by mobile promotions
parent c126c2ee93
commit 968c9df390
15 changed files with 2948 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2015-2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
*/
#ifndef __UAPI_ISC_DEV_H__
#define __UAPI_ISC_DEV_H__
#include <linux/ioctl.h>
#include <linux/types.h>
#define ISC_DEV_PKG_FLAG_WR 1
#define ISC_DEV_IOCTL_RW _IOW('o', 1, struct isc_dev_package)
struct __attribute__ ((__packed__)) isc_dev_package {
__u16 offset;
__u16 offset_len;
__u32 size;
__u32 flags;
unsigned long buffer;
};
#ifdef __KERNEL__
#ifdef CONFIG_COMPAT
#define ISC_DEV_IOCTL_RW32 _IOW('o', 1, struct isc_dev_package32)
struct __attribute__ ((__packed__)) isc_dev_package32 {
__u16 offset;
__u16 offset_len;
__u32 size;
__u32 flags;
__u32 buffer;
};
#endif /* CONFIG_COMPAT */
#endif /* __KERNEL__ */
#endif /* __UAPI_ISC_DEV_H__ */