Re: can a valid bus_dma_tag_t be NULL ?

From: M. Warner Losh <imp_at_bsdimp.com>
Date: Thu, 22 Feb 2007 14:54:16 -0700 (MST)
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
Received on Thu Feb 22 2007 - 20:55:30 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:05 UTC