#ifndef _AK7345AF_H #define _AK7345AF_H #include //#include "kd_imgsensor.h" #define AK7345AF_MAGIC 'A' //IOCTRL(inode * ,file * ,cmd ,arg ) //Structures typedef struct { //current position unsigned long u4CurrentPosition; //macro position unsigned long u4MacroPosition; //Infiniti position unsigned long u4InfPosition; //Motor Status bool bIsMotorMoving; //Motor Open? bool bIsMotorOpen; //Support SR? bool bIsSupportSR; } stAK7345AF_MotorInfo; //Control commnad //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" #define AK7345AFIOC_G_MOTORINFO _IOR(AK7345AF_MAGIC,0,stAK7345AF_MotorInfo) #define AK7345AFIOC_T_MOVETO _IOW(AK7345AF_MAGIC,1,unsigned long) #define AK7345AFIOC_T_SETINFPOS _IOW(AK7345AF_MAGIC,2,unsigned long) #define AK7345AFIOC_T_SETMACROPOS _IOW(AK7345AF_MAGIC,3,unsigned long) #else #endif