]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Library/UsbLib.h
add EFIAPI to the library functions.
[mirror_edk2.git] / MdePkg / Include / Library / UsbLib.h
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