]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c
MdeModulePkg PiDxeS3BootScriptLib: Support multiple PCI segment
[mirror_edk2.git] / MdeModulePkg / Library / PiDxeS3BootScriptLib / BootScriptSave.c
index de3915511cec1f3ee93be650bc4332958de767eb..9ff5b80e7a3683057f1bfd621b77a1a35f30e535 100644 (file)
@@ -1291,7 +1291,7 @@ S3BootScriptSavePciCfgReadWrite (
 \r
   @retval RETURN_OUT_OF_RESOURCES  Not enough memory for the table do operation.\r
   @retval RETURN_SUCCESS           Opcode is added.\r
-  @note  A known Limitations in the implementation which is non-zero Segment and 64bits operations are not supported.\r
+  @note  A known Limitations in the implementation which is 64bits operations are not supported.\r
 \r
 **/\r
 RETURN_STATUS\r
@@ -1309,8 +1309,7 @@ S3BootScriptSavePciCfg2Write (
   UINT8                 WidthInByte;\r
   EFI_BOOT_SCRIPT_PCI_CONFIG2_WRITE  ScriptPciWrite2;\r
 \r
-  if (Segment != 0 ||\r
-      Width == S3BootScriptWidthUint64 ||\r
+  if (Width == S3BootScriptWidthUint64 ||\r
       Width == S3BootScriptWidthFifoUint64 ||\r
       Width == S3BootScriptWidthFillUint64) {\r
     return EFI_INVALID_PARAMETER;\r
@@ -1351,7 +1350,7 @@ S3BootScriptSavePciCfg2Write (
 \r
   @retval RETURN_OUT_OF_RESOURCES  Not enough memory for the table do operation.\r
   @retval RETURN_SUCCESS           Opcode is added.\r
-  @note  A known Limitations in the implementation which is non-zero Segment and 64bits operations are not supported.\r
+  @note  A known Limitations in the implementation which is 64bits operations are not supported.\r
 \r
 **/\r
 RETURN_STATUS\r
@@ -1369,8 +1368,7 @@ S3BootScriptSavePciCfg2ReadWrite (
   UINT8                 WidthInByte;\r
   EFI_BOOT_SCRIPT_PCI_CONFIG2_READ_WRITE  ScriptPciReadWrite2;\r
 \r
-  if (Segment != 0 ||\r
-      Width == S3BootScriptWidthUint64 ||\r
+  if (Width == S3BootScriptWidthUint64 ||\r
       Width == S3BootScriptWidthFifoUint64 ||\r
       Width == S3BootScriptWidthFillUint64) {\r
     return EFI_INVALID_PARAMETER;\r
@@ -1946,7 +1944,7 @@ S3BootScriptSavePciPoll (
 \r
  @retval RETURN_OUT_OF_RESOURCES  Not enough memory for the table do operation.\r
  @retval RETURN_SUCCESS           Opcode is added.\r
-  @note  A known Limitations in the implementation which is non-zero Segment and 64bits operations are not supported.\r
+  @note  A known Limitations in the implementation which is 64bits operations are not supported.\r
 \r
 **/\r
 RETURN_STATUS\r
@@ -1965,8 +1963,7 @@ S3BootScriptSavePci2Poll (
   UINT8                    Length;\r
   EFI_BOOT_SCRIPT_PCI_CONFIG2_POLL  ScriptPci2Poll;\r
 \r
-  if (Segment != 0 ||\r
-      Width == S3BootScriptWidthUint64 ||\r
+  if (Width == S3BootScriptWidthUint64 ||\r
       Width == S3BootScriptWidthFifoUint64 ||\r
       Width == S3BootScriptWidthFillUint64) {\r
     return EFI_INVALID_PARAMETER;\r