diff options
author | erictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-02-28 13:00:58 +0000 |
---|---|---|
committer | erictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-02-28 13:00:58 +0000 |
commit | 592b87a46de52d69471379cc619b264360f8613b (patch) | |
tree | 05eba856721790aa3af8834a7d555eb222222be4 /MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c | |
parent | 1ae301da81823ea3ab401e6b6da5ede8cb43100c (diff) | |
download | edk2-592b87a46de52d69471379cc619b264360f8613b.tar.gz edk2-592b87a46de52d69471379cc619b264360f8613b.tar.bz2 edk2-592b87a46de52d69471379cc619b264360f8613b.zip |
update Ehci driver to distinct pci memory address and host address
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10121 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c')
-rw-r--r-- | MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c b/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c index 3161ede949..6cf4aefea6 100644 --- a/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c +++ b/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c @@ -969,7 +969,8 @@ EhcAsyncInterruptTransfer ( //
// Validate parameters
//
- if (!EHCI_IS_DATAIN (EndPointAddress)) {
+ if (!(EndPointAddress >= 0x01 && EndPointAddress <= 0x0F)
+ && !(EndPointAddress >= 0x81 && EndPointAddress <= 0x8F)) {
return EFI_INVALID_PARAMETER;
}
@@ -1118,7 +1119,8 @@ EhcSyncInterruptTransfer ( return EFI_INVALID_PARAMETER;
}
- if (!EHCI_IS_DATAIN (EndPointAddress)) {
+ if (!(EndPointAddress >= 0x01 && EndPointAddress <= 0x0F)
+ && !(EndPointAddress >= 0x81 && EndPointAddress <= 0x8F)) {
return EFI_INVALID_PARAMETER;
}
|