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