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

  1. #ifndef DEVICES_PARALLEL_H
  2. #define DEVICES_PARALLEL_H
  3. /*
  4. ** $Filename: devices/parallel.h $
  5. ** $Release: 2.04 Includes, V37.4 $
  6. ** $Revision: 36.1 $
  7. ** $Date: 90/05/10 $
  8. **
  9. ** parallel.device I/O request structure information
  10. **
  11. ** (C) Copyright 1985-1991 Commodore Amiga Inc.
  12. ** All rights reserved.
  13. */
  14.  
  15. #ifndef EXEC_IO_H
  16. #include "exec/io.h"
  17. #endif 
  18.  
  19.  struct IOPArray {
  20.  ULONG PTermArray0;
  21.  ULONG PTermArray1;
  22. };
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  struct IOExtPar {
  29.  struct IOStdReq IOPar;
  30.  
  31.  
  32.  ULONG io_PExtFlags; 
  33.  UBYTE io_Status; 
  34.  UBYTE io_ParFlags; 
  35.  struct IOPArray io_PTermArray; 
  36. };
  37.  
  38. #define PARB_SHARED 5 
  39. #define PARF_SHARED (1<<5) 
  40. #define PARB_SLOWMODE 4 
  41. #define PARF_SLOWMODE (1<<4) 
  42. #define PARB_FASTMODE 3 
  43. #define PARF_FASTMODE (1<<3) 
  44. #define PARB_RAD_BOOGIE 3 
  45. #define PARF_RAD_BOOGIE (1<<3) 
  46.  
  47. #define PARB_ACKMODE 2 
  48. #define PARF_ACKMODE (1<<2) 
  49.  
  50. #define PARB_EOFMODE 1 
  51. #define PARF_EOFMODE (1<<1) 
  52.  
  53. #define IOPARB_QUEUED 6 
  54. #define IOPARF_QUEUED (1<<6) 
  55. #define IOPARB_ABORT 5 
  56. #define IOPARF_ABORT (1<<5) 
  57. #define IOPARB_ACTIVE 4 
  58. #define IOPARF_ACTIVE (1<<4) 
  59. #define IOPTB_RWDIR 3 
  60. #define IOPTF_RWDIR (1<<3) 
  61. #define IOPTB_PARSEL 2 
  62. #define IOPTF_PARSEL (1<<2) 
  63. #define IOPTB_PAPEROUT 1 
  64. #define IOPTF_PAPEROUT (1<<1) 
  65. #define IOPTB_PARBUSY 0 
  66. #define IOPTF_PARBUSY (1<<0) 
  67.  
  68.  
  69. #define PARALLELNAME "parallel.device"
  70.  
  71. #define PDCMD_QUERY (CMD_NONSTD)
  72. #define PDCMD_SETPARAMS (CMD_NONSTD+1)
  73.  
  74. #define ParErr_DevBusy 1
  75. #define ParErr_BufTooBig 2
  76. #define ParErr_InvParam 3
  77. #define ParErr_LineErr 4
  78. #define ParErr_NotOpen 5
  79. #define ParErr_PortReset 6
  80. #define ParErr_InitErr 7
  81.  
  82. #endif 
  83.