]>
Commit | Line | Data |
---|---|---|
b303605e MK |
1 | /** @file\r |
2 | The Header file of the Pci Host Bridge Driver.\r | |
3 | \r | |
4 | Copyright (c) 2013-2015 Intel Corporation.\r | |
5 | \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 | **/\r | |
16 | \r | |
17 | #ifndef _PCI_HOST_RESOURCE_H_\r | |
18 | #define _PCI_HOST_RESOURCE_H_\r | |
19 | \r | |
20 | #include <PiDxe.h>\r | |
21 | \r | |
22 | #define EFI_RESOURCE_NONEXISTENT 0xFFFFFFFFFFFFFFFFULL\r | |
23 | #define EFI_RESOURCE_LESS 0xFFFFFFFFFFFFFFFEULL\r | |
24 | \r | |
25 | typedef struct {\r | |
26 | UINTN BusBase;\r | |
27 | UINTN BusLimit;\r | |
28 | UINTN BusReserve;\r | |
29 | \r | |
30 | UINT32 Mem32Base;\r | |
31 | UINT32 Mem32Limit;\r | |
32 | \r | |
33 | UINT64 Mem64Base;\r | |
34 | UINT64 Mem64Limit;\r | |
35 | \r | |
36 | UINTN IoBase;\r | |
37 | UINTN IoLimit;\r | |
38 | } PCI_ROOT_BRIDGE_RESOURCE_APERTURE;\r | |
39 | \r | |
40 | typedef enum {\r | |
41 | TypeIo = 0,\r | |
42 | TypeMem32,\r | |
43 | TypePMem32,\r | |
44 | TypeMem64,\r | |
45 | TypePMem64,\r | |
46 | TypeBus,\r | |
47 | TypeMax\r | |
48 | } PCI_RESOURCE_TYPE;\r | |
49 | \r | |
50 | typedef enum {\r | |
51 | ResNone = 0,\r | |
52 | ResSubmitted,\r | |
53 | ResRequested,\r | |
54 | ResAllocated,\r | |
55 | ResStatusMax\r | |
56 | } RES_STATUS;\r | |
57 | \r | |
58 | typedef struct {\r | |
59 | PCI_RESOURCE_TYPE Type;\r | |
60 | UINT64 Base;\r | |
61 | UINT64 Length;\r | |
62 | UINT64 Alignment;\r | |
63 | RES_STATUS Status;\r | |
64 | } PCI_RES_NODE;\r | |
65 | \r | |
66 | #endif\r |