summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/conf/LINT4
-rw-r--r--sys/i386/conf/NOTES4
-rw-r--r--sys/i386/isa/syscons.c16
3 files changed, 18 insertions, 6 deletions
diff --git a/sys/i386/conf/LINT b/sys/i386/conf/LINT
index 86ddb82..a514b7b 100644
--- a/sys/i386/conf/LINT
+++ b/sys/i386/conf/LINT
@@ -2,7 +2,7 @@
# LINT -- config file for checking all the sources, tries to pull in
# as much of the source tree as it can.
#
-# $Id: LINT,v 1.274 1996/07/10 19:44:17 julian Exp $
+# $Id: LINT,v 1.275 1996/08/15 10:41:34 asami Exp $
#
# NB: You probably don't want to try running a kernel built from this
# file. Instead, you should start from GENERIC, and add options from
@@ -501,6 +501,8 @@ options PCVT_SCANSET=2 # IBM keyboards are non-std
# The syscons console driver (sco color console compatible) - default.
device sc0 at isa? port "IO_KBD" tty irq 1 vector scintr
+options SC_KBD_PROBE_WORKS # keyboard probe should determine
+ # if syscons is available
#
# This device is mandatory.
diff --git a/sys/i386/conf/NOTES b/sys/i386/conf/NOTES
index 86ddb82..a514b7b 100644
--- a/sys/i386/conf/NOTES
+++ b/sys/i386/conf/NOTES
@@ -2,7 +2,7 @@
# LINT -- config file for checking all the sources, tries to pull in
# as much of the source tree as it can.
#
-# $Id: LINT,v 1.274 1996/07/10 19:44:17 julian Exp $
+# $Id: LINT,v 1.275 1996/08/15 10:41:34 asami Exp $
#
# NB: You probably don't want to try running a kernel built from this
# file. Instead, you should start from GENERIC, and add options from
@@ -501,6 +501,8 @@ options PCVT_SCANSET=2 # IBM keyboards are non-std
# The syscons console driver (sco color console compatible) - default.
device sc0 at isa? port "IO_KBD" tty irq 1 vector scintr
+options SC_KBD_PROBE_WORKS # keyboard probe should determine
+ # if syscons is available
#
# This device is mandatory.
diff --git a/sys/i386/isa/syscons.c b/sys/i386/isa/syscons.c
index 02218f9..2a81f41 100644
--- a/sys/i386/isa/syscons.c
+++ b/sys/i386/isa/syscons.c
@@ -25,12 +25,13 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: syscons.c,v 1.164 1996/09/04 22:24:19 sos Exp $
+ * $Id: syscons.c,v 1.165 1996/09/06 23:08:09 phk Exp $
*/
#include "sc.h"
#include "apm.h"
#include "opt_ddb.h"
+#include "opt_syscons.h"
#if NSC > 0
#include <sys/param.h>
@@ -276,9 +277,12 @@ scprobe(struct isa_device *dev)
}
}
gotres:
- if (retries < 0)
+ if (retries < 0) {
printf("scprobe: keyboard won't accept RESET command\n");
- else {
+#ifdef SC_KBD_PROBE_WORKS
+ return (0);
+#endif
+ } else {
i = 10; /* At most 10 retries. */
gotack:
DELAY(100);
@@ -288,8 +292,12 @@ gotack:
val = inb(KB_DATA);
if (val == KB_ACK && --i > 0)
goto gotack;
- if (val != KB_RESET_DONE)
+ if (val != KB_RESET_DONE) {
printf("scprobe: keyboard RESET failed (result = 0x%02x)\n", val);
+#ifdef SC_KBD_PROBE_WORKS
+ return (0);
+#endif
+ }
}
#ifdef XT_KEYBOARD
kbd_wait();
OpenPOWER on IntegriCloud