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

📄 framewrk.h

📁 一个Linux下的软猫驱动
💻 H
📖 第 1 页 / 共 2 页
字号:
/* * Copyright (c) 2003-2004 Linuxant inc. * Copyright (c) 2001-2004 Conexant Systems, Inc. *  * 1.   Permitted use. Redistribution and use in source and binary forms, * without modification, are only permitted under the terms set forth herein. *  * 2.   Disclaimer of Warranties. LINUXANT, ITS SUPPLIERS, AND OTHER CONTRIBUTORS * MAKE NO REPRESENTATION ABOUT THE SUITABILITY OF THIS SOFTWARE FOR ANY PURPOSE. * IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTIES OF ANY KIND. * LINUXANT AND OTHER CONTRIBUTORS DISCLAIMS ALL WARRANTIES WITH REGARD * TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE, GOOD TITLE AND AGAINST INFRINGEMENT. *  * This software has not been formally tested, and there is no guarantee that * it is free of errors including, but not limited to, bugs, defects, * interrupted operation, or unexpected results. Any use of this software is * at user's own risk. *  * 3.   No Liability. *  * (a) Linuxant, its suppliers, or contributors shall not be responsible for * any loss or damage to users, customers, or any third parties for any reason * whatsoever, and LINUXANT, ITS SUPPLIERS OR CONTRIBUTORS SHALL NOT BE LIABLE * FOR ANY ACTUAL, DIRECT, INDIRECT, SPECIAL, PUNITIVE, INCIDENTAL, OR * CONSEQUENTIAL (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED, WHETHER IN CONTRACT, STRICT OR OTHER LEGAL THEORY OF * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY * WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY * OF SUCH DAMAGE. *  * (b) User agrees to hold Linuxant, its suppliers, and contributors harmless * from any liability, loss, cost, damage or expense, including attorney's fees, * as a result of any claims which may be made by any person, including * but not limited to User, its agents and employees, its customers, or * any third parties that arise out of or result from the manufacture, * delivery, actual or alleged ownership, performance, use, operation * or possession of the software furnished hereunder, whether such claims * are based on negligence, breach of contract, absolute liability or any * other legal theory. *  * 4.   Notices. User hereby agrees not to remove, alter or destroy any * copyright, trademark, credits, other proprietary notices or confidential * legends placed upon, contained within or associated with the Software, * and shall include all such unaltered copyright, trademark, credits, * other proprietary notices or confidential legends on or in every copy of * the Software. *  * 5.   Reverse-engineering. User hereby agrees not to reverse engineer, * decompile, or disassemble the portions of this software provided solely * in object form, nor attempt in any manner to obtain their source-code. *  * 6.   Redistribution. Redistribution of this software is only permitted * for exact copies (without modification) of versions explicitly marked * and officially released by Linuxant with the word "free" in their name. * Redistribution or disclosure of other versions, derivatives or license key * information is expressly prohibited without explicit written approval signed * by an authorized Linuxant officer. *  * 7.   Performance. V.92 modems are designed to be capable of receiving data at * up to 56Kbps with compatible phone line and server equipment, and transmitting * data at up to 31.2Kbps. V.90 modems are designed to be capable of receiving * data at up to 56 Kbps from a compatible service provider and transmitting data * at up to about 28.8 Kbps. Public networks currently limit download speeds to * about 53Kbps. The free version of the drivers is limited to 14.4Kbps. * Actual speeds vary and are often less than the maximum possible. *  *  *//*---------------------------------------------------------------------------- * * Copyright (C) 1996-2001 Conexant Systems Inc.  * All rights reserved. * *---------------------------------------------------------------------------- * * File: framewrk.h * * * framewrk.h - definitions of project's OS, CPU, Compiler etc. * *---------------------------------------------------------------------------- */ #ifndef __FRAMEWRK_H__#define __FRAMEWRK_H__/* Define some usefull sets of frameworks: *//* ----------------------------------------*/#define FWK_WIN9X_SOFTK56		0x11111111#define FWK_WIN9X_SOFTK56_V92	0x11111112#define FWK_LINUX_SOFTK56		0x22222222#define FWK_WIN9X_NILE 			0x33333333#define FWK_WIN9X_KERNEL_NILE	0x44444444#define FWK_SETTINGS_DLL 		0x55555555#define FWK_OCTOLOADER			0x66666666#define FWK_MAC_HCF             0x77777777#define FWK_WDM_NILE_CTRL 		0x88888888#define FWK_WDM_SOFTK56			0xaaaaaaaa#define FWK_NT4_SOFTK56			0xbbbbbbbb#define FWK_DLL_SOFTK56			0xcccccccc#define FWK_DOS					0xdddddddd#define FWK_GNRL_WIN_R3         0xeeeeeeee#define FWK_GNRL_VXD            0xffffffff#define FWK_ORCA_CONSOLE        0x12121212#define FWK_DOSTEST				0x13131313#define FWK_WIN9X_OCT			0x14141414#define FWK_GNRL_HSF_R3			0x15151515#define FWK_VXWORKS_MIPS		0x16161616#define FWK_WDM_SOFTK56TOOLS    0x17171717#define FWK_MACOSX				0x18181818#define FWK_MACOSX_CONSOLE      0x19191919#define FWK_SANSIRO			    0x10101010#define FWK_WDM64_SOFTK56		0x20202020#define FWK_CORSICA_ADS			0x21212121#define FWK_DLL_SANSIRO			0x23232323#define	FWK_ISS_SANSIRO			0x24242424#define FWK_AMD64_WIN_R3        0x25252525#define FWK_CORSICA_SDT			0x26262626#ifdef FRAME_WORK#if (FRAME_WORK==FWK_WIN9X_SOFTK56)#define PROJECT     PRJ_HSF#define PRJ_FLAVOUR	PRJFLVR_HSF#define OS_TYPE     OS_WIN_9X#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_VTOOLSD#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#define V92 0#undef FRAME_WORK#define FRAME_WORK "Framework: Win9X SoftK56"#elif (FRAME_WORK==FWK_WIN9X_SOFTK56_V92)#define PROJECT     PRJ_HSF#define PRJ_FLAVOUR	PRJFLVR_HSF#define OS_TYPE     OS_WIN_9X#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_VTOOLSD#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#define V92 1#undef FRAME_WORK#define FRAME_WORK "Framework: Win9X SoftK56" #elif ( FRAME_WORK == FWK_WIN9X_OCT )#define PROJECT     PRJ_HSF#define PRJ_FLAVOUR	PRJFLVR_HSF#define OS_TYPE     OS_WIN_9X#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_VTOOLSD#define DEBUG_LEVEL DEBUG_RETAIL#define OCT_SW_MODEM 1#define OCT_MEM_MGR	1#define USE_MEM_MGR	1#define USE_PRAGMA_PACK	1#define BIG_ENDIAN_MACHINE 0 #undef FRAME_WORK#define FRAME_WORK "Framework: Linux SoftK56" #elif ( FRAME_WORK == FWK_LINUX_SOFTK56 )#define PROJECT     PRJ_HSF#define OS_TYPE     OS_LINUX#define PRJ_FLAVOUR	PRJFLVR_CIDER#ifdef __KERNEL__#define UK_MODE     UK_KERNEL#else#define UK_MODE     UK_USER#endif#ifdef __x86_64__#define CPU_TYPE    CPU_AMD64#define CPU_VER     786#else#define CPU_TYPE    CPU_I386#define CPU_VER     586#endif#define IO_MODE     IO_ONLINE#define COMPILER    CMP_GCC#define CMP_VER     __GNUC__#define DEV_TOOL    DT_NONE#ifdef DEBUG#define DEBUG_LEVEL DEBUG_DEVELOP#else#define DEBUG_LEVEL DEBUG_RETAIL#endif#define OCT_SW_MODEM 1#define OCT_MEM_MGR	0#define USE_MEM_MGR	0#define USE_PRAGMA_PACK	0#define USE_DIRECT_API 1                                                      #ifdef __x86_64__#define PORTABILITY 1#else#define PORTABILITY 0#endif#define BIG_ENDIAN_MACHINE 0#define USE_DCP#define USE_SMART_DAA#define USE_INLINE_OS_MEMMGR#define OVERRIDE_NEW 0#define MULTYDP/*#define SCR#undef  USE_PROFILER*/#include "build_modules.h"#undef FRAME_WORK#define FRAME_WORK "Framework: Linux SoftK56"#elif ( FRAME_WORK == FWK_WDM_NILE_CTRL )#define PROJECT     PRJ_SDSL#define PRJ_FLAVOUR	PRJFLVR_NILE#define OS_TYPE     OS_WIN_WDM#define UK_MODE     UK_KERNEL#define CPU_TYPE    CPU_I386#define CPU_VER     786#define IO_MODE     IO_ONLINE#define COMPILER    CMP_MSDEV#define CMP_VER     6#define DEV_TOOL    DT_MS98DDK#define DEBUG_LEVEL DEBUG_DEVELOP#define OCT_MEM_MGR	1#define USE_MEM_MGR	1#define USE_PRAGMA_PACK	1#define BIG_ENDIAN_MACHINE 0#undef FRAME_WORK#define FRAME_WORK "Framework: WDM Nile"#elif ( FRAME_WORK == FWK_WIN9X_NILE )#define PROJECT     PRJ_SDSL#define PRJ_FLAVOUR	PRJFLVR_NILE#define OS_TYPE     OS_WIN_9X#define UK_MODE     UK_USER#define CPU_TYPE    CPU_I386#define CPU_VER     786#define IO_MODE     IO_OFFLINE#define COMPILER    CMP_MSDEV#define CMP_VER     6#define DEV_TOOL    DT_NONE#define DEBUG_LEVEL DEBUG_DEVELOP#define OCT_MEM_MGR	1#define USE_MEM_MGR	1#define USE_PRAGMA_PACK	1#define BIG_ENDIAN_MACHINE 0#undef FRAME_WORK#define FRAME_WORK "Framework: Win9X Nile (Offline)"#elif ( FRAME_WORK == FWK_MAC_HCF )#define PROJECT     PRJ_HCF#define PRJ_FLAVOUR	PRJFLVR_HCF#define OS_TYPE     OS_APPLE#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_NONE#define DEBUG_LEVEL DEBUG_DEVELOP#define BIG_ENDIAN_MACHINE 1#undef FRAME_WORK#define FRAME_WORK "Framework: MAC HCF"#elif ( FRAME_WORK == FWK_GNRL_VXD )#define PROJECT     PRJ_GNRL_VXD#define PRJ_FLAVOUR	PRJFLVR_HSF#define OS_TYPE     OS_WIN_9X#define UK_MODE     UK_KERNEL#define CPU_TYPE    CPU_I386#define CPU_VER     786#define IO_MODE     IO_ONLINE#define COMPILER    CMP_MSDEV#define CMP_VER     5#define DEV_TOOL    DT_VTOOLSD#define DEBUG_LEVEL DEBUG_DEVELOP#define BIG_ENDIAN_MACHINE 0#undef FRAME_WORK#define FRAME_WORK "Framework: General Windows Ring0 (VxD)"#elif ( FRAME_WORK == FWK_WIN9X_KERNEL_NILE )#define PROJECT     PRJ_SDSL#define PRJ_FLAVOUR	PRJFLVR_NILE#define OS_TYPE     OS_WIN_9X#define UK_MODE     UK_KERNEL#define CPU_TYPE    CPU_I386#define CPU_VER     786#define IO_MODE     IO_ONLINE#define COMPILER    CMP_MSDEV#define CMP_VER     6#define DEV_TOOL    DT_VTOOLSD#define DEBUG_LEVEL DEBUG_DEVELOP#define OCT_MEM_MGR	1#define USE_MEM_MGR	1#define USE_PRAGMA_PACK	1#define BIG_ENDIAN_MACHINE 0#undef FRAME_WORK#define FRAME_WORK "Framework: Win9X Nile (Online)"#elif ( FRAME_WORK == FWK_GNRL_WIN_R3 )#define PROJECT     PRJ_GNRL_WIN_R3#define PRJ_FLAVOUR	PRJFLVR_HSF#define OS_TYPE     OS_WIN_9X#define UK_MODE     UK_USER#define CPU_TYPE    CPU_I386#define CPU_VER     786#define IO_MODE     IO_OFFLINE#define COMPILER    CMP_MSDEV#define CMP_VER     6#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: Amd 64 Windows Ring3"  #elif ( FRAME_WORK == FWK_AMD64_WIN_R3 )#define PROJECT     PRJ_AMD64_WIN_R3#define PRJ_FLAVOUR	PRJFLVR_HSF#define OS_TYPE     OS_WIN_WDM#define UK_MODE     UK_USER#define CPU_TYPE    CPU_AMD64#define CPU_VER     786#define IO_MODE     IO_OFFLINE#define COMPILER    CMP_MSDEV#define CMP_VER     6#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: General Windows Ring3" #elif ( FRAME_WORK == FWK_OCTOLOADER )#define PROJECT     PRJ_OCTOLOADER#define PRJ_FLAVOUR	PRJFLVR_APP#define OS_TYPE     OS_WIN_9X#define UK_MODE     UK_USER#define CPU_TYPE    CPU_I386#define CPU_VER     786#define IO_MODE     IO_OFFLINE#define COMPILER    CMP_MSDEV#define CMP_VER     6#define DEBUG_LEVEL DEBUG_DEVELOP#define DEV_TOOL    DT_NONE#define BIG_ENDIAN_MACHINE 0#undef FRAME_WORK#define FRAME_WORK "Framework: Octoloader"#elif ( FRAME_WORK == FWK_WDM_SOFTK56 )#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	1#define USE_PRAGMA_PACK	1#define BIG_ENDIAN_MACHINE 0#define PORTABILITY 0 #elif ( FRAME_WORK == FWK_WDM64_SOFTK56 )#define PROJECT     PRJ_HSF#define PRJ_FLAVOUR	PRJFLVR_HSF#define OS_TYPE     OS_WIN_WDM#define UK_MODE     UK_KERNEL#define CPU_TYPE    CPU_AMD64  #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	1#define USE_PRAGMA_PACK	1#define BIG_ENDIAN_MACHINE 0#define PORTABILITY 1 #undef FRAME_WORK#define FRAME_WORK "Framework: WDM SoftK56"#elif ( FRAME_WORK == FWK_NT4_SOFTK56 )#define PROJECT     PRJ_HSF#define PRJ_FLAVOUR	PRJFLVR_HSF#define OS_TYPE     OS_WIN_NT4#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	1#define USE_PRAGMA_PACK	1#define BIG_ENDIAN_MACHINE 0#undef FRAME_WORK#define FRAME_WORK "Framework: NT4 SoftK56"#elif ( FRAME_WORK == FWK_DLL_SOFTK56 )#define PROJECT     PRJ_HSF#define PRJ_FLAVOUR	PRJFLVR_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	1#define USE_PRAGMA_PACK	1#define BIG_ENDIAN_MACHINE 0#undef FRAME_WORK#define FRAME_WORK "Framework: Dll Offline SoftK56"#elif ( FRAME_WORK == FWK_DOS )#define PROJECT     PRJ_HSF#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_MSDEV#define CMP_VER     5#define DEV_TOOL    DT_NONE#define DEBUG_LEVEL DEBUG_DEVELOP#define BIG_ENDIAN_MACHINE 0

⌨️ 快捷键说明

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