#ifndef __ZVERS_HEADER #define __ZVERS_HEADER /*****************************************************************************/ /* */ /* Copyright 2009 ZTEC Instruments, Incorporated. All rights reserved. */ /* */ /* ZTEC Instruments ======================================================= */ /* By: ZTEC Instruments, Albuquerque, NM */ /*****************************************************************************/ #define BUILD_NUM_OFFSET 8 /*kernel driver revisions*/ #define DRVCLASS_REVISION 0x03000417 #define DRVSYS_REVISION 0x03000417 #define PCISYSC_REVISION 0x01040F0F #define PCISYSM_REVISION 0x03000417 #define PCISYSRF_REVISION 0x000001E4 /*comm driver revisions*/ #define ZBIND_REVISION 0x04000000 #define ZCARD_REVISION 0x03000000 /*class driver revisions*/ #define ZTSCOPEM_REVISION 0x03000000 #define ZTSCOPEMCOM_REVISION 0x03000000 #define ZTWAVEM_REVISION 0x02000000 #define ZTWAVEMCOM_REVISION 0x02000000 #define ZTSIGNALM_REVISION 0x000001E4 /*support library revisions*/ #define XBOARDSVC_REVISION 0x03000417 #define ZTCOMSVC_REVISION 0x03000417 #define ZTESTHARNESS_REVISION 0x02000000 /*application revisions*/ #define ZFIND_REVISION 0x04000000 #define ZSCOPEM_REVISION 0x03000000 #define ZWAVEM_REVISION 0x02000000 #define ZFLASH_REVISION 0x01060000 #define ZCOMP_REVISION 0x02000000 #define ZSIGNALM_REVISION 0x000001E4 #define FULL_REV(x) (x+BUILD_NUM_OFFSET) #define MAJOR_REV(x) ((x&0xFF000000)>>24) #define MINOR_REV(x) ((x&0x00FF0000)>>16) #define BUILD(x) (x&0x0000FFFF) #define VS_REV(x) MAJOR_REV(x),MINOR_REV(x),BUILD(x),0 #define VS_REV_STR(x) "MAJOR_REV(x), MINOR_REV(x), BUILD(x), 0" #define REV_FULL_STR(x,y) sprintf(x,"Rev%u.%u (Build %u)",MAJOR_REV(y),MINOR_REV(y),BUILD(y)) #define REV_SHRT_STR(x,y) sprintf(x,"Rev%u.%u.%u",MAJOR_REV(y),MINOR_REV(y),BUILD(y)) #define REV_NUM_STR(x,y) sprintf(x,"Rev%u.%u",MAJOR_REV(y),MINOR_REV(y)) #define REV_FLOAT(x) MAJOR_REV(x) + MINOR_REV(x)/100.0 /*****************************************************************************/ /*=== END INCLUDE FILE ======================================================*/ /*****************************************************************************/ #endif