]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/DxeIoLibCpuIo/IoLib.c
add EFIAPI for those constructor funcitons declaration
[mirror_edk2.git] / MdePkg / Library / DxeIoLibCpuIo / IoLib.c
index fa3421bacad4fc95290d381a22b6c9d7b0e67e6f..4736c561dce609fa5bb3b4d071605c7c8c1206f9 100644 (file)
@@ -21,17 +21,18 @@ STATIC EFI_CPU_IO_PROTOCOL          *mCpuIo = NULL;
 \r
 /**\r
   The constructor function caches the pointer to CpuIo protocol.\r
-  \r
+\r
   The constructor function locates CpuIo protocol from protocol database.\r
-  It will ASSERT() if that operation fails and it will always return EFI_SUCCESS. \r
+  It will ASSERT() if that operation fails and it will always return EFI_SUCCESS.\r
 \r
   @param  ImageHandle   The firmware allocated handle for the EFI image.\r
   @param  SystemTable   A pointer to the EFI System Table.\r
-  \r
+\r
   @retval EFI_SUCCESS   The constructor always returns EFI_SUCCESS.\r
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 IoLibConstructor (\r
   IN      EFI_HANDLE                ImageHandle,\r
   IN      EFI_SYSTEM_TABLE          *SystemTable\r
@@ -53,9 +54,9 @@ IoLibConstructor (
   This function must guarantee that all I/O read and write operations are serialized.\r
 \r
   @param  Port          The base address of the I/O operation.\r
-                        The caller is responsible for aligning the Address if required. \r
+                        The caller is responsible for aligning the Address if required.\r
   @param  Width         The width of the I/O operation.\r
-  \r
+\r
   @return Data read from registers in the EFI CPU I/O space.\r
 \r
 **/\r
@@ -83,10 +84,10 @@ IoReadWorker (
   This function must guarantee that all I/O read and write operations are serialized.\r
 \r
   @param  Port          The base address of the I/O operation.\r
-                        The caller is responsible for aligning the Address if required. \r
+                        The caller is responsible for aligning the Address if required.\r
   @param  Width         The width of the I/O operation.\r
   @param  Data          The value to write to the I/O port.\r
-  \r
+\r
   @return The paramter of Data.\r
 \r
 **/\r
@@ -107,16 +108,16 @@ IoWriteWorker (
 }\r
 \r
 /**\r
-  Reads memory-mapped registers in the EFI system memory space. \r
+  Reads memory-mapped registers in the EFI system memory space.\r
 \r
   Reads the MMIO registers specified by Address with registers width specified by Width.\r
   The read value is returned. If such operations are not supported, then ASSERT().\r
   This function must guarantee that all MMIO read and write operations are serialized.\r
 \r
   @param  Address       The MMIO register to read.\r
-                        The caller is responsible for aligning the Address if required. \r
+                        The caller is responsible for aligning the Address if required.\r
   @param  Width         The width of the I/O operation.\r
-  \r
+\r
   @return Data read from registers in the EFI system memory space.\r
 \r
 **/\r
@@ -137,16 +138,16 @@ MmioReadWorker (
 }\r
 \r
 /**\r
-  Writes memory-mapped registers in the EFI system memory space. \r
+  Writes memory-mapped registers in the EFI system memory space.\r
 \r
   Writes the MMIO registers specified by Address with registers width and value specified by Width\r
   and Data respectively. Data is returned. If such operations are not supported, then ASSERT().\r
   This function must guarantee that all MMIO read and write operations are serialized.\r
 \r
   @param  Address       The MMIO register to read.\r
-                        The caller is responsible for aligning the Address if required. \r
+                        The caller is responsible for aligning the Address if required.\r
   @param  Width         The width of the I/O operation.\r
-  \r
+\r
   @return Data read from registers in the EFI system memory space.\r
 \r
 **/\r