aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/bfe/if_bfe.c
diff options
context:
space:
mode:
authorScott Long <scottl@FreeBSD.org>2006-04-27 23:03:00 +0000
committerScott Long <scottl@FreeBSD.org>2006-04-27 23:03:00 +0000
commita6456c02ba69e838307cf04ae0e059615087cdc0 (patch)
tree7b32fd60f3969c7479ab35246fe7f5afaabc07b1 /sys/dev/bfe/if_bfe.c
parenta421d57149b6458af9a55c0f7579f5556deeb7ae (diff)
downloadsrc-a6456c02ba69e838307cf04ae0e059615087cdc0.tar.gz
src-a6456c02ba69e838307cf04ae0e059615087cdc0.zip
The alignment parameter to busdma must be a power of two, while the if_bfe
driver was trying to use an arbitrary rx/tx ring size of the value. Change to using unrestricted values for alignment and boundary instead.
Notes
Notes: svn path=/head/; revision=158093
Diffstat (limited to 'sys/dev/bfe/if_bfe.c')
-rw-r--r--sys/dev/bfe/if_bfe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/bfe/if_bfe.c b/sys/dev/bfe/if_bfe.c
index 3bdfc8fcb19b..f080b5d725d4 100644
--- a/sys/dev/bfe/if_bfe.c
+++ b/sys/dev/bfe/if_bfe.c
@@ -215,7 +215,7 @@ bfe_dma_alloc(device_t dev)
/* tag for TX ring */
error = bus_dma_tag_create(sc->bfe_parent_tag,
- BFE_TX_LIST_SIZE, BFE_TX_LIST_SIZE,
+ 1, 0,
BUS_SPACE_MAXADDR,
BUS_SPACE_MAXADDR,
NULL, NULL,
@@ -233,7 +233,7 @@ bfe_dma_alloc(device_t dev)
/* tag for RX ring */
error = bus_dma_tag_create(sc->bfe_parent_tag,
- BFE_RX_LIST_SIZE, BFE_RX_LIST_SIZE,
+ 1, 0,
BUS_SPACE_MAXADDR,
BUS_SPACE_MAXADDR,
NULL, NULL,