Cosmetic changes, from Soren S. Jorvan.
This commit is contained in:
parent
0bc97aaca7
commit
ce870816e0
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ata_wdc.c,v 1.12 1999/01/09 03:05:19 thorpej Exp $ */
|
||||
/* $NetBSD: ata_wdc.c,v 1.13 1999/01/29 11:36:20 bouyer Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 Manuel Bouyer.
|
||||
@ -429,7 +429,7 @@ wdc_ata_bio_intr(chp, xfer)
|
||||
if (xfer->c_flags & C_DMA) {
|
||||
if (ata_bio->flags & ATA_POLL) {
|
||||
/*
|
||||
* IDE drives deassert WDCS_BSY before transfert is
|
||||
* IDE drives deassert WDCS_BSY before transfer is
|
||||
* complete when using DMA. Polling for DRQ to deassert
|
||||
* is not enouth DRQ is not required to be
|
||||
* asserted for DMA transfers, so poll for DRDY.
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: atavar.h,v 1.10 1999/01/18 20:06:24 bouyer Exp $ */
|
||||
/* $NetBSD: atavar.h,v 1.11 1999/01/29 11:36:20 bouyer Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 Manuel Bouyer.
|
||||
@ -66,7 +66,7 @@ struct ata_drive_datas {
|
||||
*/
|
||||
u_int8_t state;
|
||||
|
||||
/* Number of DMA errors. reset to 0 after every successfull transferts */
|
||||
/* Number of DMA errors. Reset to 0 after every successful transfers. */
|
||||
u_int8_t n_dmaerrs;
|
||||
/* downgrade mode after this many successive errors */
|
||||
#define NERRS_MAX 2
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: atapi_wdc.c,v 1.14 1999/01/09 03:16:17 thorpej Exp $ */
|
||||
/* $NetBSD: atapi_wdc.c,v 1.15 1999/01/29 11:36:20 bouyer Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 Manuel Bouyer.
|
||||
@ -430,7 +430,7 @@ again:
|
||||
WDCDEBUG_PRINT(("PHASE_DATAOUT\n"), DEBUG_INTR);
|
||||
if ((sc_xfer->flags & SCSI_DATA_OUT) == 0 ||
|
||||
(xfer->c_flags & C_DMA) != 0) {
|
||||
printf("wdc_atapi_intr: bad data phase DATAOUT");
|
||||
printf("wdc_atapi_intr: bad data phase DATAOUT\n");
|
||||
if (xfer->c_flags & C_DMA) {
|
||||
(*chp->wdc->dma_finish)(chp->wdc->dma_arg,
|
||||
chp->channel, xfer->drive, dma_flags);
|
||||
@ -509,7 +509,7 @@ again:
|
||||
if (((sc_xfer->flags & SCSI_DATA_IN) == 0 &&
|
||||
(xfer->c_flags & C_SENSE) == 0) ||
|
||||
(xfer->c_flags & C_DMA) != 0) {
|
||||
printf("wdc_atapi_intr: bad data phase DATAIN");
|
||||
printf("wdc_atapi_intr: bad data phase DATAIN\n");
|
||||
if (xfer->c_flags & C_DMA) {
|
||||
(*chp->wdc->dma_finish)(chp->wdc->dma_arg,
|
||||
chp->channel, xfer->drive, dma_flags);
|
||||
|
Loading…
Reference in New Issue
Block a user