Date: Mon, 22 Jul 2013 07:52:47 GMT From: bguan@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r255029 - soc2013/bguan/head/sys/dev/xen/usbfront Message-ID: <201307220752.r6M7qlpK022719@socsvn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307220752.r6M7qlpK022719>