diff options
author | erictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-04-28 05:02:54 +0000 |
---|---|---|
committer | erictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-04-28 05:02:54 +0000 |
commit | 09943f5ecc0fbc0c98c511c82703a0ba3b2b5819 (patch) | |
tree | b310bc63a57a610c7030fbb4100b976033133e57 /MdeModulePkg/Bus/Pci/EhciDxe/EhciReg.h | |
parent | 3e0587010e36d36d6374c8ca9956e9bfbc8da7a8 (diff) | |
download | edk2-platforms-09943f5ecc0fbc0c98c511c82703a0ba3b2b5819.tar.xz |
MdeModulePkg: Skip to manage usb debug port in EDKII EHCI driver if it's used by usb debug port driver
Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13226 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Bus/Pci/EhciDxe/EhciReg.h')
-rw-r--r-- | MdeModulePkg/Bus/Pci/EhciDxe/EhciReg.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/MdeModulePkg/Bus/Pci/EhciDxe/EhciReg.h b/MdeModulePkg/Bus/Pci/EhciDxe/EhciReg.h index d1f38d38f0..2347ee125f 100644 --- a/MdeModulePkg/Bus/Pci/EhciDxe/EhciReg.h +++ b/MdeModulePkg/Bus/Pci/EhciDxe/EhciReg.h @@ -2,7 +2,7 @@ This file contains the definination for host controller register operation routines.
-Copyright (c) 2007 - 2011, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2007 - 2012, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -89,6 +89,11 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. //
#define EHC_BAR_INDEX 0 // how many bytes away from USB_BASE to 0x10
+//
+// Debug port capability id
+//
+#define EHC_DEBUG_PORT_CAP_ID 0x0A
+
#define EHC_LINK_TERMINATED(Link) (((Link) & 0x01) != 0)
#define EHC_ADDR(High, QhHw32) \
@@ -131,6 +136,21 @@ EhcReadCapRegister ( IN UINT32 Offset
);
+/**
+ Read EHCI debug port register.
+
+ @param Ehc The EHCI device.
+ @param Offset Debug port register address.
+
+ @return The register content read.
+ @retval If err, return 0xffff.
+
+**/
+UINT32
+EhcReadDbgRegister (
+ IN USB2_HC_DEV *Ehc,
+ IN UINT32 Offset
+ );
/**
Read EHCI Operation register.
|