home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / at-inc-bin.lha / os-include / exec / devices.h < prev    next >
C/C++ Source or Header  |  1993-10-15  |  920b  |  44 lines

  1. #ifndef    EXEC_DEVICES_H
  2. #define    EXEC_DEVICES_H
  3. /*
  4. **    $VER: devices.h 39.0 (15.10.91)
  5. **    Includes Release 40.15
  6. **
  7. **    Include file for use by Exec device drivers
  8. **
  9. **    (C) Copyright 1985-1993 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. */
  12.  
  13. #ifndef EXEC_LIBRARIES_H
  14. #include "exec/libraries.h"
  15. #endif /* EXEC_LIBRARIES_H */
  16.  
  17. #ifndef EXEC_PORTS_H
  18. #include "exec/ports.h"
  19. #endif /* EXEC_PORTS_H */
  20.  
  21.  
  22. /****** Device ******************************************************/
  23.  
  24. struct Device {
  25.     struct  Library dd_Library;
  26. };
  27.  
  28.  
  29. /****** Unit ********************************************************/
  30.  
  31. struct Unit {
  32.     struct  MsgPort unit_MsgPort;    /* queue for unprocessed messages */
  33.                     /* instance of msgport is recommended */
  34.     UBYTE   unit_flags;
  35.     UBYTE   unit_pad;
  36.     UWORD   unit_OpenCnt;        /* number of active opens */
  37. };
  38.  
  39.  
  40. #define UNITF_ACTIVE    (1<<0)
  41. #define UNITF_INTASK    (1<<1)
  42.  
  43. #endif    /* EXEC_DEVICES_H */
  44.