4 #include <linux/ioctl.h>
7 #define CAM_CALAGIC 'i'
8 //IOCTRL(inode * ,file * ,cmd ,arg )
9 //S means "set through a ptr"
10 //T means "tell by a arg value"
11 //G means "get by a ptr"
12 //Q means "get by return a value"
13 //X means "switch G and S atomically"
14 //H means "switch T and Q atomically"
16 /*******************************************************************************
18 ********************************************************************************/
21 #define CAM_CALIOC_S_WRITE _IOW(CAM_CALAGIC,0,stCAM_CAL_INFO_STRUCT)
23 #define CAM_CALIOC_G_READ _IOWR(CAM_CALAGIC,5,stPCAM_CAL_INFO_STRUCT)