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

  1. #ifndef EXEC_IO_H
  2. #define EXEC_IO_H
  3. /*
  4. ** $Filename: exec/io.h $
  5. ** $Release: 2.04 Includes, V37.4 $
  6. ** $Revision: 36.4 $
  7. ** $Date: 90/05/10 $
  8. **
  9. ** Message structures used for device communication
  10. **
  11. ** (C) Copyright 1985-1991 Commodore-Amiga, Inc.
  12. ** All Rights Reserved
  13. */
  14.  
  15. #ifndef EXEC_PORTS_H
  16. #include "exec/ports.h"
  17. #endif 
  18.  
  19.  
  20. struct IORequest {
  21.  struct Message io_Message;
  22.  struct Device *io_Device; 
  23.  struct Unit *io_Unit; 
  24.  UWORD io_Command; 
  25.  UBYTE io_Flags;
  26.  BYTE io_Error; 
  27. };
  28.  
  29. struct IOStdReq {
  30.  struct Message io_Message;
  31.  struct Device *io_Device; 
  32.  struct Unit *io_Unit; 
  33.  UWORD io_Command; 
  34.  UBYTE io_Flags;
  35.  BYTE io_Error; 
  36.  ULONG io_Actual; 
  37.  ULONG io_Length; 
  38.  APTR io_Data; 
  39.  ULONG io_Offset; 
  40. };
  41.  
  42.  
  43. #define DEV_BEGINIO (-30)
  44. #define DEV_ABORTIO (-36)
  45.  
  46.  
  47. #define IOB_QUICK 0
  48. #define IOF_QUICK (1<<0)
  49.  
  50.  
  51. #define CMD_INVALID 0
  52. #define CMD_RESET 1
  53. #define CMD_READ 2
  54. #define CMD_WRITE 3
  55. #define CMD_UPDATE 4
  56. #define CMD_CLEAR 5
  57. #define CMD_STOP 6
  58. #define CMD_START 7
  59. #define CMD_FLUSH 8
  60.  
  61. #define CMD_NONSTD 9
  62.  
  63. #endif 
  64.