| 1 | /*- |
| 2 | * Copyright (c) 1990 The Regents of the University of California. |
| 3 | * All rights reserved. |
| 4 | * |
| 5 | * This code is derived from software contributed to Berkeley by |
| 6 | * William Jolitz. |
| 7 | * |
| 8 | * form: @(#)lptreg.h 1.1 (Berkeley) 12/19/90 |
| 9 | * $Id$ |
| 10 | */ |
| 11 | |
| 12 | /* |
| 13 | * AT Parallel Port (for lineprinter) |
| 14 | * Interface port and bit definitions |
| 15 | * Written by William Jolitz 12/18/90 |
| 16 | * Copyright (C) William Jolitz 1990 |
| 17 | */ |
| 18 | |
| 19 | #define lpt_data 0 /* Data to/from printer (R/W) */ |
| 20 | |
| 21 | #define lpt_status 1 /* Status of printer (R) */ |
| 22 | #define LPS_NERR 0x08 /* printer no error */ |
| 23 | #define LPS_SEL 0x10 /* printer selected */ |
| 24 | #define LPS_OUT 0x20 /* printer out of paper */ |
| 25 | #define LPS_NACK 0x40 /* printer no ack of data */ |
| 26 | #define LPS_NBSY 0x80 /* printer no ack of data */ |
| 27 | |
| 28 | #define lpt_control 2 /* Control printer (R/W) */ |
| 29 | #define LPC_STB 0x01 /* strobe data to printer */ |
| 30 | #define LPC_AUTOL 0x02 /* automatic linefeed */ |
| 31 | #define LPC_NINIT 0x04 /* initialize printer */ |
| 32 | #define LPC_SEL 0x08 /* printer selected */ |
| 33 | #define LPC_ENA 0x10 /* printer out of paper */ |