home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / cbm / nduk-v37.lha / V37 / include / libraries / expansionbase.i < prev    next >
Text File  |  1991-11-27  |  2KB  |  83 lines

  1.     IFND    LIBRARIES_EXPANSIONBASE_I
  2. LIBRARIES_EXPANSIONBASE_I    SET    1
  3. **
  4. **    $Filename: libraries/expansionbase.i $
  5. **    $Release: 2.04 Includes, V37.4 $
  6. **    $Revision: 36.18 $
  7. **    $Date: 91/10/21 $
  8. **
  9. **    Definitions for the expansion library base
  10. **
  11. **    (C) Copyright 1987-1991 Commodore-Amiga, Inc.
  12. **        All Rights Reserved
  13. **
  14.     IFND    EXEC_TYPES_I
  15.     INCLUDE "exec/types.i"
  16.     ENDC    ; EXEC_TYPES_I
  17.  
  18.     IFND    EXEC_LIBRARIES_I
  19.     INCLUDE "exec/libraries.i"
  20.     ENDC    ; EXEC_LIBRARIES_I
  21.  
  22.     IFND    EXEC_SEMAPHORES_I
  23.     INCLUDE "exec/semaphores.i"
  24.     ENDC    ; EXEC_SEMAPHORES_I
  25.  
  26.     IFND    LIBRARIES_CONFIGVARS_I
  27.     INCLUDE "libraries/configvars.i"
  28.     ENDC    ; LIBRARIES_CONFIGVARS_I
  29.  
  30. **
  31. ** BootNodes are scanned by dos.library at startup.  Items found on the
  32. ** list are started by dos. BootNodes are added with the AddDosNode() or
  33. ** the V36 AddBootNode() calls.
  34. **
  35.   STRUCTURE    BootNode,LN_SIZE
  36.     UWORD    bn_Flags
  37.     APTR    bn_DeviceNode
  38.     LABEL    BootNode_SIZEOF
  39.  
  40. **
  41. ** expansion.library has functions to manipulate most of the information in
  42. ** ExpansionBase.  Direct access is not permitted.  Use FindConfigDev()
  43. ** to scan the board list.
  44. **
  45.   STRUCTURE    ExpansionBase,LIB_SIZE
  46.     UBYTE    eb_Flags                ;read only (see below)
  47.     UBYTE    eb_Private01                ;private
  48.     ULONG    eb_Private02                ;private
  49.     ULONG    eb_Private03                ;private
  50.     STRUCT    eb_Private04,CurrentBinding_SIZEOF    ;private
  51.     STRUCT    eb_Private05,LH_SIZE            ;private
  52.     STRUCT    eb_MountList,LH_SIZE    ; contains struct BootNode entries
  53.     ;...                        ;private
  54.  
  55.  
  56. ; error codes
  57. EE_OK        EQU 0
  58. EE_LASTBOARD    EQU 40    ; could not shut him up
  59. EE_NOEXPANSION    EQU 41    ; not enough expansion mem; board shut up
  60. EE_NOMEMORY    EQU 42    ; not enough normal memory
  61. EE_NOBOARD    EQU 43    ; no board at that address
  62. EE_BADMEM    EQU 44    ; tried to add a bad memory card
  63.  
  64. ; Flags
  65.     BITDEF    EB,CLOGGED,0    ; someone could not be shutup
  66.     BITDEF    EB,SHORTMEM,1    ; ran out of expansion mem
  67.     BITDEF    EB,BADMEM,2    ; tried to add a bad memory card
  68.     BITDEF    EB,DOSFLAG,3    ; reserved for use by AmigaDOS
  69.     BITDEF    EB,KICKBACK33,4    ; reserved for use by AmigaDOS
  70.     BITDEF    EB,KICKBACK36,5    ; reserved for use by AmigaDOS
  71. ** If the following flag is set by a floppy's bootblock code, the initial
  72. ** open of the initial shell window will be delayed until the first output
  73. ** to that shell.  Otherwise the 1.3 compatible behavior applies.
  74.     BITDEF    EB,SILENTSTART,6
  75.  
  76. *
  77. * Magic kludge to tell the system if CC0 was started or not...
  78. *
  79.     BITDEF    EB,START_CC0,7
  80.  
  81.  
  82.     ENDC    ; LIBRARIES_EXPANSIONBASE_I
  83.