home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / BC_DICE2.DMS / in.adf / INCLUDE / exec / devices.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-10  |  632 b   |  46 lines

  1. #ifndef EXEC_DEVICES_H
  2. #define EXEC_DEVICES_H
  3. /*
  4. ** $Filename: exec/devices.h $
  5. ** $Release: 2.04 Includes, V37.4 $
  6. ** $Revision: 36.5 $
  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. #ifndef EXEC_LIBRARIES_H
  16. #include "exec/libraries.h"
  17. #endif 
  18.  
  19. #ifndef EXEC_PORTS_H
  20. #include "exec/ports.h"
  21. #endif 
  22.  
  23.  
  24.  
  25.  
  26. struct Device {
  27.  struct Library dd_Library;
  28. };
  29.  
  30.  
  31.  
  32.  
  33. struct Unit {
  34.  struct MsgPort unit_MsgPort; 
  35.  
  36.  UBYTE unit_flags;
  37.  UBYTE unit_pad;
  38.  UWORD unit_OpenCnt; 
  39. };
  40.  
  41.  
  42. #define UNITF_ACTIVE (1<<0)
  43. #define UNITF_INTASK (1<<1)
  44.  
  45. #endif 
  46.