mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
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>
34 lines
816 B
C
34 lines
816 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2015-2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
*/
|
|
|
|
#ifndef __ISC_DEV_PRIV_H__
|
|
#define __ISC_DEV_PRIV_H__
|
|
|
|
#include <linux/cdev.h>
|
|
|
|
struct isc_dev_info {
|
|
struct i2c_client *i2c_client;
|
|
struct device *dev;
|
|
struct cdev cdev;
|
|
struct isc_dev_platform_data *pdata;
|
|
atomic_t in_use;
|
|
struct mutex mutex;
|
|
struct isc_dev_package rw_pkg;
|
|
struct dentry *d_entry;
|
|
u32 reg_len;
|
|
u32 reg_off;
|
|
char devname[32];
|
|
u8 power_is_on;
|
|
};
|
|
|
|
int isc_dev_raw_rd(struct isc_dev_info *, unsigned int,
|
|
unsigned int, u8 *, size_t);
|
|
int isc_dev_raw_wr(struct isc_dev_info *, unsigned int, u8 *, size_t);
|
|
|
|
int isc_dev_debugfs_init(struct isc_dev_info *isc_dev);
|
|
int isc_dev_debugfs_remove(struct isc_dev_info *isc_dev);
|
|
|
|
#endif /* __ISC_DEV_PRIV_H__ */
|