From 2d8a3c1354e24b4da5c68f2daaf3d4eff7f6180c Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Mon, 1 Dec 2008 13:51:41 +0000 Subject: Update the API of UsbGetInterface() & UsbGetConfiguration () to follow MdeLib spec. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6792 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/UefiUsbLib/UsbDxeLib.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'MdePkg/Library') diff --git a/MdePkg/Library/UefiUsbLib/UsbDxeLib.c b/MdePkg/Library/UefiUsbLib/UsbDxeLib.c index 33ca21b3c9..35b1880ce5 100644 --- a/MdePkg/Library/UefiUsbLib/UsbDxeLib.c +++ b/MdePkg/Library/UefiUsbLib/UsbDxeLib.c @@ -167,7 +167,7 @@ EFIAPI UsbGetInterface ( IN EFI_USB_IO_PROTOCOL *UsbIo, IN UINT16 Interface, - OUT UINT8 *AlternateSetting, + OUT UINT16 *AlternateSetting, OUT UINT32 *Status ) { @@ -190,7 +190,7 @@ UsbGetInterface ( EfiUsbDataIn, TIMEOUT_VALUE, AlternateSetting, - 1, + 2, Status ); } @@ -273,7 +273,7 @@ EFI_STATUS EFIAPI UsbGetConfiguration ( IN EFI_USB_IO_PROTOCOL *UsbIo, - OUT UINT8 *ConfigurationValue, + OUT UINT16 *ConfigurationValue, OUT UINT32 *Status ) { @@ -295,7 +295,7 @@ UsbGetConfiguration ( EfiUsbDataIn, TIMEOUT_VALUE, ConfigurationValue, - 1, + 2, Status ); } -- cgit v1.2.3