summaryrefslogtreecommitdiff
path: root/sys/dev/ic/wdcvar.h
diff options
context:
space:
mode:
authorAlexander Yurchenko <grange@cvs.openbsd.org>2003-07-23 22:07:16 +0000
committerAlexander Yurchenko <grange@cvs.openbsd.org>2003-07-23 22:07:16 +0000
commitc828fcd5606221baa4bcf2cda327d01774e99bb3 (patch)
tree39ed56e5cdffc1a6159671b70ab244cf3f011380 /sys/dev/ic/wdcvar.h
parent26663ca3acb8e283d5dd460ed33ff13d743223ee (diff)
Old Promise ATA controllers need some additional operations
during DMA transfers to work correctly with LBA48 drives. Based on diff from Takeshi Nakayama <tn@catvmics.ne.jp> for NetBSD with some corrections from FreeBSD ATA driver.
Diffstat (limited to 'sys/dev/ic/wdcvar.h')
-rw-r--r--sys/dev/ic/wdcvar.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ic/wdcvar.h b/sys/dev/ic/wdcvar.h
index ef41a4778cd..1aa9561063c 100644
--- a/sys/dev/ic/wdcvar.h
+++ b/sys/dev/ic/wdcvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: wdcvar.h,v 1.26 2003/07/05 14:41:56 grange Exp $ */
+/* $OpenBSD: wdcvar.h,v 1.27 2003/07/23 22:07:15 grange Exp $ */
/* $NetBSD: wdcvar.h,v 1.17 1999/04/11 20:50:29 bouyer Exp $ */
/*-
@@ -178,6 +178,7 @@ struct wdc_softc { /* Per controller state */
/* flags passed to DMA functions */
#define WDC_DMA_READ 0x01
#define WDC_DMA_IRQW 0x02
+#define WDC_DMA_LBA48 0x04
int dma_status; /* status return from dma_finish() */
#define WDC_DMAST_NOIRQ 0x01 /* missing IRQ */
#define WDC_DMAST_ERR 0x02 /* DMA error */