aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/usb/usb_port.h
diff options
context:
space:
mode:
authorJohn-Mark Gurney <jmg@FreeBSD.org>2003-07-15 22:42:37 +0000
committerJohn-Mark Gurney <jmg@FreeBSD.org>2003-07-15 22:42:37 +0000
commit45dd937507e52d43331da591a1b2878f59372890 (patch)
tree432b2ece265fb55d907ec0301448b451531417cb /sys/dev/usb/usb_port.h
parent9f4b5407ca6e4ab8a05ebdd46a11a93632378c9a (diff)
downloadsrc-45dd937507e52d43331da591a1b2878f59372890.tar.gz
src-45dd937507e52d43331da591a1b2878f59372890.zip
make usb bus_dma aware.
Reviewed by: joe among others
Notes
Notes: svn path=/head/; revision=117653
Diffstat (limited to 'sys/dev/usb/usb_port.h')
-rw-r--r--sys/dev/usb/usb_port.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/usb/usb_port.h b/sys/dev/usb/usb_port.h
index 82bee013ed39..c48c582087af 100644
--- a/sys/dev/usb/usb_port.h
+++ b/sys/dev/usb/usb_port.h
@@ -360,7 +360,13 @@ MALLOC_DECLARE(M_USBHC);
#define USBDEVUNIT(bdev) device_get_unit(bdev)
#define USBGETSOFTC(bdev) (device_get_softc(bdev))
-#define DECLARE_USB_DMA_T typedef char * usb_dma_t
+#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;