TianoCore EDK2 master
|
#include <IndustryStandard/Pci30.h>
Go to the source code of this file.
Typedefs | |
typedef PCI_EXPRESS_EXTENDED_CAPABILITIES_VIRTUAL_CHANNEL_CAPABILITY | PCI_EXPRESS_EXTENDED_CAPABILITIES_MULTI_FUNCTION_VIRTUAL_CHANNEL_CAPABILITY |
Support for the latest PCI standard.
Copyright (c) 2006 - 2021, Intel Corporation. All rights reserved.
(C) Copyright 2016 Hewlett Packard Enterprise Development LP
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file PciExpress21.h.
#define EFI_PCIE_CAPABILITY_BASE_OFFSET 0x100 |
Definition at line 424 of file PciExpress21.h.
#define EFI_PCIE_CAPABILITY_DEVICE_CAPABILITIES_2_ARI_FORWARDING 0x20 |
Definition at line 427 of file PciExpress21.h.
#define EFI_PCIE_CAPABILITY_DEVICE_CAPABILITIES_2_OFFSET 0x24 |
Definition at line 426 of file PciExpress21.h.
#define EFI_PCIE_CAPABILITY_DEVICE_CONTROL_2_ARI_FORWARDING 0x20 |
Definition at line 429 of file PciExpress21.h.
#define EFI_PCIE_CAPABILITY_DEVICE_CONTROL_2_OFFSET 0x28 |
Definition at line 428 of file PciExpress21.h.
#define EFI_PCIE_CAPABILITY_ID_ARI 0x0E |
Definition at line 434 of file PciExpress21.h.
#define EFI_PCIE_CAPABILITY_ID_ATS 0x0F |
Definition at line 435 of file PciExpress21.h.
#define EFI_PCIE_CAPABILITY_ID_MRIOV 0x11 |
Definition at line 437 of file PciExpress21.h.
#define EFI_PCIE_CAPABILITY_ID_SRIOV 0x10 |
Definition at line 436 of file PciExpress21.h.
#define EFI_PCIE_CAPABILITY_ID_SRIOV_BAR0 0x24 |
Definition at line 471 of file PciExpress21.h.
#define EFI_PCIE_CAPABILITY_ID_SRIOV_BAR1 0x28 |
Definition at line 472 of file PciExpress21.h.
#define EFI_PCIE_CAPABILITY_ID_SRIOV_BAR2 0x2C |
Definition at line 473 of file PciExpress21.h.
#define EFI_PCIE_CAPABILITY_ID_SRIOV_BAR3 0x30 |
Definition at line 474 of file PciExpress21.h.
#define EFI_PCIE_CAPABILITY_ID_SRIOV_BAR4 0x34 |
Definition at line 475 of file PciExpress21.h.
#define EFI_PCIE_CAPABILITY_ID_SRIOV_BAR5 0x38 |
Definition at line 476 of file PciExpress21.h.
#define EFI_PCIE_CAPABILITY_ID_SRIOV_CAPABILITIES 0x04 |
Definition at line 459 of file PciExpress21.h.
#define EFI_PCIE_CAPABILITY_ID_SRIOV_CONTROL 0x08 |
Definition at line 460 of file PciExpress21.h.
#define EFI_PCIE_CAPABILITY_ID_SRIOV_CONTROL_ARI_HIERARCHY 0x10 |
Definition at line 425 of file PciExpress21.h.
#define EFI_PCIE_CAPABILITY_ID_SRIOV_FIRSTVF 0x14 |
Definition at line 466 of file PciExpress21.h.
#define EFI_PCIE_CAPABILITY_ID_SRIOV_FUNCTION_DEPENDENCY_LINK 0x12 |
Definition at line 465 of file PciExpress21.h.
#define EFI_PCIE_CAPABILITY_ID_SRIOV_INITIALVFS 0x0C |
Definition at line 462 of file PciExpress21.h.
#define EFI_PCIE_CAPABILITY_ID_SRIOV_NUMVFS 0x10 |
Definition at line 464 of file PciExpress21.h.
#define EFI_PCIE_CAPABILITY_ID_SRIOV_STATUS 0x0A |
Definition at line 461 of file PciExpress21.h.
#define EFI_PCIE_CAPABILITY_ID_SRIOV_SUPPORTED_PAGE_SIZE 0x1C |
Definition at line 469 of file PciExpress21.h.
#define EFI_PCIE_CAPABILITY_ID_SRIOV_SYSTEM_PAGE_SIZE 0x20 |
Definition at line 470 of file PciExpress21.h.
#define EFI_PCIE_CAPABILITY_ID_SRIOV_TOTALVFS 0x0E |
Definition at line 463 of file PciExpress21.h.
#define EFI_PCIE_CAPABILITY_ID_SRIOV_VF_MIGRATION_STATE 0x3C |
Definition at line 477 of file PciExpress21.h.
#define EFI_PCIE_CAPABILITY_ID_SRIOV_VFDEVICEID 0x1A |
Definition at line 468 of file PciExpress21.h.
#define EFI_PCIE_CAPABILITY_ID_SRIOV_VFSTRIDE 0x16 |
Definition at line 467 of file PciExpress21.h.
#define GET_NUMBER_RESIZABLE_BARS | ( | x | ) | (x->Capability[0].ResizableBarControl.Bits.ResizableBarNumber) |
Definition at line 695 of file PciExpress21.h.
#define GET_TPH_TABLE_SIZE | ( | x | ) | ((x->TphRequesterCapability & 0x7FF0000)>>16) * sizeof(UINT16) |
Definition at line 737 of file PciExpress21.h.
#define PCI_ECAM_ADDRESS | ( | Bus, | |
Device, | |||
Function, | |||
Offset | |||
) | (((Offset) & 0xfff) | (((Function) & 0x07) << 12) | (((Device) & 0x1f) << 15) | (((Bus) & 0xff) << 20)) |
Macro that converts PCI Bus, PCI Device, PCI Function and PCI Register to an ECAM (Enhanced Configuration Access Mechanism) address. The unused upper bits of Bus, Device, Function and Register are stripped prior to the generation of the address.
Bus | PCI Bus number. Range 0..255. |
Device | PCI Device number. Range 0..31. |
Function | PCI Function number. Range 0..7. |
Register | PCI Register number. Range 0..4095. |
Definition at line 29 of file PciExpress21.h.
#define PCI_EXP_EXT_HDR PCI_EXPRESS_EXTENDED_CAPABILITIES_HEADER |
Definition at line 485 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_ACS_EXTENDED_GET_EGRES_CONTROL | ( | ACS_EXTENDED | ) | (UINT8)(((ACS_EXTENDED->AcsCapability)&0x00000020)) |
Definition at line 609 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_ACS_EXTENDED_GET_EGRES_VECTOR_SIZE | ( | ACS_EXTENDED | ) | (UINT8)(((ACS_EXTENDED->AcsCapability)&0x0000FF00)) |
Definition at line 610 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_ACS_EXTENDED_ID 0x000D |
Definition at line 599 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_ACS_EXTENDED_VER1 0x1 |
Definition at line 600 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_ADVANCED_ERROR_REPORTING_ID 0x0001 |
Definition at line 487 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_ADVANCED_ERROR_REPORTING_VER1 0x1 |
Definition at line 488 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_ADVANCED_ERROR_REPORTING_VER2 0x2 |
Definition at line 489 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_ARI_CAPABILITY_ID 0x000E |
Definition at line 697 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_ARI_CAPABILITY_VER1 0x1 |
Definition at line 698 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_DYNAMIC_POWER_ALLOCATION_GET_SUBSTATE_MAX | ( | POWER | ) | (UINT32)(((POWER->DpaCapability)&0x0000000F)) |
Definition at line 717 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_DYNAMIC_POWER_ALLOCATION_ID 0x0016 |
Definition at line 706 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_DYNAMIC_POWER_ALLOCATION_VER1 0x1 |
Definition at line 707 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_EVENT_COLLECTOR_ENDPOINT_ASSOCIATION_ID 0x0007 |
Definition at line 612 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_EVENT_COLLECTOR_ENDPOINT_ASSOCIATION_VER1 0x1 |
Definition at line 613 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_LATENCE_TOLERANCE_REPORTING_ID 0x0018 |
Definition at line 718 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_LATENCE_TOLERANCE_REPORTING_VER1 0x1 |
Definition at line 719 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_LINK_CONTROL_ID 0x0006 |
Definition at line 576 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_LINK_CONTROL_VER1 0x1 |
Definition at line 577 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_LINK_DECLARATION_GET_LINK_COUNT | ( | LINK_DECLARATION | ) | (UINT8)(((LINK_DECLARATION->ElementSelfDescription)&0x0000ff00)>>8) |
Definition at line 574 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_LINK_DECLARATION_ID 0x0005 |
Definition at line 564 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_LINK_DECLARATION_VER1 0x1 |
Definition at line 565 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_MULTI_FUNCTION_VIRTUAL_CHANNEL_ID 0x0008 |
Definition at line 620 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_MULTI_FUNCTION_VIRTUAL_CHANNEL_VER1 0x1 |
Definition at line 621 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_MULTICAST_ID 0x0012 |
Definition at line 648 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_MULTICAST_VER1 0x1 |
Definition at line 649 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_POWER_BUDGETING_ID 0x0004 |
Definition at line 586 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_POWER_BUDGETING_VER1 0x1 |
Definition at line 587 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_RCRB_HEADER_ID 0x000A |
Definition at line 636 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_RCRB_HEADER_VER1 0x1 |
Definition at line 637 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_RESIZABLE_BAR_ID 0x0015 |
Definition at line 662 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_RESIZABLE_BAR_VER1 0x1 |
Definition at line 663 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_SERIAL_NUMBER_ID 0x0003 |
Definition at line 556 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_SERIAL_NUMBER_VER1 0x1 |
Definition at line 557 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_TPH_ID 0x0017 |
Definition at line 727 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_TPH_VER1 0x1 |
Definition at line 728 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_VENDOR_SPECIFIC_GET_SIZE | ( | VENDOR | ) | (UINT16)(((VENDOR->VendorSpecificHeader)&0xFFF00000)>>20) |
Definition at line 634 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_VENDOR_SPECIFIC_ID 0x000B |
Definition at line 625 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_VENDOR_SPECIFIC_VER1 0x1 |
Definition at line 626 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_VIRTUAL_CHANNEL_ID 0x0002 |
Definition at line 533 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_VIRTUAL_CHANNEL_MFVC 0x0009 |
Definition at line 534 of file PciExpress21.h.
#define PCI_EXPRESS_EXTENDED_CAPABILITY_VIRTUAL_CHANNEL_VER1 0x1 |
Definition at line 535 of file PciExpress21.h.
#define PCIE_COMPLETION_TIMEOUT_16MS_55MS 5 |
Definition at line 330 of file PciExpress21.h.
#define PCIE_COMPLETION_TIMEOUT_17S_64S 14 |
Definition at line 335 of file PciExpress21.h.
#define PCIE_COMPLETION_TIMEOUT_1MS_10MS 2 |
Definition at line 329 of file PciExpress21.h.
#define PCIE_COMPLETION_TIMEOUT_1S_3_5S 10 |
Definition at line 333 of file PciExpress21.h.
#define PCIE_COMPLETION_TIMEOUT_260MS_900MS 9 |
Definition at line 332 of file PciExpress21.h.
#define PCIE_COMPLETION_TIMEOUT_4S_13S 13 |
Definition at line 334 of file PciExpress21.h.
#define PCIE_COMPLETION_TIMEOUT_50US_100US 1 |
Definition at line 328 of file PciExpress21.h.
#define PCIE_COMPLETION_TIMEOUT_50US_50MS 0 |
Definition at line 327 of file PciExpress21.h.
#define PCIE_COMPLETION_TIMEOUT_65MS_210MS 6 |
Definition at line 331 of file PciExpress21.h.
#define PCIE_COMPLETION_TIMEOUT_NOT_SUPPORTED 0 |
Definition at line 297 of file PciExpress21.h.
#define PCIE_COMPLETION_TIMEOUT_RANGE_A_B_C_D_SUPPORTED 15 |
Definition at line 304 of file PciExpress21.h.
#define PCIE_COMPLETION_TIMEOUT_RANGE_A_B_C_SUPPORTED 7 |
Definition at line 302 of file PciExpress21.h.
#define PCIE_COMPLETION_TIMEOUT_RANGE_A_B_SUPPORTED 3 |
Definition at line 300 of file PciExpress21.h.
#define PCIE_COMPLETION_TIMEOUT_RANGE_A_SUPPORTED 1 |
Definition at line 298 of file PciExpress21.h.
#define PCIE_COMPLETION_TIMEOUT_RANGE_B_C_D_SUPPORTED 14 |
Definition at line 303 of file PciExpress21.h.
#define PCIE_COMPLETION_TIMEOUT_RANGE_B_C_SUPPORTED 6 |
Definition at line 301 of file PciExpress21.h.
#define PCIE_COMPLETION_TIMEOUT_RANGE_B_SUPPORTED 2 |
Definition at line 299 of file PciExpress21.h.
#define PCIE_DEVICE_CAPABILITY_OBFF_MESSAGE BIT0 |
Definition at line 306 of file PciExpress21.h.
#define PCIE_DEVICE_CAPABILITY_OBFF_WAKE BIT1 |
Definition at line 307 of file PciExpress21.h.
#define PCIE_DEVICE_CONTROL_OBFF_DISABLED 0 |
Definition at line 337 of file PciExpress21.h.
#define PCIE_DEVICE_CONTROL_OBFF_MESSAGE_A 1 |
Definition at line 338 of file PciExpress21.h.
#define PCIE_DEVICE_CONTROL_OBFF_MESSAGE_B 2 |
Definition at line 339 of file PciExpress21.h.
#define PCIE_DEVICE_CONTROL_OBFF_WAKE 3 |
Definition at line 340 of file PciExpress21.h.
#define PCIE_DEVICE_PORT_TYPE_DOWNSTREAM_PORT 6 |
Definition at line 52 of file PciExpress21.h.
#define PCIE_DEVICE_PORT_TYPE_LEGACY_PCIE_ENDPOINT 1 |
Definition at line 49 of file PciExpress21.h.
#define PCIE_DEVICE_PORT_TYPE_PCI_TO_PCIE_BRIDGE 8 |
Definition at line 54 of file PciExpress21.h.
#define PCIE_DEVICE_PORT_TYPE_PCIE_ENDPOINT 0 |
Definition at line 48 of file PciExpress21.h.
#define PCIE_DEVICE_PORT_TYPE_PCIE_TO_PCI_BRIDGE 7 |
Definition at line 53 of file PciExpress21.h.
#define PCIE_DEVICE_PORT_TYPE_ROOT_COMPLEX_EVENT_COLLECTOR 10 |
Definition at line 56 of file PciExpress21.h.
#define PCIE_DEVICE_PORT_TYPE_ROOT_COMPLEX_INTEGRATED_ENDPOINT 9 |
Definition at line 55 of file PciExpress21.h.
#define PCIE_DEVICE_PORT_TYPE_ROOT_PORT 4 |
Definition at line 50 of file PciExpress21.h.
#define PCIE_DEVICE_PORT_TYPE_UPSTREAM_PORT 5 |
Definition at line 51 of file PciExpress21.h.
#define PCIE_LINK_ASPM_L0S BIT0 |
Definition at line 146 of file PciExpress21.h.
#define PCIE_LINK_ASPM_L1 BIT1 |
Definition at line 147 of file PciExpress21.h.
#define PCIE_MAX_PAYLOAD_SIZE_1024B 3 |
Definition at line 99 of file PciExpress21.h.
#define PCIE_MAX_PAYLOAD_SIZE_128B 0 |
Definition at line 96 of file PciExpress21.h.
#define PCIE_MAX_PAYLOAD_SIZE_2048B 4 |
Definition at line 100 of file PciExpress21.h.
#define PCIE_MAX_PAYLOAD_SIZE_256B 1 |
Definition at line 97 of file PciExpress21.h.
#define PCIE_MAX_PAYLOAD_SIZE_4096B 5 |
Definition at line 101 of file PciExpress21.h.
#define PCIE_MAX_PAYLOAD_SIZE_512B 2 |
Definition at line 98 of file PciExpress21.h.
#define PCIE_MAX_PAYLOAD_SIZE_RVSD1 6 |
Definition at line 102 of file PciExpress21.h.
#define PCIE_MAX_PAYLOAD_SIZE_RVSD2 7 |
Definition at line 103 of file PciExpress21.h.
#define PCIE_MAX_READ_REQ_SIZE_1024B 3 |
Definition at line 108 of file PciExpress21.h.
#define PCIE_MAX_READ_REQ_SIZE_128B 0 |
Definition at line 105 of file PciExpress21.h.
#define PCIE_MAX_READ_REQ_SIZE_2048B 4 |
Definition at line 109 of file PciExpress21.h.
#define PCIE_MAX_READ_REQ_SIZE_256B 1 |
Definition at line 106 of file PciExpress21.h.
#define PCIE_MAX_READ_REQ_SIZE_4096B 5 |
Definition at line 110 of file PciExpress21.h.
#define PCIE_MAX_READ_REQ_SIZE_512B 2 |
Definition at line 107 of file PciExpress21.h.
#define PCIE_MAX_READ_REQ_SIZE_RVSD1 6 |
Definition at line 111 of file PciExpress21.h.
#define PCIE_MAX_READ_REQ_SIZE_RVSD2 7 |
Definition at line 112 of file PciExpress21.h.
typedef PCI_EXPRESS_EXTENDED_CAPABILITIES_VIRTUAL_CHANNEL_CAPABILITY PCI_EXPRESS_EXTENDED_CAPABILITIES_MULTI_FUNCTION_VIRTUAL_CHANNEL_CAPABILITY |
Definition at line 623 of file PciExpress21.h.