Commit | Line | Data |
---|---|---|
da7c5cc6 | 1 | /* |
0880b18e | 2 | * Copyright (c) 1982, 1986 Regents of the University of California. |
da7c5cc6 KM |
3 | * All rights reserved. The Berkeley software License Agreement |
4 | * specifies the terms and conditions for redistribution. | |
5 | * | |
0475f19a | 6 | * @(#)dmfreg.h 7.2 (Berkeley) %G% |
da7c5cc6 | 7 | */ |
7e1a3cad SL |
8 | |
9 | /* | |
10 | * DMF-32 definitions. | |
11 | */ | |
12 | ||
13 | /* | |
0475f19a | 14 | * "dmfa" refers to the async portion of the dmf32, |
7e1a3cad SL |
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 */ | |
0475f19a MK |
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) */ | |
7e1a3cad SL |
28 | }; |
29 | ||
7e1a3cad | 30 | |
2775cc1e JB |
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 */ | |
26505102 | 48 | #define DMFL_OPTIONS ((1 << 8) | (1 << 9) | (1 << 15)) |
0475f19a | 49 | /* auto cr, real ff, no lower to upper */ |
2775cc1e JB |
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 */ |