1 /** @file 2 The Header file of the Pci Host Bridge Driver. 3 4 Copyright (c) 2013-2015 Intel Corporation. 5 6 This program and the accompanying materials 7 are licensed and made available under the terms and conditions of the BSD License 8 which accompanies this distribution. The full text of the license may be found at 9 http://opensource.org/licenses/bsd-license.php 10 11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 13 14 15 **/ 16 17 #ifndef _PCI_HOST_RESOURCE_H_ 18 #define _PCI_HOST_RESOURCE_H_ 19 20 #include <PiDxe.h> 21 22 #define EFI_RESOURCE_NONEXISTENT 0xFFFFFFFFFFFFFFFFULL 23 #define EFI_RESOURCE_LESS 0xFFFFFFFFFFFFFFFEULL 24 25 typedef struct { 26 UINTN BusBase; 27 UINTN BusLimit; 28 UINTN BusReserve; 29 30 UINT32 Mem32Base; 31 UINT32 Mem32Limit; 32 33 UINT64 Mem64Base; 34 UINT64 Mem64Limit; 35 36 UINTN IoBase; 37 UINTN IoLimit; 38 } PCI_ROOT_BRIDGE_RESOURCE_APERTURE; 39 40 typedef enum { 41 TypeIo = 0, 42 TypeMem32, 43 TypePMem32, 44 TypeMem64, 45 TypePMem64, 46 TypeBus, 47 TypeMax 48 } PCI_RESOURCE_TYPE; 49 50 typedef enum { 51 ResNone = 0, 52 ResSubmitted, 53 ResRequested, 54 ResAllocated, 55 ResStatusMax 56 } RES_STATUS; 57 58 typedef struct { 59 PCI_RESOURCE_TYPE Type; 60 UINT64 Base; 61 UINT64 Length; 62 UINT64 Alignment; 63 RES_STATUS Status; 64 } PCI_RES_NODE; 65 66 #endif 67