]> git.proxmox.com Git - mirror_edk2.git/commitdiff
add EFIAPI to the library functions.
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 30 Jul 2007 07:54:23 +0000 (07:54 +0000)
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 30 Jul 2007 07:54:23 +0000 (07:54 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3495 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Include/Library/UsbLib.h
MdePkg/Library/UefiUsbLib/UsbDxeLib.c

index fc01e7d1c43edfd20e18f0f03ea4f5244da67237..276a3c87e5c26816a4670e721fbb8ed9a1f5b913 100644 (file)
@@ -24,6 +24,7 @@
 #define TIMEOUT_VALUE 3 * 1000\r
 \r
 EFI_STATUS\r
+EFIAPI\r
 UsbGetHidDescriptor (\r
   IN  EFI_USB_IO_PROTOCOL        *UsbIo,\r
   IN  UINT8                      InterfaceNum,\r
@@ -31,6 +32,7 @@ UsbGetHidDescriptor (
   );\r
 \r
 EFI_STATUS\r
+EFIAPI\r
 UsbGetReportDescriptor (\r
   IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
   IN  UINT8                   InterfaceNum,\r
@@ -39,6 +41,7 @@ UsbGetReportDescriptor (
   );\r
 \r
 EFI_STATUS\r
+EFIAPI\r
 UsbGetProtocolRequest (\r
   IN EFI_USB_IO_PROTOCOL     *UsbIo,\r
   IN UINT8                   Interface,\r
@@ -46,6 +49,7 @@ UsbGetProtocolRequest (
   );\r
 \r
 EFI_STATUS\r
+EFIAPI\r
 UsbSetProtocolRequest (\r
   IN EFI_USB_IO_PROTOCOL     *UsbIo,\r
   IN UINT8                   Interface,\r
@@ -53,6 +57,7 @@ UsbSetProtocolRequest (
   );\r
 \r
 EFI_STATUS\r
+EFIAPI\r
 UsbSetIdleRequest (\r
   IN EFI_USB_IO_PROTOCOL     *UsbIo,\r
   IN UINT8                   Interface,\r
@@ -61,6 +66,7 @@ UsbSetIdleRequest (
   );\r
 \r
 EFI_STATUS\r
+EFIAPI\r
 UsbGetIdleRequest (\r
   IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
   IN  UINT8                   Interface,\r
@@ -69,6 +75,7 @@ UsbGetIdleRequest (
   );\r
 \r
 EFI_STATUS\r
+EFIAPI\r
 UsbSetReportRequest (\r
   IN EFI_USB_IO_PROTOCOL     *UsbIo,\r
   IN UINT8                   Interface,\r
@@ -79,6 +86,7 @@ UsbSetReportRequest (
   );\r
 \r
 EFI_STATUS\r
+EFIAPI\r
 UsbGetReportRequest (\r
   IN EFI_USB_IO_PROTOCOL     *UsbIo,\r
   IN UINT8                   Interface,\r
@@ -104,6 +112,7 @@ UsbGetDescriptor (
   );\r
 \r
 EFI_STATUS\r
+EFIAPI\r
 UsbSetDescriptor (\r
   IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
   IN  UINT16                  Value,\r
@@ -114,6 +123,7 @@ UsbSetDescriptor (
   );\r
 \r
 EFI_STATUS\r
+EFIAPI\r
 UsbGetInterface (\r
   IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
   IN  UINT16                  Index,\r
@@ -122,6 +132,7 @@ UsbGetInterface (
   );\r
 \r
 EFI_STATUS\r
+EFIAPI\r
 UsbSetInterface (\r
   IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
   IN  UINT16                  InterfaceNo,\r
@@ -130,6 +141,7 @@ UsbSetInterface (
   );\r
 \r
 EFI_STATUS\r
+EFIAPI\r
 UsbGetConfiguration (\r
   IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
   OUT UINT8                   *ConfigValue,\r
@@ -137,6 +149,7 @@ UsbGetConfiguration (
   );\r
 \r
 EFI_STATUS\r
+EFIAPI\r
 UsbSetConfiguration (\r
   IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
   IN  UINT16                  Value,\r
@@ -144,6 +157,7 @@ UsbSetConfiguration (
   );\r
 \r
 EFI_STATUS\r
+EFIAPI\r
 UsbSetFeature (\r
   IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
   IN  UINTN                   Recipient,\r
@@ -153,6 +167,7 @@ UsbSetFeature (
   );\r
 \r
 EFI_STATUS\r
+EFIAPI\r
 UsbClearFeature (\r
   IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
   IN  UINTN                   Recipient,\r
@@ -162,6 +177,7 @@ UsbClearFeature (
   );\r
 \r
 EFI_STATUS\r
+EFIAPI\r
 UsbGetStatus (\r
   IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
   IN  UINTN                   Recipient,\r
@@ -171,6 +187,7 @@ UsbGetStatus (
   );\r
 \r
 EFI_STATUS\r
+EFIAPI\r
 UsbGetHubDescriptor (\r
   IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
   IN  UINT16                  Value,\r
@@ -184,6 +201,7 @@ UsbGetHubDescriptor (
 // Clear endpoint stall\r
 //\r
 EFI_STATUS\r
+EFIAPI\r
 UsbClearEndpointHalt (\r
   IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
   IN  UINT8                   EndpointNo,\r
index c8c89acc127ba5b5d4d09b942084f6d7f5847f2c..07fe0fe0f8df0e230f3013f30d04dddc0f974ade 100644 (file)
@@ -32,6 +32,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 UsbGetDescriptor (\r
   IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
   IN  UINT16                  Value,\r
@@ -83,6 +84,7 @@ UsbGetDescriptor (
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 UsbSetDescriptor (\r
   IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
   IN  UINT16                  Value,\r
@@ -132,6 +134,7 @@ UsbSetDescriptor (
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 UsbGetInterface (\r
   IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
   IN  UINT16                  Index,\r
@@ -178,6 +181,7 @@ UsbGetInterface (
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 UsbSetInterface (\r
   IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
   IN  UINT16                  InterfaceNo,\r
@@ -224,6 +228,7 @@ UsbSetInterface (
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 UsbGetConfiguration (\r
   IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
   OUT UINT8                   *ConfigValue,\r
@@ -267,6 +272,7 @@ UsbGetConfiguration (
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 UsbSetConfiguration (\r
   IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
   IN  UINT16                  Value,\r
@@ -312,6 +318,7 @@ UsbSetConfiguration (
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 UsbSetFeature (\r
   IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
   IN  UINTN       Recipient,\r
@@ -377,6 +384,7 @@ UsbSetFeature (
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 UsbClearFeature (\r
   IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
   IN  UINTN       Recipient,\r
@@ -442,6 +450,7 @@ UsbClearFeature (
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 UsbGetStatus (\r
   IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
   IN  UINTN       Recipient,\r
@@ -506,6 +515,7 @@ UsbGetStatus (
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 UsbClearEndpointHalt (\r
   IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
   IN  UINT8                   EndpointNo,\r