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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user