

**** ExpansionBase ********************************************************
*
*  resource structure for expansion resource
*
* Copyright (C) 1985,  Commodore-Amiga, Inc., All rights reserved.
*
* $Header: expansionbase.i,v 33.4 86/04/25 12:15:54 neil Exp $
*
* $Locker:  $
*
* $Log: expansionbase.i,v $
* Revision 33.4  86/04/25  12:15:54  neil
* Added MakeDosNode/AddDosNode; changed Get/SetCurrentBinding
* 
* Revision 33.3  86/04/10  22:52:58  neil
* added 1.1 compatible semaphores
* 
* Revision 33.2  86/04/03  19:15:30  neil
* added eb_ExecBase, and deleted alerts
* 
* Revision 33.1  86/04/01  12:17:28  neil
* First version
* 
*
*****************************************************************************

        IFND    EXPANIONBASE_I
EXPANIONBASE_I  SET     1



        IFND    EXEC_TYPES_I
        INCLUDE "exec/types.i"
        ENDC    EXEC_TYPES_I

        IFND    EXEC_LIBRARIES_I
        INCLUDE "exec/libraries.i"
        ENDC    EXEC_LIBRARIES_I

        IFND    EXEC_INTERRUPTS_I
        INCLUDE "exec/interrupts.i"
        ENDC    EXEC_INTERRUPTS_I

        IFND    EXEC_SEMAPHORES_I
        INCLUDE "exec/semaphores.i"
        ENDC    EXEC_SEMAPHORES_I

        IFND    LIBRARIES_CONFIGVARS_I
        INCLUDE "configvars.i"
        ENDC    LIBRARIES_CONFIGVARS_I


TOTALSLOTS      EQU     256

 STRUCTURE      ExpansionInt,0
    UWORD               ei_IntMask      ; mask for this list
    UWORD               ei_ArrayMax     ; current max valid index
    UWORD               ei_ArraySize    ; allocated size
    LABEL               ei_Array        ; actual data is after this
    LABEL               ExpansionInt_SIZEOF

 STRUCTURE      ExpansionBase,LIB_SIZE
    UBYTE               eb_Flags
    UBYTE               eb_pad
    ULONG               eb_ExecBase
    ULONG               eb_SegList
    STRUCT              eb_CurrentBinding,CurrentBinding_SIZEOF
    STRUCT              eb_BoardList,LH_SIZE
    STRUCT              eb_MountList,LH_SIZE
    STRUCT              eb_AllocTable,TOTALSLOTS
    STRUCT              eb_BindSemaphore,SS_SIZE
    STRUCT              eb_Int2List,IS_SIZE
    STRUCT              eb_Int6List,IS_SIZE
    STRUCT              eb_Int7List,IS_SIZE
    LABEL               ExpansionBase_SIZEOF


; error codes
EE_LASTBOARD    EQU     40      ; could not shut him up
EE_NOEXPANSION  EQU     41      ; not enough expansion mem; board shut up
EE_NOBOARD      EQU     42      ; no board at that address
EE_NOMEMORY     EQU     42      ; not enough normal memory

; flags
        BITDEF  EB,CLOGGED,0    ; someone could not be shutup
        BITDEF  EB,SHORTMEM,1   ; ran out of expansion mem


        ENDC    !EXPANIONBASE_I
