home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 22 / AACD 22.iso / AACD / Programming / powerd / modules.lha / modules / devices / prtbase.m < prev    next >
Encoding:
Text File  |  2000-06-04  |  1.7 KB  |  110 lines

  1. MODULE    'devices/serial',
  2.             'devices/parallel',
  3.             'devices/timer',
  4.             'exec/libraries',
  5.             'exec/ports',
  6.             'exec/tasks',
  7.             'intuition/preferences'
  8.  
  9. CONST    DEVICES_PRTBASE_I=1
  10.  
  11. OBJECT DeviceData
  12.     Lib:Lib,
  13.     Segment:LONG,
  14.     ExecBase:LONG,
  15.     CmdVectors:LONG,
  16.     CmdBytes:PTR TO CHAR,
  17.     NumCommands:UWORD
  18.  
  19. CONST    DU_FLAGS=9,
  20.         IOF_QUEUED=16,
  21.         IOF_CURRENT=$20,
  22.         IOF_SERVICING=$40,
  23.         IOF_DONE=$80,
  24.         DUF_STOPPED=1,
  25.         P_PRIORITY=0,
  26.         P_OLDSTKSIZE=$800,
  27.         P_STKSIZE=$1000,
  28.         P_BUFSIZE=$100,
  29.         P_SAFESIZE=$80,
  30.         PF_IOR0=1,
  31.         PF_IOR1=2,
  32.         PF_EXPUNGED=$80
  33.  
  34. OBJECT PrinterData
  35.     DD:DeviceData,
  36.     Unit:MP,
  37.     PrinterSegment:LONG,
  38.     PrinterType:UWORD,
  39.     SegmentData:PTR TO PrinterSegment,
  40.     PrintBuf:PTR TO CHAR,
  41.     PWrite:LONG,
  42.     PBothReady:LONG,
  43.     NEWUNION    IOR0
  44.         P0:IOExtPar,
  45.         S0:IOExtSer
  46.     UNION IOR1
  47.         P1:IOExtPar,
  48.         S1:IOExtSer
  49.     ENDUNION,
  50.     TIOR:TimeRequest,
  51.     IORPort:MP,
  52.     TC:TC,
  53.     OldStk[$800]:CHAR,
  54.     Flags:CHAR,
  55.     pad:CHAR,
  56.     Preferences:Preferences,
  57.     Pwaitenabled:CHAR,
  58.     pad1:CHAR,
  59.     Stk[$1000]:CHAR
  60.  
  61. CONST    PPCB_GFX=0,
  62.         PPCF_GFX=1,
  63.         PPCB_COLOR=1,
  64.         PPCF_COLOR=2,
  65.         PPC_BWALPHA=0,
  66.         PPC_BWGFX=1,
  67.         PPC_COLORALPHA=2,
  68.         PPC_COLORGFX=3,
  69.         PCC_BW=1,
  70.         PCC_YMC=2,
  71.         PCC_YMC_BW=3,
  72.         PCC_YMCB=4,
  73.         PCC_4COLOR=4,
  74.         PCC_ADDITIVE=8,
  75.         PCC_WB=9,
  76.         PCC_BGR=10,
  77.         PCC_BGR_WB=11,
  78.         PCC_BGRW=12,
  79.         PCC_MULTI_PASS=16
  80.  
  81. OBJECT PrinterExtendedData
  82.     PrinterName:PTR TO CHAR,
  83.     Init:LONG,
  84.     Expunge:LONG,
  85.     Open:LONG,
  86.     Close:LONG,
  87.     PrinterClass:CHAR,
  88.     ColorClass:CHAR,
  89.     MaxColumns:CHAR,
  90.     NumCharSets:CHAR,
  91.     NumRows:UWORD,
  92.     MaxXDots:LONG,
  93.     MaxYDots:LONG,
  94.     XDotsInch:UWORD,
  95.     YDotsInch:UWORD,
  96.     Commands:PTR TO LONG,
  97.     DoSpecial:LONG,
  98.     Render:LONG,
  99.     TimeOutSecs:LONG,
  100.     X8BitChars:PTR TO LONG,
  101.     PrintMode:LONG,
  102.     ConvFunv:LONG
  103.  
  104. OBJECT PrinterSegment
  105.     NextSegment:LONG,
  106.     RunAlert:LONG,
  107.     Version:UWORD,
  108.     Revision:UWORD,
  109.     PED:PrinterExtendedData
  110.