/* Lookup a cache description string from the mCpuidCacheInfoDescription table. */
CPUID_CACHE_INFO_DESCRIPTION* LookupCacheDescription(UINT8 CacheDescriptor)
/* Lookup a cache description string from the mCpuidCacheInfoDescription table. */
CPUID_CACHE_INFO_DESCRIPTION* LookupCacheDescription(UINT8 CacheDescriptor)
{
  UINTN  NumDescriptors;
  UINTN  Descriptor;
  if (CacheDescriptor == 0x00) {
    return NULL;
  }
  NumDescriptors = sizeof (mCpuidCacheInfoDescription)/sizeof (mCpuidCacheInfoDescription[0]);
  for (Descriptor = 0; Descriptor < NumDescriptors; Descriptor++) {
    if (CacheDescriptor == mCpuidCacheInfoDescription[Descriptor].CacheDescriptor) {
      return &mCpuidCacheInfoDescription[Descriptor];
    }
  }
  return NULL;
}