2
0

expansionbase.pas 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. {
  2. This file is part of the Free Pascal run time library.
  3. A file in Amiga system run time library.
  4. Copyright (c) 1998-2002 by Nils Sjoholm
  5. member of the Amiga RTL development team.
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. {
  13. History:
  14. Typo in ExpansionBase Record.
  15. 11 Nov. 2002
  16. [email protected]
  17. }
  18. unit expansionbase;
  19. INTERFACE
  20. uses exec, configvars;
  21. Const
  22. TOTALSLOTS = 256;
  23. Type
  24. { BootNodes are scanned by dos.library at startup. Items found on the
  25. list are started by dos. BootNodes are added with the AddDosNode() or
  26. the V36 AddBootNode() calls. }
  27. pBootNode = ^tBootNode;
  28. tBootNode = record
  29. bn_Node : tNode;
  30. bn_Flags : Word;
  31. bn_DeviceNode : Pointer;
  32. END;
  33. pExpansionBase = ^tExpansionBase;
  34. tExpansionBase = record
  35. LibNode : tLibrary;
  36. Flags : Byte;
  37. eb_Private01 : Byte;
  38. eb_Private02 : ULONG;
  39. eb_Private03 : ULONG;
  40. eb_Private04 : tCurrentBinding;
  41. eb_Private05 : tList;
  42. MountList : tList;
  43. { private }
  44. end;
  45. CONST
  46. { error codes }
  47. EE_OK = 0 ;
  48. EE_LASTBOARD = 40; { could not shut him up }
  49. EE_NOEXPANSION = 41; { not enough expansion mem; board shut up }
  50. EE_NOMEMORY = 42; { not enough normal memory }
  51. EE_NOBOARD = 43; { no board at that address }
  52. EE_BADMEM = 44; { tried to add bad memory card }
  53. { Flags }
  54. EBB_CLOGGED = 0; { someone could not be shutup }
  55. EBF_CLOGGED = 1;
  56. EBB_SHORTMEM = 1; { ran out of expansion mem }
  57. EBF_SHORTMEM = 2;
  58. EBB_BADMEM = 2; { tried to add bad memory card }
  59. EBF_BADMEM = 4;
  60. EBB_DOSFLAG = 3; { reserved for use by AmigaDOS }
  61. EBF_DOSFLAG = 8;
  62. EBB_KICKBACK33 = 4; { reserved for use by AmigaDOS }
  63. EBF_KICKBACK33 = 16;
  64. EBB_KICKBACK36 = 5; { reserved for use by AmigaDOS }
  65. EBF_KICKBACK36 = 32;
  66. { If the following flag is set by a floppy's bootblock code, the initial
  67. open of the initial shell window will be delayed until the first output
  68. to that shell. Otherwise the 1.3 compatible behavior applies. }
  69. EBB_SILENTSTART = 6;
  70. EBF_SILENTSTART = 64;
  71. { Magic kludge for CC0 use }
  72. EBB_START_CC0 = 7;
  73. EBF_START_CC0 = 128;
  74. IMPLEMENTATION
  75. end.