;       SCCSID = @(#)inicfg.inc 6.3 91/10/24
;      SCCSID = @(#)inicfg.inc  6.3 91/10/24
; ****************************************************************************
; *                                                                          *
; *                       IBM/Microsoft Confidential                         *
; *                                                                          *
; *                 Copyright (c) IBM Corporation  1987, 1990                *
; *                 Copyright (c) Microsoft Corp.  1987, 1990                *
; *                           All Rights Reserved                            *
; *                                                                          *
; *      REVISIONS							     *
; *									     *
; *   -  001     2/22/91   Mark Rogalski,   IBM                              *
; *      CP20 DCR 1329  Add DOS=UMB  support                                 *
; *   -  002     3/15/96   Tony Abbondanzio/Joel Smith, IBM                  *
; *      Feature 148753 Interim PNP Solution				     *	
; *                                                                          *
; ****************************************************************************

CFG_DevType_SCR equ     1
CFG_DevType_KBD equ     2
CFG_DevType_PRN equ     3
CFG_DevType_LPT1 equ    3
CFG_DevType_LPT2 equ    4
CFG_DevType_LPT3 equ    5

CFG_MemMan_Swap      equ     1
CFG_MemMan_NoSwap    equ     2
CFG_MemMan_Pack      equ     3
CFG_MemMan_NoPack    equ     4
CFG_MemMan_Move      equ     5
CFG_MemMan_NoMove    equ     6
CFG_MemMan_Protect   equ     7
CFG_MemMan_NoProtect equ     8
CFG_MemMan_Commit    equ     9
CFG_MemMan_NoCommit  equ     10
CFG_MemMan_DelaySwap equ     11

;Structure for packet head and tail pointers
CFG_PacketLinks STRUC
CFG_Head        dw      ?
CFG_Tail        dw      ?
CFG_PacketLinks ENDS

;Structure for list head and tail structures.  This structure
;will be allocated at the beginning of the packet segment and
;filled with 0.  CFG_FreePtr points to the free area to write
;packets.  It will be initialized appropriately and must be
;maintained by any routine which puts packets in this segment.
CFG_Packets     STRUC
CFG_FreePtr     dw      ?
CFG_CodePage    db      size CFG_PacketLinks dup (?)
CFG_Country     db      size CFG_PacketLinks dup (?)
CFG_Device      db      size CFG_PacketLinks dup (?)
CFG_DevInfo     db      size CFG_PacketLinks dup (?)
CFG_LibPath     db      size CFG_PacketLinks dup (?)
CFG_Log         db      size CFG_PacketLinks dup (?)
CFG_Protect16   db      size CFG_PacketLinks dup (?)
CFG_ProtShell   db      size CFG_PacketLinks dup (?)
CFG_Run         db      size CFG_PacketLinks dup (?)
CFG_Set         db      size CFG_PacketLinks dup (?)
CFG_Shell       db      size CFG_PacketLinks dup (?)
CFG_SwapPath    db      size CFG_PacketLinks dup (?)
CFG_RMDevice    db      size CFG_PacketLinks dup (?)
CFG_VDDDevice   db      size CFG_PacketLinks dup (?)
CFG_Basedev     db      size CFG_PacketLinks dup (?)    ;DCR1535
CFG_Packets     ENDS

;Common packet header
CFG_PacketHdr   STRUC
CFG_Prev        dw      ?
CFG_Next        dw      ?
CFG_LineNumber  db      6 dup (?)
CFG_Command     dd      0
CFG_PacketHdr   ENDS

;Packet structure for the CodePage list
CFG_Packet1     STRUC
                db      size CFG_PacketHdr dup (?)
CFG_nIDs        dw      ?
CFG_IDs         dw      ?
CFG_Packet1     ENDS

;Packet structure for Country list
CFG_Packet2     STRUC
                db      size CFG_PacketHdr dup (?)
CFG_FileSpec    dw      ?
CFG_CountryCode dw      ?
CFG_Packet2     ENDS

;Packet structure for Call, Device, IFS, ProtShell, Run, and Shell lists
; and Basedev ;DCR1535
CFG_Type_Run       equ     1
CFG_Type_Call      equ     2
CFG_Type_Delay_Run equ     3 ;Defect 80080
CFG_Packet3     STRUC
                db      size CFG_PacketHdr dup (?)
                dw      ?       ;CFG_Filespec defined in CFG_Packet2
CFG_Type        db      ?       ;= EXT_DEVICE, EXT_FSD, or CFG_Type_xxx
CFG_Parameters  dw      ?
CFG_Size        dd      ?       ;size of DD image for UMB     BN001
CFG_Packet3     ENDS

;       In the packet structure above, CFG_Type byte is referenced in
;       the case of DEVICE, IFS, RUN, and CALL packets.
;       CFG_Type is set to EXT_DEVICE and EXT_FSD in the case of
;       DEVICE and IFS packets respectively.  It is set to CFG_Type_Run
;       for RUN packets; to CFG_Type_Call for CALL packets

;Packet structures for DevInfo list
CFG_Packet4     STRUC
                db      size CFG_PacketHdr dup (?)
                dw      ?       ;CFG_Filespec defined in CFG_Packet2
CFG_DevType     dw      ?
CFG_SubType     db      8 dup (?)
CFG_nIDpairs    dw      ?
CFG_IDpairs     dw      ?,?
CFG_Packet4     ENDS

CFG_Packet4a    STRUC
CFG_CodePageID  dw      ?
CFG_FontID      dw      ?
CFG_Packet4a    ENDS

;Packet structure for LibPath and SwapPath lists
CFG_Packet5     STRUC
                db      size CFG_PacketHdr dup (?)
CFG_Path        dw      ?
CFG_Packet5     ENDS

;Packet structure for Error list
CFG_Packet6     STRUC
                db      size CFG_PacketHdr dup (?)
CFG_ErrorCode   dw      ?
CFG_Message     dw      ?
CFG_Packet6     ENDS

;Packet Structure for Set list
CFG_Packet8     STRUC
                db      size CFG_PacketHdr dup (?)
CFG_EnvStr      dw      ?
CFG_Packet8     ENDS

;Packet Structure for Log list
CFG_Packet9     STRUC
                db      size CFG_PacketHdr dup (?)
CFG_LogOnOff    dw      ?
CFG_LogParms    dw      ?
CFG_Packet9     ENDS

;Packet Structure for Protect16 list
CFG_Packet10    STRUC
                    db      size CFG_PacketHdr dup (?)
CFG_Protect16_Head  dw      ?
CFG_Packet10    ENDS

CFG_Packet10a   STRUC
CFG_Protect16_Next   dw      ?
CFG_Protect16_String db      ?
CFG_Packet10a   ENDS

;148754
;Structure for Resource manager Device to load
RM_DDCFGSTRUCT  STRUC           ; Resource manager DDCFGSTRUCT equivalent
pKrnlCfgDevice          dd      ?       ; pointer to CFG_Packet3
pConfigFileSpec         dd      ?       ; pointer to a file spec
pConfigParms            dd      ?       ; pointer to DD args
DDType                  dw      ?       ; Type of DD in this struct
DDFlags                 dw      ?       ; line number for sysinit errors
ConfigLineNumber        db      6 dup (?)
RM_DDCFGSTRUCT  ENDS

