#ifndef __CAMERA_FDVT_H__ #define __CAMERA_FDVT_H__ #include #define FDVT_IOC_MAGIC 'N' typedef struct { unsigned int *pAddr; unsigned int *pData; unsigned int u4Count; } MT6573FDVTRegIO; //below is control message #define MT6573FDVT_INIT_SETPARA_CMD _IO(FDVT_IOC_MAGIC, 0x00) #define MT6573FDVTIOC_STARTFD_CMD _IO(FDVT_IOC_MAGIC, 0x01) #define MT6573FDVTIOC_G_WAITIRQ _IOR(FDVT_IOC_MAGIC, 0x02, unsigned int ) #define MT6573FDVTIOC_T_SET_FDCONF_CMD _IOW(FDVT_IOC_MAGIC, 0x03, MT6573FDVTRegIO) #define MT6573FDVTIOC_G_READ_FDREG_CMD _IOWR(FDVT_IOC_MAGIC, 0x04, MT6573FDVTRegIO) #define MT6573FDVTIOC_T_SET_SDCONF_CMD _IOW(FDVT_IOC_MAGIC, 0x05, MT6573FDVTRegIO) //#define FDVT_DESTROY_CMD _IO(FDVT_IOC_MAGIC, 0x10) #define MT6573FDVTIOC_T_DUMPREG _IO(FDVT_IOC_MAGIC, 0x80) //#define FDVT_SET_CMD_CMD _IOW(FDVT_IOC_MAGIC, 0x03, unsigned int) //#define FDVT_SET_PWR_CMD _IOW(FDVT_IOC_MAGIC, 0x04, unsigned int) //#define FDVT_SET_ISR_CMD _IOW(FDVT_IOC_MAGIC, 0x05, unsigned int) //#define FDVT_GET_CACHECTRLADDR_CMD _IOR(FDVT_IOC_MAGIC, 0x06, int) #endif //__CAMERA_FDVT_H__