diff options
author | jljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-09-04 18:12:57 +0000 |
---|---|---|
committer | jljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-09-04 18:12:57 +0000 |
commit | fe7fd5780644efb7c076f26d1bb3166f93bfbd4a (patch) | |
tree | 9eff240a62e17704abe4f1a9348a8b34d390dee8 /MdePkg/Library/PeiIoLibCpuIo | |
parent | 9e11702c3322a1384db7c3a42b5356d12402de27 (diff) | |
download | edk2-fe7fd5780644efb7c076f26d1bb3166f93bfbd4a.tar.gz edk2-fe7fd5780644efb7c076f26d1bb3166f93bfbd4a.tar.bz2 edk2-fe7fd5780644efb7c076f26d1bb3166f93bfbd4a.zip |
edk2/MdePkg/Library/PeiIoLibCpuIo/IoLib.c:
* Align code with changes to CONST usage on function
parameters made in edk2-r5818.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5825 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/PeiIoLibCpuIo')
-rw-r--r-- | MdePkg/Library/PeiIoLibCpuIo/IoLib.c | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/MdePkg/Library/PeiIoLibCpuIo/IoLib.c b/MdePkg/Library/PeiIoLibCpuIo/IoLib.c index 9130921937..e047ffa639 100644 --- a/MdePkg/Library/PeiIoLibCpuIo/IoLib.c +++ b/MdePkg/Library/PeiIoLibCpuIo/IoLib.c @@ -40,10 +40,10 @@ IoRead8 ( IN UINTN Port
)
{
- EFI_PEI_SERVICES **PeiServices;
+ CONST EFI_PEI_SERVICES **PeiServices;
EFI_PEI_CPU_IO_PPI *CpuIo;
- PeiServices = GetPeiServicesTablePointer ();
+ PeiServices = (CONST EFI_PEI_SERVICES **) GetPeiServicesTablePointer ();
CpuIo = (*PeiServices)->CpuIo;
ASSERT (CpuIo != NULL);
@@ -72,10 +72,10 @@ IoWrite8 ( IN UINT8 Value
)
{
- EFI_PEI_SERVICES **PeiServices;
+ CONST EFI_PEI_SERVICES **PeiServices;
EFI_PEI_CPU_IO_PPI *CpuIo;
- PeiServices = GetPeiServicesTablePointer ();
+ PeiServices = (CONST EFI_PEI_SERVICES **) GetPeiServicesTablePointer ();
CpuIo = (*PeiServices)->CpuIo;
ASSERT (CpuIo != NULL);
@@ -103,10 +103,10 @@ IoRead16 ( IN UINTN Port
)
{
- EFI_PEI_SERVICES **PeiServices;
+ CONST EFI_PEI_SERVICES **PeiServices;
EFI_PEI_CPU_IO_PPI *CpuIo;
- PeiServices = GetPeiServicesTablePointer ();
+ PeiServices = (CONST EFI_PEI_SERVICES **) GetPeiServicesTablePointer ();
CpuIo = (*PeiServices)->CpuIo;
ASSERT (CpuIo != NULL);
//
@@ -138,10 +138,10 @@ IoWrite16 ( IN UINT16 Value
)
{
- EFI_PEI_SERVICES **PeiServices;
+ CONST EFI_PEI_SERVICES **PeiServices;
EFI_PEI_CPU_IO_PPI *CpuIo;
- PeiServices = GetPeiServicesTablePointer ();
+ PeiServices = (CONST EFI_PEI_SERVICES **) GetPeiServicesTablePointer ();
CpuIo = (*PeiServices)->CpuIo;
ASSERT (CpuIo != NULL);
//
@@ -172,10 +172,10 @@ IoRead32 ( IN UINTN Port
)
{
- EFI_PEI_SERVICES **PeiServices;
+ CONST EFI_PEI_SERVICES **PeiServices;
EFI_PEI_CPU_IO_PPI *CpuIo;
- PeiServices = GetPeiServicesTablePointer ();
+ PeiServices = (CONST EFI_PEI_SERVICES **) GetPeiServicesTablePointer ();
CpuIo = (*PeiServices)->CpuIo;
ASSERT (CpuIo != NULL);
//
@@ -207,10 +207,10 @@ IoWrite32 ( IN UINT32 Value
)
{
- EFI_PEI_SERVICES **PeiServices;
+ CONST EFI_PEI_SERVICES **PeiServices;
EFI_PEI_CPU_IO_PPI *CpuIo;
- PeiServices = GetPeiServicesTablePointer ();
+ PeiServices = (CONST EFI_PEI_SERVICES **) GetPeiServicesTablePointer ();
CpuIo = (*PeiServices)->CpuIo;
ASSERT (CpuIo != NULL);
//
@@ -241,10 +241,10 @@ IoRead64 ( IN UINTN Port
)
{
- EFI_PEI_SERVICES **PeiServices;
+ CONST EFI_PEI_SERVICES **PeiServices;
EFI_PEI_CPU_IO_PPI *CpuIo;
- PeiServices = GetPeiServicesTablePointer ();
+ PeiServices = (CONST EFI_PEI_SERVICES **) GetPeiServicesTablePointer ();
CpuIo = (*PeiServices)->CpuIo;
ASSERT (CpuIo != NULL);
//
@@ -276,10 +276,10 @@ IoWrite64 ( IN UINT64 Value
)
{
- EFI_PEI_SERVICES **PeiServices;
+ CONST EFI_PEI_SERVICES **PeiServices;
EFI_PEI_CPU_IO_PPI *CpuIo;
- PeiServices = GetPeiServicesTablePointer ();
+ PeiServices = (CONST EFI_PEI_SERVICES **) GetPeiServicesTablePointer ();
CpuIo = (*PeiServices)->CpuIo;
ASSERT (CpuIo != NULL);
//
@@ -310,10 +310,10 @@ MmioRead8 ( IN UINTN Address
)
{
- EFI_PEI_SERVICES **PeiServices;
+ CONST EFI_PEI_SERVICES **PeiServices;
EFI_PEI_CPU_IO_PPI *CpuIo;
- PeiServices = GetPeiServicesTablePointer ();
+ PeiServices = (CONST EFI_PEI_SERVICES **) GetPeiServicesTablePointer ();
CpuIo = (*PeiServices)->CpuIo;
ASSERT (CpuIo != NULL);
@@ -341,10 +341,10 @@ MmioWrite8 ( IN UINT8 Value
)
{
- EFI_PEI_SERVICES **PeiServices;
+ CONST EFI_PEI_SERVICES **PeiServices;
EFI_PEI_CPU_IO_PPI *CpuIo;
- PeiServices = GetPeiServicesTablePointer ();
+ PeiServices = (CONST EFI_PEI_SERVICES **) GetPeiServicesTablePointer ();
CpuIo = (*PeiServices)->CpuIo;
ASSERT (CpuIo != NULL);
@@ -372,10 +372,10 @@ MmioRead16 ( IN UINTN Address
)
{
- EFI_PEI_SERVICES **PeiServices;
+ CONST EFI_PEI_SERVICES **PeiServices;
EFI_PEI_CPU_IO_PPI *CpuIo;
- PeiServices = GetPeiServicesTablePointer ();
+ PeiServices = (CONST EFI_PEI_SERVICES **) GetPeiServicesTablePointer ();
CpuIo = (*PeiServices)->CpuIo;
ASSERT (CpuIo != NULL);
//
@@ -408,10 +408,10 @@ MmioWrite16 ( IN UINT16 Value
)
{
- EFI_PEI_SERVICES **PeiServices;
+ CONST EFI_PEI_SERVICES **PeiServices;
EFI_PEI_CPU_IO_PPI *CpuIo;
- PeiServices = GetPeiServicesTablePointer ();
+ PeiServices = (CONST EFI_PEI_SERVICES **) GetPeiServicesTablePointer ();
CpuIo = (*PeiServices)->CpuIo;
ASSERT (CpuIo != NULL);
//
@@ -442,10 +442,10 @@ MmioRead32 ( IN UINTN Address
)
{
- EFI_PEI_SERVICES **PeiServices;
+ CONST EFI_PEI_SERVICES **PeiServices;
EFI_PEI_CPU_IO_PPI *CpuIo;
- PeiServices = GetPeiServicesTablePointer ();
+ PeiServices = (CONST EFI_PEI_SERVICES **) GetPeiServicesTablePointer ();
CpuIo = (*PeiServices)->CpuIo;
ASSERT (CpuIo != NULL);
//
@@ -478,10 +478,10 @@ MmioWrite32 ( IN UINT32 Value
)
{
- EFI_PEI_SERVICES **PeiServices;
+ CONST EFI_PEI_SERVICES **PeiServices;
EFI_PEI_CPU_IO_PPI *CpuIo;
- PeiServices = GetPeiServicesTablePointer ();
+ PeiServices = (CONST EFI_PEI_SERVICES **) GetPeiServicesTablePointer ();
CpuIo = (*PeiServices)->CpuIo;
ASSERT (CpuIo != NULL);
//
@@ -512,10 +512,10 @@ MmioRead64 ( IN UINTN Address
)
{
- EFI_PEI_SERVICES **PeiServices;
+ CONST EFI_PEI_SERVICES **PeiServices;
EFI_PEI_CPU_IO_PPI *CpuIo;
- PeiServices = GetPeiServicesTablePointer ();
+ PeiServices = (CONST EFI_PEI_SERVICES **) GetPeiServicesTablePointer ();
CpuIo = (*PeiServices)->CpuIo;
ASSERT (CpuIo != NULL);
//
@@ -547,10 +547,10 @@ MmioWrite64 ( IN UINT64 Value
)
{
- EFI_PEI_SERVICES **PeiServices;
+ CONST EFI_PEI_SERVICES **PeiServices;
EFI_PEI_CPU_IO_PPI *CpuIo;
- PeiServices = GetPeiServicesTablePointer ();
+ PeiServices = (CONST EFI_PEI_SERVICES **) GetPeiServicesTablePointer ();
CpuIo = (*PeiServices)->CpuIo;
ASSERT (CpuIo != NULL);
//
|