]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - EdkCompatibilityPkg/Compatibility/Include/Ppi/EcpPciCfg.h
Correct the code format.
[mirror_edk2.git] / EdkCompatibilityPkg / Compatibility / Include / Ppi / EcpPciCfg.h
... / ...
CommitLineData
1/** @file\r
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
3\r
4Copyright (c) 2008 - 2009, 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
18#include <Ppi/PciCfg.h>\r
19\r
20#define ECP_PEI_PCI_CFG_PPI_GUID \\r
21 {0xb0ee53d4, 0xa049, 0x4a79, { 0xb2, 0xff, 0x19, 0xd9, 0xfa, 0xef, 0xaa, 0x94}}\r
22\r
23typedef struct _ECP_PEI_PCI_CFG_PPI ECP_PEI_PCI_CFG_PPI;\r
24\r
25/**\r
26 PCI read and write operation.\r
27 \r
28 Writes to or reads from a given location in the PCI configuration space.\r
29\r
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
33 @param Address The physical address of the access. The format of\r
34 the address is described by EFI_PEI_PCI_CFG_PPI_PCI_ADDRESS.\r
35 @param Buffer A pointer to the buffer of data.\r
36 @retval EFI_SUCCESS The function completed successfully.\r
37 @retval EFI_DEVICE_ERROR There was a problem with the transaction.\r
38 @retval EFI_DEVICE_NOT_READY The device is not capable of supporting the operation at this time.\r
39**/\r
40typedef\r
41EFI_STATUS\r
42(EFIAPI *ECP_PEI_PCI_CFG_PPI_IO) (\r
43 IN EFI_PEI_SERVICES **PeiServices,\r
44 IN EFI_PEI_PCI_CFG_PPI * This,\r
45 IN EFI_PEI_PCI_CFG_PPI_WIDTH Width,\r
46 IN UINT64 Address,\r
47 IN OUT VOID *Buffer\r
48 );\r
49\r
50struct _ECP_PEI_PCI_CFG_PPI {\r
51 ECP_PEI_PCI_CFG_PPI_IO Read;\r
52 ECP_PEI_PCI_CFG_PPI_IO Write;\r
53};\r
54\r
55extern EFI_GUID gEcpPeiPciCfgPpiGuid;\r
56\r
57#endif\r