/* Compare the standalone UINT16 config space offset of a capability header against a PCI_CAP containing an embedded Offset. */
STATIC INTN EFIAPI ComparePciCapOffsetKey(IN CONST VOID *CapHdrOffset, IN CONST VOID *PciCap)
/* Compare the standalone UINT16 config space offset of a capability header against a PCI_CAP containing an embedded Offset. */
STATIC INTN EFIAPI ComparePciCapOffsetKey(IN CONST VOID *CapHdrOffset, IN CONST VOID *PciCap)
{
  UINT16  Offset1;
  UINT16  Offset2;
  Offset1 = *(CONST UINT16 *)CapHdrOffset;
  Offset2 = ((CONST PCI_CAP *)PciCap)->Offset;
  return Offset1 - Offset2;
}