4 #include <linux/ioctl.h>
5 //#include "kd_imgsensor.h"
7 #define MT9P017AF_MAGIC 'A'
8 //IOCTRL(inode * ,file * ,cmd ,arg )
14 unsigned long u4CurrentPosition
;
16 unsigned long u4MacroPosition
;
18 unsigned long u4InfPosition
;
23 } stMT9P017AF_MotorInfo
;
26 //S means "set through a ptr"
27 //T means "tell by a arg value"
28 //G means "get by a ptr"
29 //Q means "get by return a value"
30 //X means "switch G and S atomically"
31 //H means "switch T and Q atomically"
32 #define MT9P017AFIOC_G_MOTORINFO _IOR(MT9P017AF_MAGIC,0,stMT9P017AF_MotorInfo)
34 #define MT9P017AFIOC_T_MOVETO _IOW(MT9P017AF_MAGIC,1,unsigned long)
36 #define MT9P017AFIOC_T_SETINFPOS _IOW(MT9P017AF_MAGIC,2,unsigned long)
38 #define MT9P017AFIOC_T_SETMACROPOS _IOW(MT9P017AF_MAGIC,3,unsigned long)