]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostResource.h
MdeModulePkg: Add generic PciHostBridgeDxe driver.
[mirror_edk2.git] / MdeModulePkg / Bus / Pci / PciHostBridgeDxe / PciHostResource.h
CommitLineData
4a50cf4e
RN
1/** @file\r
2\r
3 The Header file of the Pci Host Bridge Driver.\r
4\r
5Copyright (c) 1999 - 2016, Intel Corporation. All rights reserved.<BR>\r
6This program and the accompanying materials\r
7are licensed and made available under the terms and conditions of the BSD License\r
8which accompanies this distribution. The full text of the license may be found at\r
9http://opensource.org/licenses/bsd-license.php\r
10\r
11THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
14**/\r
15#ifndef _PCI_HOST_RESOURCE_H_\r
16#define _PCI_HOST_RESOURCE_H_\r
17\r
18#include <PiDxe.h>\r
19\r
20#define PCI_RESOURCE_LESS 0xFFFFFFFFFFFFFFFE\r
21\r
22typedef enum {\r
23 TypeIo = 0,\r
24 TypeMem32,\r
25 TypePMem32,\r
26 TypeMem64,\r
27 TypePMem64,\r
28 TypeBus,\r
29 TypeMax\r
30} PCI_RESOURCE_TYPE;\r
31\r
32typedef enum {\r
33 ResNone,\r
34 ResSubmitted,\r
35 ResAllocated,\r
36 ResStatusMax\r
37} RES_STATUS;\r
38\r
39typedef struct {\r
40 PCI_RESOURCE_TYPE Type;\r
41 UINT64 Base;\r
42 UINT64 Length;\r
43 UINT64 Alignment;\r
44 RES_STATUS Status;\r
45} PCI_RES_NODE;\r
46\r
47#endif\r