socsvn commit: r255029 - soc2013/bguan/head/sys/dev/xen/usbfront
bguan at FreeBSD.org
bguan at FreeBSD.org
Mon Jul 22 07:52:47 UTC 2013
Author: bguan
Date: Mon Jul 22 07:52:47 2013
New Revision: 255029
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=255029
Log:
move usb_bus_methods to .c file
Modified:
soc2013/bguan/head/sys/dev/xen/usbfront/xenhci.h
Modified: soc2013/bguan/head/sys/dev/xen/usbfront/xenhci.h
==============================================================================
--- soc2013/bguan/head/sys/dev/xen/usbfront/xenhci.h Mon Jul 22 07:52:33 2013 (r255028)
+++ soc2013/bguan/head/sys/dev/xen/usbfront/xenhci.h Mon Jul 22 07:52:47 2013 (r255029)
@@ -29,6 +29,10 @@
#ifndef _USBFRONT_H_
#define _USBFRONT_H_
+#include <xen/interface/io/usbif.h>
+#include <xen/interface/io/ring.h>
+#include <xen/interface/grant_table.h>
+
#define XENHCI_MAX_DEVICES MIN(USB_MAX_DEVICES, 128)
/* USB ports. This is arbitrary.
@@ -38,6 +42,13 @@
*/
#define USB_MAXCHILDREN 31
+#ifdef DEBUG
+#define DPRINTK(fmt, args...) \
+ printf("[XEN] %s: " fmt, __func__, ##args)
+#else
+#define DPRINTK(fmt, args...)
+#endif
+
#define USB_URB_RING_SIZE __RING_SIZE((usbif_urb_sring_t *)0, PAGE_SIZE)
LIST_HEAD(list_head, list_head);
@@ -109,6 +120,7 @@
unsigned int waiting_resp;//
};
+
/* prototypes */
usb_error_t xenhci_init(struct xenhci_softc *, device_t);
More information about the svn-soc-all
mailing list