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.
This commit is contained in:
Scott Long 2006-04-27 23:03:00 +00:00
parent a421d57149
commit a6456c02ba
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158093

View File

@ -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,