2008-05-20 11:12:25 +02:00
|
|
|
/** @file
|
2010-03-13 02:03:39 +01:00
|
|
|
This PPI is the same as the PPI in the framework PciCfg, with one exception.
|
|
|
|
Specifically, this PPI does not include a modify API, while the PPI in the framework PciCfg does.
|
|
|
|
|
2010-04-24 11:48:54 +02:00
|
|
|
Copyright (c) 2008 - 2010, Intel Corporation. All rights reserved.<BR>
|
|
|
|
This program and the accompanying materials
|
2010-03-13 02:03:39 +01:00
|
|
|
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
|
|
|
|
http://opensource.org/licenses/bsd-license.php.
|
|
|
|
|
|
|
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
2008-05-20 11:12:25 +02:00
|
|
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef _PEI_PCI_CFG_H_
|
|
|
|
#define _PEI_PCI_CFG_H_
|
|
|
|
|
2008-05-21 09:25:07 +02:00
|
|
|
#include <Ppi/PciCfg.h>
|
2008-05-20 11:12:25 +02:00
|
|
|
|
|
|
|
#define ECP_PEI_PCI_CFG_PPI_GUID \
|
2008-05-21 09:25:07 +02:00
|
|
|
{0xb0ee53d4, 0xa049, 0x4a79, { 0xb2, 0xff, 0x19, 0xd9, 0xfa, 0xef, 0xaa, 0x94}}
|
2008-05-20 11:12:25 +02:00
|
|
|
|
|
|
|
typedef struct _ECP_PEI_PCI_CFG_PPI ECP_PEI_PCI_CFG_PPI;
|
|
|
|
|
2009-04-17 03:58:48 +02:00
|
|
|
/**
|
2010-03-13 02:03:39 +01:00
|
|
|
A PCI read and write operation.
|
2009-04-17 03:58:48 +02:00
|
|
|
|
2010-03-13 02:03:39 +01:00
|
|
|
Writes to, or reads from, a given location in the PCI configuration space.
|
2008-05-20 11:12:25 +02:00
|
|
|
|
2010-03-13 02:03:39 +01:00
|
|
|
@param PeiServices An indirect pointer to the PEI Services Table
|
|
|
|
published by the PEI Foundation.
|
|
|
|
@param This The pointer to local data for the interface.
|
2009-06-22 08:02:05 +02:00
|
|
|
@param Width The width of the access. Enumerated in bytes.
|
|
|
|
@param Address The physical address of the access. The format of
|
|
|
|
the address is described by EFI_PEI_PCI_CFG_PPI_PCI_ADDRESS.
|
|
|
|
@param Buffer A pointer to the buffer of data.
|
|
|
|
@retval EFI_SUCCESS The function completed successfully.
|
|
|
|
@retval EFI_DEVICE_ERROR There was a problem with the transaction.
|
2010-03-13 02:03:39 +01:00
|
|
|
@retval EFI_DEVICE_NOT_READY The device is not capable of supporting the
|
|
|
|
operation at this time.
|
2009-04-17 03:58:48 +02:00
|
|
|
**/
|
2008-05-20 11:12:25 +02:00
|
|
|
typedef
|
|
|
|
EFI_STATUS
|
2010-03-04 05:52:41 +01:00
|
|
|
(EFIAPI *ECP_PEI_PCI_CFG_PPI_IO)(
|
2008-05-20 11:12:25 +02:00
|
|
|
IN EFI_PEI_SERVICES **PeiServices,
|
2008-05-21 09:25:07 +02:00
|
|
|
IN EFI_PEI_PCI_CFG_PPI * This,
|
2008-05-20 11:12:25 +02:00
|
|
|
IN EFI_PEI_PCI_CFG_PPI_WIDTH Width,
|
|
|
|
IN UINT64 Address,
|
|
|
|
IN OUT VOID *Buffer
|
|
|
|
);
|
|
|
|
|
|
|
|
struct _ECP_PEI_PCI_CFG_PPI {
|
|
|
|
ECP_PEI_PCI_CFG_PPI_IO Read;
|
|
|
|
ECP_PEI_PCI_CFG_PPI_IO Write;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern EFI_GUID gEcpPeiPciCfgPpiGuid;
|
|
|
|
|
|
|
|
#endif
|