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
c8f8e477
Commit
c8f8e477
authored
Aug 22, 2003
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TG3]: Only write the on-nic sram addr on non-5705.
parent
cf0115cf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
drivers/net/tg3.c
drivers/net/tg3.c
+8
-12
No files found.
drivers/net/tg3.c
View file @
c8f8e477
...
@@ -4047,22 +4047,18 @@ static void tg3_set_bdinfo(struct tg3 *tp, u32 bdinfo_addr,
...
@@ -4047,22 +4047,18 @@ static void tg3_set_bdinfo(struct tg3 *tp, u32 bdinfo_addr,
u32
nic_addr
)
u32
nic_addr
)
{
{
tg3_write_mem
(
tp
,
tg3_write_mem
(
tp
,
(
bdinfo_addr
+
(
bdinfo_addr
+
TG3_BDINFO_HOST_ADDR
+
TG3_64BIT_REG_HIGH
),
TG3_BDINFO_HOST_ADDR
+
TG3_64BIT_REG_HIGH
),
((
u64
)
mapping
>>
32
));
((
u64
)
mapping
>>
32
));
tg3_write_mem
(
tp
,
tg3_write_mem
(
tp
,
(
bdinfo_addr
+
(
bdinfo_addr
+
TG3_BDINFO_HOST_ADDR
+
TG3_64BIT_REG_LOW
),
TG3_BDINFO_HOST_ADDR
+
TG3_64BIT_REG_LOW
),
((
u64
)
mapping
&
0xffffffff
));
((
u64
)
mapping
&
0xffffffff
));
tg3_write_mem
(
tp
,
tg3_write_mem
(
tp
,
(
bdinfo_addr
+
(
bdinfo_addr
+
TG3_BDINFO_MAXLEN_FLAGS
),
TG3_BDINFO_MAXLEN_FLAGS
),
maxlen_flags
);
maxlen_flags
);
if
(
GET_ASIC_REV
(
tp
->
pci_chip_rev_id
)
!=
ASIC_REV_5705
)
tg3_write_mem
(
tp
,
tg3_write_mem
(
tp
,
(
bdinfo_addr
+
(
bdinfo_addr
+
TG3_BDINFO_NIC_ADDR
),
TG3_BDINFO_NIC_ADDR
),
nic_addr
);
nic_addr
);
}
}
...
...
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