]>
Commit | Line | Data |
---|---|---|
4a50cf4e RN |
1 | /** @file\r |
2 | \r | |
3 | The Header file of the Pci Host Bridge Driver.\r | |
4 | \r | |
5 | Copyright (c) 1999 - 2016, Intel Corporation. All rights reserved.<BR>\r | |
6 | This program and the accompanying materials\r | |
7 | are licensed and made available under the terms and conditions of the BSD License\r | |
8 | which accompanies this distribution. The full text of the license may be found at\r | |
9 | http://opensource.org/licenses/bsd-license.php\r | |
10 | \r | |
11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
12 | WITHOUT 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 | |
5a0a803f | 20 | #define PCI_RESOURCE_LESS 0xFFFFFFFFFFFFFFFEULL\r |
4a50cf4e RN |
21 | \r |
22 | typedef 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 | |
32 | typedef enum {\r | |
33 | ResNone,\r | |
34 | ResSubmitted,\r | |
35 | ResAllocated,\r | |
36 | ResStatusMax\r | |
37 | } RES_STATUS;\r | |
38 | \r | |
39 | typedef 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 |