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

  1. #ifndef DEVICES_PRINTER_H
  2. #define DEVICES_PRINTER_H
  3. /*
  4. ** $Filename: devices/printer.h $
  5. ** $Release: 2.04 Includes, V37.4 $
  6. ** $Revision: 1.7 $
  7. ** $Date: 90/07/26 $
  8. **
  9. ** printer.device structure definitions
  10. **
  11. ** (C) Copyright 1987-1991 Commodore-Amiga, Inc.
  12. ** All Rights Reserved
  13. */
  14.  
  15. #ifndef EXEC_TYPES_H
  16. #include "exec/types.h"
  17. #endif
  18.  
  19. #ifndef EXEC_NODES_H
  20. #include "exec/nodes.h"
  21. #endif
  22.  
  23. #ifndef EXEC_LISTS_H
  24. #include "exec/lists.h"
  25. #endif
  26.  
  27. #ifndef EXEC_PORTS_H
  28. #include "exec/ports.h"
  29. #endif
  30.  
  31. #define PRD_RAWWRITE (CMD_NONSTD+0)
  32. #define PRD_PRTCOMMAND (CMD_NONSTD+1)
  33. #define PRD_DUMPRPORT (CMD_NONSTD+2)
  34. #define PRD_QUERY (CMD_NONSTD+3)
  35.  
  36.  
  37.  
  38. #define aRIS 0 
  39. #define aRIN 1 
  40. #define aIND 2 
  41. #define aNEL 3 
  42. #define aRI 4 
  43.  
  44. #define aSGR0 5 
  45. #define aSGR3 6 
  46. #define aSGR23 7 
  47. #define aSGR4 8 
  48. #define aSGR24 9 
  49. #define aSGR1 10 
  50. #define aSGR22 11 
  51. #define aSFC 12 
  52. #define aSBC 13 
  53.  
  54. #define aSHORP0 14 
  55. #define aSHORP2 15 
  56. #define aSHORP1 16 
  57. #define aSHORP4 17 
  58. #define aSHORP3 18 
  59. #define aSHORP6 19 
  60. #define aSHORP5 20 
  61.  
  62. #define aDEN6 21 
  63. #define aDEN5 22 
  64. #define aDEN4 23 
  65. #define aDEN3 24 
  66. #define aDEN2 25 
  67. #define aDEN1 26 
  68.  
  69. #define aSUS2 27 
  70. #define aSUS1 28 
  71. #define aSUS4 29 
  72. #define aSUS3 30 
  73. #define aSUS0 31 
  74. #define aPLU 32 
  75. #define aPLD 33 
  76.  
  77. #define aFNT0 34 
  78. #define aFNT1 35 
  79. #define aFNT2 36 
  80. #define aFNT3 37 
  81. #define aFNT4 38 
  82. #define aFNT5 39 
  83. #define aFNT6 40 
  84. #define aFNT7 41 
  85. #define aFNT8 42 
  86. #define aFNT9 43 
  87. #define aFNT10 44 
  88.  
  89.  
  90.  
  91. #define aPROP2 45 
  92. #define aPROP1 46 
  93. #define aPROP0 47 
  94. #define aTSS 48 
  95. #define aJFY5 49 
  96. #define aJFY7 50 
  97. #define aJFY6 51 
  98. #define aJFY0 52 
  99. #define aJFY3 53 
  100. #define aJFY1 54 
  101.  
  102. #define aVERP0 55 
  103. #define aVERP1 56 
  104. #define aSLPP 57 
  105. #define aPERF 58 
  106. #define aPERF0 59 
  107.  
  108. #define aLMS 60 
  109. #define aRMS 61 
  110. #define aTMS 62 
  111. #define aBMS 63 
  112. #define aSTBM 64 
  113. #define aSLRM 65 
  114. #define aCAM 66 
  115.  
  116. #define aHTS 67 
  117. #define aVTS 68 
  118. #define aTBC0 69 
  119. #define aTBC3 70 
  120. #define aTBC1 71 
  121. #define aTBC4 72 
  122. #define aTBCALL 73 
  123. #define aTBSALL 74 
  124. #define aEXTEND 75 
  125.  
  126. #define aRAW 76 
  127.  
  128. struct IOPrtCmdReq {
  129.  struct Message io_Message;
  130.  struct Device *io_Device; 
  131.  struct Unit *io_Unit; 
  132.  UWORD io_Command; 
  133.  UBYTE io_Flags;
  134.  BYTE io_Error; 
  135.  UWORD io_PrtCommand; 
  136.  UBYTE io_Parm0; 
  137.  UBYTE io_Parm1; 
  138.  UBYTE io_Parm2; 
  139.  UBYTE io_Parm3; 
  140. };
  141.  
  142. struct IODRPReq {
  143.  struct Message io_Message;
  144.  struct Device *io_Device; 
  145.  struct Unit *io_Unit; 
  146.  UWORD io_Command; 
  147.  UBYTE io_Flags;
  148.  BYTE io_Error; 
  149.  struct RastPort *io_RastPort; 
  150.  struct ColorMap *io_ColorMap; 
  151.  ULONG io_Modes; 
  152.  UWORD io_SrcX; 
  153.  UWORD io_SrcY; 
  154.  UWORD io_SrcWidth; 
  155.  UWORD io_SrcHeight; 
  156.  LONG io_DestCols; 
  157.  LONG io_DestRows; 
  158.  UWORD io_Special; 
  159. };
  160.  
  161. #define SPECIAL_MILCOLS 0x0001 
  162. #define SPECIAL_MILROWS 0x0002 
  163. #define SPECIAL_FULLCOLS 0x0004 
  164. #define SPECIAL_FULLROWS 0x0008 
  165. #define SPECIAL_FRACCOLS 0x0010 
  166. #define SPECIAL_FRACROWS 0x0020 
  167. #define SPECIAL_CENTER 0x0040 
  168. #define SPECIAL_ASPECT 0x0080 
  169. #define SPECIAL_DENSITY1 0x0100 
  170. #define SPECIAL_DENSITY2 0x0200 
  171. #define SPECIAL_DENSITY3 0x0300 
  172. #define SPECIAL_DENSITY4 0x0400 
  173. #define SPECIAL_DENSITY5 0x0500 
  174. #define SPECIAL_DENSITY6 0x0600 
  175. #define SPECIAL_DENSITY7 0x0700 
  176. #define SPECIAL_NOFORMFEED 0x0800 
  177. #define SPECIAL_TRUSTME 0x1000 
  178.  
  179. #define SPECIAL_NOPRINT 0x2000 
  180.  
  181. #define PDERR_NOERR 0 
  182. #define PDERR_CANCEL 1 
  183. #define PDERR_NOTGRAPHICS 2 
  184. #define PDERR_INVERTHAM 3 
  185. #define PDERR_BADDIMENSION 4 
  186. #define PDERR_DIMENSIONOVFLOW 5 
  187. #define PDERR_INTERNALMEMORY 6 
  188. #define PDERR_BUFFERMEMORY 7 
  189.  
  190. #define PDERR_TOOKCONTROL 8 
  191.  
  192.  
  193. #define SPECIAL_DENSITYMASK 0x0700 
  194. #define SPECIAL_DIMENSIONSMASK \
  195.  (SPECIAL_MILCOLS|SPECIAL_MILROWS|SPECIAL_FULLCOLS|SPECIAL_FULLROWS\
  196.  |SPECIAL_FRACCOLS|SPECIAL_FRACROWS|SPECIAL_ASPECT)
  197. #endif
  198.