4 #include <linux/ioctl.h>
5 //#include "kd_imgsensor.h"
7 #define AD5823AF_MAGIC 'A'
8 //IOCTRL(inode * ,file * ,cmd ,arg )
14 unsigned long u4CurrentPosition
;
16 unsigned long u4MacroPosition
;
18 unsigned long u4InfPosition
;
25 } stAD5823AF_MotorInfo
;
28 //S means "set through a ptr"
29 //T means "tell by a arg value"
30 //G means "get by a ptr"
31 //Q means "get by return a value"
32 //X means "switch G and S atomically"
33 //H means "switch T and Q atomically"
34 #define AD5823AFIOC_G_MOTORINFO _IOR(AD5823AF_MAGIC,0,stAD5823AF_MotorInfo)
36 #define AD5823AFIOC_T_MOVETO _IOW(AD5823AF_MAGIC,1,unsigned long)
38 #define AD5823AFIOC_T_SETINFPOS _IOW(AD5823AF_MAGIC,2,unsigned long)
40 #define AD5823AFIOC_T_SETMACROPOS _IOW(AD5823AF_MAGIC,3,unsigned long)