summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2008-03-20 03:09:59 +0000
committersam <sam@FreeBSD.org>2008-03-20 03:09:59 +0000
commit478b08fc656d9c6ed10ee2d3c7e96ab2b6905b0b (patch)
treeddc630578918df6b943bacf26ad615078af00935 /sys/dev
parent4274384df886076474f9e4974ea43b737e4e9e12 (diff)
downloadFreeBSD-src-478b08fc656d9c6ed10ee2d3c7e96ab2b6905b0b.zip
FreeBSD-src-478b08fc656d9c6ed10ee2d3c7e96ab2b6905b0b.tar.gz
add support for %b printing of request + xfer flags
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/usbdi.h2
-rw-r--r--sys/dev/usb/usbdivar.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/usb/usbdi.h b/sys/dev/usb/usbdi.h
index b3b26cf..cee2de0 100644
--- a/sys/dev/usb/usbdi.h
+++ b/sys/dev/usb/usbdi.h
@@ -88,6 +88,8 @@ typedef void (*usbd_callback)(usbd_xfer_handle, usbd_private_handle,
/* in usb.h #define USBD_SHORT_XFER_OK 0x04*/ /* allow short reads */
#define USBD_FORCE_SHORT_XFER 0x08 /* force last short packet on write */
+#define USBD_BITS "\20\1NO_COPY\2SYNCHRONOUS\4FORCE_SHORT_XFER"
+
#define USBD_NO_TIMEOUT 0
#define USBD_DEFAULT_TIMEOUT 5000 /* ms = 5 s */
diff --git a/sys/dev/usb/usbdivar.h b/sys/dev/usb/usbdivar.h
index 95d8e0e..603d691 100644
--- a/sys/dev/usb/usbdivar.h
+++ b/sys/dev/usb/usbdivar.h
@@ -240,6 +240,8 @@ struct usbd_xfer {
struct callout timeout_handle;
};
+#define URQ_BITS "\20\1REQUEST\5AUTO_DMABUF\6DEV_DMABUF"
+
void usbd_init(void);
void usbd_finish(void);
OpenPOWER on IntegriCloud