summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2005-08-05 07:29:03 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2005-08-05 07:29:03 +0000
commit2768056f3057104ee08ff961f6054f31f8a336f0 (patch)
tree8cbe86b4d8d80591793bd778db62767c4cd0f62f /sys/dev
parent3137c857efbefdc683a0d330aa3304aa948191e9 (diff)
X40 has to be prodded a bit more to work.
tested by jolan@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/isa/aps.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/isa/aps.c b/sys/dev/isa/aps.c
index bca5f2279c9..d97cd16e0ab 100644
--- a/sys/dev/isa/aps.c
+++ b/sys/dev/isa/aps.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aps.c,v 1.1 2005/08/05 03:52:32 jsg Exp $ */
+/* $OpenBSD: aps.c,v 1.2 2005/08/05 07:29:02 jsg Exp $ */
/*
* Copyright (c) 2005 Jonathan Gray <jsg@openbsd.org>
*
@@ -80,6 +80,11 @@ aps_match(struct device *parent, void *match, void *aux)
/* See if this machine has APS */
bus_space_write_1(iot, ioh, APS_INIT, 0x13);
bus_space_write_1(iot, ioh, APS_CMD, 0x01);
+
+ /* ask again as the X40 is slightly deaf in one ear */
+ bus_space_write_1(iot, ioh, APS_INIT, 0x13);
+ bus_space_write_1(iot, ioh, APS_CMD, 0x01);
+
if (!aps_mem_read_1(iot, ioh, APS_CMD, 0x00)) {
bus_space_unmap(iot, ioh, APS_ADDR_SIZE);
return (0);