Let OHCI miniport use shared code in drivers/usb/miniport/common/*, instead of duplic...
[reactos.git] / reactos / drivers / usb / miniport / usbohci / ohci-hcd.c
index 310217c..840c275 100644 (file)
 #else
 #include "ohci_config.h"
 
-#include "../usb_wrapper.h"
-#include "hcd.h"
+#include "../../usbport/hcd.h"
 
 //#define OHCI_VERBOSE_DEBUG
 #endif
@@ -626,6 +625,18 @@ int ohci_irq (struct usb_hcd *hcd, struct pt_regs *ptregs)
 
 /*-------------------------------------------------------------------------*/
 
+// HCFS itself
+static char *hcfs2string (int state)
+{
+       switch (state) {
+               case OHCI_USB_RESET: return "reset";
+               case OHCI_USB_RESUME: return "resume";
+               case OHCI_USB_OPER: return "operational";
+               case OHCI_USB_SUSPEND: return "suspend";
+       }
+       return "?";
+}
+
 static void ohci_stop (struct usb_hcd *hcd)
 {      
        struct ohci_hcd         *ohci = hcd_to_ohci (hcd);