Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
2759c8d5
Commit
2759c8d5
authored
Sep 24, 2005
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[wireless airo] remove needed dma_addr_t obfuscation
Fixes bus address truncation bug for certain configs.
parent
e2e96507
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
drivers/net/wireless/airo.c
drivers/net/wireless/airo.c
+7
-6
No files found.
drivers/net/wireless/airo.c
View file @
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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment