Change type of the DMA address so that on PAE platforms we get can

64-bit DMA addresses even though the USB stack currently only uses
32-bit DMA.

Suggested by:	Kohji Okuno <okuno.kohji@jp.panasonic.com>
This commit is contained in:
Hans Petter Selasky 2014-06-02 07:08:34 +00:00
parent 13fe9e6cb1
commit b2fa7d8104
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=266969

View File

@ -62,7 +62,7 @@ typedef void (usb_dma_callback_t)(struct usb_dma_parent_tag *udpt);
*/
struct usb_page {
#if USB_HAVE_BUSDMA
bus_size_t physaddr;
bus_addr_t physaddr;
void *buffer; /* non Kernel Virtual Address */
#endif
};
@ -75,7 +75,7 @@ struct usb_page {
struct usb_page_search {
void *buffer;
#if USB_HAVE_BUSDMA
bus_size_t physaddr;
bus_addr_t physaddr;
#endif
usb_size_t length;
};