]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostResource.h
MdeModulePkg/PciHostBridgeDxe: Add support for address translation
[mirror_edk2.git] / MdeModulePkg / Bus / Pci / PciHostBridgeDxe / PciHostResource.h
1 /** @file
2
3 The Header file of the Pci Host Bridge Driver.
4
5 Copyright (c) 1999 - 2016, Intel Corporation. All rights reserved.<BR>
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 #ifndef _PCI_HOST_RESOURCE_H_
16 #define _PCI_HOST_RESOURCE_H_
17
18 #include <PiDxe.h>
19
20 #define PCI_RESOURCE_LESS 0xFFFFFFFFFFFFFFFEULL
21
22 typedef enum {
23 TypeIo = 0,
24 TypeMem32,
25 TypePMem32,
26 TypeMem64,
27 TypePMem64,
28 TypeBus,
29 TypeMax
30 } PCI_RESOURCE_TYPE;
31
32 typedef enum {
33 ResNone,
34 ResSubmitted,
35 ResAllocated,
36 ResStatusMax
37 } RES_STATUS;
38
39 typedef struct {
40 PCI_RESOURCE_TYPE Type;
41 //
42 // Base is a host address
43 //
44 UINT64 Base;
45 UINT64 Length;
46 UINT64 Alignment;
47 RES_STATUS Status;
48 } PCI_RES_NODE;
49
50 #endif