diff options
author | scottl <scottl@FreeBSD.org> | 2006-04-27 23:03:00 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2006-04-27 23:03:00 +0000 |
commit | af7045cc539bb529b657061cd6ea852120c27e51 (patch) | |
tree | 7b32fd60f3969c7479ab35246fe7f5afaabc07b1 | |
parent | ea70dc6afdd76bfe6a60bb9f54509b704b08dabb (diff) | |
download | FreeBSD-src-af7045cc539bb529b657061cd6ea852120c27e51.zip FreeBSD-src-af7045cc539bb529b657061cd6ea852120c27e51.tar.gz |
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.
-rw-r--r-- | sys/dev/bfe/if_bfe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/bfe/if_bfe.c b/sys/dev/bfe/if_bfe.c index 3bdfc8f..f080b5d 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, |