/* Check if a HID is a valid PNP ID. */
BOOLEAN IsValidPnpId(IN CONST CHAR8 *Hid)
/* Check if a HID is a valid PNP ID. */
BOOLEAN IsValidPnpId(IN CONST CHAR8 *Hid)
{
  UINTN  Index;
  if (AsciiStrLen (Hid) != 7) {
    return FALSE;
  }
  for (Index = 0; Index < 3; Index++) {
    if (!IS_UPPER_CHAR (Hid[Index])) {
      return FALSE;
    }
  }
  for (Index = 3; Index < 7; Index++) {
    if (!IS_UPPER_HEX (Hid[Index])) {
      return FALSE;
    }
  }
  return TRUE;
}