Skip to content

Commit ad1d13f

Browse files
authored
Fix PCIE Downgrade sample documentation (#417)
Signed-off-by: Neil R. Spruit <[email protected]>
1 parent 238dbfc commit ad1d13f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/sysman/EXT_PciLinkSpeedDowngrade.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ To check if the device supports PCIe link speed downgrade capability, pass ${s}_
4545
.. parsed-literal:
4646
4747
${s}_pci_properties_t pciProperties = {${S}_STRUCTURE_TYPE_PCI_PROPERTIES};
48-
${s}_pci_link_speed_downgrade_ext_properties_t extProperties = {${S}_PCI_LINK_SPEED_DOWNGRADE_EXT_PROPERTIES};
48+
${s}_pci_link_speed_downgrade_ext_properties_t extProperties = {${S}_STRUCTURE_TYPE_PCI_LINK_SPEED_DOWNGRADE_EXT_PROPERTIES};
4949
pciProperties.pNext = &extProperties;
5050
${x}_result_t result = ${s}DevicePciGetProperties(hDevice, &pciProperties);
5151
@@ -62,7 +62,7 @@ To check the current PCIe downgrade status, pass ${s}_pci_link_speed_downgrade_e
6262
.. parsed-literal:
6363
6464
${s}_pci_state_t pciState = {${S}_STRUCTURE_TYPE_PCI_STATE};
65-
${s}_pci_link_speed_downgrade_ext_state_t extState = {${S}_PCI_LINK_SPEED_DOWNGRADE_EXT_STATE};
65+
${s}_pci_link_speed_downgrade_ext_state_t extState = {${S}_STRUCTURE_TYPE_PCI_LINK_SPEED_DOWNGRADE_EXT_STATE};
6666
pciState.pNext = &extState;
6767
${x}_result_t result = ${s}DevicePciGetState(hDevice, &pciState);
6868
@@ -93,7 +93,7 @@ The following pseudo-code demonstrates an example Usage for managing PCIe link s
9393
9494
// Step 1: Check if device supports PCIe link speed update
9595
${s}_pci_properties_t pciProperties = {${S}_STRUCTURE_TYPE_PCI_PROPERTIES};
96-
${s}_pci_link_speed_downgrade_ext_properties_t extProperties = {${S}_PCI_LINK_SPEED_DOWNGRADE_EXT_PROPERTIES};
96+
${s}_pci_link_speed_downgrade_ext_properties_t extProperties = {${S}_STRUCTURE_TYPE_PCI_LINK_SPEED_DOWNGRADE_EXT_PROPERTIES};
9797
pciProperties.pNext = &extProperties;
9898
9999
if (${s}DevicePciGetProperties(hDevice, &pciProperties) == ${X}_RESULT_SUCCESS) {
@@ -107,7 +107,7 @@ The following pseudo-code demonstrates an example Usage for managing PCIe link s
107107
108108
// Step 2: Check current downgrade status
109109
${s}_pci_state_t pciState = {${S}_STRUCTURE_TYPE_PCI_STATE};
110-
${s}_pci_link_speed_downgrade_ext_state_t extState = {${S}_PCI_LINK_SPEED_DOWNGRADE_EXT_STATE};
110+
${s}_pci_link_speed_downgrade_ext_state_t extState = {${S}_STRUCTURE_TYPE_PCI_LINK_SPEED_DOWNGRADE_EXT_STATE};
111111
pciState.pNext = &extState;
112112
113113
if (${s}DevicePciGetState(hDevice, &pciState) == ${X}_RESULT_SUCCESS) {

0 commit comments

Comments
 (0)