Date: Thu, 22 Feb 2007 14:54:16 -0700 (MST) From: "M. Warner Losh" <imp@bsdimp.com> To: gurney_j@resnet.uoregon.edu Cc: rizzo@icir.org, current@freebsd.org Subject: Re: can a valid bus_dma_tag_t be NULL ? Message-ID: <20070222.145416.1649769748.imp@bsdimp.com> In-Reply-To: <20070219224006.GC73385@funkthat.com> References: <20070219020725.A56400@xorpc.icir.org> <20070219224006.GC73385@funkthat.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In message: <20070219224006.GC73385@funkthat.com> John-Mark Gurney <gurney_j@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070222.145416.1649769748.imp>