source: trunk/src/win32k/kKrnlLib/include/options.h

Last change on this file was 9514, checked in by bird, 23 years ago

Cleanup/Backup.

File size: 3.1 KB
Line 
1/* $Id: options.h,v 1.5 2002-12-16 02:25:07 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/* NOINC */
12#ifndef _options_h_
13#define _options_h_
14/* INC */
15
16/*******************************************************************************
17* Defined Constants And Macros *
18*******************************************************************************/
19/* default heapsizes */
20#define CB_SWP_INIT ((unsigned long)1024*512) /* 512KB */
21#define CB_SWP_MAX ((unsigned long)1024*1024*16) /* 16MB */
22#define CB_RES_INIT ((unsigned long)1024*256) /* 256KB */
23#define CB_RES_MAX ((unsigned long)1024*1024*10) /* 10MB */
24
25/*
26 * COM-Port port numbers.
27 */
28#define OUTPUT_COM1 0x3f8
29#define OUTPUT_COM2 0x2f8
30#define OUTPUT_COM3 0x3e8
31#define OUTPUT_COM4 0x2e8
32
33/* NOINC */
34/* default assignments */
35#define DEFAULT_OPTION_ASSIGMENTS \
36 {FALSE, /* fQuiet */ \
37 OUTPUT_COM2, /* usCom */ \
38 TRUE, /* fLogging */ \
39 CB_SWP_INIT, /* cbSwpHeapInit */ \
40 CB_SWP_MAX, /* cbSwpHeapMax */ \
41 CB_RES_INIT, /* cbResHeapInit */ \
42 CB_RES_MAX} /* cbResHeapMax */
43
44/* INC */
45
46/*******************************************************************************
47* Structures and Typedefs *
48*******************************************************************************/
49/** Option struct */
50#pragma pack(4)
51struct kKLOptions
52{
53 /** @cat misc */
54 unsigned long fQuiet; /* Quiet initialization. */
55
56 /** @cat logging options */
57 unsigned short usCom; /* Output port no. */
58 unsigned short fLogging; /* Logging. */
59
60 /** @cat Options affecting the heap. */
61 unsigned long cbSwpHeapInit; /* Initial heapsize. */
62 unsigned long cbSwpHeapMax; /* Maximum heapsize. */
63 unsigned long cbResHeapInit; /* Initial residentheapsize. */
64 unsigned long cbResHeapMax; /* Maxiumem residentheapsize. */
65};
66#pragma pack()
67
68/*******************************************************************************
69* Global Variables *
70*******************************************************************************/
71/* NOINC */
72extern struct kKLOptions options; /* defined in d16Globl.c */
73extern unsigned short usVerMajor; /* obsolete? */
74extern unsigned short usVerMinor; /* obsolete? */
75extern char szSymbolFile[128];
76
77#ifdef RING0
78#if defined(__IBMC__) || defined(__IBMCPP__)
79 #pragma map(options, "_options")
80 #pragma map(usVerMajor, "_usVerMajor")
81 #pragma map(usVerMinor, "_usVerMinor")
82 #pragma map(szSymbolFile, "_szSymbolFile")
83#endif
84#endif
85
86/* INC */
87
88/* NOINC */
89#endif
90/* INC */
91
Note: See TracBrowser for help on using the repository browser.