/** @file\r
Internal library declaration for PCI Bus module.\r
\r
-Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2021, Intel Corporation. All rights reserved.<BR>\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
UINT8 *AllocRes;\r
} EFI_RESOURCE_ALLOC_FAILURE_ERROR_DATA_PAYLOAD;\r
\r
+typedef enum {\r
+ PciResizableBarMin = 0x00,\r
+ PciResizableBarMax = 0xFF\r
+} PCI_RESIZABLE_BAR_OPERATION;\r
\r
/**\r
Retrieve the PCI Card device BAR information via PciIo interface.\r
IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc\r
);\r
\r
+/**\r
+ This function is used to program the Resizable BAR Register.\r
+\r
+ @param PciIoDevice A pointer to the PCI_IO_DEVICE.\r
+ @param ResizableBarOp PciResizableBarMax: Set BAR to max size\r
+ PciResizableBarMin: set BAR to min size.\r
+\r
+ @retval EFI_SUCCESS Successfully enumerated the host bridge.\r
+ @retval other Some error occurred when enumerating the host bridge.\r
+\r
+**/\r
+EFI_STATUS\r
+PciProgramResizableBar (\r
+ IN PCI_IO_DEVICE *PciIoDevice,\r
+ IN PCI_RESIZABLE_BAR_OPERATION ResizableBarOp\r
+ );\r
#endif\r