home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 4 / FreshFish_May-June1994.bin / bbs / cbm / nduk-v39.lha / V39 / include / exec / devices.i < prev    next >
Text File  |  1992-09-24  |  1KB  |  51 lines

  1.     IFND    EXEC_DEVICES_I
  2. EXEC_DEVICES_I    SET    1
  3. **
  4. **    $VER: devices.i 39.0 (15.10.91)
  5. **    Includes Release 39.108
  6. **
  7. **    Include file for use by Exec device drivers
  8. **
  9. **    (C) Copyright 1985-1992 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. **
  12.  
  13.     IFND EXEC_LIBRARIES_I
  14.     INCLUDE "exec/libraries.i"
  15.     ENDC    ; EXEC_LIBRARIES_I
  16.  
  17.     IFND EXEC_PORTS_I
  18.     INCLUDE "exec/ports.i"
  19.     ENDC    ; EXEC_PORTS_I
  20.  
  21.  
  22. *----------------------------------------------------------------
  23. *
  24. *   Device Data Structure
  25. *
  26. *----------------------------------------------------------------
  27.  
  28.  STRUCTURE  DD,LIB_SIZE
  29.     LABEL   DD_SIZE            ; identical to library
  30.  
  31.  
  32. *----------------------------------------------------------------
  33. *
  34. *   Suggested Unit Structure
  35. *
  36. *----------------------------------------------------------------
  37.  
  38.  STRUCTURE  UNIT,MP_SIZE        ; queue for requests
  39.     UBYTE   UNIT_FLAGS
  40.     UBYTE   UNIT_pad
  41.     UWORD   UNIT_OPENCNT
  42.     LABEL   UNIT_SIZE
  43.  
  44.  
  45. *------ UNIT_FLAG definitions:
  46.  
  47.     BITDEF  UNIT,ACTIVE,0        ; driver is active
  48.     BITDEF  UNIT,INTASK,1        ; running in driver's task
  49.  
  50.     ENDC    ; EXEC_DEVICES_I
  51.