diff options
author | csgr <csgr@FreeBSD.org> | 1994-04-06 16:42:33 +0000 |
---|---|---|
committer | csgr <csgr@FreeBSD.org> | 1994-04-06 16:42:33 +0000 |
commit | e910246f9f577ca29b4a28209f4c59f283691a0d (patch) | |
tree | f9287e5b5596df6d71b4156d054e95e12db42265 /sys/dev/ppbus | |
parent | 68314379f2309f4a2f3b03c227d494a4d43aa7a1 (diff) | |
download | FreeBSD-src-e910246f9f577ca29b4a28209f4c59f283691a0d.zip FreeBSD-src-e910246f9f577ca29b4a28209f4c59f283691a0d.tar.gz |
Changes to lpt driver:
- ansi prototypes in lpt.c
- a bit of tidying in lpt.c
- ioctl in lpt.c for switching between polling and using interrupts
- added lpt.h - needed for ioctl to allow switching between polling
and interrupt-driven modes.
Diffstat (limited to 'sys/dev/ppbus')
-rw-r--r-- | sys/dev/ppbus/lptio.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sys/dev/ppbus/lptio.h b/sys/dev/ppbus/lptio.h new file mode 100644 index 0000000..87af5bc --- /dev/null +++ b/sys/dev/ppbus/lptio.h @@ -0,0 +1,24 @@ +/* + * Copyright (C) 1994 Geoffrey M. Rehmet + * + * This program is free software; you may redistribute it and/or + * modify it, provided that it retain the above copyright notice + * and the following disclaimer. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * Geoff Rehmet, Rhodes University, South Africa <csgr@cs.ru.ac.za> + * + */ + +#ifndef _LPT_PRINTER_H_ +#define _LPT_PRINTER_H_ + +#include <sys/types.h> +#include <sys/ioctl.h> + +#define LPT_IRQ _IOW('p', 1, long) /* set interrupt status */ + +#endif |