home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD v1.2 / amidev_cd_12.iso / inc&ad2.0 / includes / exec / devices.i < prev    next >
Text File  |  1992-09-01  |  1KB  |  53 lines

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