home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Misc / TRSICAT.LZX / CATS_CD2_TRSI / Inc&AD1.3 / Includes / libraries / configvars.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-12  |  1.6 KB  |  59 lines

  1. #ifndef LIBRARIES_CONFIGVARS_H
  2. #define LIBRARIES_CONFIGVARS_H
  3. /*
  4. **    $Filename: libraries/configvars.h $
  5. **    $Release: 1.3 $
  6. **
  7. **    software structures for configuration subsystem 
  8. **
  9. **    (C) Copyright 1986,1987,1988 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. */
  12.  
  13. #ifndef EXEC_TYPES_H
  14. #include "exec/types.h"
  15. #endif    !EXEC_TYPES_H
  16.  
  17. #ifndef EXEC_NODES_H
  18. #include "exec/nodes.h"
  19. #endif !EXEC_NODES_H
  20.  
  21. #ifndef LIBRARIES_CONFIGREGS_H
  22. #include "libraries/configregs.h"
  23. #endif !LIBRARIES_CONFIGREGS_H
  24.  
  25.  
  26. struct ConfigDev {
  27.     struct Node        cd_Node;
  28.     UBYTE        cd_Flags;
  29.     UBYTE        cd_Pad;
  30.     struct ExpansionRom cd_Rom;        /* image of expansion rom area */
  31.     APTR        cd_BoardAddr;    /* where in memory the board is */
  32.     APTR        cd_BoardSize;    /* size in bytes */
  33.     UWORD        cd_SlotAddr;    /* which slot number */
  34.     UWORD        cd_SlotSize;    /* number of slots the board takes */
  35.     APTR        cd_Driver;    /* pointer to node of driver */
  36.     struct ConfigDev *    cd_NextCD;    /* linked list of drivers to config */
  37.     ULONG        cd_Unused[4];    /* for whatever the driver whats */
  38. };
  39.  
  40. /* cd_Flags */
  41. #define CDB_SHUTUP    0    /* this board has been shut up */
  42. #define CDB_CONFIGME    1    /* this board needs a driver to claim it */
  43.  
  44. #define CDF_SHUTUP    0x01
  45. #define CDF_CONFIGME    0x02
  46.  
  47. /* this structure is used by GetCurrentBinding() and SetCurrentBinding() */
  48. struct CurrentBinding {
  49.     struct ConfigDev *    cb_ConfigDev;        /* first configdev in chain */
  50.     UBYTE *        cb_FileName;        /* file name of driver */
  51.     UBYTE *        cb_ProductString;    /* product # string */
  52.     UBYTE **        cb_ToolTypes;        /* tooltypes from disk object */
  53. };
  54.  
  55.  
  56. struct ConfigDev *AllocConfigDev(), *FindConfigDev();
  57.  
  58. #endif    /* LIBRARIES_CONFIGVARS_H */
  59.