diff options
author | nsouch <nsouch@FreeBSD.org> | 1999-01-10 12:04:56 +0000 |
---|---|---|
committer | nsouch <nsouch@FreeBSD.org> | 1999-01-10 12:04:56 +0000 |
commit | 88ae26fef69887203a871fca927f456a66c2cad4 (patch) | |
tree | 9e8c963e572bd5f141fcfc50127d8185cf16e87c /usr.sbin/lptcontrol | |
parent | 44bde66cb074ad8bc5cdb36460c6ef9f4628ea69 (diff) | |
download | FreeBSD-src-88ae26fef69887203a871fca927f456a66c2cad4.zip FreeBSD-src-88ae26fef69887203a871fca927f456a66c2cad4.tar.gz |
Major ppbus commit with:
+ ECP parallel port chipset FIFO detection
+ DMA+FIFO parallel I/O handled as chipset specific
+ nlpt updated in order to use the above enhanced parallel I/O.
Use 'lptcontrol -e' to use enhanced I/O
+ Various options documented in LINT
+ Full IEEE1284 NIBBLE and BYTE modes support. See ppbus(4) for
an overview of the IEEE1284 standard
+ Detection of PnP parallel devices at boot
+ Read capability added to nlpt driver to get IEEE1284 compliant
printer status with a simple 'cat /dev/lpt0'
+ IEEE1284 peripheral emulation added to BYTE mode. Two computers
may dialog according to IEEE1284 signaling method.
See PERIPH_1284 option and /sys/dev/ppbus/ppi.c
All this code is supposed to provide basic functions for IEEE1284 programming.
ppi.c and nlpt.c may act as examples.
Diffstat (limited to 'usr.sbin/lptcontrol')
-rw-r--r-- | usr.sbin/lptcontrol/lptcontrol.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.sbin/lptcontrol/lptcontrol.c b/usr.sbin/lptcontrol/lptcontrol.c index 73ea05c..afd234e 100644 --- a/usr.sbin/lptcontrol/lptcontrol.c +++ b/usr.sbin/lptcontrol/lptcontrol.c @@ -30,7 +30,7 @@ #ifndef lint static const char rcsid[] = - "$Id$"; + "$Id: lptcontrol.c,v 1.6 1997/09/25 06:36:29 charnier Exp $"; #endif /* not lint */ #include <ctype.h> @@ -53,10 +53,12 @@ static const char rcsid[] = #define IRQ_INVALID -1 #define DO_POLL 0 #define USE_IRQ 1 +#define USE_EXT_MODE 2 +#define USE_STD_MODE 3 static void usage() { - fprintf(stderr, "usage: lptcontrol -i | -p [-u <unit no.>]\n"); + fprintf(stderr, "usage: lptcontrol -i | -p | -s | -e [-u <unit no.>]\n"); exit(1); } @@ -89,10 +91,12 @@ int main (int argc, char * argv[]) int irq_status = IRQ_INVALID; char * unit = DEFAULT_UNIT; - while((opt = getopt(argc, argv, "ipu:")) != -1) + while((opt = getopt(argc, argv, "ipesu:")) != -1) switch(opt) { case 'i': irq_status = USE_IRQ; break; case 'p': irq_status = DO_POLL; break; + case 'e': irq_status = USE_EXT_MODE; break; + case 's': irq_status = USE_STD_MODE; break; case 'u': unit = optarg; if(!isdigit(*unit)) usage(); |