diff --git a/sys/dev/usb/usb_port.h b/sys/dev/usb/usb_port.h index 1f8fbc608a7..1a514e23924 100644 --- a/sys/dev/usb/usb_port.h +++ b/sys/dev/usb/usb_port.h @@ -74,14 +74,6 @@ MALLOC_DECLARE(M_USBHC); #define USBDEV(bdev) (bdev) #define USBGETSOFTC(bdev) (device_get_softc(bdev)) -#define DECLARE_USB_DMA_T \ - struct usb_dma_block; \ - typedef struct { \ - struct usb_dma_block *block; \ - u_int offs; \ - u_int len; \ - } usb_dma_t - typedef struct thread *usb_proc_ptr; #define usb_kthread_create1(f, s, p, a0, a1) \ diff --git a/sys/dev/usb/usbdivar.h b/sys/dev/usb/usbdivar.h index bab5b3c4f03..1c8386aa223 100644 --- a/sys/dev/usb/usbdivar.h +++ b/sys/dev/usb/usbdivar.h @@ -43,7 +43,12 @@ #endif /* From usb_mem.h */ -DECLARE_USB_DMA_T; +struct usb_dma_block; +typedef struct { + struct usb_dma_block *block; + u_int offs; + u_int len; +} usb_dma_t; struct usbd_xfer; struct usbd_pipe;