3 Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>
4 This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 Abstract the common fields of PciCfg definition between Framework 0.9x
23 #ifndef _EFI_PCI_CFG_H_
24 #define _EFI_PCI_CFG_H_
27 // Framework specification 0.9x definition.
30 PeiPciCfgWidthUint8
= 0,
31 PeiPciCfgWidthUint16
= 1,
32 PeiPciCfgWidthUint32
= 2,
33 PeiPciCfgWidthUint64
= 3,
35 } PEI_PCI_CFG_PPI_WIDTH
;
37 #define PEI_PCI_CFG_ADDRESS(bus, dev, func, reg) ( \
38 (UINT64) ((((UINTN) bus) << 24) + (((UINTN) dev) << 16) + (((UINTN) func) << 8) + ((UINTN) reg)) \
39 ) & 0x00000000ffffffff
45 EfiPeiPciCfgWidthUint8
= 0,
46 EfiPeiPciCfgWidthUint16
= 1,
47 EfiPeiPciCfgWidthUint32
= 2,
48 EfiPeiPciCfgWidthUint64
= 3,
49 EfiPeiPciCfgWidthMaximum
50 } EFI_PEI_PCI_CFG_PPI_WIDTH
;
52 #define EFI_PEI_PCI_CFG_ADDRESS(bus, dev, func, reg) \
56 ((reg) < 256 ? (reg): ((UINT64)(reg) << 32)))
59 #if (PI_SPECIFICATION_VERSION < 0x00010000)
67 } PEI_PCI_CFG_PPI_PCI_ADDRESS
;
69 typedef PEI_PCI_CFG_PPI_PCI_ADDRESS EFI_PEI_PCI_CFG_PPI_PCI_ADDRESS
;
78 UINT32 ExtendedRegister
;
79 } EFI_PEI_PCI_CFG_PPI_PCI_ADDRESS
;