home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / cbm / os-include.lha / os-include / libraries / configvars.i < prev    next >
Text File  |  1993-10-15  |  2KB  |  60 lines

  1.     IFND    LIBRARIES_CONFIGVARS_I
  2. LIBRARIES_CONFIGVARS_I    SET    1
  3. **
  4. **    $VER: configvars.i 36.7 (9.4.91)
  5. **    Includes Release 40.15
  6. **
  7. **    Software structures used by AutoConfig (tm) boards
  8. **
  9. **    (C) Copyright 1985-1993 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. **
  12.  
  13.     IFND    EXEC_NODES_I
  14.     INCLUDE    "exec/nodes.i"
  15.     ENDC    ;EXEC_NODES_I
  16.  
  17.     IFND    LIBRARIES_CONFIGREGS_I
  18.     INCLUDE    "libraries/configregs.i"
  19.     ENDC    ;LIBRARIES_CONFIGREGS_I
  20.  
  21. **
  22. ** At early system startup time, one ConfigDev structure is created for
  23. ** each board found in the system.  Software may seach for ConfigDev
  24. ** structures by vendor & product ID number.  For debugging and diagnostic
  25. ** use, the entire list can be accessed.  See the expansion.library document
  26. ** for more information.
  27. **
  28.  STRUCTURE ConfigDev,0
  29.     STRUCT    cd_Node,LN_SIZE
  30.     UBYTE    cd_Flags    ; (read/write)
  31.     UBYTE    cd_Pad        ; reserved
  32.     STRUCT    cd_Rom,ExpansionRom_SIZEOF ; copy of board's expansion ROM
  33.     APTR    cd_BoardAddr    ; where in memory the board was placed
  34.     ULONG    cd_BoardSize    ; size of board in bytes
  35.     UWORD    cd_SlotAddr    ; which slot number (PRIVATE)
  36.     UWORD    cd_SlotSize    ; number of slots (PRIVATE)
  37.     APTR    cd_Driver    ; pointer to node of driver
  38.     APTR     cd_NextCD    ; linked list of drivers to config 
  39.     STRUCT    cd_Unused,4*4    ; for whatever the driver wants!
  40.     LABEL    ConfigDev_SIZEOF
  41.  
  42. ; cd_Flags
  43.     BITDEF    CD,SHUTUP,0    ; this board has been shut up
  44.     BITDEF    CD,CONFIGME,1    ; this board needs a driver to claim it
  45.     BITDEF    CD,BADMEMORY,2    ; this board contains bad memory
  46.     BITDEF    CD,PROCESSED,3    ; private flag
  47.  
  48. **
  49. ** Boards are usually "bound" to software drivers.
  50. ** This structure is used by GetCurrentBinding() and SetCurrentBinding()
  51. **
  52.  STRUCTURE CurrentBinding,0
  53.     APTR    cb_ConfigDev
  54.     APTR    cb_FileName
  55.     APTR     cb_ProductString
  56.     APTR    cb_ToolTypes
  57.     LABEL    CurrentBinding_SIZEOF
  58.  
  59.     ENDC    ;LIBRARIES_CONFIGVARS_I
  60.