|
|
1.1 ! root 1: /* ! 2: * Copyright (c) 1982, 1986 Regents of the University of California. ! 3: * All rights reserved. The Berkeley software License Agreement ! 4: * specifies the terms and conditions for redistribution. ! 5: * ! 6: * @(#)dmfreg.h 7.2 (Berkeley) 2/19/87 ! 7: */ ! 8: ! 9: /* ! 10: * DMF-32 definitions. ! 11: */ ! 12: ! 13: /* ! 14: * "dmfa" refers to the async portion of the dmf32, ! 15: * "dmfc" to the combo portion, ! 16: * "dmfs" to the sync portion, ! 17: * "dmfl" to the lp portion, and ! 18: * "dmfd" to the dr portion. ! 19: */ ! 20: struct dmfdevice { ! 21: short dmfccsr0; /* combo csr 0 */ ! 22: short dmfccsr1; /* combo csr 1 */ ! 23: short dmfs[4]; /* synch. device */ ! 24: struct dmx_octet dmfa; /* asynch portion */ ! 25: short dmfl_ctrl; /* line printer control register */ ! 26: short dmfl_indrct; /* line printer indirect register */ ! 27: short dmfd[4]; /* for dr11 (not implemented) */ ! 28: }; ! 29: ! 30: ! 31: /* dmf line printer csr def */ ! 32: #define DMFL_PEN (1<<0) /* print enable */ ! 33: #define DMFL_RESET (1<<1) /* master reset */ ! 34: #define DMFL_FORMAT (1<<2) /* format control */ ! 35: #define DMFL_UNUSED (3<<3) ! 36: #define DMFL_MAINT (1<<5) /* maintenance mode on */ ! 37: #define DMFL_IE (1<<6) /* intr enable */ ! 38: #define DMFL_PDONE (1<<7) /* print done bit */ ! 39: #define DMFL_INDIR (7<<8) /* indirect reg */ ! 40: #define DMFL_UNUSED2 (1<<11) ! 41: #define DMFL_CONV (1<<12) /* connect verify */ ! 42: #define DMFL_DAVRDY (1<<13) /* davfu ready */ ! 43: #define DMFL_OFFLINE (1<<14) /* printer offline */ ! 44: #define DMFL_DMAERR (1<<15) /* dma error bit */ ! 45: #define DMFL_BUFSIZ 512 /* max chars per dma */ ! 46: #define DMFL_DEFCOLS 132 /* default # of cols/line <=255 */ ! 47: #define DMFL_DEFLINES 66 /* default # of lines/page <=255 */ ! 48: #define DMFL_OPTIONS ((1 << 8) | (1 << 9) | (1 << 15)) ! 49: /* auto cr, real ff, no lower to upper */ ! 50: ! 51: /* ! 52: * Bits in the configuration register ! 53: */ ! 54: #define DMFC_CONFMASK 0xf000 /* picks off the configuration bits */ ! 55: #define DMFC_DR 0x1000 /* DR11 parallel interface */ ! 56: #define DMFC_LP 0x2000 /* LP dma parallel lineprinter i'face */ ! 57: #define DMFC_SYNC 0x4000 /* Synchronous serial interface */ ! 58: #define DMFC_ASYNC 0x8000 /* 8 Serial ports */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.