]> git.proxmox.com Git - mirror_edk2.git/blame - QuarkPlatformPkg/Pci/Dxe/PciHostBridge/PciHostResource.h
QuarkPlatformPkg: Add new package for Galileo boards
[mirror_edk2.git] / QuarkPlatformPkg / Pci / Dxe / PciHostBridge / PciHostResource.h
CommitLineData
b303605e
MK
1/** @file\r
2The Header file of the Pci Host Bridge Driver.\r
3\r
4Copyright (c) 2013-2015 Intel Corporation.\r
5\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**/\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
25typedef 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
40typedef 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
50typedef enum {\r
51 ResNone = 0,\r
52 ResSubmitted,\r
53 ResRequested,\r
54 ResAllocated,\r
55 ResStatusMax\r
56} RES_STATUS;\r
57\r
58typedef 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