summaryrefslogtreecommitdiff
path: root/MdePkg/Library/DxeIoLibCpuIo
diff options
context:
space:
mode:
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2006-09-18 02:07:18 +0000
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2006-09-18 02:07:18 +0000
commita8e756dad00a922dabe8a9f7d67c25e0d637538f (patch)
treece2b4d813bbf3a35d7b12b833f8224add8f17b00 /MdePkg/Library/DxeIoLibCpuIo
parent2f2c367ad87e3f1d00cf26835c39800395e42b1a (diff)
downloadedk2-platforms-a8e756dad00a922dabe8a9f7d67c25e0d637538f.tar.xz
add EFIAPI for those constructor funcitons declaration
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1547 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/DxeIoLibCpuIo')
-rw-r--r--MdePkg/Library/DxeIoLibCpuIo/IoLib.c27
1 files changed, 14 insertions, 13 deletions
diff --git a/MdePkg/Library/DxeIoLibCpuIo/IoLib.c b/MdePkg/Library/DxeIoLibCpuIo/IoLib.c
index fa3421baca..4736c561dc 100644
--- a/MdePkg/Library/DxeIoLibCpuIo/IoLib.c
+++ b/MdePkg/Library/DxeIoLibCpuIo/IoLib.c
@@ -21,17 +21,18 @@ STATIC EFI_CPU_IO_PROTOCOL *mCpuIo = NULL;
/**
The constructor function caches the pointer to CpuIo protocol.
-
+
The constructor function locates CpuIo protocol from protocol database.
- It will ASSERT() if that operation fails and it will always return EFI_SUCCESS.
+ It will ASSERT() if that operation fails and it will always return EFI_SUCCESS.
@param ImageHandle The firmware allocated handle for the EFI image.
@param SystemTable A pointer to the EFI System Table.
-
+
@retval EFI_SUCCESS The constructor always returns EFI_SUCCESS.
**/
EFI_STATUS
+EFIAPI
IoLibConstructor (
IN EFI_HANDLE ImageHandle,
IN EFI_SYSTEM_TABLE *SystemTable
@@ -53,9 +54,9 @@ IoLibConstructor (
This function must guarantee that all I/O read and write operations are serialized.
@param Port The base address of the I/O operation.
- The caller is responsible for aligning the Address if required.
+ The caller is responsible for aligning the Address if required.
@param Width The width of the I/O operation.
-
+
@return Data read from registers in the EFI CPU I/O space.
**/
@@ -83,10 +84,10 @@ IoReadWorker (
This function must guarantee that all I/O read and write operations are serialized.
@param Port The base address of the I/O operation.
- The caller is responsible for aligning the Address if required.
+ The caller is responsible for aligning the Address if required.
@param Width The width of the I/O operation.
@param Data The value to write to the I/O port.
-
+
@return The paramter of Data.
**/
@@ -107,16 +108,16 @@ IoWriteWorker (
}
/**
- Reads memory-mapped registers in the EFI system memory space.
+ Reads memory-mapped registers in the EFI system memory space.
Reads the MMIO registers specified by Address with registers width specified by Width.
The read value is returned. If such operations are not supported, then ASSERT().
This function must guarantee that all MMIO read and write operations are serialized.
@param Address The MMIO register to read.
- The caller is responsible for aligning the Address if required.
+ The caller is responsible for aligning the Address if required.
@param Width The width of the I/O operation.
-
+
@return Data read from registers in the EFI system memory space.
**/
@@ -137,16 +138,16 @@ MmioReadWorker (
}
/**
- Writes memory-mapped registers in the EFI system memory space.
+ Writes memory-mapped registers in the EFI system memory space.
Writes the MMIO registers specified by Address with registers width and value specified by Width
and Data respectively. Data is returned. If such operations are not supported, then ASSERT().
This function must guarantee that all MMIO read and write operations are serialized.
@param Address The MMIO register to read.
- The caller is responsible for aligning the Address if required.
+ The caller is responsible for aligning the Address if required.
@param Width The width of the I/O operation.
-
+
@return Data read from registers in the EFI system memory space.
**/