summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/wdreg.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1999-01-17 05:46:25 +0000
committerbde <bde@FreeBSD.org>1999-01-17 05:46:25 +0000
commitdbb879887a22e434e5cf1a725ed4225cc87d67bd (patch)
tree4876f56b000cd56ffb8972e67767fd0b320ff451 /sys/i386/isa/wdreg.h
parent66115cf2aaeeaf0faf0a598f154171fccae928d9 (diff)
downloadFreeBSD-src-dbb879887a22e434e5cf1a725ed4225cc87d67bd.zip
FreeBSD-src-dbb879887a22e434e5cf1a725ed4225cc87d67bd.tar.gz
Pass the unit number to the DMA cookie lookup routine and use it
to look up cookies properly, at least for standard controllers. Cookies are used so that we don't have to pass around lots of args. All of the dmainit functions use the unit number so it is essential that we pass them a cookie with the correct unit number. This may break working configurations if there are bugs in the dmainit functions like the ones I just fixed for VIA chipsets. Broken in: rev 1.4 of ide_pci.c and rev.1.139 of wd.c.
Diffstat (limited to 'sys/i386/isa/wdreg.h')
-rw-r--r--sys/i386/isa/wdreg.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/isa/wdreg.h b/sys/i386/isa/wdreg.h
index 0c06aa9..88a0fec 100644
--- a/sys/i386/isa/wdreg.h
+++ b/sys/i386/isa/wdreg.h
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)wdreg.h 7.1 (Berkeley) 5/9/91
- * $Id: wdreg.h,v 1.23 1998/10/22 05:58:41 bde Exp $
+ * $Id: wdreg.h,v 1.24 1999/01/12 01:04:38 eivind Exp $
*/
/*
@@ -262,7 +262,7 @@ int wdformat(struct buf *bp);
*/
struct wddma {
void *(*wdd_candma) /* returns a cookie if PCI */
- __P((int ctlr, int drive));
+ __P((int iobase_wd, int ctlr, int unit));
int (*wdd_dmaverify) /* verify that request is DMA-able */
__P((void *cookie, char *vaddr, u_long len, int direction));
int (*wdd_dmaprep) /* prepare DMA hardware */
OpenPOWER on IntegriCloud