openUBMC Chip Abstract Layer
V0.1
载入中...
搜索中...
未找到
include
bcal
mdio.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_MDIO_H
21
#define DRIVER_MDIO_H
22
23
#include "
driver.h
"
24
25
namespace
DRIVER_MDIO {
26
using namespace
bcal;
27
32
class
Mdio
:
public
IDriver
{
33
public
:
42
virtual
uint32_t
read
(int32_t index, uint32_t phy_addr, uint32_t reg_addr) = 0;
43
53
virtual
int32_t
write
(int32_t index, uint32_t phy_addr, uint32_t reg_addr, uint32_t val) = 0;
54
};
55
}
// namespace
56
#endif
DRIVER_MDIO::Mdio
MDIO接口类
Definition
mdio.h:32
DRIVER_MDIO::Mdio::write
virtual int32_t write(int32_t index, uint32_t phy_addr, uint32_t reg_addr, uint32_t val)=0
写入 MDIO 数据
DRIVER_MDIO::Mdio::read
virtual uint32_t read(int32_t index, uint32_t phy_addr, uint32_t reg_addr)=0
读取 MDIO 数据
bcal::IDriver
BCAL层驱动公共接口
Definition
driver.h:41
driver.h
BCAL 驱动公共接口定义
制作者
1.9.8