/* This function validates the Cache Type Structure (Type 1) Cache ID field. */
STATIC VOID EFIAPI ValidateCacheId(IN UINT8 *Ptr, IN VOID *Context)
/* This function validates the Cache Type Structure (Type 1) Cache ID field. */
STATIC VOID EFIAPI ValidateCacheId(IN UINT8 *Ptr, IN VOID *Context)
{
  UINT32  CacheId;
  CacheId = *(UINT32 *)Ptr;
  if (*(AcpiHdrInfo.Revision) < 3) {
    return;
  }
  if (CacheFlags == NULL) {
    IncrementErrorCount ();
    Print (L"\nERROR: Cache Structure Flags were not successfully read.");
    return;
  }
  if (CacheFlags->CacheIdValid == EFI_ACPI_6_4_PPTT_CACHE_ID_VALID) {
    if (CacheId == 0) {
      IncrementErrorCount ();
      Print (L"\nERROR: 0 is not a valid Cache ID.");
      return;
    }
  }
}