summaryrefslogtreecommitdiffstats
path: root/sys/i386/eisa
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/i386/eisa
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/i386/eisa')
-rw-r--r--sys/i386/eisa/adv_eisa.c6
-rw-r--r--sys/i386/eisa/ahb.c6
-rw-r--r--sys/i386/eisa/ahc_eisa.c4
-rw-r--r--sys/i386/eisa/bt_eisa.c4
-rw-r--r--sys/i386/eisa/dpt_eisa.c4
5 files changed, 12 insertions, 12 deletions
diff --git a/sys/i386/eisa/adv_eisa.c b/sys/i386/eisa/adv_eisa.c
index 36c9758..4b475d3 100644
--- a/sys/i386/eisa/adv_eisa.c
+++ b/sys/i386/eisa/adv_eisa.c
@@ -32,7 +32,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: adv_eisa.c,v 1.4 1999/05/08 21:59:16 dfr Exp $
+ * $Id: adv_eisa.c,v 1.5 1999/08/01 22:57:08 mdodd Exp $
*/
#include "eisa.h"
@@ -178,7 +178,7 @@ adveisaattach(device_t dev)
* by the MI portions of the advansys driver
*/
/* XXX Should be a child of the PCI bus dma tag */
- error = bus_dma_tag_create(/*parent*/NULL, /*alignment*/0,
+ error = bus_dma_tag_create(/*parent*/NULL, /*alignment*/1,
/*boundary*/0,
/*lowaddr*/ADV_EISA_MAX_DMA_ADDR,
/*highaddr*/BUS_SPACE_MAXADDR,
@@ -213,7 +213,7 @@ adveisaattach(device_t dev)
* by the MI portions of the advansys driver
*/
/* XXX Should be a child of the PCI bus dma tag */
- error = bus_dma_tag_create(/*parent*/NULL, /*alignment*/0,
+ error = bus_dma_tag_create(/*parent*/NULL, /*alignment*/1,
/*boundary*/0,
/*lowaddr*/ADV_EISA_MAX_DMA_ADDR,
/*highaddr*/BUS_SPACE_MAXADDR,
diff --git a/sys/i386/eisa/ahb.c b/sys/i386/eisa/ahb.c
index 7ae7bd1..a1dc84a 100644
--- a/sys/i386/eisa/ahb.c
+++ b/sys/i386/eisa/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,
diff --git a/sys/i386/eisa/ahc_eisa.c b/sys/i386/eisa/ahc_eisa.c
index f11d563..3945018 100644
--- a/sys/i386/eisa/ahc_eisa.c
+++ b/sys/i386/eisa/ahc_eisa.c
@@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: ahc_eisa.c,v 1.10 1999/05/17 21:56:00 gibbs Exp $
+ * $Id: ahc_eisa.c,v 1.11 1999/08/01 22:57:08 mdodd Exp $
*/
#include "eisa.h"
@@ -166,7 +166,7 @@ aic7770_attach(device_t dev)
}
/* XXX Should be a child of the EISA bus dma tag */
- 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,
diff --git a/sys/i386/eisa/bt_eisa.c b/sys/i386/eisa/bt_eisa.c
index eaaee0d..d9cb584 100644
--- a/sys/i386/eisa/bt_eisa.c
+++ b/sys/i386/eisa/bt_eisa.c
@@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: bt_eisa.c,v 1.7 1999/05/08 21:59:18 dfr Exp $
+ * $Id: bt_eisa.c,v 1.8 1999/08/01 22:57:08 mdodd Exp $
*/
#include "eisa.h"
@@ -300,7 +300,7 @@ bt_eisa_attach(device_t dev)
/* Allocate a dmatag for our SCB DMA maps */
/* XXX Should be a child of the PCI 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,
diff --git a/sys/i386/eisa/dpt_eisa.c b/sys/i386/eisa/dpt_eisa.c
index 0c376f4..caeab91 100644
--- a/sys/i386/eisa/dpt_eisa.c
+++ b/sys/i386/eisa/dpt_eisa.c
@@ -33,7 +33,7 @@
*/
/*
- * $Id: dpt_eisa.c,v 1.6 1999/05/08 21:59:19 dfr Exp $
+ * $Id: dpt_eisa.c,v 1.7 1999/08/01 22:57:09 mdodd Exp $
*/
#include "eisa.h"
@@ -147,7 +147,7 @@ dpt_eisa_attach(device_t dev)
/* Allocate a dmatag representing the capabilities of this attachment */
/* XXX Should be a child of the EISA bus dma tag */
- if (bus_dma_tag_create(/*parent*/NULL, /*alignemnt*/0, /*boundary*/0,
+ if (bus_dma_tag_create(/*parent*/NULL, /*alignemnt*/1, /*boundary*/0,
/*lowaddr*/BUS_SPACE_MAXADDR_32BIT,
/*highaddr*/BUS_SPACE_MAXADDR,
/*filter*/NULL, /*filterarg*/NULL,
OpenPOWER on IntegriCloud