diff options
author | gibbs <gibbs@FreeBSD.org> | 1999-08-16 01:52:21 +0000 |
---|---|---|
committer | gibbs <gibbs@FreeBSD.org> | 1999-08-16 01:52:21 +0000 |
commit | c1664fa91ae2fda93ee5cb64ad1c4d77afb6e717 (patch) | |
tree | aeb7275b83829ac29cbd76a255c27c321b19b1cb /sys/dev/ahb | |
parent | eac569c095293fabb1bc2043fb4c4f3431f63029 (diff) | |
download | FreeBSD-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/ahb')
-rw-r--r-- | sys/dev/ahb/ahb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ahb/ahb.c b/sys/dev/ahb/ahb.c index 7ae7bd1..a1dc84a 100644 --- a/sys/dev/ahb/ahb.c +++ b/sys/dev/ahb/ahb.c @@ -25,7 +25,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ahb.c,v 1.12 1999/05/08 21:59:17 dfr Exp $ + * $Id: ahb.c,v 1.13 1999/08/01 22:57:08 mdodd Exp $ */ #include "eisa.h" @@ -299,7 +299,7 @@ ahbattach(device_t dev) */ /* DMA tag for mapping buffers into device visible space. */ /* XXX Should be a child of the EISA bus dma tag */ - if (bus_dma_tag_create(/*parent*/NULL, /*alignment*/0, /*boundary*/0, + if (bus_dma_tag_create(/*parent*/NULL, /*alignment*/1, /*boundary*/0, /*lowaddr*/BUS_SPACE_MAXADDR_32BIT, /*highaddr*/BUS_SPACE_MAXADDR, /*filter*/NULL, /*filterarg*/NULL, @@ -312,7 +312,7 @@ ahbattach(device_t dev) ahb->init_level++; /* DMA tag for our ccb structures and ha inquiry data */ - if (bus_dma_tag_create(/*parent*/NULL, /*alignment*/0, /*boundary*/0, + if (bus_dma_tag_create(/*parent*/NULL, /*alignment*/1, /*boundary*/0, /*lowaddr*/BUS_SPACE_MAXADDR_32BIT, /*highaddr*/BUS_SPACE_MAXADDR, /*filter*/NULL, /*filterarg*/NULL, |