home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 224a.lha / Includes / devices / prtbase < prev    next >
Encoding:
Text File  |  1989-04-08  |  2.2 KB  |  94 lines

  1.  
  2. {s DeviceData
  3.     struct  34 dd_Device    ( { Library=34;exec/libraries )
  4.     APTR    dd_Segment
  5.     APTR    dd_ExecBase
  6.     APTR    dd_CmdVectors
  7.     APTR    dd_CmdBytes
  8.     WORD    dd_NumCommands
  9.    s}
  10.  
  11.  
  12. \\ Removed device driver private variables
  13.  
  14. EQU  P_PRIORITY          0
  15. EQU  P_STKSIZE           $800
  16.  
  17.  
  18. {s PrinterData
  19.     STRUCT  DeviceData pd_Device
  20.     struct  20 pd_Unit      ( { Message=20;exec/ports )
  21.     APTR    pd_PrinterSegment
  22.     WORD    pd_PrinterType
  23.     APTR    pd_SegmentData
  24.     APTR    pd_PrintBuf
  25.     APTR    pd_PWrite
  26.     APTR    pd_PBothReady
  27.     struct  62 pd_p0        ( { IOExtPar=62;devices/parallel )
  28.             -62 soffset +!
  29.     struct  82 pd_s0        ( { IOExtSer=82;devices/serial )
  30.     struct  62 pd_p1
  31.             -62 soffset +!
  32.     struct  82 pd_s1
  33.     struct  40 pd_TIOR            ( { timerequest=40;devices/timer )
  34.     struct  34 pd_IORPort         ( { MsgPort=34;exec/ports )
  35.     struct  92 pd_TC              ( { Task=92;exec/tasks )
  36.     BYTES   P_STKSIZE pd_Stk
  37.     BYTE    pd_Flags
  38.     BYTE    pd_pad
  39.     struct  224 pd_Preferences    ( { Preferences=224;intuition/preferences )
  40.     BYTE    pd_PWaitEnabled
  41.    s}
  42.  
  43. EQU  PPCB_GFX    0
  44. EQU  PPCF_GFX    $01
  45. EQU  PPCB_COLOR  1
  46. EQU  PPCF_COLOR  $02
  47.  
  48. EQU  PPC_BWALPHA     0
  49. EQU  PPC_BWGFX       1
  50. EQU  PPC_COLORGFX    3
  51.  
  52. EQU  PCC_BW          1
  53. EQU  PCC_YMC         2
  54. EQU  PCC_YMC_BW      3
  55. EQU  PCC_YMCB        4
  56.  
  57. EQU  PCC_4COLOR      $4
  58. EQU  PCC_ADDITIVE    $8
  59. EQU  PCC_WB          $9
  60. EQU  PCC_BGR         $A
  61. EQU  PCC_BGR_WB      $B
  62. EQU  PCC_BGRW        $C
  63.  
  64. {s PrinterExtendedData
  65.     APTR    ped_PrinterName
  66.     APTR    ped_Init
  67.     APTR    ped_Expunge
  68.     APTR    ped_Open
  69.     APTR    ped_Close
  70.     BYTE    ped_PrinterClass
  71.     BYTE    ped_ColorClass
  72.     BYTE    ped_MaxColumns
  73.     BYTE    ped_NumCharSets
  74.     WORD    ped_NumRows
  75.     LONG    ped_MaxXDots
  76.     LONG    ped_MaxYDots
  77.     WORD    ped_XDotsInch
  78.     WORD    ped_YDotsInch
  79.     APTR    ped_Commands
  80.     APTR    ped_DoSpecial
  81.     APTR    ped_Render
  82.     LONG    ped_TimeoutSecs
  83.     APTR    ped_8BitChars
  84.    s}
  85.  
  86. {s PrinterSegment
  87.     LONG    ps_NextSegment
  88.     LONG    ps_runAlert
  89.     WORD    ps_Version
  90.     WORD    ps_Revision
  91.     STRUCT  PrinterExtendedData ps_PED
  92.    s}
  93.  
  94.