diff options
author | gibbs <gibbs@FreeBSD.org> | 1994-11-29 23:06:54 +0000 |
---|---|---|
committer | gibbs <gibbs@FreeBSD.org> | 1994-11-29 23:06:54 +0000 |
commit | b6942ab081d14c1083d801c2685112851b37c264 (patch) | |
tree | 14152c5f75790665218597a5d3999a83c46b8e15 /sys/i386/eisa | |
parent | 9f58d54fdf4eb0050768344d09c65f95be2ce15f (diff) | |
download | FreeBSD-src-b6942ab081d14c1083d801c2685112851b37c264.zip FreeBSD-src-b6942ab081d14c1083d801c2685112851b37c264.tar.gz |
Put the sequencer into FASTMODE during initialization. I can now
get up to 8m/sec write performance out of a pd2100 with this driver.
Diffstat (limited to 'sys/i386/eisa')
-rw-r--r-- | sys/i386/eisa/aic7770.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/i386/eisa/aic7770.c b/sys/i386/eisa/aic7770.c index 9eb2963..83ce3cd 100644 --- a/sys/i386/eisa/aic7770.c +++ b/sys/i386/eisa/aic7770.c @@ -18,7 +18,7 @@ * * commenced: Sun Sep 27 18:14:01 PDT 1992 * - * $Id: aic7770.c,v 1.5 1994/11/18 20:34:30 gibbs Exp $ + * $Id: aic7770.c,v 1.6 1994/11/25 22:25:15 ats Exp $ */ /* * TODO: @@ -1326,11 +1326,14 @@ ahc_init(unit) printf("SCSI Id=%d\n", ahc->our_id); /* - * Load the Sequencer program and Enable the adapter + * Load the Sequencer program and Enable the adapter. + * Place the aic7770 in fastmode which makes a big + * difference when doing many small block transfers. */ printf("ahc%d: Downloading Sequencer Program\n", unit); ahc_loadseq(port); + outb(SEQCTL + port, FASTMODE); outb(BCTL + port, ENABLE); /* Reset the SCSI bus. Is this necessary? */ @@ -1640,7 +1643,7 @@ void ahc_loadseq(port) int port; { static unsigned char seqprog[] = { -# include "../../sys/gnu/misc/aic7770/aic7770_seq.h" +# include <gnu/misc/aic7770/aic7770_seq.h> }; outb(SEQCTL + port, PERRORDIS|SEQRESET|LOADRAM); |