|
TianoCore EDK2 master
|
#include "PeiMain.h"Go to the source code of this file.
Variables | |
| EFI_PEI_CPU_IO_PPI | gPeiDefaultCpuIoPpi |
The default version of EFI_PEI_CPU_IO_PPI support published by PeiServices in PeiCore initialization phase.
EFI_PEI_CPU_IO_PPI is installed by some platform or chipset-specific PEIM that abstracts the processor-visible I/O operations. When PeiCore is started, the default version of EFI_PEI_CPU_IO_PPI will be assigned to PeiServices table.
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file CpuIo.c.
| EFI_STATUS EFIAPI PeiDefaultIoRead | ( | IN CONST EFI_PEI_SERVICES ** | PeiServices, |
| IN CONST EFI_PEI_CPU_IO_PPI * | This, | ||
| IN EFI_PEI_CPU_IO_PPI_WIDTH | Width, | ||
| IN UINT64 | Address, | ||
| IN UINTN | Count, | ||
| IN OUT VOID * | Buffer | ||
| ) |
IO-based read services.
This function is to perform the IO-base read service for the EFI_PEI_CPU_IO_PPI. If the EFI_PEI_CPU_IO_PPI is not installed by platform/chipset PEIM, then return EFI_NOT_YET_AVAILABLE.
| PeiServices | An indirect pointer to the PEI Services Table published by the PEI Foundation. |
| This | Pointer to local data for the interface. |
| Width | The width of the access. Enumerated in bytes. |
| Address | The physical address of the access. |
| Count | The number of accesses to perform. |
| Buffer | A pointer to the buffer of data. |
| EFI_SUCCESS | The function completed successfully. |
| EFI_NOT_YET_AVAILABLE | The service has not been installed. |
| UINT16 EFIAPI PeiDefaultIoRead16 | ( | IN CONST EFI_PEI_SERVICES ** | PeiServices, |
| IN CONST EFI_PEI_CPU_IO_PPI * | This, | ||
| IN UINT64 | Address | ||
| ) |
Reads an 16-bit I/O port.
If the EFI_PEI_CPU_IO_PPI is not installed by platform/chipset PEIM, then return 0.
| PeiServices | An indirect pointer to the PEI Services Table published by the PEI Foundation. |
| This | Pointer to local data for the interface. |
| Address | The physical address of the access. |
| UINT32 EFIAPI PeiDefaultIoRead32 | ( | IN CONST EFI_PEI_SERVICES ** | PeiServices, |
| IN CONST EFI_PEI_CPU_IO_PPI * | This, | ||
| IN UINT64 | Address | ||
| ) |
Reads an 32-bit I/O port.
If the EFI_PEI_CPU_IO_PPI is not installed by platform/chipset PEIM, then return 0.
| PeiServices | An indirect pointer to the PEI Services Table published by the PEI Foundation. |
| This | Pointer to local data for the interface. |
| Address | The physical address of the access. |
| UINT64 EFIAPI PeiDefaultIoRead64 | ( | IN CONST EFI_PEI_SERVICES ** | PeiServices, |
| IN CONST EFI_PEI_CPU_IO_PPI * | This, | ||
| IN UINT64 | Address | ||
| ) |
Reads an 64-bit I/O port.
If the EFI_PEI_CPU_IO_PPI is not installed by platform/chipset PEIM, then return 0.
| PeiServices | An indirect pointer to the PEI Services Table published by the PEI Foundation. |
| This | Pointer to local data for the interface. |
| Address | The physical address of the access. |
| UINT8 EFIAPI PeiDefaultIoRead8 | ( | IN CONST EFI_PEI_SERVICES ** | PeiServices, |
| IN CONST EFI_PEI_CPU_IO_PPI * | This, | ||
| IN UINT64 | Address | ||
| ) |
8-bit I/O read operations.
If the EFI_PEI_CPU_IO_PPI is not installed by platform/chipset PEIM, then return 0.
| PeiServices | An indirect pointer to the PEI Services Table published by the PEI Foundation. |
| This | Pointer to local data for the interface. |
| Address | The physical address of the access. |
| EFI_STATUS EFIAPI PeiDefaultIoWrite | ( | IN CONST EFI_PEI_SERVICES ** | PeiServices, |
| IN CONST EFI_PEI_CPU_IO_PPI * | This, | ||
| IN EFI_PEI_CPU_IO_PPI_WIDTH | Width, | ||
| IN UINT64 | Address, | ||
| IN UINTN | Count, | ||
| IN OUT VOID * | Buffer | ||
| ) |
IO-based write services.
This function is to perform the IO-base write service for the EFI_PEI_CPU_IO_PPI. If the EFI_PEI_CPU_IO_PPI is not installed by platform/chipset PEIM, then return EFI_NOT_YET_AVAILABLE.
| PeiServices | An indirect pointer to the PEI Services Table published by the PEI Foundation. |
| This | Pointer to local data for the interface. |
| Width | The width of the access. Enumerated in bytes. |
| Address | The physical address of the access. |
| Count | The number of accesses to perform. |
| Buffer | A pointer to the buffer of data. |
| EFI_SUCCESS | The function completed successfully. |
| EFI_NOT_YET_AVAILABLE | The service has not been installed. |
| VOID EFIAPI PeiDefaultIoWrite16 | ( | IN CONST EFI_PEI_SERVICES ** | PeiServices, |
| IN CONST EFI_PEI_CPU_IO_PPI * | This, | ||
| IN UINT64 | Address, | ||
| IN UINT16 | Data | ||
| ) |
16-bit I/O write operations. If the EFI_PEI_CPU_IO_PPI is not installed by platform/chipset PEIM, then do nothing.
| PeiServices | An indirect pointer to the PEI Services Table published by the PEI Foundation. |
| This | Pointer to local data for the interface. |
| Address | The physical address of the access. |
| Data | The data to write. |
| VOID EFIAPI PeiDefaultIoWrite32 | ( | IN CONST EFI_PEI_SERVICES ** | PeiServices, |
| IN CONST EFI_PEI_CPU_IO_PPI * | This, | ||
| IN UINT64 | Address, | ||
| IN UINT32 | Data | ||
| ) |
32-bit I/O write operations. If the EFI_PEI_CPU_IO_PPI is not installed by platform/chipset PEIM, then do nothing.
| PeiServices | An indirect pointer to the PEI Services Table published by the PEI Foundation. |
| This | Pointer to local data for the interface. |
| Address | The physical address of the access. |
| Data | The data to write. |
| VOID EFIAPI PeiDefaultIoWrite64 | ( | IN CONST EFI_PEI_SERVICES ** | PeiServices, |
| IN CONST EFI_PEI_CPU_IO_PPI * | This, | ||
| IN UINT64 | Address, | ||
| IN UINT64 | Data | ||
| ) |
64-bit I/O write operations. If the EFI_PEI_CPU_IO_PPI is not installed by platform/chipset PEIM, then do nothing.
| PeiServices | An indirect pointer to the PEI Services Table published by the PEI Foundation. |
| This | Pointer to local data for the interface. |
| Address | The physical address of the access. |
| Data | The data to write. |
| VOID EFIAPI PeiDefaultIoWrite8 | ( | IN CONST EFI_PEI_SERVICES ** | PeiServices, |
| IN CONST EFI_PEI_CPU_IO_PPI * | This, | ||
| IN UINT64 | Address, | ||
| IN UINT8 | Data | ||
| ) |
8-bit I/O write operations. If the EFI_PEI_CPU_IO_PPI is not installed by platform/chipset PEIM, then do nothing.
| PeiServices | An indirect pointer to the PEI Services Table published by the PEI Foundation. |
| This | Pointer to local data for the interface. |
| Address | The physical address of the access. |
| Data | The data to write. |
| EFI_STATUS EFIAPI PeiDefaultMemRead | ( | IN CONST EFI_PEI_SERVICES ** | PeiServices, |
| IN CONST EFI_PEI_CPU_IO_PPI * | This, | ||
| IN EFI_PEI_CPU_IO_PPI_WIDTH | Width, | ||
| IN UINT64 | Address, | ||
| IN UINTN | Count, | ||
| IN OUT VOID * | Buffer | ||
| ) |
Memory-based read services.
This function is to perform the Memory Access Read service based on installed instance of the EFI_PEI_CPU_IO_PPI. If the EFI_PEI_CPU_IO_PPI is not installed by platform/chipset PEIM, then return EFI_NOT_YET_AVAILABLE.
| PeiServices | An indirect pointer to the PEI Services Table published by the PEI Foundation. |
| This | Pointer to local data for the interface. |
| Width | The width of the access. Enumerated in bytes. |
| Address | The physical address of the access. |
| Count | The number of accesses to perform. |
| Buffer | A pointer to the buffer of data. |
| EFI_SUCCESS | The function completed successfully. |
| EFI_NOT_YET_AVAILABLE | The service has not been installed. |
| UINT16 EFIAPI PeiDefaultMemRead16 | ( | IN CONST EFI_PEI_SERVICES ** | PeiServices, |
| IN CONST EFI_PEI_CPU_IO_PPI * | This, | ||
| IN UINT64 | Address | ||
| ) |
16-bit memory read operations.
If the EFI_PEI_CPU_IO_PPI is not installed by platform/chipset PEIM, then return 0.
| PeiServices | An indirect pointer to the PEI Services Table published by the PEI Foundation. |
| This | Pointer to local data for the interface. |
| Address | The physical address of the access. |
| UINT32 EFIAPI PeiDefaultMemRead32 | ( | IN CONST EFI_PEI_SERVICES ** | PeiServices, |
| IN CONST EFI_PEI_CPU_IO_PPI * | This, | ||
| IN UINT64 | Address | ||
| ) |
32-bit memory read operations.
If the EFI_PEI_CPU_IO_PPI is not installed by platform/chipset PEIM, then return 0.
| PeiServices | An indirect pointer to the PEI Services Table published by the PEI Foundation. |
| This | Pointer to local data for the interface. |
| Address | The physical address of the access. |
| UINT64 EFIAPI PeiDefaultMemRead64 | ( | IN CONST EFI_PEI_SERVICES ** | PeiServices, |
| IN CONST EFI_PEI_CPU_IO_PPI * | This, | ||
| IN UINT64 | Address | ||
| ) |
64-bit memory read operations.
If the EFI_PEI_CPU_IO_PPI is not installed by platform/chipset PEIM, then return 0.
| PeiServices | An indirect pointer to the PEI Services Table published by the PEI Foundation. |
| This | Pointer to local data for the interface. |
| Address | The physical address of the access. |
| UINT8 EFIAPI PeiDefaultMemRead8 | ( | IN CONST EFI_PEI_SERVICES ** | PeiServices, |
| IN CONST EFI_PEI_CPU_IO_PPI * | This, | ||
| IN UINT64 | Address | ||
| ) |
8-bit memory read operations.
If the EFI_PEI_CPU_IO_PPI is not installed by platform/chipset PEIM, then return 0.
| PeiServices | An indirect pointer to the PEI Services Table published by the PEI Foundation. |
| This | Pointer to local data for the interface. |
| Address | The physical address of the access. |
| EFI_STATUS EFIAPI PeiDefaultMemWrite | ( | IN CONST EFI_PEI_SERVICES ** | PeiServices, |
| IN CONST EFI_PEI_CPU_IO_PPI * | This, | ||
| IN EFI_PEI_CPU_IO_PPI_WIDTH | Width, | ||
| IN UINT64 | Address, | ||
| IN UINTN | Count, | ||
| IN OUT VOID * | Buffer | ||
| ) |
Memory-based write services.
This function is to perform the Memory Access Write service based on installed instance of the EFI_PEI_CPU_IO_PPI. If the EFI_PEI_CPU_IO_PPI is not installed by platform/chipset PEIM, then return EFI_NOT_YET_AVAILABLE.
| PeiServices | An indirect pointer to the PEI Services Table published by the PEI Foundation. |
| This | Pointer to local data for the interface. |
| Width | The width of the access. Enumerated in bytes. |
| Address | The physical address of the access. |
| Count | The number of accesses to perform. |
| Buffer | A pointer to the buffer of data. |
| EFI_SUCCESS | The function completed successfully. |
| EFI_NOT_YET_AVAILABLE | The service has not been installed. |
| VOID EFIAPI PeiDefaultMemWrite16 | ( | IN CONST EFI_PEI_SERVICES ** | PeiServices, |
| IN CONST EFI_PEI_CPU_IO_PPI * | This, | ||
| IN UINT64 | Address, | ||
| IN UINT16 | Data | ||
| ) |
16-bit memory write operations. If the EFI_PEI_CPU_IO_PPI is not installed by platform/chipset PEIM, then do nothing.
| PeiServices | An indirect pointer to the PEI Services Table published by the PEI Foundation. |
| This | Pointer to local data for the interface. |
| Address | The physical address of the access. |
| Data | The data to write. |
| VOID EFIAPI PeiDefaultMemWrite32 | ( | IN CONST EFI_PEI_SERVICES ** | PeiServices, |
| IN CONST EFI_PEI_CPU_IO_PPI * | This, | ||
| IN UINT64 | Address, | ||
| IN UINT32 | Data | ||
| ) |
32-bit memory write operations. If the EFI_PEI_CPU_IO_PPI is not installed by platform/chipset PEIM, then do nothing.
| PeiServices | An indirect pointer to the PEI Services Table published by the PEI Foundation. |
| This | Pointer to local data for the interface. |
| Address | The physical address of the access. |
| Data | The data to write. |
| VOID EFIAPI PeiDefaultMemWrite64 | ( | IN CONST EFI_PEI_SERVICES ** | PeiServices, |
| IN CONST EFI_PEI_CPU_IO_PPI * | This, | ||
| IN UINT64 | Address, | ||
| IN UINT64 | Data | ||
| ) |
64-bit memory write operations. If the EFI_PEI_CPU_IO_PPI is not installed by platform/chipset PEIM, then do nothing.
| PeiServices | An indirect pointer to the PEI Services Table published by the PEI Foundation. |
| This | Pointer to local data for the interface. |
| Address | The physical address of the access. |
| Data | The data to write. |
| VOID EFIAPI PeiDefaultMemWrite8 | ( | IN CONST EFI_PEI_SERVICES ** | PeiServices, |
| IN CONST EFI_PEI_CPU_IO_PPI * | This, | ||
| IN UINT64 | Address, | ||
| IN UINT8 | Data | ||
| ) |
8-bit memory write operations. If the EFI_PEI_CPU_IO_PPI is not installed by platform/chipset PEIM, then do nothing.
| PeiServices | An indirect pointer to the PEI Services Table published by the PEI Foundation. |
| This | Pointer to local data for the interface. |
| Address | The physical address of the access. |
| Data | The data to write. |
| EFI_PEI_CPU_IO_PPI gPeiDefaultCpuIoPpi |
This default instance of EFI_PEI_CPU_IO_PPI install assigned to EFI_PEI_SERVICE.CpuIo when PeiCore's initialization.