/** @file\r
PCI Hot Plug support functions declaration for PCI Bus module.\r
\r
-Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
//\r
typedef struct {\r
EFI_EVENT Event;\r
+ BOOLEAN Found;\r
BOOLEAN Initialized;\r
VOID *Padding;\r
} ROOT_HPC_DATA;\r
IN PCI_IO_DEVICE *PciIoDevice\r
);\r
\r
+/**\r
+ Check whether PciIoDevice supports PCIe hotplug.\r
+\r
+ This is equivalent to the following condition:\r
+ - the device is either a PCIe switch downstream port or a root port,\r
+ - and the device has the SlotImplemented bit set in its PCIe capability\r
+ register,\r
+ - and the device has the HotPlugCapable bit set in its slot capabilities\r
+ register.\r
+\r
+ @param[in] PciIoDevice The device being checked.\r
+\r
+ @retval TRUE PciIoDevice is a PCIe port that accepts a hotplugged device.\r
+ @retval FALSE Otherwise.\r
+\r
+**/\r
+BOOLEAN\r
+SupportsPcieHotplug (\r
+ IN PCI_IO_DEVICE *PciIoDevice\r
+ );\r
+\r
/**\r
Get resource padding if the specified PCI bridge is a hot plug bus.\r
\r