summaryrefslogtreecommitdiffstats
path: root/sys/dev/aha
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/dev/aha
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/dev/aha')
-rw-r--r--sys/dev/aha/aha.c10
-rw-r--r--sys/dev/aha/aha_isa.c4
2 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/aha/aha.c b/sys/dev/aha/aha.c
index 97bc80b..fe9d7b9 100644
--- a/sys/dev/aha/aha.c
+++ b/sys/dev/aha/aha.c
@@ -55,7 +55,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: aha.c,v 1.25 1999/05/14 23:10:25 imp Exp $
+ * $Id: aha.c,v 1.26 1999/05/25 20:15:19 gibbs Exp $
*/
#include "pnp.h"
@@ -523,7 +523,7 @@ aha_init(struct aha_softc* aha)
*/
/* DMA tag for mapping buffers into device visible space. */
- if (bus_dma_tag_create(aha->parent_dmat, /*alignment*/0, /*boundary*/0,
+ if (bus_dma_tag_create(aha->parent_dmat, /*alignment*/1, /*boundary*/0,
/*lowaddr*/BUS_SPACE_MAXADDR,
/*highaddr*/BUS_SPACE_MAXADDR,
/*filter*/NULL, /*filterarg*/NULL,
@@ -536,7 +536,7 @@ aha_init(struct aha_softc* aha)
aha->init_level++;
/* DMA tag for our mailboxes */
- if (bus_dma_tag_create(aha->parent_dmat, /*alignment*/0, /*boundary*/0,
+ if (bus_dma_tag_create(aha->parent_dmat, /*alignment*/1, /*boundary*/0,
/*lowaddr*/BUS_SPACE_MAXADDR,
/*highaddr*/BUS_SPACE_MAXADDR,
/*filter*/NULL, /*filterarg*/NULL,
@@ -572,7 +572,7 @@ aha_init(struct aha_softc* aha)
ahainitmboxes(aha);
/* DMA tag for our ccb structures */
- if (bus_dma_tag_create(aha->parent_dmat, /*alignment*/0, /*boundary*/0,
+ if (bus_dma_tag_create(aha->parent_dmat, /*alignment*/1, /*boundary*/0,
/*lowaddr*/BUS_SPACE_MAXADDR,
/*highaddr*/BUS_SPACE_MAXADDR,
/*filter*/NULL, /*filterarg*/NULL,
@@ -602,7 +602,7 @@ aha_init(struct aha_softc* aha)
aha->init_level++;
/* DMA tag for our S/G structures. We allocate in page sized chunks */
- if (bus_dma_tag_create(aha->parent_dmat, /*alignment*/0, /*boundary*/0,
+ if (bus_dma_tag_create(aha->parent_dmat, /*alignment*/1, /*boundary*/0,
/*lowaddr*/BUS_SPACE_MAXADDR,
/*highaddr*/BUS_SPACE_MAXADDR,
/*filter*/NULL, /*filterarg*/NULL,
diff --git a/sys/dev/aha/aha_isa.c b/sys/dev/aha/aha_isa.c
index dec2dfe..b6e0cb0 100644
--- a/sys/dev/aha/aha_isa.c
+++ b/sys/dev/aha/aha_isa.c
@@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: aha_isa.c,v 1.7 1999/04/16 21:22:19 peter Exp $
+ * $Id: aha_isa.c,v 1.8 1999/05/08 18:20:55 peter Exp $
*/
#include "pnp.h"
@@ -182,7 +182,7 @@ aha_isa_attach(dev)
filter_arg = NULL;
lowaddr = BUS_SPACE_MAXADDR_24BIT;
- if (bus_dma_tag_create(/*parent*/NULL, /*alignemnt*/0, /*boundary*/0,
+ if (bus_dma_tag_create(/*parent*/NULL, /*alignemnt*/1, /*boundary*/0,
lowaddr, /*highaddr*/BUS_SPACE_MAXADDR,
filter, filter_arg,
/*maxsize*/BUS_SPACE_MAXSIZE_24BIT,
OpenPOWER on IntegriCloud