Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
6aa9c7f6
K
Kernel
项目概览
openeuler
/
Kernel
接近 2 年 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
6aa9c7f6
编写于
7月 14, 2010
作者:
M
Matthew Slattery
提交者:
Ben Hutchings
1月 27, 2012
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
sfc: Support extraction of CAPABILITIES from GET_BOARD_CFG response.
Signed-off-by:
N
Ben Hutchings
<
bhutchings@solarflare.com
>
上级
5f3f9d6c
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
12 addition
and
4 deletion
+12
-4
drivers/net/ethernet/sfc/mcdi.c
drivers/net/ethernet/sfc/mcdi.c
+9
-1
drivers/net/ethernet/sfc/mcdi.h
drivers/net/ethernet/sfc/mcdi.h
+1
-1
drivers/net/ethernet/sfc/mtd.c
drivers/net/ethernet/sfc/mtd.c
+1
-1
drivers/net/ethernet/sfc/siena.c
drivers/net/ethernet/sfc/siena.c
+1
-1
未找到文件。
drivers/net/ethernet/sfc/mcdi.c
浏览文件 @
6aa9c7f6
...
...
@@ -678,7 +678,7 @@ int efx_mcdi_drv_attach(struct efx_nic *efx, bool driver_operating,
}
int
efx_mcdi_get_board_cfg
(
struct
efx_nic
*
efx
,
u8
*
mac_address
,
u16
*
fw_subtype_list
)
u16
*
fw_subtype_list
,
u32
*
capabilities
)
{
uint8_t
outbuf
[
MC_CMD_GET_BOARD_CFG_OUT_LENMIN
];
size_t
outlen
;
...
...
@@ -708,6 +708,14 @@ int efx_mcdi_get_board_cfg(struct efx_nic *efx, u8 *mac_address,
outbuf
+
MC_CMD_GET_BOARD_CFG_OUT_FW_SUBTYPE_LIST_OFST
,
MC_CMD_GET_BOARD_CFG_OUT_FW_SUBTYPE_LIST_MINNUM
*
sizeof
(
fw_subtype_list
[
0
]));
if
(
capabilities
)
{
if
(
port_num
)
*
capabilities
=
MCDI_DWORD
(
outbuf
,
GET_BOARD_CFG_OUT_CAPABILITIES_PORT1
);
else
*
capabilities
=
MCDI_DWORD
(
outbuf
,
GET_BOARD_CFG_OUT_CAPABILITIES_PORT0
);
}
return
0
;
...
...
drivers/net/ethernet/sfc/mcdi.h
浏览文件 @
6aa9c7f6
...
...
@@ -97,7 +97,7 @@ extern void efx_mcdi_print_fwver(struct efx_nic *efx, char *buf, size_t len);
extern
int
efx_mcdi_drv_attach
(
struct
efx_nic
*
efx
,
bool
driver_operating
,
bool
*
was_attached_out
);
extern
int
efx_mcdi_get_board_cfg
(
struct
efx_nic
*
efx
,
u8
*
mac_address
,
u16
*
fw_subtype_list
);
u16
*
fw_subtype_list
,
u32
*
capabilities
);
extern
int
efx_mcdi_log_ctrl
(
struct
efx_nic
*
efx
,
bool
evq
,
bool
uart
,
u32
dest_evq
);
extern
int
efx_mcdi_nvram_types
(
struct
efx_nic
*
efx
,
u32
*
nvram_types_out
);
...
...
drivers/net/ethernet/sfc/mtd.c
浏览文件 @
6aa9c7f6
...
...
@@ -631,7 +631,7 @@ static int siena_mtd_get_fw_subtypes(struct efx_nic *efx,
uint16_t
fw_subtype_list
[
MC_CMD_GET_BOARD_CFG_OUT_FW_SUBTYPE_LIST_MINNUM
];
int
rc
;
rc
=
efx_mcdi_get_board_cfg
(
efx
,
NULL
,
fw_subtype_list
);
rc
=
efx_mcdi_get_board_cfg
(
efx
,
NULL
,
fw_subtype_list
,
NULL
);
if
(
rc
)
return
rc
;
...
...
drivers/net/ethernet/sfc/siena.c
浏览文件 @
6aa9c7f6
...
...
@@ -216,7 +216,7 @@ static int siena_reset_hw(struct efx_nic *efx, enum reset_type method)
static
int
siena_probe_nvconfig
(
struct
efx_nic
*
efx
)
{
return
efx_mcdi_get_board_cfg
(
efx
,
efx
->
net_dev
->
perm_addr
,
NULL
);
return
efx_mcdi_get_board_cfg
(
efx
,
efx
->
net_dev
->
perm_addr
,
NULL
,
NULL
);
}
static
int
siena_probe_nic
(
struct
efx_nic
*
efx
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录