Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
2759c8d5
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
158
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
2759c8d5
编写于
9月 24, 2005
作者:
J
Jeff Garzik
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[wireless airo] remove needed dma_addr_t obfuscation
Fixes bus address truncation bug for certain configs.
上级
e2e96507
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
7 addition
and
6 deletion
+7
-6
drivers/net/wireless/airo.c
drivers/net/wireless/airo.c
+7
-6
未找到文件。
drivers/net/wireless/airo.c
浏览文件 @
2759c8d5
...
...
@@ -2521,7 +2521,8 @@ static int mpi_map_card(struct airo_info *ai, struct pci_dev *pci,
unsigned
long
mem_start
,
mem_len
,
aux_start
,
aux_len
;
int
rc
=
-
1
;
int
i
;
unsigned
char
*
busaddroff
,
*
vpackoff
;
dma_addr_t
busaddroff
;
unsigned
char
*
vpackoff
;
unsigned
char
__iomem
*
pciaddroff
;
mem_start
=
pci_resource_start
(
pci
,
1
);
...
...
@@ -2564,7 +2565,7 @@ static int mpi_map_card(struct airo_info *ai, struct pci_dev *pci,
/*
* Setup descriptor RX, TX, CONFIG
*/
busaddroff
=
(
unsigned
char
*
)
ai
->
shared_dma
;
busaddroff
=
ai
->
shared_dma
;
pciaddroff
=
ai
->
pciaux
+
AUX_OFFSET
;
vpackoff
=
ai
->
shared
;
...
...
@@ -2573,7 +2574,7 @@ static int mpi_map_card(struct airo_info *ai, struct pci_dev *pci,
ai
->
rxfids
[
i
].
pending
=
0
;
ai
->
rxfids
[
i
].
card_ram_off
=
pciaddroff
;
ai
->
rxfids
[
i
].
virtual_host_addr
=
vpackoff
;
ai
->
rxfids
[
i
].
rx_desc
.
host_addr
=
(
dma_addr_t
)
busaddroff
;
ai
->
rxfids
[
i
].
rx_desc
.
host_addr
=
busaddroff
;
ai
->
rxfids
[
i
].
rx_desc
.
valid
=
1
;
ai
->
rxfids
[
i
].
rx_desc
.
len
=
PKTSIZE
;
ai
->
rxfids
[
i
].
rx_desc
.
rdy
=
0
;
...
...
@@ -2588,7 +2589,7 @@ static int mpi_map_card(struct airo_info *ai, struct pci_dev *pci,
ai
->
txfids
[
i
].
card_ram_off
=
pciaddroff
;
ai
->
txfids
[
i
].
virtual_host_addr
=
vpackoff
;
ai
->
txfids
[
i
].
tx_desc
.
valid
=
1
;
ai
->
txfids
[
i
].
tx_desc
.
host_addr
=
(
dma_addr_t
)
busaddroff
;
ai
->
txfids
[
i
].
tx_desc
.
host_addr
=
busaddroff
;
memcpy
(
ai
->
txfids
[
i
].
virtual_host_addr
,
&
wifictlhdr8023
,
sizeof
(
wifictlhdr8023
));
...
...
@@ -2601,8 +2602,8 @@ static int mpi_map_card(struct airo_info *ai, struct pci_dev *pci,
/* Rid descriptor setup */
ai
->
config_desc
.
card_ram_off
=
pciaddroff
;
ai
->
config_desc
.
virtual_host_addr
=
vpackoff
;
ai
->
config_desc
.
rid_desc
.
host_addr
=
(
dma_addr_t
)
busaddroff
;
ai
->
ridbus
=
(
dma_addr_t
)
busaddroff
;
ai
->
config_desc
.
rid_desc
.
host_addr
=
busaddroff
;
ai
->
ridbus
=
busaddroff
;
ai
->
config_desc
.
rid_desc
.
rid
=
0
;
ai
->
config_desc
.
rid_desc
.
len
=
RIDSIZE
;
ai
->
config_desc
.
rid_desc
.
valid
=
1
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录