summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/pci/aic7870.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/pci/aic7870.c b/sys/pci/aic7870.c
index 73ab551e4f05..1975b523821c 100644
--- a/sys/pci/aic7870.c
+++ b/sys/pci/aic7870.c
@@ -19,7 +19,7 @@
* 4. Modifications may be freely made to this file if the above conditions
* are met.
*
- * $Id: aic7870.c,v 1.20 1995/12/14 09:53:55 phk Exp $
+ * $Id: aic7870.c,v 1.11.2.6 1996/01/04 08:55:14 gibbs Exp $
*/
#include <pci.h>
@@ -301,11 +301,16 @@ aic7870_attach(config_id, unit)
if(bootverbose)
printf("ahc%d: BurstLen = %dDWDs, "
"Latency Timer = %dPCLKS\n",
+ unit,
csize_lattime & CACHESIZE,
(csize_lattime >> 8) & 0xff);
+ pci_conf_write(config_id, CSIZE_LATTIME, csize_lattime);
}
+ /* Enable cache sized transfers, memory, and data parity checking */
+ outb(DSCOMMAND + io_port, CACHETHEN|DPARCKEN|MPARCKEN);
+
if(!(ahc = ahc_alloc(unit, io_port, ahc_t, ahc_f)))
return; /* XXX PCI code should take return status */