summaryrefslogtreecommitdiffstats
path: root/sys/dev/dpt/dpt_pci.c
diff options
context:
space:
mode:
authorgibbs <gibbs@FreeBSD.org>1998-10-07 03:40:51 +0000
committergibbs <gibbs@FreeBSD.org>1998-10-07 03:40:51 +0000
commitc3bd7bdfdda594530f77207803fdcfba4862f4bf (patch)
treedd49b1925ac07eb5b7638f177abb393d7d158439 /sys/dev/dpt/dpt_pci.c
parent04f5e2e068d6ab729527b802a57364c9f7dea8e6 (diff)
downloadFreeBSD-src-c3bd7bdfdda594530f77207803fdcfba4862f4bf.zip
FreeBSD-src-c3bd7bdfdda594530f77207803fdcfba4862f4bf.tar.gz
ahc_pci.c:
Disable DPARCKEN in the DSCOMMAND0 register on the aic7890/91/96/97. Parity checking is broken for some chip/MB combinations and this is the work around recommended by Adaptec. dpt_pci.c: Remove a superflous '{' that prevented DPT_ALLOW_MEMIO from working. pcireg.h: Add a definition for Parity Error Reponse bit in the PCI Space command register.
Diffstat (limited to 'sys/dev/dpt/dpt_pci.c')
-rw-r--r--sys/dev/dpt/dpt_pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/dpt/dpt_pci.c b/sys/dev/dpt/dpt_pci.c
index 2e2e16b..7af9a2a 100644
--- a/sys/dev/dpt/dpt_pci.c
+++ b/sys/dev/dpt/dpt_pci.c
@@ -32,7 +32,7 @@
* dptpci.c: PCI Bus Attachment for DPT SCSI HBAs
*/
-#ident "$Id: dpt_pci.c,v 1.7 1998/08/05 00:54:37 eivind Exp $"
+#ident "$Id: dpt_pci.c,v 1.8 1998/09/15 08:33:38 gibbs Exp $"
#include "opt_devfs.h"
#include "opt_dpt.h"
@@ -126,7 +126,7 @@ dpt_pci_attach(pcici_t config_id, int unit)
command = pci_conf_read(config_id, PCI_COMMAND_STATUS_REG);
#ifdef DPT_ALLOW_MEMIO
if ((command & PCI_COMMAND_MEM_ENABLE) == 0
- || (pci_map_mem(config_id, PCI_BASEADR1, &vaddr, &paddr)) == 0) {
+ || (pci_map_mem(config_id, PCI_BASEADR1, &vaddr, &paddr)) == 0)
#endif
if ((command & PCI_COMMAND_IO_ENABLE) == 0
|| (pci_map_port(config_id, PCI_BASEADR0, &io_base)) == 0)
OpenPOWER on IntegriCloud