Software APIs
Main Page
File List
Globals
All
a
b
c
d
e
g
h
i
k
l
m
o
p
r
s
t
u
w
Functions
a
b
c
d
g
h
i
l
m
o
p
r
s
t
u
w
Variables
k
t
Typedefs
a
b
c
d
h
i
l
m
o
r
s
t
u
Enumerations
b
d
h
i
l
o
s
t
Enumerator
k
Macros
a
c
d
e
h
i
l
m
o
p
s
t
u
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
Functions
a
b
c
d
e
f
g
h
i
k
m
o
p
r
s
t
w
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
Enumerations
Enumerator
sw
device
silicon_creator
lib
mock_boot_data.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_boot_data.h"
6
7
namespace
rom_test {
8
extern
"C"
{
9
rom_error_t boot_data_read(lifecycle_state_t lc_state,
boot_data_t
*
boot_data
) {
10
return
MockBootData::Instance().Read(lc_state,
boot_data
);
11
}
12
13
rom_error_t boot_data_write(
const
boot_data_t
*
boot_data
) {
14
return
MockBootData::Instance().Write(
boot_data
);
15
}
16
17
rom_error_t boot_data_digest_is_valid(
const
boot_data
*
boot_data
) {
18
return
MockBootData::Instance().Check(
boot_data
);
19
}
20
}
// extern "C"
21
}
// namespace rom_test
Return to
OpenTitan Documentation