can a valid bus_dma_tag_t be NULL ?
M. Warner Losh
imp at bsdimp.com
Thu Feb 22 21:55:30 UTC 2007
In message: <20070219224006.GC73385 at funkthat.com>
John-Mark Gurney <gurney_j at resnet.uoregon.edu> writes:
: > if (bus_dma_tag_create(NULL, 4, 0, BUS_SPACE_MAXADDR_32BIT,
: ^^^^
: This is incorrect, and should be: bus_get_dma_tag(dev), though that is
: correct for -stable, (or have we introduced bus_get_dma_tag into -stable?)
There's currently a compat shim:
#define bus_get_dma_tag(dev) NULL
so you shuold use it for both -current and -stable.
Warner
More information about the freebsd-current
mailing list