add EFIAPI to the library functions.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3495 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qwang12
2007-07-30 07:54:23 +00:00
parent 81221fc690
commit f178734977
2 changed files with 28 additions and 0 deletions

View File

@@ -24,6 +24,7 @@
#define TIMEOUT_VALUE 3 * 1000 #define TIMEOUT_VALUE 3 * 1000
EFI_STATUS EFI_STATUS
EFIAPI
UsbGetHidDescriptor ( UsbGetHidDescriptor (
IN EFI_USB_IO_PROTOCOL *UsbIo, IN EFI_USB_IO_PROTOCOL *UsbIo,
IN UINT8 InterfaceNum, IN UINT8 InterfaceNum,
@@ -31,6 +32,7 @@ UsbGetHidDescriptor (
); );
EFI_STATUS EFI_STATUS
EFIAPI
UsbGetReportDescriptor ( UsbGetReportDescriptor (
IN EFI_USB_IO_PROTOCOL *UsbIo, IN EFI_USB_IO_PROTOCOL *UsbIo,
IN UINT8 InterfaceNum, IN UINT8 InterfaceNum,
@@ -39,6 +41,7 @@ UsbGetReportDescriptor (
); );
EFI_STATUS EFI_STATUS
EFIAPI
UsbGetProtocolRequest ( UsbGetProtocolRequest (
IN EFI_USB_IO_PROTOCOL *UsbIo, IN EFI_USB_IO_PROTOCOL *UsbIo,
IN UINT8 Interface, IN UINT8 Interface,
@@ -46,6 +49,7 @@ UsbGetProtocolRequest (
); );
EFI_STATUS EFI_STATUS
EFIAPI
UsbSetProtocolRequest ( UsbSetProtocolRequest (
IN EFI_USB_IO_PROTOCOL *UsbIo, IN EFI_USB_IO_PROTOCOL *UsbIo,
IN UINT8 Interface, IN UINT8 Interface,
@@ -53,6 +57,7 @@ UsbSetProtocolRequest (
); );
EFI_STATUS EFI_STATUS
EFIAPI
UsbSetIdleRequest ( UsbSetIdleRequest (
IN EFI_USB_IO_PROTOCOL *UsbIo, IN EFI_USB_IO_PROTOCOL *UsbIo,
IN UINT8 Interface, IN UINT8 Interface,
@@ -61,6 +66,7 @@ UsbSetIdleRequest (
); );
EFI_STATUS EFI_STATUS
EFIAPI
UsbGetIdleRequest ( UsbGetIdleRequest (
IN EFI_USB_IO_PROTOCOL *UsbIo, IN EFI_USB_IO_PROTOCOL *UsbIo,
IN UINT8 Interface, IN UINT8 Interface,
@@ -69,6 +75,7 @@ UsbGetIdleRequest (
); );
EFI_STATUS EFI_STATUS
EFIAPI
UsbSetReportRequest ( UsbSetReportRequest (
IN EFI_USB_IO_PROTOCOL *UsbIo, IN EFI_USB_IO_PROTOCOL *UsbIo,
IN UINT8 Interface, IN UINT8 Interface,
@@ -79,6 +86,7 @@ UsbSetReportRequest (
); );
EFI_STATUS EFI_STATUS
EFIAPI
UsbGetReportRequest ( UsbGetReportRequest (
IN EFI_USB_IO_PROTOCOL *UsbIo, IN EFI_USB_IO_PROTOCOL *UsbIo,
IN UINT8 Interface, IN UINT8 Interface,
@@ -104,6 +112,7 @@ UsbGetDescriptor (
); );
EFI_STATUS EFI_STATUS
EFIAPI
UsbSetDescriptor ( UsbSetDescriptor (
IN EFI_USB_IO_PROTOCOL *UsbIo, IN EFI_USB_IO_PROTOCOL *UsbIo,
IN UINT16 Value, IN UINT16 Value,
@@ -114,6 +123,7 @@ UsbSetDescriptor (
); );
EFI_STATUS EFI_STATUS
EFIAPI
UsbGetInterface ( UsbGetInterface (
IN EFI_USB_IO_PROTOCOL *UsbIo, IN EFI_USB_IO_PROTOCOL *UsbIo,
IN UINT16 Index, IN UINT16 Index,
@@ -122,6 +132,7 @@ UsbGetInterface (
); );
EFI_STATUS EFI_STATUS
EFIAPI
UsbSetInterface ( UsbSetInterface (
IN EFI_USB_IO_PROTOCOL *UsbIo, IN EFI_USB_IO_PROTOCOL *UsbIo,
IN UINT16 InterfaceNo, IN UINT16 InterfaceNo,
@@ -130,6 +141,7 @@ UsbSetInterface (
); );
EFI_STATUS EFI_STATUS
EFIAPI
UsbGetConfiguration ( UsbGetConfiguration (
IN EFI_USB_IO_PROTOCOL *UsbIo, IN EFI_USB_IO_PROTOCOL *UsbIo,
OUT UINT8 *ConfigValue, OUT UINT8 *ConfigValue,
@@ -137,6 +149,7 @@ UsbGetConfiguration (
); );
EFI_STATUS EFI_STATUS
EFIAPI
UsbSetConfiguration ( UsbSetConfiguration (
IN EFI_USB_IO_PROTOCOL *UsbIo, IN EFI_USB_IO_PROTOCOL *UsbIo,
IN UINT16 Value, IN UINT16 Value,
@@ -144,6 +157,7 @@ UsbSetConfiguration (
); );
EFI_STATUS EFI_STATUS
EFIAPI
UsbSetFeature ( UsbSetFeature (
IN EFI_USB_IO_PROTOCOL *UsbIo, IN EFI_USB_IO_PROTOCOL *UsbIo,
IN UINTN Recipient, IN UINTN Recipient,
@@ -153,6 +167,7 @@ UsbSetFeature (
); );
EFI_STATUS EFI_STATUS
EFIAPI
UsbClearFeature ( UsbClearFeature (
IN EFI_USB_IO_PROTOCOL *UsbIo, IN EFI_USB_IO_PROTOCOL *UsbIo,
IN UINTN Recipient, IN UINTN Recipient,
@@ -162,6 +177,7 @@ UsbClearFeature (
); );
EFI_STATUS EFI_STATUS
EFIAPI
UsbGetStatus ( UsbGetStatus (
IN EFI_USB_IO_PROTOCOL *UsbIo, IN EFI_USB_IO_PROTOCOL *UsbIo,
IN UINTN Recipient, IN UINTN Recipient,
@@ -171,6 +187,7 @@ UsbGetStatus (
); );
EFI_STATUS EFI_STATUS
EFIAPI
UsbGetHubDescriptor ( UsbGetHubDescriptor (
IN EFI_USB_IO_PROTOCOL *UsbIo, IN EFI_USB_IO_PROTOCOL *UsbIo,
IN UINT16 Value, IN UINT16 Value,
@@ -184,6 +201,7 @@ UsbGetHubDescriptor (
// Clear endpoint stall // Clear endpoint stall
// //
EFI_STATUS EFI_STATUS
EFIAPI
UsbClearEndpointHalt ( UsbClearEndpointHalt (
IN EFI_USB_IO_PROTOCOL *UsbIo, IN EFI_USB_IO_PROTOCOL *UsbIo,
IN UINT8 EndpointNo, IN UINT8 EndpointNo,

View File

@@ -32,6 +32,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI
UsbGetDescriptor ( UsbGetDescriptor (
IN EFI_USB_IO_PROTOCOL *UsbIo, IN EFI_USB_IO_PROTOCOL *UsbIo,
IN UINT16 Value, IN UINT16 Value,
@@ -83,6 +84,7 @@ UsbGetDescriptor (
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI
UsbSetDescriptor ( UsbSetDescriptor (
IN EFI_USB_IO_PROTOCOL *UsbIo, IN EFI_USB_IO_PROTOCOL *UsbIo,
IN UINT16 Value, IN UINT16 Value,
@@ -132,6 +134,7 @@ UsbSetDescriptor (
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI
UsbGetInterface ( UsbGetInterface (
IN EFI_USB_IO_PROTOCOL *UsbIo, IN EFI_USB_IO_PROTOCOL *UsbIo,
IN UINT16 Index, IN UINT16 Index,
@@ -178,6 +181,7 @@ UsbGetInterface (
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI
UsbSetInterface ( UsbSetInterface (
IN EFI_USB_IO_PROTOCOL *UsbIo, IN EFI_USB_IO_PROTOCOL *UsbIo,
IN UINT16 InterfaceNo, IN UINT16 InterfaceNo,
@@ -224,6 +228,7 @@ UsbSetInterface (
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI
UsbGetConfiguration ( UsbGetConfiguration (
IN EFI_USB_IO_PROTOCOL *UsbIo, IN EFI_USB_IO_PROTOCOL *UsbIo,
OUT UINT8 *ConfigValue, OUT UINT8 *ConfigValue,
@@ -267,6 +272,7 @@ UsbGetConfiguration (
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI
UsbSetConfiguration ( UsbSetConfiguration (
IN EFI_USB_IO_PROTOCOL *UsbIo, IN EFI_USB_IO_PROTOCOL *UsbIo,
IN UINT16 Value, IN UINT16 Value,
@@ -312,6 +318,7 @@ UsbSetConfiguration (
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI
UsbSetFeature ( UsbSetFeature (
IN EFI_USB_IO_PROTOCOL *UsbIo, IN EFI_USB_IO_PROTOCOL *UsbIo,
IN UINTN Recipient, IN UINTN Recipient,
@@ -377,6 +384,7 @@ UsbSetFeature (
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI
UsbClearFeature ( UsbClearFeature (
IN EFI_USB_IO_PROTOCOL *UsbIo, IN EFI_USB_IO_PROTOCOL *UsbIo,
IN UINTN Recipient, IN UINTN Recipient,
@@ -442,6 +450,7 @@ UsbClearFeature (
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI
UsbGetStatus ( UsbGetStatus (
IN EFI_USB_IO_PROTOCOL *UsbIo, IN EFI_USB_IO_PROTOCOL *UsbIo,
IN UINTN Recipient, IN UINTN Recipient,
@@ -506,6 +515,7 @@ UsbGetStatus (
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI
UsbClearEndpointHalt ( UsbClearEndpointHalt (
IN EFI_USB_IO_PROTOCOL *UsbIo, IN EFI_USB_IO_PROTOCOL *UsbIo,
IN UINT8 EndpointNo, IN UINT8 EndpointNo,