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
This commit is contained in:
erictian
2010-02-28 13:00:58 +00:00
parent 1ae301da81
commit 592b87a46d
6 changed files with 87 additions and 54 deletions

View File

@@ -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;
}