diff options
author | joerg <joerg@FreeBSD.org> | 1996-06-27 21:36:11 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1996-06-27 21:36:11 +0000 |
commit | 02519a6da0fbd17477c014209c6d600af1a542fc (patch) | |
tree | dc904e9fa418dab61851617a133105ac290d81b6 /sys/dev | |
parent | 6efdfdb671266cf8e148118459ea1704cb1308a9 (diff) | |
download | FreeBSD-src-02519a6da0fbd17477c014209c6d600af1a542fc.zip FreeBSD-src-02519a6da0fbd17477c014209c6d600af1a542fc.tar.gz |
Bump various timeouts in scprobe(). This finally fixes the broken
keyboard reset one of my earlier commits has been causing.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/syscons/syscons.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index 05e5d56..32b2490 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; |