current uefi spec only supports interrupt in endpoint.
but there are usb devices which support interrupt out endpoint. we propose to update uefi spec to remove the limitation. after the ecr is approved, the corresponding patch will be submitted.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10205
6f19259b-4bc3-4df7-8a09-
765794883524
//\r
// Validate parameters\r
//\r
- if (!(EndPointAddress >= 0x01 && EndPointAddress <= 0x0F)\r
- && !(EndPointAddress >= 0x81 && EndPointAddress <= 0x8F)) {\r
+ if (!EHCI_IS_DATAIN (EndPointAddress)) {\r
return EFI_INVALID_PARAMETER;\r
}\r
\r
return EFI_INVALID_PARAMETER;\r
}\r
\r
- if (!(EndPointAddress >= 0x01 && EndPointAddress <= 0x0F)\r
- && !(EndPointAddress >= 0x81 && EndPointAddress <= 0x8F)) {\r
+ if (!EHCI_IS_DATAIN (EndPointAddress)) {\r
return EFI_INVALID_PARAMETER;\r
}\r
\r