-/*++\r
-\r
-Copyright (c) 2004 - 2007, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
-\r
-Module Name:\r
-\r
- PciCfg.h\r
-\r
-Abstract:\r
-\r
- PciCfg PPI as defined in PEI CIS specification\r
-\r
- Used to access PCI configuration space in PEI\r
-\r
---*/\r
-\r
-#ifndef _PEI_PCI_CFG_H_\r
-#define _PEI_PCI_CFG_H_\r
-#include "EfiPciCfg.h"\r
-\r
-#define PEI_PCI_CFG_PPI_GUID \\r
- { \\r
- 0xe1f2eba0, 0xf7b9, 0x4a26, {0x86, 0x20, 0x13, 0x12, 0x21, 0x64, 0x2a, 0x90} \\r
- }\r
-\r
-EFI_FORWARD_DECLARATION (PEI_PCI_CFG_PPI);\r
-\r
-\r
-typedef\r
-EFI_STATUS\r
-(EFIAPI *PEI_PCI_CFG_PPI_IO) (\r
- IN EFI_PEI_SERVICES **PeiServices,\r
- IN PEI_PCI_CFG_PPI * This,\r
- IN PEI_PCI_CFG_PPI_WIDTH Width,\r
- IN UINT64 Address,\r
- IN OUT VOID *Buffer\r
- );\r
-\r
-typedef\r
-EFI_STATUS\r
-(EFIAPI *PEI_PCI_CFG_PPI_RW) (\r
- IN EFI_PEI_SERVICES **PeiServices,\r
- IN PEI_PCI_CFG_PPI * This,\r
- IN PEI_PCI_CFG_PPI_WIDTH Width,\r
- IN UINT64 Address,\r
- IN UINTN SetBits,\r
- IN UINTN ClearBits\r
- );\r
-\r
-struct _PEI_PCI_CFG_PPI {\r
- PEI_PCI_CFG_PPI_IO Read;\r
- PEI_PCI_CFG_PPI_IO Write;\r
- PEI_PCI_CFG_PPI_RW Modify;\r
-};\r
-\r
-extern EFI_GUID gPeiPciCfgPpiInServiceTableGuid;\r
-\r
-#endif\r