home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD v1.2 / amidev_cd_12.iso / inc&ad2.0 / includes / exec / devices.h < prev    next >
C/C++ Source or Header  |  1992-09-01  |  968b  |  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 /* EXEC_LIBRARIES_H */
  18.  
  19. #ifndef EXEC_PORTS_H
  20. #include "exec/ports.h"
  21. #endif /* EXEC_PORTS_H */
  22.  
  23.  
  24. /****** Device ******************************************************/
  25.  
  26. struct Device {
  27.     struct  Library dd_Library;
  28. };
  29.  
  30.  
  31. /****** Unit ********************************************************/
  32.  
  33. struct Unit {
  34.     struct  MsgPort unit_MsgPort;    /* queue for unprocessed messages */
  35.                     /* instance of msgport is recommended */
  36.     UBYTE   unit_flags;
  37.     UBYTE   unit_pad;
  38.     UWORD   unit_OpenCnt;        /* number of active opens */
  39. };
  40.  
  41.  
  42. #define UNITF_ACTIVE    (1<<0)
  43. #define UNITF_INTASK    (1<<1)
  44.  
  45. #endif    /* EXEC_DEVICES_H */
  46.