#ifndef _BU6424AF_H #define _BU6424AF_H #include /* #include "kd_imgsensor.h" */ #define BU6424AF_MAGIC 'A' /* IOCTRL(inode * ,file * ,cmd ,arg ) */ /* Structures */ typedef struct { /* current position */ u32 u4CurrentPosition; /* macro position */ u32 u4MacroPosition; /* Infiniti position */ u32 u4InfPosition; /* Motor Status */ bool bIsMotorMoving; /* Motor Open? */ bool bIsMotorOpen; /* Support SR? */ bool bIsSupportSR; } stBU6424AF_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 BU6424AFIOC_G_MOTORINFO _IOR(BU6424AF_MAGIC, 0, stBU6424AF_MotorInfo) #define BU6424AFIOC_T_MOVETO _IOW(BU6424AF_MAGIC, 1, u32) #define BU6424AFIOC_T_SETINFPOS _IOW(BU6424AF_MAGIC, 2, u32) #define BU6424AFIOC_T_SETMACROPOS _IOW(BU6424AF_MAGIC, 3, u32) #else #endif