summaryrefslogtreecommitdiffstats
path: root/sys/pci/isp_pci.c
diff options
context:
space:
mode:
authorgibbs <gibbs@FreeBSD.org>1999-08-16 01:52:21 +0000
committergibbs <gibbs@FreeBSD.org>1999-08-16 01:52:21 +0000
commitc1664fa91ae2fda93ee5cb64ad1c4d77afb6e717 (patch)
treeaeb7275b83829ac29cbd76a255c27c321b19b1cb /sys/pci/isp_pci.c
parenteac569c095293fabb1bc2043fb4c4f3431f63029 (diff)
downloadFreeBSD-src-c1664fa91ae2fda93ee5cb64ad1c4d77afb6e717.zip
FreeBSD-src-c1664fa91ae2fda93ee5cb64ad1c4d77afb6e717.tar.gz
Properly set the alignment argument to bus_dma_tag_create(). If we
don't care about the alignment, set it to 1, meaning single byte alignment.
Diffstat (limited to 'sys/pci/isp_pci.c')
-rw-r--r--sys/pci/isp_pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/pci/isp_pci.c b/sys/pci/isp_pci.c
index 69dbd83..34473da 100644
--- a/sys/pci/isp_pci.c
+++ b/sys/pci/isp_pci.c
@@ -1,4 +1,4 @@
-/* $Id: isp_pci.c,v 1.27 1999/07/05 22:04:08 mjacob Exp $ */
+/* $Id: isp_pci.c,v 1.28 1999/07/06 01:24:20 mjacob Exp $ */
/* release_6_5_99 */
/*
* PCI specific probe and attach routines for Qlogic ISP SCSI adapters.
@@ -516,7 +516,7 @@ isp_pci_attach(pcici_t cfid, int unit)
pci_cfgwrite(cfid, PCIR_ROMADDR, data, 4);
ISP_UNLOCK(isp);
- if (bus_dma_tag_create(NULL, 0, 0, BUS_SPACE_MAXADDR_32BIT,
+ if (bus_dma_tag_create(NULL, 1, 0, BUS_SPACE_MAXADDR_32BIT,
BUS_SPACE_MAXADDR, NULL, NULL, lim + 1,
255, lim, 0, &pcs->parent_dmat) != 0) {
printf("%s: could not create master dma tag\n", isp->isp_name);
OpenPOWER on IntegriCloud