summaryrefslogtreecommitdiffstats
path: root/sys/dev/ciss/ciss.c
diff options
context:
space:
mode:
authorps <ps@FreeBSD.org>2004-05-17 17:27:38 +0000
committerps <ps@FreeBSD.org>2004-05-17 17:27:38 +0000
commitf0f9792ad4bdeea979da6479eee800628b092951 (patch)
tree27f668971903c5891432ed4445e17a568b301c6c /sys/dev/ciss/ciss.c
parent858adca10f16b52166830f034daf42bbdb337d6a (diff)
downloadFreeBSD-src-f0f9792ad4bdeea979da6479eee800628b092951.zip
FreeBSD-src-f0f9792ad4bdeea979da6479eee800628b092951.tar.gz
Turn SCSI pre-fetch ON. This is mainly for 64XX and 64X based
controllers and allows the controller to prefetch 1-2k on certain PCI memory reads to the host. The spec says this should only be used for IA32 based systems. Informed of feature by: John Cagle <first.last@hp.com>
Diffstat (limited to 'sys/dev/ciss/ciss.c')
-rw-r--r--sys/dev/ciss/ciss.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/ciss/ciss.c b/sys/dev/ciss/ciss.c
index c11c28f..67edd2a 100644
--- a/sys/dev/ciss/ciss.c
+++ b/sys/dev/ciss/ciss.c
@@ -569,6 +569,10 @@ ciss_init_pci(struct ciss_softc *sc)
sc->ciss_cfg->interrupt_coalesce_delay = CISS_INTERRUPT_COALESCE_DELAY;
sc->ciss_cfg->interrupt_coalesce_count = CISS_INTERRUPT_COALESCE_COUNT;
+#ifdef __i386__
+ sc->ciss_cfg->host_driver |= CISS_DRIVER_SCSI_PREFETCH;
+#endif
+
if (ciss_update_config(sc)) {
ciss_printf(sc, "adapter refuses to accept config update (IDBR 0x%x)\n",
CISS_TL_SIMPLE_READ(sc, CISS_TL_SIMPLE_IDBR));
OpenPOWER on IntegriCloud