]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Pci/UhciDxe/UhciReg.c
Make USB Stack code pass ECC tool check.
[mirror_edk2.git] / MdeModulePkg / Bus / Pci / UhciDxe / UhciReg.c
index 8bb0f2b19aa2c45523e5f994f316283dd2ed0ca7..0742f209d8a0e15f28d618bc232a032cbbfb7fe3 100644 (file)
@@ -53,7 +53,7 @@ UhciReadReg (
                       );\r
 \r
   if (EFI_ERROR (Status)) {\r
-    UHCI_ERROR (("UhciReadReg: PciIo Io.Read error: %r at offset %d\n", Status, Offset));\r
+    DEBUG ((EFI_D_ERROR, "UhciReadReg: PciIo Io.Read error: %r at offset %d\n", Status, Offset));\r
 \r
     Data = 0xFFFF;\r
   }\r
@@ -91,7 +91,7 @@ UhciWriteReg (
                       );\r
 \r
   if (EFI_ERROR (Status)) {\r
-    UHCI_ERROR (("UhciWriteReg: PciIo Io.Write error: %r at offset %d\n", Status, Offset));\r
+    DEBUG ((EFI_D_ERROR, "UhciWriteReg: PciIo Io.Write error: %r at offset %d\n", Status, Offset));\r
   }\r
 }\r
 \r
@@ -167,8 +167,8 @@ UhciAckAllInterrupt (
   // is a temporary error status.\r
   //\r
   if (!UhciIsHcWorking (Uhc->PciIo)) {\r
-    UHCI_ERROR (("UhciAckAllInterrupt: re-enable the UHCI from system error\n"));\r
-    Uhc->UsbHc.SetState (&Uhc->UsbHc, EfiUsbHcStateOperational);\r
+    DEBUG ((EFI_D_ERROR, "UhciAckAllInterrupt: re-enable the UHCI from system error\n"));\r
+    Uhc->Usb2Hc.SetState (&Uhc->Usb2Hc, EfiUsbHcStateOperational);\r
   }\r
 }\r
 \r
@@ -186,8 +186,8 @@ UhciAckAllInterrupt (
 **/\r
 EFI_STATUS\r
 UhciStopHc (\r
-  IN USB_HC_DEV         *Uhc,\r
-  IN UINTN              Timeout\r
+  IN USB_HC_DEV        *Uhc,\r
+  IN UINTN             Timeout\r
   )\r
 {\r
   UINT16                UsbSts;\r
@@ -232,7 +232,7 @@ UhciIsHcWorking (
   UsbSts = UhciReadReg (PciIo, USBSTS_OFFSET);\r
 \r
   if (UsbSts & (USBSTS_HCPE | USBSTS_HSE | USBSTS_HCH)) {\r
-    UHCI_ERROR (("UhciIsHcWorking: current USB state is %x\n", UsbSts));\r
+    DEBUG ((EFI_D_ERROR, "UhciIsHcWorking: current USB state is %x\n", UsbSts));\r
     return FALSE;\r
   }\r
 \r
@@ -271,7 +271,7 @@ UhciSetFrameListBaseAddr (
                        );\r
 \r
   if (EFI_ERROR (Status)) {\r
-    UHCI_ERROR (("UhciSetFrameListBaseAddr: PciIo Io.Write error: %r\n", Status));\r
+    DEBUG ((EFI_D_ERROR, "UhciSetFrameListBaseAddr: PciIo Io.Write error: %r\n", Status));\r
   }\r
 }\r
 \r