Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Add some delays between 8bit reads of DSTAT and S...
details: https://anonhg.NetBSD.org/src/rev/6dc1b2f7ea82
branches: trunk
changeset: 545622:6dc1b2f7ea82
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat Apr 12 06:42:38 2003 +0000
description:
Add some delays between 8bit reads of DSTAT and SSTAT0 registers
as per the 53c710 manual. Pointed out by fredette in osiop_gsc.c long ago.
diffstat:
sys/dev/ic/osiop.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r 1386867ccd5b -r 6dc1b2f7ea82 sys/dev/ic/osiop.c
--- a/sys/dev/ic/osiop.c Sat Apr 12 06:11:15 2003 +0000
+++ b/sys/dev/ic/osiop.c Sat Apr 12 06:42:38 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: osiop.c,v 1.12 2003/04/12 06:11:15 tsutsui Exp $ */
+/* $NetBSD: osiop.c,v 1.13 2003/04/12 06:42:38 tsutsui Exp $ */
/*
* Copyright (c) 2001 Izumi Tsutsui. All rights reserved.
@@ -76,7 +76,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: osiop.c,v 1.12 2003/04/12 06:11:15 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: osiop.c,v 1.13 2003/04/12 06:42:38 tsutsui Exp $");
/* #define OSIOP_DEBUG */
@@ -513,6 +513,7 @@
i--;
}
sstat0 = osiop_read_1(sc, OSIOP_SSTAT0);
+ delay(25);
dstat = osiop_read_1(sc, OSIOP_DSTAT);
if (osiop_checkintr(sc, istat, dstat, sstat0, &status)) {
if (acb != sc->sc_nexus)
@@ -850,6 +851,7 @@
stat = osiop_read_1(sc, OSIOP_ISTAT);
if (stat & OSIOP_ISTAT_SIP)
osiop_read_1(sc, OSIOP_SSTAT0);
+ delay(25);
if (stat & OSIOP_ISTAT_DIP)
osiop_read_1(sc, OSIOP_DSTAT);
Home |
Main Index |
Thread Index |
Old Index