/* Get the Check sum for a short name. */
UINT8 FatCheckSum(IN CHAR8 *ShortNameString)
/* Get the Check sum for a short name. */
UINT8 FatCheckSum(IN CHAR8 *ShortNameString)
{
  UINTN  ShortNameLen;
  UINT8  Sum;
  Sum = 0;
  for (ShortNameLen = FAT_NAME_LEN; ShortNameLen != 0; ShortNameLen--) {
    Sum = (UINT8)((((Sum & 1) != 0) ? 0x80 : 0) + (Sum >> 1) + *ShortNameString++);
  }
  return Sum;
}