From c1664fa91ae2fda93ee5cb64ad1c4d77afb6e717 Mon Sep 17 00:00:00 2001 From: gibbs Date: Mon, 16 Aug 1999 01:52:21 +0000 Subject: 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. --- sys/dev/ida/ida.c | 6 +++--- sys/dev/ida/ida_pci.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/dev/ida') diff --git a/sys/dev/ida/ida.c b/sys/dev/ida/ida.c index 00fbc27..b7fca56 100644 --- a/sys/dev/ida/ida.c +++ b/sys/dev/ida/ida.c @@ -27,7 +27,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: ida.c,v 1.1 1999/06/24 03:31:57 jlemon Exp $ */ /* @@ -192,7 +192,7 @@ ida_init(struct ida_softc *ida) /* DMA tag for our hardware QCB structures */ error = bus_dma_tag_create(ida->parent_dmat, - /*alignment*/0, /*boundary*/0, + /*alignment*/1, /*boundary*/0, /*lowaddr*/BUS_SPACE_MAXADDR, /*highaddr*/BUS_SPACE_MAXADDR, /*filter*/NULL, /*filterarg*/NULL, IDA_QCB_MAX * sizeof(struct ida_hardware_qcb), @@ -203,7 +203,7 @@ ida_init(struct ida_softc *ida) /* DMA tag for mapping buffers into device space */ error = bus_dma_tag_create(ida->parent_dmat, - /*alignment*/0, /*boundary*/0, + /*alignment*/1, /*boundary*/0, /*lowaddr*/BUS_SPACE_MAXADDR, /*highaddr*/BUS_SPACE_MAXADDR, /*filter*/NULL, /*filterarg*/NULL, /*maxsize*/MAXBSIZE, /*nsegments*/IDA_NSEG, diff --git a/sys/dev/ida/ida_pci.c b/sys/dev/ida/ida_pci.c index 6f5e260..330ce7c 100644 --- a/sys/dev/ida/ida_pci.c +++ b/sys/dev/ida/ida_pci.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ida_pci.c,v 1.2 1999/07/03 20:17:02 peter Exp $ + * $Id: ida_pci.c,v 1.3 1999/07/29 01:03:02 mdodd Exp $ */ #include @@ -145,7 +145,7 @@ ida_pci_attach(device_t dev) return (ENOMEM); } - error = bus_dma_tag_create(/*parent*/NULL, /*alignment*/0, + error = bus_dma_tag_create(/*parent*/NULL, /*alignment*/1, /*boundary*/0, /*lowaddr*/BUS_SPACE_MAXADDR_32BIT, /*highaddr*/BUS_SPACE_MAXADDR, /*filter*/NULL, /*filterarg*/NULL, /*maxsize*/MAXBSIZE, /*nsegments*/IDA_NSEG, -- cgit v1.1