/* Check whether PCI-PCI bridge has PCI Hot Plug capability register block. */
BOOLEAN IsSHPC(IN PCI_IO_DEVICE *PciIoDevice)
/* Check whether PCI-PCI bridge has PCI Hot Plug capability register block. */
BOOLEAN IsSHPC(IN PCI_IO_DEVICE *PciIoDevice)
{
  EFI_STATUS  Status;
  UINT8       Offset;
  if (PciIoDevice == NULL) {
    return FALSE;
  }
  Offset = 0;
  Status = LocateCapabilityRegBlock (
             PciIoDevice,
             EFI_PCI_CAPABILITY_ID_SHPC,
             &Offset,
             NULL
             );
  if (!EFI_ERROR (Status)) {
    return TRUE;
  }
  return FALSE;
}