/* Resets a network adapter and leaves it in a state that is safe for another driver to initialize. */
EFI_STATUS WinNtSnpShutdown(IN EMU_SNP_PROTOCOL *This)
/* Resets a network adapter and leaves it in a state that is safe for another driver to initialize. */
EFI_STATUS WinNtSnpShutdown(IN EMU_SNP_PROTOCOL *This)
{
  WIN_NT_SNP_PRIVATE  *Private;
  Private = WIN_NT_SNP_PRIVATE_DATA_FROM_THIS (This);
  switch ( Private->Mode->State ) {
    case EfiSimpleNetworkInitialized:
      break;
    case EfiSimpleNetworkStopped:
      return EFI_NOT_STARTED;
      break;
    default:
      return EFI_DEVICE_ERROR;
      break;
  }
  Private->Mode->State = EfiSimpleNetworkStarted;
  Private->Mode->ReceiveFilterSetting = 0;
  Private->Mode->MCastFilterCount     = 0;
  ZeroMem (Private->Mode->MCastFilter, sizeof (Private->Mode->MCastFilter));
  return EFI_SUCCESS;
}