source: trunk/src/win32k/include/options.h@ 2836

Last change on this file since 2836 was 2836, checked in by bird, 26 years ago

ProbKrnl and code for importing krnl symbols has been enhanched.
Now we'll lock 32-bit segments into memory too.
And some other fixes...

File size: 4.1 KB
Line 
1/* $Id: options.h,v 1.7 2000-02-21 04:45:47 bird Exp $
2 *
3 * Options.
4 *
5 * Copyright (c) 1998-1999 knut st. osmundsen
6 *
7 * Project Odin Software License can be found in LICENSE.TXT
8 *
9 */
10
11#ifndef _options_h_
12#define _options_h_
13
14/*******************************************************************************
15* Defined Constants And Macros *
16*******************************************************************************/
17/* fKernel */
18#define KF_UNI 0x00000000UL
19#define KF_SMP 0x00000001UL
20
21/* fPE */
22#define FLAGS_PE_NOT 0x00000000UL
23#define FLAGS_PE_PE2LX 0x00000001UL
24#define FLAGS_PE_PE 0x00000002UL
25#define FLAGS_PE_MIXED 0x00000003UL
26
27/* ulInfoLevel */
28#define INFOLEVEL_QUIET 0x00000000UL
29#define INFOLEVEL_ERROR 0x00000001UL
30#define INFOLEVEL_WARNING 0x00000002UL
31#define INFOLEVEL_INFO 0x00000003UL
32#define INFOLEVEL_INFOALL 0x00000004UL
33
34/* default heapsizes */
35#define CB_SWP_INIT (1024*512)
36#define CB_SWP_MAX (1024*1024*16)
37#define CB_RES_INIT (1024*256)
38#define CB_RES_MAX (1024*1024*10)
39
40
41/* Set defaults. */
42#define SET_OPTIONS_TO_DEFAULT(o) \
43 o.fQuiet = FALSE; \
44 o.usCom = OUTPUT_COM2; \
45 o.fLogging = FALSE; \
46// o.fLogging = TRUE; \
47 o.fKernel = KF_UNI; \
48 o.ulBuild = ~0UL; \
49 o.usVerMajor = (unsigned short)~0; \
50 o.usVerMinor = (unsigned short)~0; \
51 o.fPE = FLAGS_PE_PE2LX; \
52 o.ulInfoLevel = INFOLEVEL_QUIET; \
53 o.fElf = FALSE; \
54 o.fScript = FALSE; \
55 o.fNoLoader = FALSE; \
56 o.cbSwpHeapInit = CB_SWP_INIT; \
57 o.cbSwpHeapMax = CB_SWP_MAX; \
58 o.cbResHeapInit = CB_RES_INIT; \
59 o.cbResHeapMax = CB_RES_MAX;
60
61
62/*******************************************************************************
63* Structures and Typedefs *
64*******************************************************************************/
65/** Option struct */
66struct options
67{
68 /** @cat misc */
69 BOOL fQuiet; /* Quiet initialization. */
70
71 /** @cat logging options */
72 USHORT usCom; /* Output port no. */
73 BOOL fLogging; /* Logging. */
74
75 /** @cat kernel selection */
76 ULONG fKernel; /* Smp or uni kernel. */
77 ULONG ulBuild; /* Kernel build. */
78 USHORT usVerMajor; /* OS/2 major ver - 20 */
79 USHORT usVerMinor; /* OS/2 minor ver - 30,40 */
80
81 /** @cat Options affecting the generated LX executables */
82 BOOL fPE; /* Flags set the type of conversion. */
83 ULONG ulInfoLevel; /* Pe2Lx InfoLevel. */
84
85 /** @cat Options affecting the generated ELF executables */
86 BOOL fElf; /* Elf flags. */
87
88 /** @cat Options affecting the script executables */
89 BOOL fScript; /* Script flags. */
90
91 /** @cat Options affecting the script executables */
92 BOOL fNoLoader; /* No loader stuff. */
93
94 /** @cat Options affecting the heap. */
95 ULONG cbSwpHeapInit; /* Initial heapsize. */
96 ULONG cbSwpHeapMax; /* Maximum heapsize. */
97 ULONG cbResHeapInit; /* Initial residentheapsize. */
98 ULONG cbResHeapMax; /* Maxiumem residentheapsize. */
99};
100
101
102/*******************************************************************************
103* Global Variables *
104*******************************************************************************/
105extern struct options options; /* defined in d32globals.c */
106
107#endif
108
Note: See TracBrowser for help on using the repository browser.