Subject: Changes to pcvt 3.2b2 for post 1.0
To: None <joerg_wunsch@sax.sax.de, hm@hcswork.hcs.de, port-i386@NetBSD.ORG>
From: Martin Husemann <martin@euterpe.owl.de>
List: port-i386
Date: 12/06/1994 12:03:26
I needed the following changes to use pcvt 3.2beta2 with -current post 1.0;
the PCVT_NO_LED_UPDATE option is needed on my notebook with broken keyboard
controler, the other changes are straightforward (taken from -current
pcvt3.00).
Martin
diff -ru /tmp/pcvt/pcvt_drv.c /sys/arch/i386/isa/pcvt/pcvt_drv.c
--- /tmp/pcvt/pcvt_drv.c Tue Oct 4 11:28:05 1994
+++ /sys/arch/i386/isa/pcvt/pcvt_drv.c Tue Dec 6 09:15:47 1994
@@ -1025,6 +1025,24 @@
return (*cp);
}
+void
+pccnpollc(Dev_t dev, int on)
+{
+ kbd_polling = on;
+ if (!on) {
+ register int s;
+
+ /*
+ * If disabling polling, make sure there are no bytes left in
+ * the FIFO, holding up the interrupt line. Otherwise we
+ * won't get any further interrupts.
+ */
+ s = spltty();
+ pcrint();
+ splx(s);
+ }
+}
+
/*---------------------------------------------------------------------------*
* Set line parameters
*---------------------------------------------------------------------------*/
diff -ru /tmp/pcvt/pcvt_hdr.h /sys/arch/i386/isa/pcvt/pcvt_hdr.h
--- /tmp/pcvt/pcvt_hdr.h Tue Oct 4 11:28:05 1994
+++ /sys/arch/i386/isa/pcvt/pcvt_hdr.h Tue Dec 6 09:08:04 1994
@@ -76,7 +76,9 @@
#endif
#include "i386/isa/icu.h"
+#if PCVT_NETBSD <= 100
#include "i386/isa/isa.h"
+#endif
#if PCVT_NETBSD > 9
#include "dev/cons.h"
diff -ru /tmp/pcvt/pcvt_kbd.c /sys/arch/i386/isa/pcvt/pcvt_kbd.c
--- /tmp/pcvt/pcvt_kbd.c Tue Oct 4 11:28:06 1994
+++ /sys/arch/i386/isa/pcvt/pcvt_kbd.c Tue Dec 6 09:18:23 1994
@@ -626,6 +626,7 @@
void
update_led(void)
{
+#ifndef PCVT_NO_LED_UPDATE
ledstate = ((vsp->scroll_lock) |
(vsp->num_lock * 2) |
(vsp->caps_lock * 4));
@@ -633,7 +634,8 @@
if(kbd_cmd(KEYB_C_LEDS) != 0)
printf("Keyboard LED command timeout\n");
else if(kbd_cmd(ledstate) != 0)
- printf("Keyboard LED data timeout\n");
+ printf("Keyboard LED data timeout\n");
+#endif
}
/*---------------------------------------------------------------------------*