⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 framewrk.h

📁 一个Linux下的软猫驱动
💻 H
📖 第 1 页 / 共 2 页
字号:
#undef FRAME_WORK#define FRAME_WORK "Framework: DOS"#elif ( FRAME_WORK == FWK_DOSTEST )#define PROJECT     PRJ_HSFTEST#define PRJ_FLAVOUR	PRJFLVR_HSF#define OS_TYPE     OS_DOS#define UK_MODE     UK_KERNEL#define CPU_TYPE    CPU_I386#define CPU_VER     586#define IO_MODE     IO_ONLINE#define COMPILER    CMP_BORLAND#define CMP_VER     5.02#define DEV_TOOL    DT_NONE#define DEBUG_LEVEL DEBUG_DEVELOP#define BIG_ENDIAN_MACHINE 0#undef FRAME_WORK#define FRAME_WORK "Framework: DOSTEST"#elif ( FRAME_WORK == FWK_ORCA_CONSOLE )#define PROJECT     PRJ_HSF#define PRJ_FLAVOUR	PRJFLVR_CYPRUS#define OS_TYPE     OS_DOS#define UK_MODE     UK_USER#define CPU_TYPE    CPU_I386#define CPU_VER     586#define IO_MODE     IO_OFFLINE#define COMPILER    CMP_MSDEV#define CMP_VER     5#define DEV_TOOL    DT_NONE#define DEBUG_LEVEL DEBUG_DEVELOP#define OCT_SW_MODEM 0#define OCT_MEM_MGR	0#define USE_MEM_MGR	0#define USE_PRAGMA_PACK	1#define BIG_ENDIAN_MACHINE 0#undef FRAME_WORK#define FRAME_WORK "Framework: Orca console"#elif ( FRAME_WORK == FWK_GNRL_HSF_R3 ) #define PROJECT     PRJ_HSF#define OS_TYPE     OS_WIN_9X#define UK_MODE     UK_USER#define CPU_TYPE    CPU_I386#define CPU_VER     586#define IO_MODE     IO_OFFLINE#define COMPILER    CMP_MSDEV#define CMP_VER     5#define DEV_TOOL    DT_NONE#define DEBUG_LEVEL DEBUG_DEVELOP#define OCT_SW_MODEM 0#define OCT_MEM_MGR	0#define USE_MEM_MGR	0#define USE_PRAGMA_PACK	1#define PRJ_FLAVOUR	PRJFLVR_HSF#define BIG_ENDIAN_MACHINE 0 #undef FRAME_WORK#define FRAME_WORK "Framework: General HSF Application"#elif ( FRAME_WORK == FWK_VXWORKS_MIPS )#define PROJECT     PRJ_HSF#define PRJ_FLAVOUR	PRJFLVR_CYPRUS#define OS_TYPE     OS_VXWORKS#define UK_MODE     UK_KERNEL#define CPU_TYPE    CPU_MIPS#define CPU_VER     4000#define IO_MODE     IO_ONLINE#define COMPILER    CMP_GCC#define CMP_VER     2.96#define DEV_TOOL    DT_NONE#define DEBUG_LEVEL DEBUG_RETAIL#define OCT_SW_MODEM 1#define OCT_MEM_MGR	1#define USE_MEM_MGR	1#define USE_PRAGMA_PACK	0#include "build_modules.h" #undef FRAME_WORK#define FRAME_WORK "Framework: VxWorks Mips"#elif ( FRAME_WORK == FWK_WDM_SOFTK56TOOLS )#define PROJECT     PRJ_HSF#define PRJ_FLAVOUR	PRJFLVR_HSF#define OS_TYPE     OS_WIN_WDM#define UK_MODE     UK_KERNEL#define CPU_TYPE    CPU_I386#define CPU_VER     586#define IO_MODE     IO_ONLINE#define COMPILER    CMP_MSDEV#define CMP_VER     5#define DEV_TOOL    DT_VDW#define DEBUG_LEVEL DEBUG_RETAIL#define OCT_SW_MODEM 0#define OCT_MEM_MGR	0#define USE_MEM_MGR	0#define USE_PRAGMA_PACK	1#define BIG_ENDIAN_MACHINE 0 #undef FRAME_WORK#define FRAME_WORK "Framework: WDM SoftK56" #elif ( FRAME_WORK == FWK_MACOSX )#define PROJECT     PRJ_HSF#define PRJ_FLAVOUR	PRJFLVR_CIDER#define OS_TYPE     OS_MACOSX#define UK_MODE     UK_KERNEL#define CPU_TYPE    CPU_PPC#define CPU_VER     7455#define IO_MODE     IO_ONLINE#define COMPILER    CMP_GCC#define CMP_VER     3#define DEV_TOOL    DT_NONE#define DEBUG_LEVEL DEBUG_RETAIL#define OCT_SW_MODEM 1#define OCT_MEM_MGR	1#define USE_MEM_MGR	1#define USE_PRAGMA_PACK	0#define PORTABILITY 1#define BIG_ENDIAN_MACHINE 1#define MACTOPUS 1#undef  BLAM#define SCR#undef  USE_PROFILER#define USE_DCP/* #define USE_SMART_DAA	*/#include "octopus/include/build_modules.h"#undef FRAME_WORK#define FRAME_WORK "Framework: MacOsX"#elif ( FRAME_WORK == FWK_MACOSX_CONSOLE )#define PROJECT     PRJ_HSF#define PRJ_FLAVOUR	PRJFLVR_CIDER#define OS_TYPE     OS_MACOSX#define UK_MODE     UK_USER#define CPU_TYPE    CPU_PPC#define CPU_VER     7455#define IO_MODE     IO_OFFLINE#define COMPILER    CMP_GCC#define CMP_VER     3#define DEV_TOOL    DT_NONE#define DEBUG_LEVEL DEBUG_RETAIL#define OCT_SW_MODEM 0#define OCT_MEM_MGR	0#define USE_MEM_MGR	0#define USE_PRAGMA_PACK	0#define PORTABILITY 1#undef FRAME_WORK#define FRAME_WORK "Framework: MacOsX Console"#elif (FRAME_WORK==FWK_SANSIRO)#define PROJECT     PRJ_SANSIRO#define PRJ_FLAVOUR	PRJFLVR_SANSIRO#define OS_TYPE     OS_XTENSA#define UK_MODE     UK_KERNEL#define CPU_TYPE    CPU_XTENSA#define CPU_VER     10502#define IO_MODE     IO_ONLINE#define COMPILER    CMP_XCC#define CMP_VER     10502#define DEV_TOOL    DT_NONE#define DEBUG_LEVEL DEBUG_RETAIL#define OCT_SW_MODEM 0#define OCT_MEM_MGR	0#define USE_MEM_MGR	1#define USE_PRAGMA_PACK	1#define BIG_ENDIAN_MACHINE 0#undef FRAME_WORK#define FRAME_WORK "Framework: SanSiro"#elif ( FRAME_WORK == FWK_CORSICA_ADS ) #define PROJECT     PRJ_HSF#define PRJ_FLAVOUR	PRJFLVR_CIDER#define OS_TYPE     OS_STB#define UK_MODE     UK_KERNEL#define CPU_TYPE    CPU_ARM#define CPU_VER     920#define IO_MODE     IO_ONLINE#define COMPILER    CMP_ADS#define CMP_VER     1.2#define DEV_TOOL    DT_NONE#define DEBUG_LEVEL DEBUG_RETAIL#define OCT_SW_MODEM 1#define OCT_MEM_MGR	1#define USE_MEM_MGR	1#define USE_PRAGMA_PACK	0#define PORTABILITY 1 #include "octopus/include/build_modules.h" #undef FRAME_WORK#define FRAME_WORK "Framework: Corsica ADS"#elif ( FRAME_WORK == FWK_CORSICA_SDT ) #define PROJECT     PRJ_HSF#define PRJ_FLAVOUR	PRJFLVR_CIDER#define OS_TYPE     OS_STB#define UK_MODE     UK_KERNEL#define CPU_TYPE    CPU_ARM#define CPU_VER     920#define IO_MODE     IO_ONLINE#define COMPILER    CMP_SDT#define CMP_VER     1.2#define DEV_TOOL    DT_NONE#define DEBUG_LEVEL DEBUG_RETAIL#define OCT_SW_MODEM 1#define OCT_MEM_MGR	1#define USE_MEM_MGR	1#define USE_PRAGMA_PACK	0#define PORTABILITY 1 #include "octopus/include/build_modules.h" #undef FRAME_WORK#define FRAME_WORK "Framework: Corsica SDT" #elif (FRAME_WORK==FWK_DLL_SANSIRO)#define PROJECT     PRJ_SANSIRO#define PRJ_FLAVOUR	PRJFLVR_SANSIRO#define OS_TYPE     OS_WIN_9X#define UK_MODE     UK_USER#define CPU_TYPE    CPU_I386#define CPU_VER     586#define IO_MODE     IO_OFFLINE#define COMPILER    CMP_MSDEV#define CMP_VER     5#define DEV_TOOL    DT_NONE#define DEBUG_LEVEL DEBUG_RETAIL#define OCT_SW_MODEM 0#define OCT_MEM_MGR	0#define USE_MEM_MGR	0#define USE_PRAGMA_PACK	0#define BIG_ENDIAN_MACHINE 0#undef FRAME_WORK#define FRAME_WORK "Framework: Dll Offline SanSiro"#elif (FRAME_WORK==FWK_ISS_SANSIRO)#define PROJECT     PRJ_SANSIRO#define PRJ_FLAVOUR	PRJFLVR_SANSIRO#define OS_TYPE     OS_XTENSA#define UK_MODE     UK_KERNEL#define CPU_TYPE    CPU_XTENSA#define CPU_VER     10502#define IO_MODE     IO_OFFLINE#define COMPILER    CMP_XCC#define CMP_VER     10502#define DEV_TOOL    DT_NONE#define DEBUG_LEVEL DEBUG_RETAIL#define OCT_SW_MODEM 0#define OCT_MEM_MGR	0#define USE_MEM_MGR	1#define USE_PRAGMA_PACK	1#define BIG_ENDIAN_MACHINE 0#undef FRAME_WORK#define FRAME_WORK "Framework: ISS SanSiro"#else#error --==> FRAME_WORK type unknown! <==--#endif /* Checked all possible FRAME_WORK values */#else /* No set defined: */#define FRAME_WORK "Custom Framework"#endif/* Define `PROJECT' to one of: *//* ----------------------------*/#define PRJ_HSF				0x00000001#define PRJ_SDSL			0x00000002#define PRJ_OCTOLOADER		0x00000008#define PRJ_ORCA		    0x00000010#define PRJ_GNRL_WIN_R3     0x00000020#define PRJ_GNRL_VXD        0x00000040#define PRJ_HSFTEST         0x00000080#define PRJ_SANSIRO         0x00000100#define PRJ_AMD64_WIN_R3    0x00000200/* Use one of next macros, or just `#if ( OS_TYPE == xxx )' */#define PRJ_ONE_OF(prj) ( ( PROJECT & (prj) ) != 0 )#define PRJ_IS_NOT(prj) ( ( PROJECT & (~(prj)) ) != 0 )#ifndef PROJECT#error --==> PROJECT is not defined! <==--#elif ( PRJ_IS_NOT(PRJ_HSF | PRJ_SDSL | PRJ_OCTOLOADER | PRJ_ORCA | PRJ_GNRL_WIN_R3 | PRJ_GNRL_VXD | PRJ_HSFTEST| PRJ_SANSIRO |PRJ_AMD64_WIN_R3) )#error --==> Bad PROJECT definition! <==--#endif/* Define `PRJ_FLAVOUR' to one of: *//* ----------------------------*/#define PRJFLVR_HSF		0x01000000#define PRJFLVR_LINUX	0x02000000#define PRJFLVR_CYPRUS	0x04000000#define PRJFLVR_NILE    0x08000000#define PRJFLVR_SANSIRO 0x10000000#define PRJFLVR_CIDER	0x20000000 /* Use one of next macros, or just `#if ( OS_TYPE == xxx )' */#define PRJFLVR_ONE_OF(prj) ( ( PRJ_FLAVOUR & (prj) ) != 0 )#define PRJFLVR_IS_NOT(prj) ( ( PRJ_FLAVOUR & (~(prj)) ) != 0 ) #ifndef PRJ_FLAVOUR#error --==> PRJ_FLAVOUR is not defined! <==--#elif ( PRJFLVR_IS_NOT(PRJFLVR_HSF | PRJFLVR_LINUX | PRJFLVR_CYPRUS | PRJFLVR_NILE | PRJFLVR_SANSIRO | PRJFLVR_CIDER) )#error --==> Bad PRJ_FLAVOUR definition! <==--#endif/* Define `OS_TYPE' to one of: *//* ----------------------------*/#define OS_WIN_9X   0x00000010#define OS_WIN_NT4  0x00000020#define OS_WIN_WDM  0x00000040#define OS_LINUX    0x00000080#define OS_WIN_CE   0x00000100#define OS_PSOS     0x00000200#define OS_QNX      0x00000400#define OS_MACOS    0x00000800#define OS_APPLE    0x01000000#define OS_DOS      0x02000000#define OS_VXWORKS  0x04000000#define OS_MACOSX	0x08000000#define OS_XTENSA	0x10000000#define OS_STB		0x20000000#define OS_WINXP_AND_HIGHER OS_WIN_WDM // XXX ? /* Use one of next macros, or just `#if ( OS_TYPE == xxx )' */#define OS_ONE_OF(os) ( ( OS_TYPE & (os) ) != 0 )#define OS_IS_NOT(os) ( ( OS_TYPE & (~(os)) ) != 0 )#ifndef OS_TYPE#error --==> OS_TYPE is not defined! <==--#elif (OS_IS_NOT(OS_WIN_9X | OS_WIN_NT4 | OS_WIN_WDM | OS_LINUX | \				 OS_WIN_CE | OS_PSOS | OS_QNX | OS_MACOS | OS_APPLE | OS_DOS | OS_VXWORKS | OS_MACOSX | OS_XTENSA | OS_STB))#error --==> Bad OS_TYPE definition! <==--#endif/* Define `UK_MODE' to one of: *//* ----------------------------*/#define UK_USER     0x00001000#define UK_KERNEL   0x00002000#ifndef UK_MODE#error --==> UK_MODE is not defined! <==--#elif ( (UK_MODE != UK_USER) && (UK_MODE != UK_KERNEL) )#error --==> Bad UK_MODE definition! <==--#endif/* Define `IO_MODE' to one of: *//* ----------------------------*/#define IO_ONLINE   0x00004000#define IO_OFFLINE  0x00008000#ifndef IO_MODE#error --==> IO_MODE is not defined! <==--#elif ( (IO_MODE != IO_ONLINE) && (IO_MODE != IO_OFFLINE) )#error --==> Bad IO_MODE definition! <==--#endif/* Define `COMPILER' to one of: *//* -----------------------------*/#define CMP_MSDEV   0x00010000#define CMP_DJGPP   0x00020000#define CMP_GCC     0x00040000#define CMP_BORLAND 0x00080000#define CMP_XCC     0x00100000#define CMP_ADS		0x00200000#define CMP_SDT		0x00400000/* Use one of next macros, or just `#if ( COMPILER == xxx )' */#define COMP_ONE_OF(comp) ( ( COMPILER & (comp) ) != 0 )#define COMP_IS_NOT(comp) ( ( COMPILER & (~(comp)) ) != 0 )#ifndef COMPILER#error --==> COMPILER is not defined! <==--#elif ( COMP_IS_NOT(CMP_MSDEV | CMP_DJGPP | CMP_GCC | CMP_BORLAND | CMP_XCC | CMP_ADS | CMP_SDT) )#error --==> Bad COMPILER definition! <==--#endif#if ( COMPILER == CMP_MSDEV )#ifndef CMP_VER#define CMP_VER 6#endif#if ( (CMP_VER != 5) && (CMP_VER != 6) )#error --==> CMP_VER is not from CMP_MSDEV family! <==--#endif#endif /* CMP_MSDEV */#ifndef CMP_VER#define CMP_VER -1#endif/* Define `CPU_TYPE' to one of: *//* -----------------------------*/#define CPU_I386    0x00100000#define CPU_MIPS    0x00200000#define CPU_ALPHA   0x00400000#define CPU_PPC		0x00800000#define CPU_ARM		0x01000000#define CPU_AMD64	0x02000000#define CPU_XTENSA	0x04000000 /* Also, define `CPU_VER' according to type and version (586, 686 etc).   Unfortunatly, CPU_VER may only be a number, inorder to verify its value. *//* Use one of next macros, or just `#if ( CPU_TYPE == xxx )' */#define CPU_ONE_OF(cpu) ( ( CPU_TYPE & (cpu) ) != 0 )#define CPU_IS_NOT(cpu) ( ( CPU_TYPE & (~(cpu)) ) != 0 )#ifndef CPU_TYPE#error --==> CPU_TYPE is not defined! <==--#elif ( CPU_IS_NOT(CPU_I386 | CPU_MIPS | CPU_ALPHA | CPU_PPC | CPU_ARM | CPU_AMD64) )#error --==> Bad CPU_TYPE definition! <==--#endif#ifdef CPU_VER#if ( CPU_TYPE == CPU_I386 )#if ( (CPU_VER != 386) && (CPU_VER != 486) && (CPU_VER != 586) && \      (CPU_VER != 686) && (CPU_VER != 786) )#error --==> CPU_VER is not from CPU_I386 family! <==--#endif#elif ( CPU_TYPE == CPU_MIPS )/* Put here MIPS cpu versions check */#elif ( CPU_TYPE == CPU_ALPHA )/* Put here ALPHA cpu versions check */#elif ( CPU_TYPE == CPU_PPC )#if ( CPU_VER != 7455 )#error --==> CPU_VER is not from PPC family! <==--#endif#elif (CPU_TYPE == CPU_XTENSA)#elif ( CPU_TYPE == CPU_ARM )#endif /* CPU_TYPE */#else /* CPU_VER not defined: */#define CPU_VER -1#endif /* CPU_VER *//* Define `DEBUG_LEVEL' to one of: *//* --------------------------------*/#define DEBUG_DEVELOP 0x10000000#define DEBUG_RETAIL  0x20000000#define DEBUG_NONE    0x40000000#ifndef DEBUG_LEVEL#error --==> DEBUG_LEVEL is not defined! <==--#elif ( (DEBUG_LEVEL != DEBUG_DEVELOP) && (DEBUG_LEVEL != DEBUG_RETAIL) && \	(DEBUG_LEVEL != DEBUG_NONE) )#error --==> Bad DEBUG_LEVEL definition! <==--#endif/* Define `DEV_TOOL' to one of: *//* ----------------------------*/#define DT_MS95DDK  0x00000001#define DT_MS98DDK  0x00000002#define DT_MSNTDDK  0x00000004#define DT_VTOOLSD  0x00000008#define DT_VDW      0x00000010#define DT_NONE     0x00000020#ifndef DEV_TOOL#error --==> DEV_TOOL is not defined! <==--#elif ( (DEV_TOOL != DT_MS95DDK) && (DEV_TOOL != DT_MS98DDK) && \    (DEV_TOOL != DT_MSNTDDK) && (DEV_TOOL != DT_VTOOLSD) && (DEV_TOOL != DT_VDW) && (DEV_TOOL != DT_NONE))#error --==> Bad DEV_TOOL definition! <==--#endif#if ( PROJECT == PRJ_HSF )#define TARGET_HCF_FAMILY 0#define FRAMEWORK_HCF_CADMUS2 0#endif#endif /* __FRAMEWRK_H__ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -