aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ppbus/if_plip.c
diff options
context:
space:
mode:
authorNicolas Souchu <nsouch@FreeBSD.org>1999-01-30 15:35:39 +0000
committerNicolas Souchu <nsouch@FreeBSD.org>1999-01-30 15:35:39 +0000
commit20240fa3ad284d37c77b569550834ff75be7e589 (patch)
tree01a33e1f93b9df1298023453f674ba352a0e641a /sys/dev/ppbus/if_plip.c
parent88ec80ed82e4d7c1fee8a938b641bc4c1bd2a575 (diff)
downloadsrc-20240fa3ad284d37c77b569550834ff75be7e589.tar.gz
src-20240fa3ad284d37c77b569550834ff75be7e589.zip
Distinguish EPP address/data register. Add EPP address register access to ppi.
Change microseq offsets. Previously, offsets of the program counter where added to the index of the current microinstruction. Make them rely on the index of the next executed microinstruction. Suggested by: Luigi Rizzo <luigi@labinfo.iet.unipi.it>
Notes
Notes: svn path=/head/; revision=43433
Diffstat (limited to 'sys/dev/ppbus/if_plip.c')
-rw-r--r--sys/dev/ppbus/if_plip.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/ppbus/if_plip.c b/sys/dev/ppbus/if_plip.c
index d3b85a4b421a..886158cc844e 100644
--- a/sys/dev/ppbus/if_plip.c
+++ b/sys/dev/ppbus/if_plip.c
@@ -24,7 +24,7 @@
* SUCH DAMAGE.
*
* From Id: lpt.c,v 1.55.2.1 1996/11/12 09:08:38 phk Exp
- * $Id: if_plip.c,v 1.7 1999/01/09 18:10:37 nsouch Exp $
+ * $Id: if_plip.c,v 1.8 1999/01/23 17:07:49 nsouch Exp $
*/
/*
@@ -131,11 +131,12 @@
#define LPIPTBLSIZE 256 /* Size of octet translation table */
-#ifndef PLIP_DEBUG
-#define lprintf (void)
-#else
#define lprintf if (lptflag) printf
+
+#ifdef PLIP_DEBUG
static int volatile lptflag = 1;
+#else
+static int volatile lptflag = 0;
#endif
struct lpt_softc {