mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-20 10:16:34 +01:00
Put the sequencer into FASTMODE during initialization. I can now
get up to 8m/sec write performance out of a pd2100 with this driver.
This commit is contained in:
parent
cb0d548bf4
commit
c21818c866
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=4867
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user