home *** CD-ROM | disk | FTP | other *** search
/ Dave Lowe: Devpac Amiga 1 / Lowe_DevpacAmiga1.adf / include / devices / prtbase.i < prev    next >
Encoding:
Text File  |  1987-11-09  |  2.3 KB  |  139 lines

  1.     IFND    DEVICES_PRTBASE_I
  2. DEVICES_PRTBASE_I    set   1
  3.  
  4.     IFND    EXEC_PORTS_I
  5.     INCLUDE    "exec/ports.i"        for MP_SIZE
  6.     ENDC
  7.     IFND    EXEC_TASKS_I
  8.     INCLUDE    "exec/tasks.i"        for TC_SIZE
  9.     ENDC
  10.  
  11.     IFND    DEVICES_PARALLEL_I
  12.     INCLUDE    "devices/parallel.i"
  13.     ENDC
  14.     IFND    DEVICES_SERIAL_I
  15.     INCLUDE    "devices/serial.i"
  16.     ENDC
  17.     IFND    DEVICES_TIMER_I
  18.     INCLUDE    "devices/timer.i"        for IO_TVSIZE
  19.     ENDC
  20.     IFND    INTUITION_I
  21.     include    "intuition/intuition.i"        for pf_SIZEOF
  22.     ENDC
  23.  
  24.     rsset    LIB_SIZE
  25. dd_Segment    rs.l    1
  26. dd_ExecBase    rs.l    1
  27. dd_CmdVectors    rs.l    1
  28. dd_CmdBytes    rs.l    1
  29. dd_NumCommands    rs.w    1
  30. dd_SIZEOF    rs.w    0
  31.  
  32.  
  33. du_Flags    EQU   LN_PRI
  34.  
  35. IOB_QUEUED    equ    4
  36. IOF_QUEUED    equ    1<<4
  37. IOB_CURRENT    equ    5
  38. IOF_CURRENT    equ    1<<5
  39. IOB_SERVICING    equ    6
  40. IOF_SERVICING    equ    1<<6
  41. IOB_DONE    equ    7
  42. IOF_DONE    equ    1<<7
  43.  
  44. DUB_STOPPED    equ    0
  45. DUF_STOPPED    equ    1<<0
  46.  
  47.  
  48. P_PRIORITY    EQU         0
  49. P_STKSIZE    EQU         $800
  50.  
  51. PB_IOR0    equ    0
  52. PF_IOR0    equ    1<<0
  53. PB_IOR1    equ    1
  54. PF_IOR1    equ    1<<1
  55. PB_EXPUNGED    equ    7
  56. PF_EXPUNGED    equ    1<<7
  57.  
  58.     rsset    dd_SIZEOF
  59. pd_Unit    rs.b    MP_SIZE
  60. pd_PrinterSegment    rs.l    1
  61. pd_PrinterType    rs.w    1
  62. pd_SegmentData    rs.l    1
  63. pd_PrintBuf    rs.l    1
  64. pd_PWrite    rs.l    1
  65. pd_PBothReady    rs.l    1
  66.  
  67.     IFGT    IOEXTPar_SIZE-IOEXTSER_SIZE
  68. pd_IOR0    rs.b    IOEXTPar_SIZE
  69. pd_IOR1    rs.b    IOEXTPar_SIZE
  70.     ENDC
  71.  
  72.     IFLE    IOEXTPar_SIZE-IOEXTSER_SIZE
  73. pd_IOR0    rs.b    IOEXTSER_SIZE
  74. pd_IOR1    rs.b    IOEXTSER_SIZE
  75.     ENDC
  76.  
  77. pd_TIOR    rs.b    IOTV_SIZE
  78. pd_IORPort    rs.b    MP_SIZE
  79. pd_TC    rs.b    TC_SIZE
  80. pd_Stk    rs.b    P_STKSIZE
  81. pd_Flags    rs.b    1
  82. pd_pad    rs.b    1
  83. pd_Preferences    rs.b    pf_SIZEOF
  84. pd_PWaitEnabled    rs.b    1
  85. pd_SIZEOF    rs.w    0
  86.  
  87. PPCB_GFX    equ    0
  88. PPCF_GFX    equ    1<<0
  89. PPCB_COLOR    equ    1
  90. PPCF_COLOR    equ    1<<1
  91.  
  92. PPC_BWALPHA    EQU   0
  93. PPC_BWGFX    EQU   1
  94. PPC_COLORGFX    EQU   3
  95.  
  96. PCC_BW    EQU   1
  97. PCC_YMC    EQU   2
  98. PCC_YMC_BW    EQU   3
  99. PCC_YMCB    EQU   4
  100. * new 1.2
  101. PCC_4COLOR    EQU    4
  102. PCC_ADDITIVE    EQU    8
  103. PCC_WB    EQU    9    
  104. PCC_BGR    EQU    $A
  105. PCC_BGR_WB    EQU    $B
  106. PCC_BGRW    EQU    $C
  107.  
  108.     rsset    0
  109. ped_PrinterName    rs.l    1
  110. ped_Init    rs.l    1
  111. ped_Expunge    rs.l    1
  112. ped_Open    rs.l    1
  113. ped_Close    rs.l    1
  114. ped_PrinterClass    rs.b    1
  115. ped_ColorClass    rs.b    1
  116. ped_MaxColumns    rs.b    1
  117. ped_NumCharSets    rs.b    1
  118. ped_NumRows    rs.w    1
  119. ped_MaxXDots    rs.l    1
  120. ped_MaxYDots    rs.l    1
  121. ped_XDotsInch    rs.w    1
  122. ped_YDotsInch    rs.w    1
  123. ped_Commands    rs.l    1
  124. ped_DoSpecial    rs.l    1
  125. ped_Render    rs.l    1
  126. ped_TimeoutSecs    rs.l    1
  127. ped_8BitChars    rs.l    1    1.2 only if segment version >33
  128. ped_SIZEOF    rs.w    0
  129.  
  130.     rsset    0
  131. ps_NextSegment    rs.l    1
  132. ps_runAlert    rs.l    1
  133. ps_Version    rs.w    1
  134. ps_Revision    rs.w    1
  135. ps_PED    rs.w    0
  136.  
  137.     ENDC
  138.  
  139.