[Description]:

Add a feature flag in Uhci & Ehci to disable legacy USB SMI.
[Impaction]:
  Platform integrator can choose to legacy USB SMI or not.
[Reference Info]
  EDK Tracker 1082

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5081 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qhuang8 2008-04-17 11:02:59 +00:00
parent 90d44b32f4
commit dd4047a51c
7 changed files with 17 additions and 4 deletions

View File

@ -1580,7 +1580,9 @@ EhcDriverBindingStart (
// Robustnesss improvement such as for UoL // Robustnesss improvement such as for UoL
// Default is not required. // Default is not required.
// //
// EhcClearLegacySupport (Ehc); if (FeaturePcdGet (PcdUsbLegacySupport)) {
EhcClearLegacySupport (Ehc);
}
EhcResetHC (Ehc, EHC_RESET_TIMEOUT); EhcResetHC (Ehc, EHC_RESET_TIMEOUT);
Status = EhcInitHC (Ehc); Status = EhcInitHC (Ehc);

View File

@ -36,7 +36,7 @@ Revision History
#include <Library/UefiLib.h> #include <Library/UefiLib.h>
#include <Library/BaseLib.h> #include <Library/BaseLib.h>
#include <Library/MemoryAllocationLib.h> #include <Library/MemoryAllocationLib.h>
#include <Library/PcdLib.h>
#include <IndustryStandard/Pci22.h> #include <IndustryStandard/Pci22.h>

View File

@ -49,7 +49,10 @@
[Packages] [Packages]
MdePkg/MdePkg.dec MdePkg/MdePkg.dec
MdeModulePkg/MdeModulePkg.dec
[FeaturePcd]
gEfiMdeModulePkgTokenSpaceGuid.PcdUsbLegacySupport
[LibraryClasses] [LibraryClasses]
MemoryAllocationLib MemoryAllocationLib
@ -59,7 +62,7 @@
UefiDriverEntryPoint UefiDriverEntryPoint
BaseMemoryLib BaseMemoryLib
DebugLib DebugLib
PcdLib
[Protocols] [Protocols]
gEfiPciIoProtocolGuid # PROTOCOL ALWAYS_CONSUMED gEfiPciIoProtocolGuid # PROTOCOL ALWAYS_CONSUMED

View File

@ -1658,7 +1658,9 @@ UhciDriverBindingStart (
// Robustnesss improvement such as for UoL // Robustnesss improvement such as for UoL
// Default is not required. // Default is not required.
// //
// UhciTurnOffUsbEmulation (PciIo); if (FeaturePcdGet (PcdUsbLegacySupport)) {
UhciTurnOffUsbEmulation (PciIo);
}
Status = PciIo->Attributes ( Status = PciIo->Attributes (
PciIo, PciIo,

View File

@ -39,6 +39,7 @@ Revision History
#include <Library/UefiLib.h> #include <Library/UefiLib.h>
#include <Library/BaseLib.h> #include <Library/BaseLib.h>
#include <Library/MemoryAllocationLib.h> #include <Library/MemoryAllocationLib.h>
#include <Library/PcdLib.h>
#include <IndustryStandard/Pci22.h> #include <IndustryStandard/Pci22.h>

View File

@ -49,7 +49,10 @@
[Packages] [Packages]
MdePkg/MdePkg.dec MdePkg/MdePkg.dec
MdeModulePkg/MdeModulePkg.dec
[FeaturePcd]
gEfiMdeModulePkgTokenSpaceGuid.PcdUsbLegacySupport
[LibraryClasses] [LibraryClasses]
MemoryAllocationLib MemoryAllocationLib
@ -59,6 +62,7 @@
UefiDriverEntryPoint UefiDriverEntryPoint
BaseMemoryLib BaseMemoryLib
DebugLib DebugLib
PcdLib
[Protocols] [Protocols]

View File

@ -128,6 +128,7 @@
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreImageLoaderSearchTeSectionFirst|TRUE|BOOLEAN|0x00010044 gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreImageLoaderSearchTeSectionFirst|TRUE|BOOLEAN|0x00010044
gEfiMdeModulePkgTokenSpaceGuid.PcdSupportHardwareErrorRecord|FALSE|BOOLEAN|0x00010045 gEfiMdeModulePkgTokenSpaceGuid.PcdSupportHardwareErrorRecord|FALSE|BOOLEAN|0x00010045
gEfiMdeModulePkgTokenSpaceGuid.PcdUgaConsumeSupport|TRUE|BOOLEAN|0x00010046 gEfiMdeModulePkgTokenSpaceGuid.PcdUgaConsumeSupport|TRUE|BOOLEAN|0x00010046
gEfiMdeModulePkgTokenSpaceGuid.PcdUsbLegacySupport|FALSE|BOOLEAN|0x00010047
[PcdsFixedAtBuild.common] [PcdsFixedAtBuild.common]
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxPeiPcdCallBackNumberPerPcdEntry|0x08|UINT32|0x0001000f gEfiMdeModulePkgTokenSpaceGuid.PcdMaxPeiPcdCallBackNumberPerPcdEntry|0x08|UINT32|0x0001000f