2 * Copyright (c) 1990 The Regents of the University of California.
3 * Copyright (c) 2008 The DragonFly Project.
6 * This code is derived from software contributed to Berkeley by
9 * form: @(#)lptreg.h 1.1 (Berkeley) 12/19/90
10 * $FreeBSD: src/sys/i386/isa/lptreg.h,v 1.7 1999/08/28 00:44:57 peter Exp $
11 * $DragonFly: src/sys/platform/pc64/isa/lptreg.h,v 1.1 2008/08/29 17:07:19 dillon Exp $
15 * AT Parallel Port (for lineprinter)
16 * Interface port and bit definitions
17 * Written by William Jolitz 12/18/90
18 * Copyright (C) William Jolitz 1990
21 #define lpt_data 0 /* Data to/from printer (R/W) */
23 #define lpt_status 1 /* Status of printer (R) */
24 #define LPS_NERR 0x08 /* printer no error */
25 #define LPS_SEL 0x10 /* printer selected */
26 #define LPS_OUT 0x20 /* printer out of paper */
27 #define LPS_NACK 0x40 /* printer no ack of data */
28 #define LPS_NBSY 0x80 /* printer no ack of data */
30 #define lpt_control 2 /* Control printer (R/W) */
31 #define LPC_STB 0x01 /* strobe data to printer */
32 #define LPC_AUTOL 0x02 /* automatic linefeed */
33 #define LPC_NINIT 0x04 /* initialize printer */
34 #define LPC_SEL 0x08 /* printer selected */
35 #define LPC_ENA 0x10 /* enable IRQ */