2007-06-13 13:11:23 +02:00
|
|
|
/** @file
|
2018-06-27 15:11:33 +02:00
|
|
|
This PPI provides a set of memory and I/O-based services.
|
2008-07-16 12:44:37 +02:00
|
|
|
The perspective of the services is that of the processor, not the bus or system.
|
2007-06-13 13:11:23 +02:00
|
|
|
|
2018-06-27 15:11:33 +02:00
|
|
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
2019-04-04 01:06:00 +02:00
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
2007-06-13 13:11:23 +02:00
|
|
|
|
|
|
|
@par Revision Reference:
|
2008-10-28 14:04:40 +01:00
|
|
|
This PPI is introduced in PI Version 1.0.
|
2018-06-27 15:11:33 +02:00
|
|
|
|
2007-06-13 13:11:23 +02:00
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef __PEI_CPUIO_PPI_H__
|
|
|
|
#define __PEI_CPUIO_PPI_H__
|
|
|
|
|
|
|
|
#define EFI_PEI_CPU_IO_PPI_INSTALLED_GUID \
|
|
|
|
{ 0xe6af1f7b, 0xfc3f, 0x46da, {0xa8, 0x28, 0xa3, 0xb4, 0x57, 0xa4, 0x42, 0x82 } }
|
|
|
|
|
|
|
|
typedef struct _EFI_PEI_CPU_IO_PPI EFI_PEI_CPU_IO_PPI;
|
|
|
|
|
2008-08-14 06:11:35 +02:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// EFI_PEI_CPU_IO_PPI_WIDTH.
|
2008-08-14 06:11:35 +02:00
|
|
|
///
|
2007-06-13 13:11:23 +02:00
|
|
|
typedef enum {
|
|
|
|
EfiPeiCpuIoWidthUint8,
|
|
|
|
EfiPeiCpuIoWidthUint16,
|
|
|
|
EfiPeiCpuIoWidthUint32,
|
|
|
|
EfiPeiCpuIoWidthUint64,
|
|
|
|
EfiPeiCpuIoWidthFifoUint8,
|
|
|
|
EfiPeiCpuIoWidthFifoUint16,
|
|
|
|
EfiPeiCpuIoWidthFifoUint32,
|
|
|
|
EfiPeiCpuIoWidthFifoUint64,
|
|
|
|
EfiPeiCpuIoWidthFillUint8,
|
|
|
|
EfiPeiCpuIoWidthFillUint16,
|
|
|
|
EfiPeiCpuIoWidthFillUint32,
|
|
|
|
EfiPeiCpuIoWidthFillUint64,
|
|
|
|
EfiPeiCpuIoWidthMaximum
|
|
|
|
} EFI_PEI_CPU_IO_PPI_WIDTH;
|
|
|
|
|
|
|
|
/**
|
|
|
|
Memory-based access services and I/O-based access services.
|
|
|
|
|
2010-01-14 23:57:30 +01:00
|
|
|
@param[in] PeiServices An indirect pointer to the PEI Services Table
|
|
|
|
published by the PEI Foundation.
|
2010-03-12 23:19:12 +01:00
|
|
|
@param[in] This The pointer to local data for the interface.
|
2010-01-14 23:57:30 +01:00
|
|
|
@param[in] Width The width of the access. Enumerated in bytes.
|
|
|
|
@param[in] Address The physical address of the access.
|
|
|
|
@param[in] Count The number of accesses to perform.
|
|
|
|
@param[in, out] Buffer A pointer to the buffer of data.
|
2007-06-13 13:11:23 +02:00
|
|
|
|
2010-01-14 23:57:30 +01:00
|
|
|
@retval EFI_SUCCESS The function completed successfully.
|
|
|
|
@retval EFI_NOT_YET_AVAILABLE The service has not been installed.
|
2007-06-13 13:11:23 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
typedef
|
|
|
|
EFI_STATUS
|
2008-06-24 09:14:18 +02:00
|
|
|
(EFIAPI *EFI_PEI_CPU_IO_PPI_IO_MEM)(
|
2010-01-14 23:57:30 +01:00
|
|
|
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
|
2007-06-13 13:11:23 +02:00
|
|
|
);
|
|
|
|
|
2008-08-14 06:11:35 +02:00
|
|
|
///
|
|
|
|
/// EFI_PEI_CPU_IO_PPI_ACCESS
|
|
|
|
///
|
2007-06-13 13:11:23 +02:00
|
|
|
typedef struct {
|
2008-09-04 11:15:21 +02:00
|
|
|
///
|
|
|
|
/// This service provides the various modalities of memory and I/O read.
|
|
|
|
///
|
2010-01-14 23:57:30 +01:00
|
|
|
EFI_PEI_CPU_IO_PPI_IO_MEM Read;
|
2008-09-04 11:15:21 +02:00
|
|
|
///
|
|
|
|
/// This service provides the various modalities of memory and I/O write.
|
|
|
|
///
|
2010-01-14 23:57:30 +01:00
|
|
|
EFI_PEI_CPU_IO_PPI_IO_MEM Write;
|
2007-06-13 13:11:23 +02:00
|
|
|
} EFI_PEI_CPU_IO_PPI_ACCESS;
|
|
|
|
|
|
|
|
/**
|
|
|
|
8-bit I/O read operations.
|
|
|
|
|
2018-06-27 15:11:33 +02:00
|
|
|
@param[in] PeiServices An indirect pointer to the PEI Services Table published
|
2010-01-14 05:43:31 +01:00
|
|
|
by the PEI Foundation.
|
2010-03-12 23:19:12 +01:00
|
|
|
@param[in] This The pointer to local data for the interface.
|
2010-01-14 05:43:31 +01:00
|
|
|
@param[in] Address The physical address of the access.
|
2007-06-13 13:11:23 +02:00
|
|
|
|
2010-01-14 23:57:30 +01:00
|
|
|
@return An 8-bit value returned from the I/O space.
|
2007-06-13 13:11:23 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
typedef
|
|
|
|
UINT8
|
2008-06-24 09:14:18 +02:00
|
|
|
(EFIAPI *EFI_PEI_CPU_IO_PPI_IO_READ8)(
|
2010-01-14 23:57:30 +01:00
|
|
|
IN CONST EFI_PEI_SERVICES **PeiServices,
|
|
|
|
IN CONST EFI_PEI_CPU_IO_PPI *This,
|
|
|
|
IN UINT64 Address
|
2007-06-13 13:11:23 +02:00
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
|
|
|
16-bit I/O read operations.
|
|
|
|
|
2018-06-27 15:11:33 +02:00
|
|
|
@param[in] PeiServices An indirect pointer to the PEI Services Table published
|
2010-01-14 05:43:31 +01:00
|
|
|
by the PEI Foundation.
|
2010-03-12 23:19:12 +01:00
|
|
|
@param[in] This The pointer to local data for the interface.
|
2010-01-14 05:43:31 +01:00
|
|
|
@param[in] Address The physical address of the access.
|
2007-06-13 13:11:23 +02:00
|
|
|
|
2010-01-14 23:57:30 +01:00
|
|
|
@return A 16-bit value returned from the I/O space.
|
2007-06-13 13:11:23 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
typedef
|
|
|
|
UINT16
|
2008-06-24 09:14:18 +02:00
|
|
|
(EFIAPI *EFI_PEI_CPU_IO_PPI_IO_READ16)(
|
2010-01-14 23:57:30 +01:00
|
|
|
IN CONST EFI_PEI_SERVICES **PeiServices,
|
|
|
|
IN CONST EFI_PEI_CPU_IO_PPI *This,
|
|
|
|
IN UINT64 Address
|
2007-06-13 13:11:23 +02:00
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
|
|
|
32-bit I/O read operations.
|
|
|
|
|
2018-06-27 15:11:33 +02:00
|
|
|
@param[in] PeiServices An indirect pointer to the PEI Services Table published
|
2010-01-14 05:43:31 +01:00
|
|
|
by the PEI Foundation.
|
2010-03-12 23:19:12 +01:00
|
|
|
@param[in] This The pointer to local data for the interface.
|
2010-01-14 05:43:31 +01:00
|
|
|
@param[in] Address The physical address of the access.
|
2007-06-13 13:11:23 +02:00
|
|
|
|
2010-01-14 23:57:30 +01:00
|
|
|
@return A 32-bit value returned from the I/O space.
|
2007-06-13 13:11:23 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
typedef
|
|
|
|
UINT32
|
2008-06-24 09:14:18 +02:00
|
|
|
(EFIAPI *EFI_PEI_CPU_IO_PPI_IO_READ32)(
|
2010-01-14 23:57:30 +01:00
|
|
|
IN CONST EFI_PEI_SERVICES **PeiServices,
|
|
|
|
IN CONST EFI_PEI_CPU_IO_PPI *This,
|
|
|
|
IN UINT64 Address
|
2007-06-13 13:11:23 +02:00
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
|
|
|
64-bit I/O read operations.
|
|
|
|
|
2018-06-27 15:11:33 +02:00
|
|
|
@param[in] PeiServices An indirect pointer to the PEI Services Table published
|
2010-01-14 05:43:31 +01:00
|
|
|
by the PEI Foundation.
|
2010-03-12 23:19:12 +01:00
|
|
|
@param[in] This The pointer to local data for the interface.
|
2010-01-14 05:43:31 +01:00
|
|
|
@param[in] Address The physical address of the access.
|
2007-06-13 13:11:23 +02:00
|
|
|
|
2010-01-14 23:57:30 +01:00
|
|
|
@return A 64-bit value returned from the I/O space.
|
2007-06-13 13:11:23 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
typedef
|
|
|
|
UINT64
|
2008-06-24 09:14:18 +02:00
|
|
|
(EFIAPI *EFI_PEI_CPU_IO_PPI_IO_READ64)(
|
2010-01-14 23:57:30 +01:00
|
|
|
IN CONST EFI_PEI_SERVICES **PeiServices,
|
|
|
|
IN CONST EFI_PEI_CPU_IO_PPI *This,
|
|
|
|
IN UINT64 Address
|
2007-06-13 13:11:23 +02:00
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
|
|
|
8-bit I/O write operations.
|
|
|
|
|
2018-06-27 15:11:33 +02:00
|
|
|
@param[in] PeiServices An indirect pointer to the PEI Services Table published
|
2010-01-14 05:43:31 +01:00
|
|
|
by the PEI Foundation.
|
2010-03-12 23:19:12 +01:00
|
|
|
@param[in] This The pointer to local data for the interface.
|
2010-01-14 05:43:31 +01:00
|
|
|
@param[in] Address The physical address of the access.
|
|
|
|
@param[in] Data The data to write.
|
2007-06-13 13:11:23 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
typedef
|
|
|
|
VOID
|
2008-06-24 09:14:18 +02:00
|
|
|
(EFIAPI *EFI_PEI_CPU_IO_PPI_IO_WRITE8)(
|
2010-01-14 23:57:30 +01:00
|
|
|
IN CONST EFI_PEI_SERVICES **PeiServices,
|
|
|
|
IN CONST EFI_PEI_CPU_IO_PPI *This,
|
|
|
|
IN UINT64 Address,
|
|
|
|
IN UINT8 Data
|
2007-06-13 13:11:23 +02:00
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
|
|
|
16-bit I/O write operations.
|
|
|
|
|
2018-06-27 15:11:33 +02:00
|
|
|
@param[in] PeiServices An indirect pointer to the PEI Services Table published
|
2010-01-14 05:43:31 +01:00
|
|
|
by the PEI Foundation.
|
2010-03-12 23:19:12 +01:00
|
|
|
@param[in] This The pointer to local data for the interface.
|
2010-01-14 05:43:31 +01:00
|
|
|
@param[in] Address The physical address of the access.
|
|
|
|
@param[in] Data The data to write.
|
2007-06-13 13:11:23 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
typedef
|
|
|
|
VOID
|
2008-06-24 09:14:18 +02:00
|
|
|
(EFIAPI *EFI_PEI_CPU_IO_PPI_IO_WRITE16)(
|
2010-01-14 23:57:30 +01:00
|
|
|
IN CONST EFI_PEI_SERVICES **PeiServices,
|
|
|
|
IN CONST EFI_PEI_CPU_IO_PPI *This,
|
|
|
|
IN UINT64 Address,
|
|
|
|
IN UINT16 Data
|
2007-06-13 13:11:23 +02:00
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
|
|
|
32-bit I/O write operations.
|
|
|
|
|
2018-06-27 15:11:33 +02:00
|
|
|
@param[in] PeiServices An indirect pointer to the PEI Services Table published
|
2010-01-14 05:43:31 +01:00
|
|
|
by the PEI Foundation.
|
2010-03-12 23:19:12 +01:00
|
|
|
@param[in] This The pointer to local data for the interface.
|
2010-01-14 05:43:31 +01:00
|
|
|
@param[in] Address The physical address of the access.
|
|
|
|
@param[in] Data The data to write.
|
2007-06-13 13:11:23 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
typedef
|
|
|
|
VOID
|
2008-06-24 09:14:18 +02:00
|
|
|
(EFIAPI *EFI_PEI_CPU_IO_PPI_IO_WRITE32)(
|
2010-01-14 23:57:30 +01:00
|
|
|
IN CONST EFI_PEI_SERVICES **PeiServices,
|
|
|
|
IN CONST EFI_PEI_CPU_IO_PPI *This,
|
|
|
|
IN UINT64 Address,
|
|
|
|
IN UINT32 Data
|
2007-06-13 13:11:23 +02:00
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
|
|
|
64-bit I/O write operations.
|
|
|
|
|
2018-06-27 15:11:33 +02:00
|
|
|
@param[in] PeiServices An indirect pointer to the PEI Services Table published
|
2010-01-14 05:43:31 +01:00
|
|
|
by the PEI Foundation.
|
2010-03-12 23:19:12 +01:00
|
|
|
@param[in] This The pointer to local data for the interface.
|
2010-01-14 05:43:31 +01:00
|
|
|
@param[in] Address The physical address of the access.
|
|
|
|
@param[in] Data The data to write.
|
2007-06-13 13:11:23 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
typedef
|
|
|
|
VOID
|
2008-06-24 09:14:18 +02:00
|
|
|
(EFIAPI *EFI_PEI_CPU_IO_PPI_IO_WRITE64)(
|
2010-01-14 23:57:30 +01:00
|
|
|
IN CONST EFI_PEI_SERVICES **PeiServices,
|
|
|
|
IN CONST EFI_PEI_CPU_IO_PPI *This,
|
|
|
|
IN UINT64 Address,
|
|
|
|
IN UINT64 Data
|
2007-06-13 13:11:23 +02:00
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
2008-09-04 11:15:21 +02:00
|
|
|
8-bit memory read operations.
|
2007-06-13 13:11:23 +02:00
|
|
|
|
2018-06-27 15:11:33 +02:00
|
|
|
@param[in] PeiServices An indirect pointer to the PEI Services Table published
|
2010-01-14 05:43:31 +01:00
|
|
|
by the PEI Foundation.
|
2010-03-12 23:19:12 +01:00
|
|
|
@param[in] This The pointer to local data for the interface.
|
2010-01-14 05:43:31 +01:00
|
|
|
@param[in] Address The physical address of the access.
|
2007-06-13 13:11:23 +02:00
|
|
|
|
2010-01-14 23:57:30 +01:00
|
|
|
@return An 8-bit value returned from the memory space.
|
2007-06-13 13:11:23 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
typedef
|
|
|
|
UINT8
|
2008-06-24 09:14:18 +02:00
|
|
|
(EFIAPI *EFI_PEI_CPU_IO_PPI_MEM_READ8)(
|
2010-01-14 23:57:30 +01:00
|
|
|
IN CONST EFI_PEI_SERVICES **PeiServices,
|
|
|
|
IN CONST EFI_PEI_CPU_IO_PPI *This,
|
|
|
|
IN UINT64 Address
|
2007-06-13 13:11:23 +02:00
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
2008-09-04 11:15:21 +02:00
|
|
|
16-bit memory read operations.
|
2007-06-13 13:11:23 +02:00
|
|
|
|
2018-06-27 15:11:33 +02:00
|
|
|
@param[in] PeiServices An indirect pointer to the PEI Services Table published
|
2010-01-14 05:43:31 +01:00
|
|
|
by the PEI Foundation.
|
2010-03-12 23:19:12 +01:00
|
|
|
@param[in] This The pointer to local data for the interface.
|
2010-01-14 05:43:31 +01:00
|
|
|
@param[in] Address The physical address of the access.
|
2007-06-13 13:11:23 +02:00
|
|
|
|
2010-01-14 23:57:30 +01:00
|
|
|
@return A 16-bit value returned from the memory space.
|
2007-06-13 13:11:23 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
typedef
|
|
|
|
UINT16
|
2008-06-24 09:14:18 +02:00
|
|
|
(EFIAPI *EFI_PEI_CPU_IO_PPI_MEM_READ16)(
|
2010-01-14 23:57:30 +01:00
|
|
|
IN CONST EFI_PEI_SERVICES **PeiServices,
|
|
|
|
IN CONST EFI_PEI_CPU_IO_PPI *This,
|
|
|
|
IN UINT64 Address
|
2007-06-13 13:11:23 +02:00
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
2008-09-04 11:15:21 +02:00
|
|
|
32-bit memory read operations.
|
2007-06-13 13:11:23 +02:00
|
|
|
|
2018-06-27 15:11:33 +02:00
|
|
|
@param[in] PeiServices An indirect pointer to the PEI Services Table published
|
2010-01-14 05:43:31 +01:00
|
|
|
by the PEI Foundation.
|
2010-03-12 23:19:12 +01:00
|
|
|
@param[in] This The pointer to local data for the interface.
|
2010-01-14 05:43:31 +01:00
|
|
|
@param[in] Address The physical address of the access.
|
2007-06-13 13:11:23 +02:00
|
|
|
|
2010-01-14 23:57:30 +01:00
|
|
|
@return A 32-bit value returned from the memory space.
|
2007-06-13 13:11:23 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
typedef
|
|
|
|
UINT32
|
2008-06-24 09:14:18 +02:00
|
|
|
(EFIAPI *EFI_PEI_CPU_IO_PPI_MEM_READ32)(
|
2010-01-14 23:57:30 +01:00
|
|
|
IN CONST EFI_PEI_SERVICES **PeiServices,
|
|
|
|
IN CONST EFI_PEI_CPU_IO_PPI *This,
|
|
|
|
IN UINT64 Address
|
2007-06-13 13:11:23 +02:00
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
2008-09-04 11:15:21 +02:00
|
|
|
64-bit memory read operations.
|
2007-06-13 13:11:23 +02:00
|
|
|
|
2018-06-27 15:11:33 +02:00
|
|
|
@param[in] PeiServices An indirect pointer to the PEI Services Table published
|
2010-01-14 05:43:31 +01:00
|
|
|
by the PEI Foundation.
|
2010-03-12 23:19:12 +01:00
|
|
|
@param[in] This The pointer to local data for the interface.
|
2010-01-14 05:43:31 +01:00
|
|
|
@param[in] Address The physical address of the access.
|
2007-06-13 13:11:23 +02:00
|
|
|
|
2010-01-14 23:57:30 +01:00
|
|
|
@return A 64-bit value returned from the memory space.
|
2007-06-13 13:11:23 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
typedef
|
|
|
|
UINT64
|
2008-06-24 09:14:18 +02:00
|
|
|
(EFIAPI *EFI_PEI_CPU_IO_PPI_MEM_READ64)(
|
2010-01-14 23:57:30 +01:00
|
|
|
IN CONST EFI_PEI_SERVICES **PeiServices,
|
|
|
|
IN CONST EFI_PEI_CPU_IO_PPI *This,
|
|
|
|
IN UINT64 Address
|
2007-06-13 13:11:23 +02:00
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
2008-09-04 11:15:21 +02:00
|
|
|
8-bit memory write operations.
|
2007-06-13 13:11:23 +02:00
|
|
|
|
2018-06-27 15:11:33 +02:00
|
|
|
@param[in] PeiServices An indirect pointer to the PEI Services Table published
|
2010-01-14 05:43:31 +01:00
|
|
|
by the PEI Foundation.
|
2010-03-12 23:19:12 +01:00
|
|
|
@param[in] This The pointer to local data for the interface.
|
2010-01-14 05:43:31 +01:00
|
|
|
@param[in] Address The physical address of the access.
|
|
|
|
@param[in] Data The data to write.
|
2007-06-13 13:11:23 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
typedef
|
|
|
|
VOID
|
2008-06-24 09:14:18 +02:00
|
|
|
(EFIAPI *EFI_PEI_CPU_IO_PPI_MEM_WRITE8)(
|
2010-01-14 23:57:30 +01:00
|
|
|
IN CONST EFI_PEI_SERVICES **PeiServices,
|
|
|
|
IN CONST EFI_PEI_CPU_IO_PPI *This,
|
|
|
|
IN UINT64 Address,
|
|
|
|
IN UINT8 Data
|
2007-06-13 13:11:23 +02:00
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
2008-09-04 11:15:21 +02:00
|
|
|
16-bit memory write operations.
|
2007-06-13 13:11:23 +02:00
|
|
|
|
2018-06-27 15:11:33 +02:00
|
|
|
@param[in] PeiServices An indirect pointer to the PEI Services Table published
|
2010-01-14 05:43:31 +01:00
|
|
|
by the PEI Foundation.
|
2010-03-12 23:19:12 +01:00
|
|
|
@param[in] This The pointer to local data for the interface.
|
2010-01-14 05:43:31 +01:00
|
|
|
@param[in] Address The physical address of the access.
|
|
|
|
@param[in] Data The data to write.
|
2007-06-13 13:11:23 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
typedef
|
|
|
|
VOID
|
2008-06-24 09:14:18 +02:00
|
|
|
(EFIAPI *EFI_PEI_CPU_IO_PPI_MEM_WRITE16)(
|
2010-01-14 23:57:30 +01:00
|
|
|
IN CONST EFI_PEI_SERVICES **PeiServices,
|
|
|
|
IN CONST EFI_PEI_CPU_IO_PPI *This,
|
|
|
|
IN UINT64 Address,
|
|
|
|
IN UINT16 Data
|
2007-06-13 13:11:23 +02:00
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
2008-09-04 11:15:21 +02:00
|
|
|
32-bit memory write operations.
|
2007-06-13 13:11:23 +02:00
|
|
|
|
2018-06-27 15:11:33 +02:00
|
|
|
@param[in] PeiServices An indirect pointer to the PEI Services Table published
|
2010-01-14 05:43:31 +01:00
|
|
|
by the PEI Foundation.
|
2010-03-12 23:19:12 +01:00
|
|
|
@param[in] This The pointer to local data for the interface.
|
2010-01-14 05:43:31 +01:00
|
|
|
@param[in] Address The physical address of the access.
|
|
|
|
@param[in] Data The data to write.
|
2007-06-13 13:11:23 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
typedef
|
|
|
|
VOID
|
2008-06-24 09:14:18 +02:00
|
|
|
(EFIAPI *EFI_PEI_CPU_IO_PPI_MEM_WRITE32)(
|
2010-01-14 23:57:30 +01:00
|
|
|
IN CONST EFI_PEI_SERVICES **PeiServices,
|
|
|
|
IN CONST EFI_PEI_CPU_IO_PPI *This,
|
|
|
|
IN UINT64 Address,
|
|
|
|
IN UINT32 Data
|
2007-06-13 13:11:23 +02:00
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
2008-09-04 11:15:21 +02:00
|
|
|
64-bit memory write operations.
|
2007-06-13 13:11:23 +02:00
|
|
|
|
2018-06-27 15:11:33 +02:00
|
|
|
@param[in] PeiServices An indirect pointer to the PEI Services Table published
|
2010-01-14 05:43:31 +01:00
|
|
|
by the PEI Foundation.
|
2010-03-12 23:19:12 +01:00
|
|
|
@param[in] This The pointer to local data for the interface.
|
2010-01-14 05:43:31 +01:00
|
|
|
@param[in] Address The physical address of the access.
|
|
|
|
@param[in] Data The data to write.
|
2007-06-13 13:11:23 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
typedef
|
|
|
|
VOID
|
2008-06-24 09:14:18 +02:00
|
|
|
(EFIAPI *EFI_PEI_CPU_IO_PPI_MEM_WRITE64)(
|
2010-01-14 23:57:30 +01:00
|
|
|
IN CONST EFI_PEI_SERVICES **PeiServices,
|
|
|
|
IN CONST EFI_PEI_CPU_IO_PPI *This,
|
|
|
|
IN UINT64 Address,
|
|
|
|
IN UINT64 Data
|
2007-06-13 13:11:23 +02:00
|
|
|
);
|
|
|
|
|
2008-09-04 11:15:21 +02:00
|
|
|
///
|
|
|
|
/// EFI_PEI_CPU_IO_PPI provides a set of memory and I/O-based services.
|
2018-06-27 15:11:33 +02:00
|
|
|
/// The perspective of the services is that of the processor, not that of the
|
2010-03-12 23:19:12 +01:00
|
|
|
/// bus or system.
|
2008-09-04 11:15:21 +02:00
|
|
|
///
|
2007-06-13 13:11:23 +02:00
|
|
|
struct _EFI_PEI_CPU_IO_PPI {
|
2010-01-14 05:43:31 +01:00
|
|
|
///
|
|
|
|
/// Collection of memory-access services.
|
|
|
|
///
|
|
|
|
EFI_PEI_CPU_IO_PPI_ACCESS Mem;
|
|
|
|
///
|
|
|
|
/// Collection of I/O-access services.
|
|
|
|
///
|
|
|
|
EFI_PEI_CPU_IO_PPI_ACCESS Io;
|
2008-10-13 04:54:29 +02:00
|
|
|
|
2007-06-13 13:11:23 +02:00
|
|
|
EFI_PEI_CPU_IO_PPI_IO_READ8 IoRead8;
|
|
|
|
EFI_PEI_CPU_IO_PPI_IO_READ16 IoRead16;
|
|
|
|
EFI_PEI_CPU_IO_PPI_IO_READ32 IoRead32;
|
|
|
|
EFI_PEI_CPU_IO_PPI_IO_READ64 IoRead64;
|
2008-10-13 04:54:29 +02:00
|
|
|
|
2007-06-13 13:11:23 +02:00
|
|
|
EFI_PEI_CPU_IO_PPI_IO_WRITE8 IoWrite8;
|
|
|
|
EFI_PEI_CPU_IO_PPI_IO_WRITE16 IoWrite16;
|
|
|
|
EFI_PEI_CPU_IO_PPI_IO_WRITE32 IoWrite32;
|
|
|
|
EFI_PEI_CPU_IO_PPI_IO_WRITE64 IoWrite64;
|
2008-10-13 04:54:29 +02:00
|
|
|
|
2007-06-13 13:11:23 +02:00
|
|
|
EFI_PEI_CPU_IO_PPI_MEM_READ8 MemRead8;
|
|
|
|
EFI_PEI_CPU_IO_PPI_MEM_READ16 MemRead16;
|
|
|
|
EFI_PEI_CPU_IO_PPI_MEM_READ32 MemRead32;
|
|
|
|
EFI_PEI_CPU_IO_PPI_MEM_READ64 MemRead64;
|
2008-10-13 04:54:29 +02:00
|
|
|
|
2007-06-13 13:11:23 +02:00
|
|
|
EFI_PEI_CPU_IO_PPI_MEM_WRITE8 MemWrite8;
|
|
|
|
EFI_PEI_CPU_IO_PPI_MEM_WRITE16 MemWrite16;
|
|
|
|
EFI_PEI_CPU_IO_PPI_MEM_WRITE32 MemWrite32;
|
|
|
|
EFI_PEI_CPU_IO_PPI_MEM_WRITE64 MemWrite64;
|
|
|
|
};
|
|
|
|
|
2007-07-06 05:23:55 +02:00
|
|
|
extern EFI_GUID gEfiPeiCpuIoPpiInstalledGuid;
|
2007-06-13 13:11:23 +02:00
|
|
|
|
|
|
|
#endif
|