]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Pci/EhciDxe/EhciReg.h
MdeModulePkg UhciPei: Remove redundant functions
[mirror_edk2.git] / MdeModulePkg / Bus / Pci / EhciDxe / EhciReg.h
index 98c2915b45f2be497b9e26be98d5431d85548a73..2347ee125fa72f95b35dddbd79f865e16e130c48 100644 (file)
@@ -2,7 +2,7 @@
 \r
   This file contains the definination for host controller register operation routines.\r
 \r
-Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2007 - 2012, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -32,6 +32,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 // Capability register bit definition\r
 //\r
 #define HCSP_NPORTS             0x0F // Number of root hub port\r
+#define HCSP_PPC                0x10 // Port Power Control\r
 #define HCCP_64BIT              0x01 // 64-bit addressing capability\r
 \r
 //\r
@@ -88,6 +89,11 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 //\r
 #define EHC_BAR_INDEX           0      // how many bytes away from USB_BASE to 0x10\r
 \r
+//\r
+// Debug port capability id\r
+//\r
+#define EHC_DEBUG_PORT_CAP_ID   0x0A\r
+\r
 #define EHC_LINK_TERMINATED(Link) (((Link) & 0x01) != 0)\r
 \r
 #define EHC_ADDR(High, QhHw32)   \\r
@@ -130,6 +136,21 @@ EhcReadCapRegister (
   IN  UINT32              Offset\r
   );\r
 \r
+/**\r
+  Read EHCI debug port register.\r
+\r
+  @param  Ehc          The EHCI device.\r
+  @param  Offset       Debug port register address.\r
+\r
+  @return The register content read.\r
+  @retval If err, return 0xffff.\r
+\r
+**/\r
+UINT32\r
+EhcReadDbgRegister (\r
+  IN  USB2_HC_DEV         *Ehc,\r
+  IN  UINT32              Offset\r
+  );\r
 \r
 /**\r
   Read EHCI Operation register.\r