]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostResource.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[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 SPDX-License-Identifier: BSD-2-Clause-Patent
7
8 **/
9
10 #ifndef _PCI_HOST_RESOURCE_H_
11 #define _PCI_HOST_RESOURCE_H_
12
13 #include <PiDxe.h>
14
15 #define PCI_RESOURCE_LESS 0xFFFFFFFFFFFFFFFEULL
16
17 typedef enum {
18 TypeIo = 0,
19 TypeMem32,
20 TypePMem32,
21 TypeMem64,
22 TypePMem64,
23 TypeBus,
24 TypeMax
25 } PCI_RESOURCE_TYPE;
26
27 typedef enum {
28 ResNone,
29 ResSubmitted,
30 ResAllocated,
31 ResStatusMax
32 } RES_STATUS;
33
34 typedef struct {
35 PCI_RESOURCE_TYPE Type;
36 //
37 // Base is a host address
38 //
39 UINT64 Base;
40 UINT64 Length;
41 UINT64 Alignment;
42 RES_STATUS Status;
43 } PCI_RES_NODE;
44
45 #endif