summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/wdreg.h
diff options
context:
space:
mode:
authordyson <dyson@FreeBSD.org>1997-09-20 07:41:58 +0000
committerdyson <dyson@FreeBSD.org>1997-09-20 07:41:58 +0000
commit82185efa231b9e445aacba005cc9a39b5870a4ed (patch)
tree3e78b4aa1ba2dc7071d854218306ef0bac661bdd /sys/i386/isa/wdreg.h
parentbf08f9298bde2b71ea764a8f255a6d0baea61845 (diff)
downloadFreeBSD-src-82185efa231b9e445aacba005cc9a39b5870a4ed.zip
FreeBSD-src-82185efa231b9e445aacba005cc9a39b5870a4ed.tar.gz
Addition of support of the slightly rogue Promise IDE interface(Dyson), support
of multiple PCI IDE controllers(Dyson), and some updates and cleanups from John Hood, who originally made our IDE DMA stuff work :-). I have run tests with 7 IDE drives connected to my system, all in DMA mode, with no errors. Modulo any bugs, this stuff makes IDE look really good (within it's limitations.) Submitted by: John Hood <cgull@smoke.marlboro.vt.us>
Diffstat (limited to 'sys/i386/isa/wdreg.h')
-rw-r--r--sys/i386/isa/wdreg.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/i386/isa/wdreg.h b/sys/i386/isa/wdreg.h
index 9bb2f9b..0b37456 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.12.2.3 1997/01/14 17:32:07 bde Exp $
+ * $Id: wdreg.h,v 1.19 1997/09/04 18:49:48 sos Exp $
*/
/*
@@ -260,7 +260,7 @@ int wdformat(struct buf *bp);
* WDDS_* constants below.
*/
struct wddma {
- void *(*wdd_candma) /* returns a cookie if can do DMA */
+ void *(*wdd_candma) /* returns a cookie if PCI */
__P((int ctlr, int drive));
int (*wdd_dmaverify) /* verify that request is DMA-able */
__P((void *cookie, char *vaddr, u_long len, int direction));
@@ -277,6 +277,10 @@ struct wddma {
struct wdparams *wp,
int(wdcmd)__P((int mode, void *wdinfo)),
void *wdinfo));
+ int (*wdd_iobase) /* returns iobase address */
+ __P((void *cookie));
+ int (*wdd_altiobase) /* returns altiobase address */
+ __P((void *cookie));
};
/* logical status bits returned by wdd_dmastatus */
@@ -305,6 +309,6 @@ struct wddma {
#define WDDMA_UDMA1 0x41
#define WDDMA_UDMA2 0x42
-extern struct wddma wddma;
+extern struct wddma wddma[];
#endif /* KERNEL */
OpenPOWER on IntegriCloud