1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- /** @file
- @copyright
- Copyright 1999 - 2021 Intel Corporation. <BR>
- SPDX-License-Identifier: BSD-2-Clause-Patent
- **/
- #ifndef _PCI_HOST_RESOURCE_H_
- #define _PCI_HOST_RESOURCE_H_
- #include <PiDxe.h>
- #include <UncoreCommonIncludes.h>
- #define EFI_RESOURCE_NONEXISTENT 0xFFFFFFFFFFFFFFFF
- #define EFI_RESOURCE_LESS 0xFFFFFFFFFFFFFFFE
- typedef struct {
- UINTN BusBase;
- UINTN BusLimit;
- UINTN BusReserve;
- UINT32 Mem32Base;
- UINT32 Mem32Limit;
- UINT64 Mem64Base;
- UINT64 Mem64Limit;
- UINTN IoBase;
- UINTN IoLimit;
- } PCI_ROOT_BRIDGE_RESOURCE_APERTURE;
- typedef enum {
- TypeIo = 0,
- TypeMem32,
- TypePMem32,
- TypeMem64,
- TypePMem64,
- TypeBus,
- TypeMax
- } PCI_RESOURCE_TYPE;
- typedef enum {
- ResNone,
- ResSubmitted,
- ResRequested,
- ResAllocated,
- ResStatusMax
- } RES_STATUS;
- typedef struct {
- PCI_RESOURCE_TYPE Type;
- //
- // Base is a host address
- //
- UINT64 Base;
- UINT64 Length;
- UINT64 Alignment;
- RES_STATUS Status;
- } PCI_RES_NODE;
- #endif // _PCI_HOST_RESOURCE_H_
|