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

  1. OPT MODULE
  2. OPT EXPORT
  3.  
  4. OPT PREPROCESS
  5.  
  6. MODULE 'exec/io'
  7.  
  8. CONST PARERR_DEVBUSY=1,
  9.       PARERR_BUFTOOBIG=2,
  10.       PARERR_INVPARAM=3,
  11.       PARERR_LINEERR=4,
  12.       PARERR_NOTOPEN=5,
  13.       PARERR_PORTRESET=6,
  14.       PARERR_INITERR=7,
  15.       PDCMD_QUERY=9,
  16.       PDCMD_SETPARAMS=10,
  17.       PAR_DEVFINISH=10,
  18.       PARB_SHARED=5,
  19.       PARF_SHARED=$20,
  20.       PARB_SLOWMODE=4,
  21.       PARF_SLOWMODE=16,
  22.       PARB_FASTMODE=3,
  23.       PARF_FASTMODE=8,
  24.       PARB_RAD_BOOGIE=3,
  25.       PARF_RAD_BOOGIE=8,
  26.       PARB_ACKMODE=2,
  27.       PARF_ACKMODE=4,
  28.       PARB_EOFMODE=1,
  29.       PARF_EOFMODE=2,
  30.       IOPARB_QUEUED=6,
  31.       IOPARF_QUEUED=$40,
  32.       IOPARB_ABORT=5,
  33.       IOPARF_ABORT=$20,
  34.       IOPARB_ACTIVE=4,
  35.       IOPARF_ACTIVE=16,
  36.       IOPTB_RWDIR=3,
  37.       IOPTF_RWDIR=8,
  38.       IOPTB_PARSEL=2,
  39.       IOPTF_PARSEL=4,
  40.       IOPTB_PAPEROUT=1,
  41.       IOPTF_PAPEROUT=2,
  42.       IOPTB_PARBUSY=0,
  43.       IOPTF_PARBUSY=1
  44.  
  45. #define PARALLELNAME 'parallel.device'
  46.  
  47. OBJECT ioparray
  48. -> Um, names were wrong and illegal
  49.   ptermarray0:LONG
  50.   ptermarray1:LONG
  51. ENDOBJECT     /* SIZEOF=8 */
  52.  
  53. OBJECT ioextpar
  54.   iostd:iostd
  55.   pextflags:LONG
  56.   parstatus:CHAR
  57.   parflags:CHAR
  58.   ptermarray:ioparray
  59. ENDOBJECT     /* SIZEOF=62 */
  60.