openUBMC Chip Abstract Layer V0.1
载入中...
搜索中...
未找到
efuse.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
20#ifndef DRIVER_EFUSE_H
21#define DRIVER_EFUSE_H
22#include "driver.h"
23
24namespace DRIVER_EFUSE {
25
26using namespace bcal;
27
32class Efuse : public IDriver {
33public:
40 virtual uint32_t get_domain_cnt(int32_t index) = 0;
49 virtual string_t read(int32_t index, uint32_t field_id, uint32_t len) = 0;
58 virtual int32_t write(int32_t index, uint32_t field_id, const string_view_t &val) = 0;
59};
60} // namespace
61#endif
EFUSE 驱动接口
Definition efuse.h:32
virtual uint32_t get_domain_cnt(int32_t index)=0
获取指定 EFUSE 域的数量
virtual string_t read(int32_t index, uint32_t field_id, uint32_t len)=0
读取指定 EFUSE 域的数据
virtual int32_t write(int32_t index, uint32_t field_id, const string_view_t &val)=0
写入指定 EFUSE 域的数据
BCAL层驱动公共接口
Definition driver.h:41
BCAL 驱动公共接口定义