X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FInclude%2FPpi%2FCpuIo.h;h=1cc6e989ba5c7039dbca800deb70590694e28055;hb=d71325128666d393addfaffa0ddf467bedc01eea;hp=bf3d5f70368b02b9979c0a100c8341b0e8a7240f;hpb=5879b8754ac3c2e7a141bac79f6b2391e6ac0441;p=mirror_edk2.git diff --git a/MdePkg/Include/Ppi/CpuIo.h b/MdePkg/Include/Ppi/CpuIo.h index bf3d5f7036..1cc6e989ba 100644 --- a/MdePkg/Include/Ppi/CpuIo.h +++ b/MdePkg/Include/Ppi/CpuIo.h @@ -1,7 +1,8 @@ /** @file - This file declares CPU IO PPI that abstracts CPU IO access + This PPI provides a set of memory- and I/O-based services. + The perspective of the services is that of the processor, not the bus or system. - 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 @@ -10,8 +11,6 @@ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. - Module Name: CpuIo.h - @par Revision Reference: This PPI is defined in PI. Version 1.0. @@ -21,6 +20,9 @@ #ifndef __PEI_CPUIO_PPI_H__ #define __PEI_CPUIO_PPI_H__ +#include +#include + #define EFI_PEI_CPU_IO_PPI_INSTALLED_GUID \ { 0xe6af1f7b, 0xfc3f, 0x46da, {0xa8, 0x28, 0xa3, 0xb4, 0x57, 0xa4, 0x42, 0x82 } } @@ -63,7 +65,7 @@ typedef enum { **/ typedef EFI_STATUS -(EFIAPI *EFI_PEI_CPU_IO_PPI_IO_MEM) ( +(EFIAPI *EFI_PEI_CPU_IO_PPI_IO_MEM)( IN EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_CPU_IO_PPI *This, IN EFI_PEI_CPU_IO_PPI_WIDTH Width, @@ -89,12 +91,12 @@ typedef struct { @param This Pointer to local data for the interface. @param Address The physical address of the access. - @return UINT8 + @return UINT8 An 8-bit value is returned from the I/O space. **/ typedef UINT8 -(EFIAPI *EFI_PEI_CPU_IO_PPI_IO_READ8) ( +(EFIAPI *EFI_PEI_CPU_IO_PPI_IO_READ8)( IN EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_CPU_IO_PPI *This, IN UINT64 Address @@ -107,12 +109,12 @@ UINT8 @param This Pointer to local data for the interface. @param Address The physical address of the access. - @return UINT16 + @return UINT16 A 16-bit value is returned from the I/O space. **/ typedef UINT16 -(EFIAPI *EFI_PEI_CPU_IO_PPI_IO_READ16) ( +(EFIAPI *EFI_PEI_CPU_IO_PPI_IO_READ16)( IN EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_CPU_IO_PPI *This, IN UINT64 Address @@ -125,12 +127,12 @@ UINT16 @param This Pointer to local data for the interface. @param Address The physical address of the access. - @return UINT32 + @return UINT32 A 32-bit value is returned from the I/O space. **/ typedef UINT32 -(EFIAPI *EFI_PEI_CPU_IO_PPI_IO_READ32) ( +(EFIAPI *EFI_PEI_CPU_IO_PPI_IO_READ32)( IN EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_CPU_IO_PPI *This, IN UINT64 Address @@ -143,12 +145,12 @@ UINT32 @param This Pointer to local data for the interface. @param Address The physical address of the access. - @return UINT64 + @return UINT64 A 64-bit value is returned from the I/O space. **/ typedef UINT64 -(EFIAPI *EFI_PEI_CPU_IO_PPI_IO_READ64) ( +(EFIAPI *EFI_PEI_CPU_IO_PPI_IO_READ64)( IN EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_CPU_IO_PPI *This, IN UINT64 Address @@ -167,7 +169,7 @@ UINT64 **/ typedef VOID -(EFIAPI *EFI_PEI_CPU_IO_PPI_IO_WRITE8) ( +(EFIAPI *EFI_PEI_CPU_IO_PPI_IO_WRITE8)( IN EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_CPU_IO_PPI *This, IN UINT64 Address, @@ -187,7 +189,7 @@ VOID **/ typedef VOID -(EFIAPI *EFI_PEI_CPU_IO_PPI_IO_WRITE16) ( +(EFIAPI *EFI_PEI_CPU_IO_PPI_IO_WRITE16)( IN EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_CPU_IO_PPI *This, IN UINT64 Address, @@ -207,7 +209,7 @@ VOID **/ typedef VOID -(EFIAPI *EFI_PEI_CPU_IO_PPI_IO_WRITE32) ( +(EFIAPI *EFI_PEI_CPU_IO_PPI_IO_WRITE32)( IN EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_CPU_IO_PPI *This, IN UINT64 Address, @@ -227,7 +229,7 @@ VOID **/ typedef VOID -(EFIAPI *EFI_PEI_CPU_IO_PPI_IO_WRITE64) ( +(EFIAPI *EFI_PEI_CPU_IO_PPI_IO_WRITE64)( IN EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_CPU_IO_PPI *This, IN UINT64 Address, @@ -241,12 +243,12 @@ VOID @param This Pointer to local data for the interface. @param Address The physical address of the access. - @return UINT8 + @return UINT8 An 8-bit value is returned from the memory space. **/ typedef UINT8 -(EFIAPI *EFI_PEI_CPU_IO_PPI_MEM_READ8) ( +(EFIAPI *EFI_PEI_CPU_IO_PPI_MEM_READ8)( IN EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_CPU_IO_PPI *This, IN UINT64 Address @@ -259,12 +261,12 @@ UINT8 @param This Pointer to local data for the interface. @param Address The physical address of the access. - @return UINT16 + @return UINT16 A 16-bit value is returned from the memory space. **/ typedef UINT16 -(EFIAPI *EFI_PEI_CPU_IO_PPI_MEM_READ16) ( +(EFIAPI *EFI_PEI_CPU_IO_PPI_MEM_READ16)( IN EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_CPU_IO_PPI *This, IN UINT64 Address @@ -277,12 +279,12 @@ UINT16 @param This Pointer to local data for the interface. @param Address The physical address of the access. - @return UINT32 + @return UINT32 A 32-bit value is returned from the memory space. **/ typedef UINT32 -(EFIAPI *EFI_PEI_CPU_IO_PPI_MEM_READ32) ( +(EFIAPI *EFI_PEI_CPU_IO_PPI_MEM_READ32)( IN EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_CPU_IO_PPI *This, IN UINT64 Address @@ -295,12 +297,12 @@ UINT32 @param This Pointer to local data for the interface. @param Address The physical address of the access. - @return UINT64 + @return UINT64 A 64-bit value is returned from the memory space. **/ typedef UINT64 -(EFIAPI *EFI_PEI_CPU_IO_PPI_MEM_READ64) ( +(EFIAPI *EFI_PEI_CPU_IO_PPI_MEM_READ64)( IN EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_CPU_IO_PPI *This, IN UINT64 Address @@ -319,7 +321,7 @@ UINT64 **/ typedef VOID -(EFIAPI *EFI_PEI_CPU_IO_PPI_MEM_WRITE8) ( +(EFIAPI *EFI_PEI_CPU_IO_PPI_MEM_WRITE8)( IN EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_CPU_IO_PPI *This, IN UINT64 Address, @@ -339,7 +341,7 @@ VOID **/ typedef VOID -(EFIAPI *EFI_PEI_CPU_IO_PPI_MEM_WRITE16) ( +(EFIAPI *EFI_PEI_CPU_IO_PPI_MEM_WRITE16)( IN EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_CPU_IO_PPI *This, IN UINT64 Address, @@ -359,7 +361,7 @@ VOID **/ typedef VOID -(EFIAPI *EFI_PEI_CPU_IO_PPI_MEM_WRITE32) ( +(EFIAPI *EFI_PEI_CPU_IO_PPI_MEM_WRITE32)( IN EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_CPU_IO_PPI *This, IN UINT64 Address, @@ -379,7 +381,7 @@ VOID **/ typedef VOID -(EFIAPI *EFI_PEI_CPU_IO_PPI_MEM_WRITE64) ( +(EFIAPI *EFI_PEI_CPU_IO_PPI_MEM_WRITE64)( IN EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_CPU_IO_PPI *This, IN UINT64 Address, @@ -467,6 +469,6 @@ struct _EFI_PEI_CPU_IO_PPI { EFI_PEI_CPU_IO_PPI_MEM_WRITE64 MemWrite64; }; -extern EFI_GUID gEfiPeiCpuIoPpiInServiceTableGuid; +extern EFI_GUID gEfiPeiCpuIoPpiInstalledGuid; #endif