diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-12-01 13:51:41 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-12-01 13:51:41 +0000 |
commit | 2d8a3c1354e24b4da5c68f2daaf3d4eff7f6180c (patch) | |
tree | 0d3bd58a5de4dab7b811caab36852696792a06f8 /MdePkg | |
parent | 16f476fbb896a2a329ee972c5a8861d51e0c36c5 (diff) | |
download | edk2-2d8a3c1354e24b4da5c68f2daaf3d4eff7f6180c.zip edk2-2d8a3c1354e24b4da5c68f2daaf3d4eff7f6180c.tar.gz edk2-2d8a3c1354e24b4da5c68f2daaf3d4eff7f6180c.tar.bz2 |
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
Diffstat (limited to 'MdePkg')
-rw-r--r-- | MdePkg/Include/Library/UefiUsbLib.h | 4 | ||||
-rw-r--r-- | MdePkg/Library/UefiUsbLib/UsbDxeLib.c | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/MdePkg/Include/Library/UefiUsbLib.h b/MdePkg/Include/Library/UefiUsbLib.h index ff2c70c..0594cea 100644 --- a/MdePkg/Include/Library/UefiUsbLib.h +++ b/MdePkg/Include/Library/UefiUsbLib.h @@ -349,7 +349,7 @@ EFIAPI UsbGetInterface (
IN EFI_USB_IO_PROTOCOL *UsbIo,
IN UINT16 Interface,
- OUT UINT8 *AlternateSetting,
+ OUT UINT16 *AlternateSetting,
OUT UINT32 *Status
);
@@ -406,7 +406,7 @@ EFI_STATUS EFIAPI
UsbGetConfiguration (
IN EFI_USB_IO_PROTOCOL *UsbIo,
- OUT UINT8 *ConfigurationValue,
+ OUT UINT16 *ConfigurationValue,
OUT UINT32 *Status
);
diff --git a/MdePkg/Library/UefiUsbLib/UsbDxeLib.c b/MdePkg/Library/UefiUsbLib/UsbDxeLib.c index 33ca21b..35b1880 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
);
}
|