Software APIs
mock_shutdown.cc
1 // Copyright lowRISC contributors (OpenTitan project).
2 // Licensed under the Apache License, Version 2.0, see LICENSE for details.
3 // SPDX-License-Identifier: Apache-2.0
4 
5 #include "sw/device/silicon_creator/lib/mock_shutdown.h"
6 
7 namespace rom_test {
8 extern "C" {
9 shutdown_error_redact_t shutdown_redact_policy(void) {
10  return MockShutdown::Instance().RedactPolicy();
11 }
12 
13 uint32_t shutdown_redact(rom_error_t reason, shutdown_error_redact_t severity) {
14  return MockShutdown::Instance().Redact(reason, severity);
15 }
16 
17 void shutdown_finalize(rom_error_t reason) {
18  return MockShutdown::Instance().Finalize(reason);
19 }
20 } // extern "C"
21 } // namespace rom_test