Date: Tue, 5 Sep 2006 19:18:30 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 105689 for review Message-ID: <200609051918.k85JIU6d096345@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=105689 Change 105689 by hselasky@hselasky_mini_itx on 2006/09/05 19:18:11 Define "device_get_dma_tag()" to "bus_get_dma_tag()", when "bus_get_dma_tag()" is available on FreeBSD. Affected files ... .. //depot/projects/usb/src/sys/dev/usb/usb_subr.h#20 edit Differences ... ==== //depot/projects/usb/src/sys/dev/usb/usb_subr.h#20 (text+ko) ==== @@ -738,8 +738,12 @@ usbd_mem_free_sub(struct usbd_page *page); #ifdef __FreeBSD__ +#if (__FreeBSD_version >= 700020) +#define device_get_dma_tag(dev) bus_get_dma_tag(dev) +#else #define device_get_dma_tag(dev) NULL /* XXX */ #endif +#endif void usbd_std_transfer_setup(struct usbd_xfer *xfer, const struct usbd_config *setup,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609051918.k85JIU6d096345>