blob: bf52fd146b49fbacb64644a7b05ec0fca9777472 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#ifndef _CAM_CAL_H
#define _CAM_CAL_H
#include <linux/ioctl.h>
#ifdef CONFIG_COMPAT
//64 bit
#include <linux/fs.h>
#include <linux/compat.h>
#endif
#define CAM_CALAGIC 'i'
//IOCTRL(inode * ,file * ,cmd ,arg )
//S means "set through a ptr"
//T means "tell by a arg value"
//G means "get by a ptr"
//Q means "get by return a value"
//X means "switch G and S atomically"
//H means "switch T and Q atomically"
/*******************************************************************************
*
********************************************************************************/
//CAM_CAL write
#define CAM_CALIOC_S_WRITE _IOW(CAM_CALAGIC,0,stCAM_CAL_INFO_STRUCT)
//CAM_CAL read
#define CAM_CALIOC_G_READ _IOWR(CAM_CALAGIC,5,stCAM_CAL_INFO_STRUCT)
#ifdef CONFIG_COMPAT
#define COMPAT_CAM_CALIOC_G_READ _IOWR(CAM_CALAGIC,5, COMPAT_stCAM_CAL_INFO_STRUCT)
#endif
#endif //_CAM_CAL_H
|