home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 3 / goldfish_volume_3.bin / files / dev / e / amigae / modulessrc / devices / prtbase.e < prev    next >
Text File  |  1995-07-05  |  2KB  |  117 lines

  1. OPT MODULE
  2. OPT EXPORT
  3.  
  4. MODULE 'devices/serial',
  5.        'devices/timer',
  6.        'exec/libraries',
  7.        'exec/ports',
  8.        'exec/tasks',
  9.        'intuition/preferences'
  10.  
  11. CONST DEVICES_PRTBASE_I=1
  12.  
  13. OBJECT devicedata
  14.   lib:lib
  15.   segment:LONG
  16.   execbase:LONG
  17.   cmdvectors:LONG
  18.   cmdbytes:PTR TO CHAR
  19.   numcommands:INT  -> This is unsigned
  20. ENDOBJECT     /* SIZEOF=52 */
  21.  
  22. CONST DU_FLAGS=9,
  23.       IOF_QUEUED=16,
  24.       IOF_CURRENT=$20,
  25.       IOF_SERVICING=$40,
  26.       IOF_DONE=$80,
  27.       DUF_STOPPED=1,
  28.       P_PRIORITY=0,
  29.       P_OLDSTKSIZE=$800,
  30.       P_STKSIZE=$1000,
  31.       P_BUFSIZE=$100,
  32.       P_SAFESIZE=$80,
  33.       PF_IOR0=1,
  34.       PF_IOR1=2,
  35.       PF_EXPUNGED=$80
  36.  
  37. OBJECT printerdata
  38.   dd:devicedata
  39.   unit:mp
  40.   printersegment:LONG
  41.   printertype:INT  -> This is unsigned
  42.   segmentdata:PTR TO printersegment
  43.   printbuf:PTR TO CHAR
  44.   pwrite:LONG
  45.   pbothready:LONG
  46. -> Um, these were both wrong
  47. -> a) next is unioned with "p0:ioextpar"
  48.   s0:ioextser
  49. -> a) next is unioned with "p1:ioextpar"
  50.   s1:ioextser
  51.   tior:timerequest
  52.   iorport:mp
  53.   tc:tc
  54.   oldstk[$800]:ARRAY
  55.   flags:CHAR
  56.   pad:CHAR
  57.   preferences:preferences
  58.   pwaitenabled:CHAR
  59.   pad1:CHAR
  60.   stk[$1000]:ARRAY
  61. ENDOBJECT     /* SIZEOF=6778 */
  62.  
  63. CONST PPCB_GFX=0,
  64.       PPCF_GFX=1,
  65.       PPCB_COLOR=1,
  66.       PPCF_COLOR=2,
  67.       PPC_BWALPHA=0,
  68.       PPC_BWGFX=1,
  69.       PPC_COLORALPHA=2,
  70.       PPC_COLORGFX=3,
  71.       PCC_BW=1,
  72.       PCC_YMC=2,
  73.       PCC_YMC_BW=3,
  74.       PCC_YMCB=4,
  75.       PCC_4COLOR=4,
  76.       PCC_ADDITIVE=8,
  77.       PCC_WB=9,
  78.       PCC_BGR=10,
  79.       PCC_BGR_WB=11,
  80.       PCC_BGRW=12,
  81.       PCC_MULTI_PASS=16
  82.  
  83. OBJECT printerextendeddata
  84.   printername:PTR TO CHAR
  85.   init:LONG
  86.   expunge:LONG
  87.   open:LONG
  88.   close:LONG
  89.   printerclass:CHAR
  90.   colorclass:CHAR
  91.   maxcolumns:CHAR
  92.   numcharsets:CHAR
  93.   numrows:INT  -> This is unsigned
  94.   maxxdots:LONG
  95.   maxydots:LONG
  96.   xdotsinch:INT  -> This is unsigned
  97.   ydotsinch:INT  -> This is unsigned
  98.   commands:PTR TO LONG
  99.   dospecial:LONG
  100.   render:LONG
  101.   timeoutsecs:LONG
  102. -> Um, this had an illegal name
  103.   x8bitchars:PTR TO LONG
  104.   printmode:LONG
  105.   convfunv:LONG
  106. ENDOBJECT     /* SIZEOF=66 */
  107.  
  108. OBJECT printersegment
  109.   nextsegment:LONG
  110.   runalert:LONG
  111.   version:INT  -> This is unsigned
  112.   revision:INT  -> This is unsigned
  113. -> Um, this was missing
  114.   ped:printerextendeddata
  115. ENDOBJECT     /* SIZEOF=NONE !!! */
  116.  
  117.