/* This service abstracts the capability to add an entry to the Event Log. */
EFI_STATUS EFIAPI TcgDxeLogEvent(IN EFI_TCG_PROTOCOL *This, IN TCG_PCR_EVENT *TCGLogData, IN OUT UINT32 *EventNumber, IN UINT32 Flags)
/* This service abstracts the capability to add an entry to the Event Log. */
EFI_STATUS EFIAPI TcgDxeLogEvent(IN EFI_TCG_PROTOCOL *This, IN TCG_PCR_EVENT *TCGLogData, IN OUT UINT32 *EventNumber, IN UINT32 Flags)
{
  TCG_DXE_DATA  *TcgData;
  if (TCGLogData == NULL) {
    return EFI_INVALID_PARAMETER;
  }
  TcgData = TCG_DXE_DATA_FROM_THIS (This);
  if (TcgData->BsCap.TPMDeactivatedFlag || (!TcgData->BsCap.TPMPresentFlag)) {
    return EFI_DEVICE_ERROR;
  }
  return TcgDxeLogEventI (
           TcgData,
           (TCG_PCR_EVENT_HDR *)TCGLogData,
           TCGLogData->Event
           );
}