Initial revision
[AROS-Contrib.git] / development / compilers / freepascal / rtl / aros / configvars.pas
blobb4fa8898428cd2bc64713023a019b37aa911aa72
2 This file is part of the Free Pascal run time library.
4 A file in Amiga system run time library.
5 Copyright (c) 1998 by Nils Sjoholm
6 member of the Amiga RTL development team.
8 See the file COPYING.FPC, included in this distribution,
9 for details about the copyright.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15 **********************************************************************}
17 unit configvars;
19 INTERFACE
21 uses exec, configregs;
23 Type
25 pConfigDev = ^tConfigDev;
26 tConfigDev = record
27 cd_Node : tNode;
28 cd_Flags : Byte;
29 cd_Pad : Byte;
30 cd_Rom : tExpansionRom; { image of expansion rom area }
31 cd_BoardAddr : Pointer; { where in memory the board is }
32 cd_BoardSize : ULONG; { size in bytes }
33 cd_SlotAddr : Word; { which slot number }
34 cd_SlotSize : Word; { number of slots the board takes }
35 cd_Driver : Pointer; { pointer to node of driver }
36 cd_NextCD : pConfigDev; { linked list of drivers to config }
37 cd_Unused : Array [0..3] of ULONG;
38 { for whatever the driver whats }
39 end;
42 Const
44 { cd_Flags }
45 CDB_SHUTUP = 0; { this board has been shut up }
46 CDB_CONFIGME = 1; { this board needs a driver to claim it }
47 CDB_BADMEMORY = 2;
48 CDB_PROCESSED = 3;
50 CDF_SHUTUP = $01;
51 CDF_CONFIGME = $02;
52 CDF_BADMEMORY = $04;
53 CDF_PROCESSED = $08;
55 Type
57 { this structure is used by GetCurrentBinding() and SetCurrentBinding() }
59 pCurrentBinding = ^tCurrentBinding;
60 tCurrentBinding = record
61 cb_ConfigDev : pConfigDev; { first configdev in chain }
62 cb_FileName : STRPTR; { file name of driver }
63 cb_ProductString : STRPTR; { product # string }
64 cb_ToolTypes : POINTER; { tooltypes from disk object }
65 end;
67 IMPLEMENTATION
69 end.