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