From 5240b97c9c9e76994e86db11ff7cf140a74f2bd0 Mon Sep 17 00:00:00 2001 From: qwang12 Date: Fri, 17 Oct 2008 08:41:06 +0000 Subject: Base on PI spec, GetPeiServicesTablePointer is updated to return CONST EFI_PEI_SERVICES**. This is a incompatible changes. All file that reference this must be updated. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6126 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/PeiIoLibCpuIo/IoLib.c | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'MdePkg/Library/PeiIoLibCpuIo') diff --git a/MdePkg/Library/PeiIoLibCpuIo/IoLib.c b/MdePkg/Library/PeiIoLibCpuIo/IoLib.c index 066ceddbfb..5d94b56124 100644 --- a/MdePkg/Library/PeiIoLibCpuIo/IoLib.c +++ b/MdePkg/Library/PeiIoLibCpuIo/IoLib.c @@ -1,7 +1,7 @@ /** @file I/O Library. The implementations are based on EFI_PEI_SERVICE->CpuIo interface. - Copyright (c) 2006, Intel Corporation
+ Copyright (c) 2006 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -43,7 +43,7 @@ IoRead8 ( CONST EFI_PEI_SERVICES **PeiServices; EFI_PEI_CPU_IO_PPI *CpuIo; - PeiServices = (CONST EFI_PEI_SERVICES **) GetPeiServicesTablePointer (); + PeiServices = GetPeiServicesTablePointer (); CpuIo = (*PeiServices)->CpuIo; ASSERT (CpuIo != NULL); @@ -75,7 +75,7 @@ IoWrite8 ( CONST EFI_PEI_SERVICES **PeiServices; EFI_PEI_CPU_IO_PPI *CpuIo; - PeiServices = (CONST EFI_PEI_SERVICES **) GetPeiServicesTablePointer (); + PeiServices = GetPeiServicesTablePointer (); CpuIo = (*PeiServices)->CpuIo; ASSERT (CpuIo != NULL); @@ -106,7 +106,7 @@ IoRead16 ( CONST EFI_PEI_SERVICES **PeiServices; EFI_PEI_CPU_IO_PPI *CpuIo; - PeiServices = (CONST EFI_PEI_SERVICES **) GetPeiServicesTablePointer (); + PeiServices = GetPeiServicesTablePointer (); CpuIo = (*PeiServices)->CpuIo; ASSERT (CpuIo != NULL); // @@ -141,7 +141,7 @@ IoWrite16 ( CONST EFI_PEI_SERVICES **PeiServices; EFI_PEI_CPU_IO_PPI *CpuIo; - PeiServices = (CONST EFI_PEI_SERVICES **) GetPeiServicesTablePointer (); + PeiServices = GetPeiServicesTablePointer (); CpuIo = (*PeiServices)->CpuIo; ASSERT (CpuIo != NULL); // @@ -175,7 +175,7 @@ IoRead32 ( CONST EFI_PEI_SERVICES **PeiServices; EFI_PEI_CPU_IO_PPI *CpuIo; - PeiServices = (CONST EFI_PEI_SERVICES **) GetPeiServicesTablePointer (); + PeiServices = GetPeiServicesTablePointer (); CpuIo = (*PeiServices)->CpuIo; ASSERT (CpuIo != NULL); // @@ -210,7 +210,7 @@ IoWrite32 ( CONST EFI_PEI_SERVICES **PeiServices; EFI_PEI_CPU_IO_PPI *CpuIo; - PeiServices = (CONST EFI_PEI_SERVICES **) GetPeiServicesTablePointer (); + PeiServices = GetPeiServicesTablePointer (); CpuIo = (*PeiServices)->CpuIo; ASSERT (CpuIo != NULL); // @@ -244,7 +244,7 @@ IoRead64 ( CONST EFI_PEI_SERVICES **PeiServices; EFI_PEI_CPU_IO_PPI *CpuIo; - PeiServices = (CONST EFI_PEI_SERVICES **) GetPeiServicesTablePointer (); + PeiServices = GetPeiServicesTablePointer (); CpuIo = (*PeiServices)->CpuIo; ASSERT (CpuIo != NULL); // @@ -279,7 +279,7 @@ IoWrite64 ( CONST EFI_PEI_SERVICES **PeiServices; EFI_PEI_CPU_IO_PPI *CpuIo; - PeiServices = (CONST EFI_PEI_SERVICES **) GetPeiServicesTablePointer (); + PeiServices = GetPeiServicesTablePointer (); CpuIo = (*PeiServices)->CpuIo; ASSERT (CpuIo != NULL); // @@ -313,7 +313,7 @@ MmioRead8 ( CONST EFI_PEI_SERVICES **PeiServices; EFI_PEI_CPU_IO_PPI *CpuIo; - PeiServices = (CONST EFI_PEI_SERVICES **) GetPeiServicesTablePointer (); + PeiServices = GetPeiServicesTablePointer (); CpuIo = (*PeiServices)->CpuIo; ASSERT (CpuIo != NULL); @@ -344,7 +344,7 @@ MmioWrite8 ( CONST EFI_PEI_SERVICES **PeiServices; EFI_PEI_CPU_IO_PPI *CpuIo; - PeiServices = (CONST EFI_PEI_SERVICES **) GetPeiServicesTablePointer (); + PeiServices = GetPeiServicesTablePointer (); CpuIo = (*PeiServices)->CpuIo; ASSERT (CpuIo != NULL); @@ -375,7 +375,7 @@ MmioRead16 ( CONST EFI_PEI_SERVICES **PeiServices; EFI_PEI_CPU_IO_PPI *CpuIo; - PeiServices = (CONST EFI_PEI_SERVICES **) GetPeiServicesTablePointer (); + PeiServices = GetPeiServicesTablePointer (); CpuIo = (*PeiServices)->CpuIo; ASSERT (CpuIo != NULL); // @@ -411,7 +411,7 @@ MmioWrite16 ( CONST EFI_PEI_SERVICES **PeiServices; EFI_PEI_CPU_IO_PPI *CpuIo; - PeiServices = (CONST EFI_PEI_SERVICES **) GetPeiServicesTablePointer (); + PeiServices = GetPeiServicesTablePointer (); CpuIo = (*PeiServices)->CpuIo; ASSERT (CpuIo != NULL); // @@ -445,7 +445,7 @@ MmioRead32 ( CONST EFI_PEI_SERVICES **PeiServices; EFI_PEI_CPU_IO_PPI *CpuIo; - PeiServices = (CONST EFI_PEI_SERVICES **) GetPeiServicesTablePointer (); + PeiServices = GetPeiServicesTablePointer (); CpuIo = (*PeiServices)->CpuIo; ASSERT (CpuIo != NULL); // @@ -481,7 +481,7 @@ MmioWrite32 ( CONST EFI_PEI_SERVICES **PeiServices; EFI_PEI_CPU_IO_PPI *CpuIo; - PeiServices = (CONST EFI_PEI_SERVICES **) GetPeiServicesTablePointer (); + PeiServices = GetPeiServicesTablePointer (); CpuIo = (*PeiServices)->CpuIo; ASSERT (CpuIo != NULL); // @@ -515,7 +515,7 @@ MmioRead64 ( CONST EFI_PEI_SERVICES **PeiServices; EFI_PEI_CPU_IO_PPI *CpuIo; - PeiServices = (CONST EFI_PEI_SERVICES **) GetPeiServicesTablePointer (); + PeiServices = GetPeiServicesTablePointer (); CpuIo = (*PeiServices)->CpuIo; ASSERT (CpuIo != NULL); // @@ -550,7 +550,7 @@ MmioWrite64 ( CONST EFI_PEI_SERVICES **PeiServices; EFI_PEI_CPU_IO_PPI *CpuIo; - PeiServices = (CONST EFI_PEI_SERVICES **) GetPeiServicesTablePointer (); + PeiServices = GetPeiServicesTablePointer (); CpuIo = (*PeiServices)->CpuIo; ASSERT (CpuIo != NULL); // -- cgit v1.2.3