2 * Copyright (c) 2003-2004 Linuxant inc.
3 * Copyright (c) 2001-2004 Conexant Systems, Inc.
5 * 1. Permitted use. Redistribution and use in source and binary forms,
6 * without modification, are only permitted under the terms set forth herein.
8 * 2. Disclaimer of Warranties. LINUXANT, ITS SUPPLIERS, AND OTHER CONTRIBUTORS
9 * MAKE NO REPRESENTATION ABOUT THE SUITABILITY OF THIS SOFTWARE FOR ANY PURPOSE.
10 * IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTIES OF ANY KIND.
11 * LINUXANT AND OTHER CONTRIBUTORS DISCLAIMS ALL WARRANTIES WITH REGARD
12 * TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
13 * FOR A PARTICULAR PURPOSE, GOOD TITLE AND AGAINST INFRINGEMENT.
15 * This software has not been formally tested, and there is no guarantee that
16 * it is free of errors including, but not limited to, bugs, defects,
17 * interrupted operation, or unexpected results. Any use of this software is
22 * (a) Linuxant, its suppliers, or contributors shall not be responsible for
23 * any loss or damage to users, customers, or any third parties for any reason
24 * whatsoever, and LINUXANT, ITS SUPPLIERS OR CONTRIBUTORS SHALL NOT BE LIABLE
25 * FOR ANY ACTUAL, DIRECT, INDIRECT, SPECIAL, PUNITIVE, INCIDENTAL, OR
26 * CONSEQUENTIAL (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED, WHETHER IN CONTRACT, STRICT OR OTHER LEGAL THEORY OF
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
30 * WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
33 * (b) User agrees to hold Linuxant, its suppliers, and contributors harmless
34 * from any liability, loss, cost, damage or expense, including attorney's fees,
35 * as a result of any claims which may be made by any person, including
36 * but not limited to User, its agents and employees, its customers, or
37 * any third parties that arise out of or result from the manufacture,
38 * delivery, actual or alleged ownership, performance, use, operation
39 * or possession of the software furnished hereunder, whether such claims
40 * are based on negligence, breach of contract, absolute liability or any
43 * 4. Notices. User hereby agrees not to remove, alter or destroy any
44 * copyright, trademark, credits, other proprietary notices or confidential
45 * legends placed upon, contained within or associated with the Software,
46 * and shall include all such unaltered copyright, trademark, credits,
47 * other proprietary notices or confidential legends on or in every copy of
50 * 5. Reverse-engineering. User hereby agrees not to reverse engineer,
51 * decompile, or disassemble the portions of this software provided solely
52 * in object form, nor attempt in any manner to obtain their source-code.
54 * 6. Redistribution. Redistribution of this software is only permitted
55 * for exact copies (without modification) of versions explicitly marked
56 * and officially released by Linuxant with the word "free" in their name.
57 * Redistribution or disclosure of other versions, derivatives or license key
58 * information is expressly prohibited without explicit written approval signed
59 * by an authorized Linuxant officer.
61 * 7. Performance. V.92 modems are designed to be capable of receiving data at
62 * up to 56Kbps with compatible phone line and server equipment, and transmitting
63 * data at up to 31.2Kbps. V.90 modems are designed to be capable of receiving
64 * data at up to 56 Kbps from a compatible service provider and transmitting data
65 * at up to about 28.8 Kbps. Public networks currently limit download speeds to
66 * about 53Kbps. The free version of the drivers is limited to 14.4Kbps.
67 * Actual speeds vary and are often less than the maximum possible.
72 /*----------------------------------------------------------------------------
74 * Copyright (C) 1996-2007 Conexant Systems Inc.
75 * All rights reserved.
77 *----------------------------------------------------------------------------
81 * * framewrk.h - definitions of project's OS, CPU, Compiler etc.
83 *----------------------------------------------------------------------------
86 #ifndef __FRAMEWRK_H__
87 #define __FRAMEWRK_H__
90 /* Define some usefull sets of frameworks: */
91 /* ----------------------------------------*/
92 #define FWK_WIN9X_SOFTK56 0x11111111
93 #define FWK_WIN9X_SOFTK56_V92 0x11111112
94 #define FWK_LINUX_SOFTK56 0x22222222
95 #define FWK_WIN9X_NILE 0x33333333
96 #define FWK_WIN9X_KERNEL_NILE 0x44444444
97 #define FWK_SETTINGS_DLL 0x55555555
98 #define FWK_OCTOLOADER 0x66666666
99 #define FWK_MAC_HCF 0x77777777
100 #define FWK_WDM_NILE_CTRL 0x88888888
101 #define FWK_WDM_SOFTK56 0xaaaaaaaa
102 #define FWK_NT4_SOFTK56 0xbbbbbbbb
103 #define FWK_DLL_SOFTK56 0xcccccccc
104 #define FWK_DOS 0xdddddddd
105 #define FWK_GNRL_WIN_R3 0xeeeeeeee
106 #define FWK_GNRL_VXD 0xffffffff
107 #define FWK_ORCA_CONSOLE 0x12121212
108 #define FWK_DOSTEST 0x13131313
109 #define FWK_WIN9X_OCT 0x14141414
110 #define FWK_GNRL_HSF_R3 0x15151515
111 #define FWK_VXWORKS_MIPS 0x16161616
112 #define FWK_WDM_SOFTK56TOOLS 0x17171717
113 #define FWK_MACOSX 0x18181818
114 #define FWK_MACOSX_CONSOLE 0x19191919
115 #define FWK_SANSIRO 0x10101010
116 #define FWK_WDM64_SOFTK56 0x20202020
117 #define FWK_CORSICA_ADS 0x21212121
118 #define FWK_DLL_SANSIRO 0x23232323
119 #define FWK_ISS_SANSIRO 0x24242424
120 #define FWK_AMD64_WIN_R3 0x25252525
121 #define FWK_CORSICA_SDT 0x26262626
125 #if (FRAME_WORK==FWK_WIN9X_SOFTK56)
126 #define PROJECT PRJ_HSF
127 #define PRJ_FLAVOUR PRJFLVR_HSF
128 #define OS_TYPE OS_WIN_9X
129 #define UK_MODE UK_KERNEL
130 #define CPU_TYPE CPU_I386
132 #define IO_MODE IO_ONLINE
133 #define COMPILER CMP_MSDEV
135 #define DEV_TOOL DT_VTOOLSD
136 #define DEBUG_LEVEL DEBUG_RETAIL
137 #define OCT_SW_MODEM 0
138 #define OCT_MEM_MGR 0
139 #define USE_MEM_MGR 1
140 #define USE_PRAGMA_PACK 1
141 #define BIG_ENDIAN_MACHINE 0
144 #define FRAME_WORK_STR "Framework: Win9X SoftK56"
146 #elif (FRAME_WORK==FWK_WIN9X_SOFTK56_V92)
147 #define PROJECT PRJ_HSF
148 #define PRJ_FLAVOUR PRJFLVR_HSF
149 #define OS_TYPE OS_WIN_9X
150 #define UK_MODE UK_KERNEL
151 #define CPU_TYPE CPU_I386
153 #define IO_MODE IO_ONLINE
154 #define COMPILER CMP_MSDEV
156 #define DEV_TOOL DT_VTOOLSD
157 #define DEBUG_LEVEL DEBUG_RETAIL
158 #define OCT_SW_MODEM 0
159 #define OCT_MEM_MGR 0
160 #define USE_MEM_MGR 1
161 #define USE_PRAGMA_PACK 1
162 #define BIG_ENDIAN_MACHINE 0
165 #define FRAME_WORK_STR "Framework: Win9X SoftK56"
167 #elif ( FRAME_WORK == FWK_WIN9X_OCT )
168 #define PROJECT PRJ_HSF
169 #define PRJ_FLAVOUR PRJFLVR_HSF
170 #define OS_TYPE OS_WIN_9X
171 #define UK_MODE UK_KERNEL
172 #define CPU_TYPE CPU_I386
174 #define IO_MODE IO_ONLINE
175 #define COMPILER CMP_MSDEV
177 #define DEV_TOOL DT_VTOOLSD
178 #define DEBUG_LEVEL DEBUG_RETAIL
179 #define OCT_SW_MODEM 1
180 #define OCT_MEM_MGR 1
181 #define USE_MEM_MGR 1
182 #define USE_PRAGMA_PACK 1
183 #define BIG_ENDIAN_MACHINE 0
185 #define FRAME_WORK_STR "Framework: Linux SoftK56"
188 #elif ( FRAME_WORK == FWK_LINUX_SOFTK56 )
190 #define PROJECT PRJ_HSF
191 #define OS_TYPE OS_LINUX
192 #define PRJ_FLAVOUR PRJFLVR_CIDER
194 #define UK_MODE UK_KERNEL
196 #define UK_MODE UK_USER
199 #define CPU_TYPE CPU_AMD64
202 #define CPU_TYPE CPU_I386
205 #define IO_MODE IO_ONLINE
206 #define COMPILER CMP_GCC
207 #define CMP_VER __GNUC__
208 #define DEV_TOOL DT_NONE
210 #define DEBUG_LEVEL DEBUG_DEVELOP
212 #define DEBUG_LEVEL DEBUG_RETAIL
214 #define OCT_SW_MODEM 1
215 #define OCT_MEM_MGR 0
216 #define USE_MEM_MGR 0
217 #define USE_PRAGMA_PACK 0
218 #define USE_DIRECT_API 1
220 #define PORTABILITY 1
222 #define PORTABILITY 0
224 #define BIG_ENDIAN_MACHINE 0
226 #define USE_SMART_DAA
227 #define USE_INLINE_OS_MEMMGR
228 #define OVERRIDE_NEW 0
237 #include "build_modules.h"
239 #define FRAME_WORK_STR "Framework: Linux SoftK56"
241 #elif ( FRAME_WORK == FWK_WDM_NILE_CTRL )
243 #define PROJECT PRJ_SDSL
244 #define PRJ_FLAVOUR PRJFLVR_NILE
245 #define OS_TYPE OS_WIN_WDM
246 #define UK_MODE UK_KERNEL
247 #define CPU_TYPE CPU_I386
249 #define IO_MODE IO_ONLINE
250 #define COMPILER CMP_MSDEV
252 #define DEV_TOOL DT_MS98DDK
253 #define DEBUG_LEVEL DEBUG_DEVELOP
254 #define OCT_MEM_MGR 1
255 #define USE_MEM_MGR 1
256 #define USE_PRAGMA_PACK 1
257 #define BIG_ENDIAN_MACHINE 0
259 #define FRAME_WORK_STR "Framework: WDM Nile"
261 #elif ( FRAME_WORK == FWK_WIN9X_NILE )
263 #define PROJECT PRJ_SDSL
264 #define PRJ_FLAVOUR PRJFLVR_NILE
265 #define OS_TYPE OS_WIN_9X
266 #define UK_MODE UK_USER
267 #define CPU_TYPE CPU_I386
269 #define IO_MODE IO_OFFLINE
270 #define COMPILER CMP_MSDEV
272 #define DEV_TOOL DT_NONE
273 #define DEBUG_LEVEL DEBUG_DEVELOP
274 #define OCT_MEM_MGR 1
275 #define USE_MEM_MGR 1
276 #define USE_PRAGMA_PACK 1
277 #define BIG_ENDIAN_MACHINE 0
279 #define FRAME_WORK_STR "Framework: Win9X Nile (Offline)"
281 #elif (FRAME_WORK == FWK_MAC_HCF)
283 #define PROJECT PRJ_HCF
284 #define PRJ_FLAVOUR PRJFLVR_HCF
285 #define OS_TYPE OS_APPLE
286 #define UK_MODE UK_KERNEL
287 #define CPU_TYPE CPU_I386
289 #define IO_MODE IO_ONLINE
290 #define COMPILER CMP_MSDEV
292 #define DEV_TOOL DT_NONE
293 #define DEBUG_LEVEL DEBUG_DEVELOP
294 #define BIG_ENDIAN_MACHINE 1
296 #define FRAME_WORK_STR "Framework: MAC HCF"
298 #elif ( FRAME_WORK == FWK_GNRL_VXD )
300 #define PROJECT PRJ_GNRL_VXD
301 #define PRJ_FLAVOUR PRJFLVR_HSF
302 #define OS_TYPE OS_WIN_9X
303 #define UK_MODE UK_KERNEL
304 #define CPU_TYPE CPU_I386
306 #define IO_MODE IO_ONLINE
307 #define COMPILER CMP_MSDEV
309 #define DEV_TOOL DT_VTOOLSD
310 #define DEBUG_LEVEL DEBUG_DEVELOP
311 #define BIG_ENDIAN_MACHINE 0
313 #define FRAME_WORK_STR "Framework: General Windows Ring0 (VxD)"
315 #elif ( FRAME_WORK == FWK_WIN9X_KERNEL_NILE )
317 #define PROJECT PRJ_SDSL
318 #define PRJ_FLAVOUR PRJFLVR_NILE
319 #define OS_TYPE OS_WIN_9X
320 #define UK_MODE UK_KERNEL
321 #define CPU_TYPE CPU_I386
323 #define IO_MODE IO_ONLINE
324 #define COMPILER CMP_MSDEV
326 #define DEV_TOOL DT_VTOOLSD
327 #define DEBUG_LEVEL DEBUG_DEVELOP
328 #define OCT_MEM_MGR 1
329 #define USE_MEM_MGR 1
330 #define USE_PRAGMA_PACK 1
331 #define BIG_ENDIAN_MACHINE 0
333 #define FRAME_WORK_STR "Framework: Win9X Nile (Online)"
335 #elif ( FRAME_WORK == FWK_GNRL_WIN_R3 )
336 #define PROJECT PRJ_GNRL_WIN_R3
337 #define PRJ_FLAVOUR PRJFLVR_HSF
338 #define OS_TYPE OS_WIN_9X
339 #define UK_MODE UK_USER
340 #define CPU_TYPE CPU_I386
342 #define IO_MODE IO_OFFLINE
343 #define COMPILER CMP_MSDEV
345 #define DEV_TOOL DT_NONE
346 #define DEBUG_LEVEL DEBUG_DEVELOP
347 #define OCT_SW_MODEM 0
348 #define OCT_MEM_MGR 0
349 #define USE_MEM_MGR 0
350 #define USE_PRAGMA_PACK 1
351 #define BIG_ENDIAN_MACHINE 0
352 #define PORTABILITY 1
354 #define FRAME_WORK_STR "Framework: General Windows Ring3"
357 #elif ( FRAME_WORK == FWK_AMD64_WIN_R3 )
358 #define PROJECT PRJ_AMD64_WIN_R3
359 #define PRJ_FLAVOUR PRJFLVR_HSF
360 #define OS_TYPE OS_WIN_WDM
361 #define UK_MODE UK_USER
362 #define CPU_TYPE CPU_AMD64
364 #define IO_MODE IO_OFFLINE
365 #define COMPILER CMP_MSDEV
367 #define DEV_TOOL DT_NONE
368 #define DEBUG_LEVEL DEBUG_DEVELOP
369 #define OCT_SW_MODEM 0
370 #define OCT_MEM_MGR 0
371 #define USE_MEM_MGR 0
372 #define USE_PRAGMA_PACK 1
373 #define BIG_ENDIAN_MACHINE 0
375 #define FRAME_WORK_STR "Framework: Amd 64 Windows Ring3"
378 #elif ( FRAME_WORK == FWK_OCTOLOADER )
380 #define PROJECT PRJ_OCTOLOADER
381 #define PRJ_FLAVOUR PRJFLVR_APP
382 #define OS_TYPE OS_WIN_9X
383 #define UK_MODE UK_USER
384 #define CPU_TYPE CPU_I386
386 #define IO_MODE IO_OFFLINE
387 #define COMPILER CMP_MSDEV
389 #define DEBUG_LEVEL DEBUG_DEVELOP
390 #define DEV_TOOL DT_NONE
391 #define BIG_ENDIAN_MACHINE 0
393 #define FRAME_WORK_STR "Framework: Octoloader"
395 #elif ( FRAME_WORK == FWK_WDM_SOFTK56 )
396 #define PROJECT PRJ_HSF
397 #define PRJ_FLAVOUR PRJFLVR_HSF
398 #define OS_TYPE OS_WIN_WDM
399 #define UK_MODE UK_KERNEL
400 #define CPU_TYPE CPU_I386
402 #define IO_MODE IO_ONLINE
403 #define COMPILER CMP_MSDEV
405 #define DEV_TOOL DT_VDW
406 #define DEBUG_LEVEL DEBUG_RETAIL
407 #define OCT_SW_MODEM 0
408 #define OCT_MEM_MGR 0
409 #define USE_MEM_MGR 1
410 #define USE_PRAGMA_PACK 1
411 #define BIG_ENDIAN_MACHINE 0
412 #define PORTABILITY 0
414 #elif ( FRAME_WORK == FWK_WDM64_SOFTK56 )
415 #define PROJECT PRJ_HSF
416 #define PRJ_FLAVOUR PRJFLVR_HSF
417 #define OS_TYPE OS_WIN_WDM
418 #define UK_MODE UK_KERNEL
419 #define CPU_TYPE CPU_AMD64
421 #define IO_MODE IO_ONLINE
422 #define COMPILER CMP_MSDEV
424 #define DEV_TOOL DT_VDW
425 #define DEBUG_LEVEL DEBUG_RETAIL
426 #define OCT_SW_MODEM 0
427 #define OCT_MEM_MGR 0
428 #define USE_MEM_MGR 1
429 #define USE_PRAGMA_PACK 1
430 #define BIG_ENDIAN_MACHINE 0
431 #define PORTABILITY 1
433 #define FRAME_WORK_STR "Framework: WDM SoftK56"
435 #elif ( FRAME_WORK == FWK_NT4_SOFTK56 )
437 #define PROJECT PRJ_HSF
438 #define PRJ_FLAVOUR PRJFLVR_HSF
439 #define OS_TYPE OS_WIN_NT4
440 #define UK_MODE UK_KERNEL
441 #define CPU_TYPE CPU_I386
443 #define IO_MODE IO_ONLINE
444 #define COMPILER CMP_MSDEV
446 #define DEV_TOOL DT_VDW
447 #define DEBUG_LEVEL DEBUG_RETAIL
448 #define OCT_SW_MODEM 0
449 #define OCT_MEM_MGR 0
450 #define USE_MEM_MGR 1
451 #define USE_PRAGMA_PACK 1
452 #define BIG_ENDIAN_MACHINE 0
454 #define FRAME_WORK_STR "Framework: NT4 SoftK56"
456 #elif ( FRAME_WORK == FWK_DLL_SOFTK56 )
457 #define PROJECT PRJ_HSF
458 #define PRJ_FLAVOUR PRJFLVR_HSF
459 #define OS_TYPE OS_WIN_9X
460 #define UK_MODE UK_USER
461 #define CPU_TYPE CPU_I386
463 #define IO_MODE IO_OFFLINE
464 #define COMPILER CMP_MSDEV
466 #define DEV_TOOL DT_NONE
467 #define DEBUG_LEVEL DEBUG_DEVELOP
468 #define OCT_SW_MODEM 0
469 #define OCT_MEM_MGR 0
470 #define USE_MEM_MGR 1
471 #define USE_PRAGMA_PACK 1
472 #define BIG_ENDIAN_MACHINE 0
474 #define FRAME_WORK_STR "Framework: Dll Offline SoftK56"
476 #elif ( FRAME_WORK == FWK_DOS )
478 #define PROJECT PRJ_HSF
479 #define PRJ_FLAVOUR PRJFLVR_HSF
480 #define OS_TYPE OS_DOS
481 #define UK_MODE UK_KERNEL
482 #define CPU_TYPE CPU_I386
484 #define IO_MODE IO_ONLINE
485 #define COMPILER CMP_MSDEV
487 #define DEV_TOOL DT_NONE
488 #define DEBUG_LEVEL DEBUG_DEVELOP
489 #define BIG_ENDIAN_MACHINE 0
491 #define FRAME_WORK_STR "Framework: DOS"
493 #elif ( FRAME_WORK == FWK_DOSTEST )
495 #define PROJECT PRJ_HSFTEST
496 #define PRJ_FLAVOUR PRJFLVR_HSF
497 #define OS_TYPE OS_DOS
498 #define UK_MODE UK_KERNEL
499 #define CPU_TYPE CPU_I386
501 #define IO_MODE IO_ONLINE
502 #define COMPILER CMP_BORLAND
504 #define DEV_TOOL DT_NONE
505 #define DEBUG_LEVEL DEBUG_DEVELOP
506 #define BIG_ENDIAN_MACHINE 0
508 #define FRAME_WORK_STR "Framework: DOSTEST"
510 #elif ( FRAME_WORK == FWK_ORCA_CONSOLE )
512 #define PROJECT PRJ_HSF
513 #define PRJ_FLAVOUR PRJFLVR_CYPRUS
514 #define OS_TYPE OS_DOS
515 #define UK_MODE UK_USER
516 #define CPU_TYPE CPU_I386
518 #define IO_MODE IO_OFFLINE
519 #define COMPILER CMP_MSDEV
521 #define DEV_TOOL DT_NONE
522 #define DEBUG_LEVEL DEBUG_DEVELOP
523 #define OCT_SW_MODEM 0
524 #define OCT_MEM_MGR 0
525 #define USE_MEM_MGR 0
526 #define USE_PRAGMA_PACK 1
527 #define BIG_ENDIAN_MACHINE 0
529 #define FRAME_WORK_STR "Framework: Orca console"
531 #elif ( FRAME_WORK == FWK_GNRL_HSF_R3 )
533 #define PROJECT PRJ_HSF
534 #define OS_TYPE OS_WIN_9X
535 #define UK_MODE UK_USER
536 #define CPU_TYPE CPU_I386
538 #define IO_MODE IO_OFFLINE
539 #define COMPILER CMP_MSDEV
541 #define DEV_TOOL DT_NONE
542 #define DEBUG_LEVEL DEBUG_DEVELOP
543 #define OCT_SW_MODEM 0
544 #define OCT_MEM_MGR 0
545 #define USE_MEM_MGR 0
546 #define USE_PRAGMA_PACK 1
547 #define PRJ_FLAVOUR PRJFLVR_HSF
548 #define BIG_ENDIAN_MACHINE 0
550 #define FRAME_WORK_STR "Framework: General HSF Application"
552 #elif ( FRAME_WORK == FWK_VXWORKS_MIPS )
554 #define PROJECT PRJ_HSF
555 #define PRJ_FLAVOUR PRJFLVR_CYPRUS
556 #define OS_TYPE OS_VXWORKS
557 #define UK_MODE UK_KERNEL
558 #define CPU_TYPE CPU_MIPS
560 #define IO_MODE IO_ONLINE
561 #define COMPILER CMP_GCC
563 #define DEV_TOOL DT_NONE
564 #define DEBUG_LEVEL DEBUG_RETAIL
565 #define OCT_SW_MODEM 1
566 #define OCT_MEM_MGR 1
567 #define USE_MEM_MGR 1
568 #define USE_PRAGMA_PACK 0
570 #include "build_modules.h"
572 #define FRAME_WORK_STR "Framework: VxWorks Mips"
574 #elif ( FRAME_WORK == FWK_WDM_SOFTK56TOOLS )
575 #define PROJECT PRJ_HSF
576 #define PRJ_FLAVOUR PRJFLVR_HSF
577 #define OS_TYPE OS_WIN_WDM
578 #define UK_MODE UK_KERNEL
579 #define CPU_TYPE CPU_I386
581 #define IO_MODE IO_ONLINE
582 #define COMPILER CMP_MSDEV
584 #define DEV_TOOL DT_VDW
585 #define DEBUG_LEVEL DEBUG_RETAIL
586 #define OCT_SW_MODEM 0
587 #define OCT_MEM_MGR 0
588 #define USE_MEM_MGR 0
589 #define USE_PRAGMA_PACK 1
590 #define BIG_ENDIAN_MACHINE 0
592 #define FRAME_WORK_STR "Framework: WDM SoftK56"
594 #elif ( FRAME_WORK == FWK_MACOSX )
596 #define PROJECT PRJ_HSF
597 #define PRJ_FLAVOUR PRJFLVR_CIDER
598 #define OS_TYPE OS_MACOSX
599 #define UK_MODE UK_KERNEL
600 #define CPU_TYPE CPU_PPC
602 #define IO_MODE IO_ONLINE
603 #define COMPILER CMP_GCC
605 #define DEV_TOOL DT_NONE
606 #define DEBUG_LEVEL DEBUG_RETAIL
607 #define OCT_SW_MODEM 1
608 #define OCT_MEM_MGR 1
609 #define USE_MEM_MGR 1
610 #define USE_PRAGMA_PACK 0
611 #define PORTABILITY 1
612 #define BIG_ENDIAN_MACHINE 1
618 /* #define USE_SMART_DAA */
620 #include "octopus/include/build_modules.h"
622 #define FRAME_WORK_STR "Framework: MacOsX"
624 #elif ( FRAME_WORK == FWK_MACOSX_CONSOLE )
626 #define PROJECT PRJ_HSF
627 #define PRJ_FLAVOUR PRJFLVR_CIDER
628 #define OS_TYPE OS_MACOSX
629 #define UK_MODE UK_USER
630 #define CPU_TYPE CPU_PPC
632 #define IO_MODE IO_OFFLINE
633 #define COMPILER CMP_GCC
635 #define DEV_TOOL DT_NONE
636 #define DEBUG_LEVEL DEBUG_RETAIL
637 #define OCT_SW_MODEM 0
638 #define OCT_MEM_MGR 0
639 #define USE_MEM_MGR 0
640 #define USE_PRAGMA_PACK 0
641 #define PORTABILITY 1
643 #define FRAME_WORK_STR "Framework: MacOsX Console"
645 #elif (FRAME_WORK==FWK_SANSIRO)
646 #define PROJECT PRJ_SANSIRO
647 #define PRJ_FLAVOUR PRJFLVR_SANSIRO
648 #define OS_TYPE OS_XTENSA
649 #define UK_MODE UK_KERNEL
650 #define CPU_TYPE CPU_XTENSA
651 #define CPU_VER 10502
652 #define IO_MODE IO_ONLINE
653 #define COMPILER CMP_XCC
654 #define CMP_VER 10502
655 #define DEV_TOOL DT_NONE
656 #define DEBUG_LEVEL DEBUG_RETAIL
657 #define OCT_SW_MODEM 0
658 #define OCT_MEM_MGR 0
659 #define USE_MEM_MGR 1
660 #define USE_PRAGMA_PACK 1
661 #define BIG_ENDIAN_MACHINE 0
663 #define FRAME_WORK_STR "Framework: SanSiro"
665 #elif ( FRAME_WORK == FWK_CORSICA_ADS )
667 #define PROJECT PRJ_HSF
668 #define PRJ_FLAVOUR PRJFLVR_CIDER
669 #define OS_TYPE OS_STB
670 #define UK_MODE UK_KERNEL
671 #define CPU_TYPE CPU_ARM
673 #define IO_MODE IO_ONLINE
674 #define COMPILER CMP_ADS
676 #define DEV_TOOL DT_NONE
677 #define DEBUG_LEVEL DEBUG_RETAIL
678 #define OCT_SW_MODEM 1
679 #define OCT_MEM_MGR 1
680 #define USE_MEM_MGR 1
681 #define USE_PRAGMA_PACK 0
682 #define PORTABILITY 1
684 #include "octopus/include/build_modules.h"
686 #define FRAME_WORK_STR "Framework: Corsica ADS"
688 #elif ( FRAME_WORK == FWK_CORSICA_SDT )
690 #define PROJECT PRJ_HSF
691 #define PRJ_FLAVOUR PRJFLVR_CIDER
692 #define OS_TYPE OS_STB
693 #define UK_MODE UK_KERNEL
694 #define CPU_TYPE CPU_ARM
696 #define IO_MODE IO_ONLINE
697 #define COMPILER CMP_SDT
699 #define DEV_TOOL DT_NONE
700 #define DEBUG_LEVEL DEBUG_RETAIL
701 #define OCT_SW_MODEM 1
702 #define OCT_MEM_MGR 1
703 #define USE_MEM_MGR 1
704 #define USE_PRAGMA_PACK 0
705 #define PORTABILITY 1
707 #include "octopus/include/build_modules.h"
709 #define FRAME_WORK_STR "Framework: Corsica SDT"
711 #elif (FRAME_WORK==FWK_DLL_SANSIRO)
712 #define PROJECT PRJ_SANSIRO
713 #define PRJ_FLAVOUR PRJFLVR_SANSIRO
714 #define OS_TYPE OS_WIN_9X
715 #define UK_MODE UK_USER
716 #define CPU_TYPE CPU_I386
718 #define IO_MODE IO_OFFLINE
719 #define COMPILER CMP_MSDEV
721 #define DEV_TOOL DT_NONE
722 #define DEBUG_LEVEL DEBUG_RETAIL
723 #define OCT_SW_MODEM 0
724 #define OCT_MEM_MGR 0
725 #define USE_MEM_MGR 0
726 #define USE_PRAGMA_PACK 0
727 #define BIG_ENDIAN_MACHINE 0
729 #define FRAME_WORK_STR "Framework: Dll Offline SanSiro"
731 #elif (FRAME_WORK==FWK_ISS_SANSIRO)
732 #define PROJECT PRJ_SANSIRO
733 #define PRJ_FLAVOUR PRJFLVR_SANSIRO
734 #define OS_TYPE OS_XTENSA
735 #define UK_MODE UK_KERNEL
736 #define CPU_TYPE CPU_XTENSA
737 #define CPU_VER 10502
738 #define IO_MODE IO_OFFLINE
739 #define COMPILER CMP_XCC
740 #define CMP_VER 10502
741 #define DEV_TOOL DT_NONE
742 #define DEBUG_LEVEL DEBUG_RETAIL
743 #define OCT_SW_MODEM 0
744 #define OCT_MEM_MGR 0
745 #define USE_MEM_MGR 1
746 #define USE_PRAGMA_PACK 1
747 #define BIG_ENDIAN_MACHINE 0
749 #define FRAME_WORK_STR "Framework: ISS SanSiro"
753 #error --==> FRAME_WORK type unknown! <==--
755 #endif /* Checked all possible FRAME_WORK values */
757 #else /* No set defined: */
759 #define FRAME_WORK_STR "Custom Framework"
764 /* Define `PROJECT' to one of: */
765 /* ----------------------------*/
766 #define PRJ_HSF 0x00000001
767 #define PRJ_SDSL 0x00000002
768 #define PRJ_OCTOLOADER 0x00000008
769 #define PRJ_ORCA 0x00000010
770 #define PRJ_GNRL_WIN_R3 0x00000020
771 #define PRJ_GNRL_VXD 0x00000040
772 #define PRJ_HSFTEST 0x00000080
773 #define PRJ_SANSIRO 0x00000100
774 #define PRJ_AMD64_WIN_R3 0x00000200
776 /* Use one of next macros, or just `#if ( OS_TYPE == xxx )' */
777 #define PRJ_ONE_OF(prj) ( ( PROJECT & (prj) ) != 0 )
778 #define PRJ_IS_NOT(prj) ( ( PROJECT & (~(prj)) ) != 0 )
781 #error --==> PROJECT is not defined! <==--
782 #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) )
783 #error --==> Bad PROJECT definition! <==--
786 /* Define `PRJ_FLAVOUR' to one of: */
787 /* ----------------------------*/
788 #define PRJFLVR_HSF 0x01000000
789 #define PRJFLVR_LINUX 0x02000000
790 #define PRJFLVR_CYPRUS 0x04000000
791 #define PRJFLVR_NILE 0x08000000
792 #define PRJFLVR_SANSIRO 0x10000000
793 #define PRJFLVR_CIDER 0x20000000
795 /* Use one of next macros, or just `#if ( OS_TYPE == xxx )' */
796 #define PRJFLVR_ONE_OF(prj) ( ( PRJ_FLAVOUR & (prj) ) != 0 )
797 #define PRJFLVR_IS_NOT(prj) ( ( PRJ_FLAVOUR & (~(prj)) ) != 0 )
800 #error --==> PRJ_FLAVOUR is not defined! <==--
801 #elif ( PRJFLVR_IS_NOT(PRJFLVR_HSF | PRJFLVR_LINUX | PRJFLVR_CYPRUS | PRJFLVR_NILE | PRJFLVR_SANSIRO | PRJFLVR_CIDER) )
802 #error --==> Bad PRJ_FLAVOUR definition! <==--
805 /* Define `OS_TYPE' to one of: */
806 /* ----------------------------*/
807 #define OS_WIN_9X 0x00000010
808 #define OS_WIN_NT4 0x00000020
809 #define OS_WIN_WDM 0x00000040
810 #define OS_LINUX 0x00000080
811 #define OS_WIN_CE 0x00000100
812 #define OS_PSOS 0x00000200
813 #define OS_QNX 0x00000400
814 #define OS_MACOS 0x00000800
815 #define OS_MQX 0x00001000
816 #define OS_APPLE 0x01000000
817 #define OS_DOS 0x02000000
818 #define OS_VXWORKS 0x04000000
819 #define OS_MACOSX 0x08000000
820 #define OS_XTENSA 0x10000000
821 #define OS_STB 0x20000000
822 #define OS_NUCLEUS 0x40000000
823 #define OS_NOS 0x80000000
824 #define OS_WINXP_AND_HIGHER OS_WIN_WDM // XXX ?
826 /* Use one of next macros, or just `#if ( OS_TYPE == xxx )' */
827 #define OS_ONE_OF(os) ( ( OS_TYPE & (os) ) != 0 )
828 #define OS_IS_NOT(os) ( ( OS_TYPE & (~(os)) ) != 0 )
831 #error --==> OS_TYPE is not defined! <==--
832 #elif (OS_IS_NOT(OS_WIN_9X | OS_WIN_NT4 | OS_WIN_WDM | OS_LINUX | \
833 OS_WIN_CE | OS_PSOS | OS_QNX | OS_MACOS | OS_MQX | OS_APPLE | \
834 OS_DOS | OS_VXWORKS | OS_MACOSX | OS_XTENSA | OS_STB | \
835 OS_NUCLEUS | OS_NOS))
836 #error --==> Bad OS_TYPE definition! <==--
840 /* Define `UK_MODE' to one of: */
841 /* ----------------------------*/
842 #define UK_USER 0x00001000
843 #define UK_KERNEL 0x00002000
846 #error --==> UK_MODE is not defined! <==--
847 #elif ( (UK_MODE != UK_USER) && (UK_MODE != UK_KERNEL) )
848 #error --==> Bad UK_MODE definition! <==--
852 /* Define `IO_MODE' to one of: */
853 /* ----------------------------*/
854 #define IO_ONLINE 0x00004000
855 #define IO_OFFLINE 0x00008000
858 #error --==> IO_MODE is not defined! <==--
859 #elif ( (IO_MODE != IO_ONLINE) && (IO_MODE != IO_OFFLINE) )
860 #error --==> Bad IO_MODE definition! <==--
863 /* Define `COMPILER' to one of: */
864 /* -----------------------------*/
865 #define CMP_MSDEV 0x00010000
866 #define CMP_DJGPP 0x00020000
867 #define CMP_GCC 0x00040000
868 #define CMP_BORLAND 0x00080000
869 #define CMP_XCC 0x00100000
870 #define CMP_ADS 0x00200000
871 #define CMP_SDT 0x00400000
872 #define CMP_RVCT 0x00800000
873 #define CMP_MCC 0x01000000
875 /* Use one of next macros, or just `#if ( COMPILER == xxx )' */
876 #define COMP_ONE_OF(comp) ( ( COMPILER & (comp) ) != 0 )
877 #define COMP_IS_NOT(comp) ( ( COMPILER & (~(comp)) ) != 0 )
880 #error --==> COMPILER is not defined! <==--
881 #elif ( COMP_IS_NOT(CMP_MSDEV | CMP_DJGPP | CMP_GCC | CMP_BORLAND | CMP_XCC | CMP_ADS | CMP_SDT | CMP_RVCT | CMP_MCC) )
882 #error --==> Bad COMPILER definition! <==--
885 #if ( COMPILER == CMP_MSDEV )
889 #if ( (CMP_VER != 5) && (CMP_VER != 6) )
890 #error --==> CMP_VER is not from CMP_MSDEV family! <==--
892 #endif /* CMP_MSDEV */
899 /* Define `CPU_TYPE' to one of: */
900 /* -----------------------------*/
901 #define CPU_I386 0x00100000
902 #define CPU_MIPS 0x00200000
903 #define CPU_ALPHA 0x00400000
904 #define CPU_PPC 0x00800000
905 #define CPU_ARM 0x01000000
906 #define CPU_AMD64 0x02000000
907 #define CPU_ARC 0x04000000
908 #define CPU_XTENSA 0x08000000
910 /* Also, define `CPU_VER' according to type and version (586, 686 etc).
911 Unfortunatly, CPU_VER may only be a number, inorder to verify its value. */
913 /* Use one of next macros, or just `#if ( CPU_TYPE == xxx )' */
914 #define CPU_ONE_OF(cpu) ( ( CPU_TYPE & (cpu) ) != 0 )
915 #define CPU_IS_NOT(cpu) ( ( CPU_TYPE & (~(cpu)) ) != 0 )
918 #error --==> CPU_TYPE is not defined! <==--
919 #elif ( CPU_IS_NOT(CPU_I386 | CPU_MIPS | CPU_ALPHA | CPU_PPC | CPU_ARM | CPU_AMD64 | CPU_ARC) )
920 #error --==> Bad CPU_TYPE definition! <==--
925 #if ( CPU_TYPE == CPU_I386 )
926 #if ( (CPU_VER != 386) && (CPU_VER != 486) && (CPU_VER != 586) && \
927 (CPU_VER != 686) && (CPU_VER != 786) )
928 #error --==> CPU_VER is not from CPU_I386 family! <==--
930 #elif ( CPU_TYPE == CPU_MIPS )
931 /* Put here MIPS cpu versions check */
932 #elif ( CPU_TYPE == CPU_ALPHA )
933 /* Put here ALPHA cpu versions check */
934 #elif ( CPU_TYPE == CPU_PPC )
935 #if ( CPU_VER != 7455 )
936 #error --==> CPU_VER is not from PPC family! <==--
938 #elif (CPU_TYPE == CPU_XTENSA)
939 #elif ( CPU_TYPE == CPU_ARM )
940 #endif /* CPU_TYPE */
942 #else /* CPU_VER not defined: */
949 /* Define `DEBUG_LEVEL' to one of: */
950 /* --------------------------------*/
951 #define DEBUG_DEVELOP 0x10000000
952 #define DEBUG_RETAIL 0x20000000
953 #define DEBUG_NONE 0x40000000
956 #error --==> DEBUG_LEVEL is not defined! <==--
957 #elif ( (DEBUG_LEVEL != DEBUG_DEVELOP) && (DEBUG_LEVEL != DEBUG_RETAIL) && \
958 (DEBUG_LEVEL != DEBUG_NONE) )
959 #error --==> Bad DEBUG_LEVEL definition! <==--
963 /* Define `DEV_TOOL' to one of: */
964 /* ----------------------------*/
965 #define DT_MS95DDK 0x00000001
966 #define DT_MS98DDK 0x00000002
967 #define DT_MSNTDDK 0x00000004
968 #define DT_VTOOLSD 0x00000008
969 #define DT_VDW 0x00000010
970 #define DT_NONE 0x00000020
973 #error --==> DEV_TOOL is not defined! <==--
974 #elif ( (DEV_TOOL != DT_MS95DDK) && (DEV_TOOL != DT_MS98DDK) && \
975 (DEV_TOOL != DT_MSNTDDK) && (DEV_TOOL != DT_VTOOLSD) && (DEV_TOOL != DT_VDW) && (DEV_TOOL != DT_NONE))
976 #error --==> Bad DEV_TOOL definition! <==--
979 #if ( PROJECT == PRJ_HSF )
980 #define TARGET_HCF_FAMILY 0
981 #define FRAMEWORK_HCF_CADMUS2 0
985 #define FRAME_WORK FRAME_WORK_STR
987 #endif /* __FRAMEWRK_H__ */