mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-07 16:11:43 +00:00
Allow TPM to log events in a circular buffer through tpm_log_event(). Logs can be retrieved through a new vendor command VENDOR_CC_POP_LOG_ENTRY. BUG=b:63760920 TEST=On eve, store TPM logs through 'logentry' cr50 console command, verify logs are fetched correctly through 'trunks_send --pop_logentry'. BRANCH=None Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Change-Id: Idbc405728c0ba68078447fb59717d6115830e3d8 Reviewed-on: https://chromium-review.googlesource.com/599352 Commit-Ready: Shawn N <shawnn@chromium.org> Tested-by: Shawn N <shawnn@chromium.org> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
20 lines
463 B
C
20 lines
463 B
C
/* Copyright 2017 The Chromium OS Authors. All rights reserved.
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#ifndef __CROS_EC_TPM_LOG_H
|
|
#define __CROS_EC_TPM_LOG_H
|
|
|
|
#include "event_log.h"
|
|
|
|
enum tpm_event {
|
|
TPM_EVENT_INIT,
|
|
/* TODO: Add log events */
|
|
};
|
|
|
|
/* Log TPM event of given type with data payload. */
|
|
void tpm_log_event(enum tpm_event type, uint16_t data);
|
|
|
|
#endif /* __CROS_EC_TPM_LOG_H */
|