Module Name: src
Committed By: kiyohara
Date: Sun Sep 1 11:14:47 UTC 2013
Modified Files:
src/sys/dev/ic: mvsata.c
Log Message:
Declare mvsata_probe_drive() when defined MVSATA_WITHOUTDMA.
And more delay() for some machines.
To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/dev/ic/mvsata.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/ic/mvsata.c
diff -u src/sys/dev/ic/mvsata.c:1.31 src/sys/dev/ic/mvsata.c:1.32
--- src/sys/dev/ic/mvsata.c:1.31 Mon May 6 14:52:51 2013
+++ src/sys/dev/ic/mvsata.c Sun Sep 1 11:14:46 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: mvsata.c,v 1.31 2013/05/06 14:52:51 jakllsch Exp $ */
+/* $NetBSD: mvsata.c,v 1.32 2013/09/01 11:14:46 kiyohara Exp $ */
/*
* Copyright (c) 2008 KIYOHARA Takashi
* All rights reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mvsata.c,v 1.31 2013/05/06 14:52:51 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mvsata.c,v 1.32 2013/09/01 11:14:46 kiyohara Exp $");
#include "opt_mvsata.h"
@@ -106,6 +106,7 @@ int mvsata_debug = 2;
#define MVSATA_EPRD_MAX_SIZE (sizeof(struct eprd) * (MAXPHYS / PAGE_SIZE))
+static void mvsata_probe_drive(struct ata_channel *);
#ifndef MVSATA_WITHOUTDMA
static int mvsata_bio(struct ata_drive_datas *, struct ata_bio *);
static void mvsata_reset_drive(struct ata_drive_datas *, int, uint32_t *);
@@ -205,8 +206,6 @@ static void mvsata_print_crpb(struct mvs
static void mvsata_print_eprd(struct mvsata_port *, int);
#endif
-static void mvsata_probe_drive(struct ata_channel *);
-
struct ata_bustype mvsata_ata_bustype = {
SCSIPI_BUSTYPE_ATA,
mvsata_bio,
@@ -1695,6 +1694,7 @@ again:
ata_c->flags |= AT_TIMEOU;
goto out;
}
+ delay(10); /* XXXXX: Delay more times. */
if (ata_c->flags & AT_READ) {
if ((chp->ch_status & WDCS_DRQ) == 0) {
ata_c->flags |= AT_TIMEOU;