From 67f5dcad6bf45b27c1013a5df185577d7b038ac3 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Sun, 28 Aug 1994 20:37:59 +0000 Subject: [PATCH] Bruce was right, stupid device returns non-busy state too early, add only one DELAY(10) after inb(non_busy) now --- sys/dev/mcd/mcd.c | 14 ++++++-------- sys/i386/isa/mcd.c | 14 ++++++-------- 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/sys/dev/mcd/mcd.c b/sys/dev/mcd/mcd.c index 1acd8044ec5d..4adfce66c184 100644 --- a/sys/dev/mcd/mcd.c +++ b/sys/dev/mcd/mcd.c @@ -39,7 +39,7 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: mcd.c,v 1.19 1994/08/27 13:15:25 ache Exp $ + * $Id: mcd.c,v 1.20 1994/08/27 15:28:34 ache Exp $ */ static char COPYRIGHT[] = "mcd-driver (C)1993 by H.Veit & B.Moore"; @@ -62,8 +62,6 @@ static char COPYRIGHT[] = "mcd-driver (C)1993 by H.Veit & B.Moore"; #include #include -#define MIN_DELAY 10 - /* user definable options */ /*#define MCD_TO_WARNING_ON*/ /* define to get timeout messages */ /*#define MCDMINI*/ /* define for a mini configuration for boot kernel */ @@ -204,9 +202,7 @@ struct isa_driver mcddriver = { mcd_probe, mcd_attach, "mcd" }; #define RDELAY_WAITMODE 300 #define RDELAY_WAITREAD 800 -#define DELAY_STATUS 10000l /* 10000 * 1us */ #define DELAY_GETREPLY 200000l /* 200000 * 2us */ -#define DELAY_SEEKREAD 20000l /* 20000 * 1us */ int mcd_attach(struct isa_device *dev) { @@ -639,10 +635,12 @@ mcd_waitrdy(int port,int dly) int i; /* wait until xfer port senses data ready */ - for (i=0; i #include -#define MIN_DELAY 10 - /* user definable options */ /*#define MCD_TO_WARNING_ON*/ /* define to get timeout messages */ /*#define MCDMINI*/ /* define for a mini configuration for boot kernel */ @@ -204,9 +202,7 @@ struct isa_driver mcddriver = { mcd_probe, mcd_attach, "mcd" }; #define RDELAY_WAITMODE 300 #define RDELAY_WAITREAD 800 -#define DELAY_STATUS 10000l /* 10000 * 1us */ #define DELAY_GETREPLY 200000l /* 200000 * 2us */ -#define DELAY_SEEKREAD 20000l /* 20000 * 1us */ int mcd_attach(struct isa_device *dev) { @@ -639,10 +635,12 @@ mcd_waitrdy(int port,int dly) int i; /* wait until xfer port senses data ready */ - for (i=0; i