From a9e9062ca170bf269c545e420541e363746ddab3 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Thu, 27 Jun 1996 21:36:11 +0000 Subject: Bump various timeouts in scprobe(). This finally fixes the broken keyboard reset one of my earlier commits has been causing. --- sys/dev/syscons/syscons.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sys/dev/syscons') diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index 05e5d56be8dd..32b249070593 100644 --- a/sys/dev/syscons/syscons.c +++ b/sys/dev/syscons/syscons.c @@ -25,7 +25,7 @@ * (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.155 1996/06/25 08:54:45 sos Exp $ + * $Id: syscons.c,v 1.157 1996/06/26 13:04:52 sos Exp $ */ #include "sc.h" @@ -251,7 +251,7 @@ scprobe(struct isa_device *dev) /* flush any noise in the buffer */ while (inb(KB_STAT) & KB_BUF_FULL) { - DELAY(25); + DELAY(100); (void) inb(KB_DATA); } @@ -274,10 +274,10 @@ gotres: else { i = 10; /* At most 10 retries. */ gotack: - DELAY(25); - j = 1000; /* Wait at most 50 ms (supposedly). */ - while ((inb(KB_STAT) & KB_BUF_FULL) == 0 && --j > 0) DELAY(50); - DELAY(25); + DELAY(100); + j = 1000; /* Wait at most 1 s. */ + while ((inb(KB_STAT) & KB_BUF_FULL) == 0 && --j > 0) DELAY(1000); + DELAY(1000); val = inb(KB_DATA); if (val == KB_ACK && --i > 0) goto gotack; -- cgit v1.3