openUBMC Chip Abstract Layer
V0.1
载入中...
搜索中...
未找到
include
bcal
trng.h
浏览该文件的文档.
1
/*
2
* Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.
3
*
4
* this file licensed under the Mulan PSL v2.
5
* You can use this software according to the terms and conditions of the Mulan PSL v2.
6
* You may obtain a copy of Mulan PSL v2 at:
7
* http://license.coscl.org.cn/MulanPSL2
8
*
9
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
10
* IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
11
* PURPOSE.
12
* See the Mulan PSL v2 for more details.
13
*
14
* Create: 2025-01-09
15
*/
16
21
#ifndef TRNG_H
22
#define TRNG_H
23
24
#include <stdint.h>
25
#ifdef __cplusplus
26
#if __cplusplus
27
#include "
driver.h
"
28
using namespace
std;
29
/* 设备名 */
30
31
namespace
DRIVER_TRNG {
32
37
class
Trng :
public
IDriver {
38
public
:
42
virtual
void
reset()
const
= 0;
43
50
virtual
vector<uint32_t> read(uint32_t count) = 0;
51
};
52
}
// namespace bcal
53
extern
"C"
{
54
#endif
55
#endif
/* __cplusplus */
56
57
int32_t get_rand_seed(uint32_t real_seed[], uint32_t len);
58
59
#ifdef __cplusplus
60
#if __cplusplus
61
}
62
#endif
63
#endif
/* __cplusplus */
64
#endif
driver.h
BCAL 驱动公共接口定义
制作者
1.9.8