1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-27 16:39:08 +00:00

Expand DECLARE_USB_DMA_T inline in the one place it is used and eliminate

from usb_port.h.
This commit is contained in:
Warner Losh 2007-06-11 06:21:50 +00:00
parent c02f7d824d
commit 930ed6f61b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=170546
2 changed files with 6 additions and 9 deletions

View File

@ -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) \

View File

@ -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;