Ignore:
Timestamp:
Sep 27, 2001, 5:08:35 AM (24 years ago)
Author:
bird
Message:

Win32k/kKrnlLib splittup: done the major stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/splittup/src/win32k/include/options.h

    r6003 r6841  
    1 /* $Id: options.h,v 1.22 2001-06-14 01:06:47 bird Exp $
     1/* $Id: options.h,v 1.22.2.1 2001-09-27 03:08:19 bird Exp $
    22 *
    33 * Options.
     
    1717*   Defined Constants And Macros                                               *
    1818*******************************************************************************/
    19 /* fKernel */
    20 #define KF_UNI              0x0000
    21 #define KF_SMP              0x0001
    22 #define KF_W4               0x0002
    23 #define KF_REV_MASK         0x0FF0
    24 #define KF_REV_SHIFT        4
    25 #define KF_REV_0            0x0000
    26 #define KF_REV_A            0x0010
    27 #define KF_REV_B            0x0020
    28 #define KF_REV_C            0x0030
    29 #define KF_REV_D            0x0040
    30 #define KF_REV_E            0x0050
    31 #define KF_REV_F            0x0060
    32 #define KF_REV_G            0x0070
    33 #define KF_REV_H            0x0080
    34 #define KF_REV_I            0x0090
    35 #define KF_REV_J            0x00a0
    36 #define KF_REV_K            0x00b0
    37 #define KF_REV_L            0x00c0
    38 #define KF_REV_M            0x00d0
    39 #define KF_REV_N            0x00e0
    40 #define KF_REV_O            0x00f0
    41 #define KF_REV_P            0x0100
    42 #define KF_REV_Q            0x0110
    43 #define KF_REV_R            0x0120
    44 #define KF_REV_S            0x0130
    45 #define KF_REV_T            0x0140
    46 #define KF_REV_U            0x0150
    47 #define KF_REV_V            0x0160
    48 #define KF_REV_W            0x0170
    49 #define KF_REV_X            0x0180
    50 #define KF_REV_Y            0x0190
    51 #define KF_REV_Z            0x01a0
    52 #define KF_REV_ECS          0x0900
    53 #define KF_DEBUG            0x1000
    54 #define KF_HAS_DEBUGTYPE    0x2000
    55 #define KF_ALLSTRICT        0x3000
    56 #define KF_HALFSTRICT       0x7000
    57 
    5819/* fPE */
    5920#define FLAGS_PE_NOT        0x00000000UL
     
    7435#define INFOLEVEL_INFOALL   0x00000004UL
    7536
    76 /* default heapsizes */
    77 #define CB_SWP_INIT         ((unsigned long)1024*512)      /* 512KB */
    78 #define CB_SWP_MAX          ((unsigned long)1024*1024*16)  /*  16MB  */
    79 #define CB_RES_INIT         ((unsigned long)1024*256)      /* 256KB */
    80 #define CB_RES_MAX          ((unsigned long)1024*1024*10)  /*  10MB  */
    81 
    8237/* NOINC */
    8338/* default assignments */
    8439#define DEFAULT_OPTION_ASSIGMENTS                           \
    8540            {FALSE,                 /* fQuiet        */     \
    86             OUTPUT_COM2,            /* usCom         */     \
    8741            FALSE,                  /* fLogging      */     \
    88             KF_UNI,                 /* fKernel       */     \
    89             ~0UL,                   /* ulBuild       */     \
    90             (unsigned short)~0,     /* usVerMajor    */     \
    91             (unsigned short)~0,     /* usVerMinor    */     \
    9242            FLAGS_PE_PE,            /* fPE           */     \
    9343            FLAGS_PEOO_FORCED,      /* fPEOneObject  */     \
     
    10151            TRUE,                   /* fExeFixes     */     \
    10252            FALSE,                  /* fForcePreload */     \
    103             FALSE,                  /* fApiEnh       */     \
    104             CB_SWP_INIT,            /* cbSwpHeapInit */     \
    105             CB_SWP_MAX,             /* cbSwpHeapMax  */     \
    106             CB_RES_INIT,            /* cbResHeapInit */     \
    107             CB_RES_MAX}             /* cbResHeapMax  */
     53            FALSE                   /* fApiEnh       */     \
     54            }
    10855
    10956#define isAnyLoaderEnabled()        (!options.fNoLoader && \
     
    12673#define isJAVAEnabled()             (options.fJava)
    12774
    128 #define isSMPKernel()               (options.fKernel & KF_SMP)
    129 #define isUNIKernel()               (!(options.fKernel & KF_SMP))
    130 
    131 #define isHighMemorySupported()     (options.ulBuild >= 14000 || isSMPKernel())
    132 
    13375#define isDllFixesEnabled()         (options.fDllFixes)
    13476#define isDllFixesDisabled()        (!options.fDllFixes)
     
    15092/** Option struct */
    15193#pragma pack(4)
    152 struct options
     94struct Win32kOptions
    15395{
    15496    /** @cat misc */
     
    15698
    15799    /** @cat logging options */
    158     USHORT      usCom;                  /* Output port no. */
    159100    USHORT      fLogging;               /* Logging. */
    160 
    161     /** @cat kernel selection */
    162     ULONG       fKernel;                /* Smp or uni kernel. */
    163     ULONG       ulBuild;                /* Kernel build. */
    164     USHORT      usVerMajor;             /* OS/2 major ver - 20 */
    165     USHORT      usVerMinor;             /* OS/2 minor ver - 30,40 */
    166101
    167102    /** @cat Options affecting the generated LX executables */
     
    190125    ULONG       fForcePreload;          /* Forces the loader to preload executable images. Handy for ICAT Ring-3 debugging. */
    191126    ULONG       fApiEnh;                /* Enables the API enhancements */
    192 
    193     /** @cat Options affecting the heap. */
    194     ULONG       cbSwpHeapInit;          /* Initial heapsize. */
    195     ULONG       cbSwpHeapMax;           /* Maximum heapsize. */
    196     ULONG       cbResHeapInit;          /* Initial residentheapsize. */
    197     ULONG       cbResHeapMax;           /* Maxiumem residentheapsize. */
    198127};
    199128#pragma pack()
     
    203132*******************************************************************************/
    204133/* NOINC */
    205 extern struct options DATA16_GLOBAL options;    /* defined in d16globals.c */
     134extern struct Win32kOptions DATA16_GLOBAL options;    /* defined in d16globals.c */
    206135extern char   szWin32kIni[160];                 /* defined in d16globals.c */
    207136#ifdef RING0
Note: See TracChangeset for help on using the changeset viewer.