home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / languages / pcq_incl3v1.lha / Libraries / ExpansionBase.i < prev    next >
Encoding:
Text File  |  1994-07-08  |  2.1 KB  |  75 lines

  1. {
  2.         ExpansionBase.i for PCQ Pascal
  3. }
  4.  
  5. {$I   "Include:Exec/Libraries.i"}
  6. {$I   "Include:Exec/Interrupts.i"}
  7. {$I   "Include:Exec/Semaphores.i"}
  8. {$I   "Include:Libraries/ConfigVars.i"}
  9.  
  10. Const
  11.  
  12.     TOTALSLOTS  = 256;
  13.  
  14. Type
  15.  
  16. { BootNodes are scanned by dos.library at startup.  Items found on the
  17.    list are started by dos. BootNodes are added with the AddDosNode() or
  18.    the V36 AddBootNode() calls. }
  19.  
  20.    BootNode = Record
  21.     bn_Node     : Node;
  22.     bn_Flags    : Short;
  23.     bn_DeviceNode  : Address;
  24.    END;
  25.    BootNodePtr = ^BootNode;
  26.  
  27.     ExpansionBaseRec = record
  28.         LibNode         : Library;
  29.         Flags           : Byte;
  30.         pad             : Byte;
  31.         ExecBase        : Address;
  32.         SegList         : Address;
  33.         eb_CurrentBinding       : CurrentBinding;
  34.         BoardList       : List;
  35.         MountList       : List;
  36.         { private }
  37.     end;
  38.     ExpansionBasePtr = ^ExpansionBaseRec;
  39.  
  40. CONST
  41. { error codes }
  42.      EE_OK          = 0 ;
  43.      EE_LASTBOARD   = 40;  { could not shut him up }
  44.      EE_NOEXPANSION = 41;  { not enough expansion mem; board shut up }
  45.      EE_NOMEMORY    = 42;  { not enough normal memory }
  46.      EE_NOBOARD     = 43;  { no board at that address }
  47.      EE_BADMEM      = 44;  { tried to add bad memory card }
  48.  
  49. { Flags }
  50.      EBB_CLOGGED    = 0;       { someone could not be shutup }
  51.      EBF_CLOGGED    = 1;
  52.      EBB_SHORTMEM   = 1;       { ran out of expansion mem }
  53.      EBF_SHORTMEM   = 2;
  54.      EBB_BADMEM     = 2;       { tried to add bad memory card }
  55.      EBF_BADMEM     = 4;
  56.      EBB_DOSFLAG    = 3;       { reserved for use by AmigaDOS }
  57.      EBF_DOSFLAG    = 8;
  58.      EBB_KICKBACK33 = 4;       { reserved for use by AmigaDOS }
  59.      EBF_KICKBACK33 = 16;
  60.      EBB_KICKBACK36 = 5;       { reserved for use by AmigaDOS }
  61.      EBF_KICKBACK36 = 32;
  62. { If the following flag is set by a floppy's bootblock code, the initial
  63.    open of the initial shell window will be delayed until the first output
  64.    to that shell.  Otherwise the 1.3 compatible behavior applies. }
  65.      EBB_SILENTSTART = 6;
  66.      EBF_SILENTSTART = 64;
  67.  
  68. { Magic kludge for CC0 use }
  69.     EBB_START_CC0    = 7;
  70.     EBF_START_CC0    = 128;
  71.  
  72.  
  73.  
  74.  
  75.