]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Compatibility/Include/Ppi/EcpPciCfg.h
Correction to remove Apple lines from Disclaimers. These were introduced after r1022...
[mirror_edk2.git] / EdkCompatibilityPkg / Compatibility / Include / Ppi / EcpPciCfg.h
CommitLineData
cc5c33d7 1/** @file\r
63436673 2This PPI is the same as the PPI in the framework PciCfg, with one exception. \r
3Specifically, this PPI does not include a modify API, while the PPI in the framework PciCfg does. \r
4\r
5Copyright (c) 2008 - 2010, Intel Corporation. All rights reserved<BR>\r
63436673 6All rights reserved. This program and the accompanying materials\r
7are licensed and made available under the terms and conditions of the BSD License\r
8which accompanies this distribution. The full text of the license may be found at\r
9http://opensource.org/licenses/bsd-license.php.\r
10\r
11THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
cc5c33d7 12WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
13\r
14**/\r
15\r
16#ifndef _PEI_PCI_CFG_H_\r
17#define _PEI_PCI_CFG_H_\r
18\r
766dca7f 19#include <Ppi/PciCfg.h>\r
cc5c33d7 20\r
21#define ECP_PEI_PCI_CFG_PPI_GUID \\r
766dca7f 22 {0xb0ee53d4, 0xa049, 0x4a79, { 0xb2, 0xff, 0x19, 0xd9, 0xfa, 0xef, 0xaa, 0x94}}\r
cc5c33d7 23\r
24typedef struct _ECP_PEI_PCI_CFG_PPI ECP_PEI_PCI_CFG_PPI;\r
25\r
a45d1619 26/**\r
63436673 27 A PCI read and write operation.\r
a45d1619 28 \r
63436673 29 Writes to, or reads from, a given location in the PCI configuration space.\r
cc5c33d7 30\r
63436673 31 @param PeiServices An indirect pointer to the PEI Services Table \r
32 published by the PEI Foundation.\r
33 @param This The pointer to local data for the interface.\r
ac0f89ba
LG
34 @param Width The width of the access. Enumerated in bytes.\r
35 @param Address The physical address of the access. The format of\r
36 the address is described by EFI_PEI_PCI_CFG_PPI_PCI_ADDRESS.\r
37 @param Buffer A pointer to the buffer of data.\r
38 @retval EFI_SUCCESS The function completed successfully.\r
39 @retval EFI_DEVICE_ERROR There was a problem with the transaction.\r
63436673 40 @retval EFI_DEVICE_NOT_READY The device is not capable of supporting the \r
41 operation at this time.\r
a45d1619 42**/\r
cc5c33d7 43typedef\r
44EFI_STATUS\r
545312ad 45(EFIAPI *ECP_PEI_PCI_CFG_PPI_IO)(\r
cc5c33d7 46 IN EFI_PEI_SERVICES **PeiServices,\r
766dca7f 47 IN EFI_PEI_PCI_CFG_PPI * This,\r
cc5c33d7 48 IN EFI_PEI_PCI_CFG_PPI_WIDTH Width,\r
49 IN UINT64 Address,\r
50 IN OUT VOID *Buffer\r
51 );\r
52\r
53struct _ECP_PEI_PCI_CFG_PPI {\r
54 ECP_PEI_PCI_CFG_PPI_IO Read;\r
55 ECP_PEI_PCI_CFG_PPI_IO Write;\r
56};\r
57\r
58extern EFI_GUID gEcpPeiPciCfgPpiGuid;\r
59\r
60#endif\r