mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-23 09:42:19 +03:00
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:
committed by
mobile promotions
parent
c126c2ee93
commit
968c9df390
38
include/uapi/media/isc-dev.h
Normal file
38
include/uapi/media/isc-dev.h
Normal 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__ */
|
||||
Reference in New Issue
Block a user