kernel-brax3-ubuntu-touch/drivers/misc/mediatek/cam_cal/inc/cam_cal_define.h
erascape f319b992b1 kernel-5.15: Initial import brax3 UT kernel
* halium configs enabled

Signed-off-by: erascape <erascape@proton.me>
2025-09-23 15:17:10 +00:00

45 lines
664 B
C

/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2019 MediaTek Inc.
*/
#ifndef _CAM_CAL_DATA_H
#define _CAM_CAL_DATA_H
#ifdef CONFIG_COMPAT
/* 64 bit */
#include <linux/fs.h>
#include <linux/compat.h>
#endif
struct CAM_CAL_SENSOR_INFO {
u32 sensor_id;
};
struct stCAM_CAL_INFO_STRUCT {
u32 u4Offset;
u32 u4Length;
u32 sensorID;
/*
* MAIN = 0x01,
* SUB = 0x02,
* MAIN_2 = 0x04,
* SUB_2 = 0x08,
* MAIN_3 = 0x10,
*/
u32 deviceID;
u8 *pu1Params;
};
#ifdef CONFIG_COMPAT
struct COMPAT_stCAM_CAL_INFO_STRUCT {
u32 u4Offset;
u32 u4Length;
u32 sensorID;
u32 deviceID;
compat_uptr_t pu1Params;
};
#endif
#endif/*_CAM_CAL_DATA_H*/