Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
c15eed22
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
c15eed22
编写于
8月 29, 2013
作者:
B
Ben Hutchings
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
sfc: Allow efx_nic_type::dimension_resources to fail
Signed-off-by:
N
Ben Hutchings
<
bhutchings@solarflare.com
>
上级
261e4d96
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
12 addition
and
6 deletion
+12
-6
drivers/net/ethernet/sfc/efx.c
drivers/net/ethernet/sfc/efx.c
+7
-3
drivers/net/ethernet/sfc/falcon.c
drivers/net/ethernet/sfc/falcon.c
+2
-1
drivers/net/ethernet/sfc/net_driver.h
drivers/net/ethernet/sfc/net_driver.h
+1
-1
drivers/net/ethernet/sfc/siena.c
drivers/net/ethernet/sfc/siena.c
+2
-1
未找到文件。
drivers/net/ethernet/sfc/efx.c
浏览文件 @
c15eed22
...
...
@@ -1513,9 +1513,11 @@ static int efx_probe_nic(struct efx_nic *efx)
* in MSI-X interrupts. */
rc
=
efx_probe_interrupts
(
efx
);
if
(
rc
)
goto
fail
;
goto
fail
1
;
efx
->
type
->
dimension_resources
(
efx
);
rc
=
efx
->
type
->
dimension_resources
(
efx
);
if
(
rc
)
goto
fail2
;
if
(
efx
->
n_channels
>
1
)
get_random_bytes
(
&
efx
->
rx_hash_key
,
sizeof
(
efx
->
rx_hash_key
));
...
...
@@ -1533,7 +1535,9 @@ static int efx_probe_nic(struct efx_nic *efx)
return
0
;
fail:
fail2:
efx_remove_interrupts
(
efx
);
fail1:
efx
->
type
->
remove
(
efx
);
return
rc
;
}
...
...
drivers/net/ethernet/sfc/falcon.c
浏览文件 @
c15eed22
...
...
@@ -2174,10 +2174,11 @@ static int falcon_probe_nvconfig(struct efx_nic *efx)
return
rc
;
}
static
void
falcon_dimension_resources
(
struct
efx_nic
*
efx
)
static
int
falcon_dimension_resources
(
struct
efx_nic
*
efx
)
{
efx
->
rx_dc_base
=
0x20000
;
efx
->
tx_dc_base
=
0x26000
;
return
0
;
}
/* Probe all SPI devices on the NIC */
...
...
drivers/net/ethernet/sfc/net_driver.h
浏览文件 @
c15eed22
...
...
@@ -1036,7 +1036,7 @@ struct efx_nic_type {
int
(
*
probe
)(
struct
efx_nic
*
efx
);
void
(
*
remove
)(
struct
efx_nic
*
efx
);
int
(
*
init
)(
struct
efx_nic
*
efx
);
void
(
*
dimension_resources
)(
struct
efx_nic
*
efx
);
int
(
*
dimension_resources
)(
struct
efx_nic
*
efx
);
void
(
*
fini
)(
struct
efx_nic
*
efx
);
void
(
*
monitor
)(
struct
efx_nic
*
efx
);
enum
reset_type
(
*
map_reset_reason
)(
enum
reset_type
reason
);
...
...
drivers/net/ethernet/sfc/siena.c
浏览文件 @
c15eed22
...
...
@@ -177,13 +177,14 @@ static int siena_probe_nvconfig(struct efx_nic *efx)
return
rc
;
}
static
void
siena_dimension_resources
(
struct
efx_nic
*
efx
)
static
int
siena_dimension_resources
(
struct
efx_nic
*
efx
)
{
/* Each port has a small block of internal SRAM dedicated to
* the buffer table and descriptor caches. In theory we can
* map both blocks to one port, but we don't.
*/
efx_farch_dimension_resources
(
efx
,
FR_CZ_BUF_FULL_TBL_ROWS
/
2
);
return
0
;
}
static
unsigned
int
siena_mem_map_size
(
struct
efx_nic
*
efx
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录