143989Snsouch/*- 243999Snsouch * Copyright (c) 1990 The Regents of the University of California. 343989Snsouch * All rights reserved. 443989Snsouch * 543999Snsouch * This code is derived from software contributed to Berkeley by 643999Snsouch * William Jolitz. 743999Snsouch * 843999Snsouch * Copyright (c) 1997, 1999 Nicolas Souchu 943999Snsouch * All rights reserved. 1043999Snsouch * 1143989Snsouch * Redistribution and use in source and binary forms, with or without 1243989Snsouch * modification, are permitted provided that the following conditions 1343989Snsouch * are met: 1443989Snsouch * 1. Redistributions of source code must retain the above copyright 1543989Snsouch * notice, this list of conditions and the following disclaimer. 1643989Snsouch * 2. Redistributions in binary form must reproduce the above copyright 1743989Snsouch * notice, this list of conditions and the following disclaimer in the 1843989Snsouch * documentation and/or other materials provided with the distribution. 1943989Snsouch * 2043989Snsouch * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 2143989Snsouch * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2243989Snsouch * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2343989Snsouch * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 2443989Snsouch * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2543989Snsouch * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2643989Snsouch * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2743989Snsouch * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2843989Snsouch * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2943989Snsouch * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3043989Snsouch * SUCH DAMAGE. 3143989Snsouch * 3243989Snsouch * Distantly from : 3343989Snsouch * @(#)lptreg.h 1.1 (Berkeley) 12/19/90 34185003Sjhb * Id: lptreg.h,v 1.6 1997/02/22 09:36:52 peter Exp 3543989Snsouch * From Id: nlpt.h,v 1.3 1999/01/10 12:04:54 nsouch Exp 3643989Snsouch * 3750477Speter * $FreeBSD: releng/10.2/sys/dev/ppbus/lpt.h 185003 2008-11-16 17:42:02Z jhb $ 3843989Snsouch */ 3943989Snsouch 4043999Snsouch/* 4143999Snsouch * AT Parallel Port (for lineprinter) 4243999Snsouch * Interface port and bit definitions 4343999Snsouch * Written by William Jolitz 12/18/90 4443999Snsouch * Copyright (C) William Jolitz 1990 4543999Snsouch */ 4643999Snsouch 4743999Snsouch#ifndef __LPT_H 48185003Sjhb#define __LPT_H 4943999Snsouch 5043999Snsouch/* machine independent definitions, it shall only depend on the ppbus 5143999Snsouch * parallel port model */ 5243999Snsouch 5350024Sphk /* PIN */ 5450024Sphk#define LPS_NERR 0x08 /* 15 printer no error */ 5550024Sphk#define LPS_SEL 0x10 /* 13 printer selected */ 5650024Sphk#define LPS_OUT 0x20 /* 12 printer out of paper */ 5750024Sphk#define LPS_NACK 0x40 /* 10 printer no ack of data */ 5850024Sphk#define LPS_NBSY 0x80 /* 11 printer busy */ 5943989Snsouch 6050024Sphk#define LPC_STB 0x01 /* 1 strobe data to printer */ 6150024Sphk#define LPC_AUTOL 0x02 /* 14 automatic linefeed */ 6250024Sphk#define LPC_NINIT 0x04 /* 16 initialize printer */ 6350024Sphk#define LPC_SEL 0x08 /* 17 printer selected */ 6450024Sphk#define LPC_ENA 0x10 /* - enable IRQ */ 6543989Snsouch 6643989Snsouch#endif 67