socsvn commit: r255030 - soc2013/bguan/head/sys/dev/xen/usbfront

bguan at FreeBSD.org bguan at FreeBSD.org
Mon Jul 22 07:53:00 UTC 2013


Author: bguan
Date: Mon Jul 22 07:53:00 2013
New Revision: 255030
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=255030

Log:
  move usb_bus_methods to .c file

Modified:
  soc2013/bguan/head/sys/dev/xen/usbfront/xenhci.c

Modified: soc2013/bguan/head/sys/dev/xen/usbfront/xenhci.c
==============================================================================
--- soc2013/bguan/head/sys/dev/xen/usbfront/xenhci.c	Mon Jul 22 07:52:47 2013	(r255029)
+++ soc2013/bguan/head/sys/dev/xen/usbfront/xenhci.c	Mon Jul 22 07:53:00 2013	(r255030)
@@ -26,15 +26,6 @@
  * SUCH DAMAGE.
  */
 
-/*
- * USB eXtensible Host Controller Interface, a.k.a. USB 3.0 controller.
- *
- * The XHCI 1.0 spec can be found at
- * http://www.intel.com/technology/usb/download/xHCI_Specification_for_USB.pdf
- * and the USB 3.0 spec at
- * http://www.usb.org/developers/docs/usb_30_spec_060910.zip
- */
-
 #ifdef USB_GLOBAL_INCLUDE_FILE
 #include USB_GLOBAL_INCLUDE_FILE
 #else
@@ -60,7 +51,7 @@
 #include <dev/usb/usb.h>
 #include <dev/usb/usbdi.h>
 
-#define	USB_DEBUG_VAR xhcidebug
+//#define	USB_DEBUG_VAR xhcidebug
 
 #include <dev/usb/usb_core.h>
 #include <dev/usb/usb_debug.h>
@@ -79,15 +70,6 @@
 
 extern struct usb_bus_methods xenhci_bus_methods;
 
-
-static void
-xenhci_iterate_hw_softc(struct usb_bus *bus, usb_bus_mem_sub_cb_t *cb)
-{
-
-	printf("[gbtest-xenhci.c]xenhci_iterate_hw_softc()\n");
-	//TODO
-}
-
 usb_error_t
 xenhci_init(struct xenhci_softc *sc, device_t dev)
 {
@@ -112,6 +94,23 @@
 	//TODO
 }
 
+static void
+xenhci_set_hw_power_sleep(struct usb_bus *bus, uint32_t state)
+{
+	printf("[gbtest-pv]xenhci.c: xenhci_set_hw_power_sleep()\n");
+	//TODO
+}
+
+static usb_error_t
+xenhci_set_address(struct usb_device *udev, struct mtx *mtx, uint16_t address)
+{
+	printf("[gbtest-pv]xenhci.c: xenhci_set_address()\n");
+	//usb_error_t err;
+
+	//return (err);
+	//TODO
+	return (0);
+}
 /*------------------------------------------------------------------------*
  * xenhci root HUB support
  *------------------------------------------------------------------------*
@@ -216,7 +215,8 @@
 xenhci_set_hw_power(struct usb_bus *bus)
 {
 	printf("[gbtest-pv]xenhci.c: xenhci_set_hw_power()\n");
-	DPRINTF("\n");
+	//DPRINTF("\n");
+	//TODO??
 }
 
 static void


More information about the svn-soc-all mailing list