From fe7fd5780644efb7c076f26d1bb3166f93bfbd4a Mon Sep 17 00:00:00 2001 From: jljusten Date: Thu, 4 Sep 2008 18:12:57 +0000 Subject: 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 --- MdePkg/Library/PeiIoLibCpuIo/IoLib.c | 64 ++++++++++++++++++------------------ 1 file changed, 32 insertions(+), 32 deletions(-) (limited to 'MdePkg/Library/PeiIoLibCpuIo') 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); // -- cgit v1.2.3