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
Kirill Smelkov
linux
Commits
b42d1551
Commit
b42d1551
authored
Mar 11, 2005
by
Alan Cox
Committed by
Jeff Garzik
Mar 11, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] -ac bits for ULI ethernet missing from 2.6.11
Signed-off-by:
Jeff Garzik
<
jgarzik@pobox.com
>
parent
afe4b3a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
11 deletions
+14
-11
drivers/net/tulip/media.c
drivers/net/tulip/media.c
+2
-2
drivers/net/tulip/tulip_core.c
drivers/net/tulip/tulip_core.c
+12
-9
No files found.
drivers/net/tulip/media.c
View file @
b42d1551
...
...
@@ -88,7 +88,7 @@ int tulip_mdio_read(struct net_device *dev, int phy_id, int location)
value
=
ioread32
(
ioaddr
+
CSR9
);
iowrite32
(
value
&
0xFFEFFFFF
,
ioaddr
+
CSR9
);
value
=
(
phy_id
<<
21
)
|
(
location
<<
16
)
|
0x
80
000000
;
value
=
(
phy_id
<<
21
)
|
(
location
<<
16
)
|
0x
08
000000
;
iowrite32
(
value
,
ioaddr
+
CSR10
);
while
(
--
i
>
0
)
{
...
...
@@ -166,7 +166,7 @@ void tulip_mdio_write(struct net_device *dev, int phy_id, int location, int val)
value
=
ioread32
(
ioaddr
+
CSR9
);
iowrite32
(
value
&
0xFFEFFFFF
,
ioaddr
+
CSR9
);
value
=
(
phy_id
<<
21
)
|
(
location
<<
16
)
|
0x
40
000000
|
(
val
&
0xFFFF
);
value
=
(
phy_id
<<
21
)
|
(
location
<<
16
)
|
0x
04
000000
|
(
val
&
0xFFFF
);
iowrite32
(
value
,
ioaddr
+
CSR10
);
while
(
--
i
>
0
)
{
...
...
drivers/net/tulip/tulip_core.c
View file @
b42d1551
...
...
@@ -1102,15 +1102,18 @@ static void set_rx_mode(struct net_device *dev)
entry
=
tp
->
cur_tx
++
%
TX_RING_SIZE
;
if
(
entry
!=
0
)
{
/* Avoid a chip errata by prefixing a dummy entry. */
tp
->
tx_buffers
[
entry
].
skb
=
NULL
;
tp
->
tx_buffers
[
entry
].
mapping
=
0
;
tp
->
tx_ring
[
entry
].
length
=
(
entry
==
TX_RING_SIZE
-
1
)
?
cpu_to_le32
(
DESC_RING_WRAP
)
:
0
;
tp
->
tx_ring
[
entry
].
buffer1
=
0
;
/* Must set DescOwned later to avoid race with chip */
dummy
=
entry
;
entry
=
tp
->
cur_tx
++
%
TX_RING_SIZE
;
/* Avoid a chip errata by prefixing a dummy entry. Don't do
this on the ULI526X as it triggers a different problem */
if
(
!
(
tp
->
chip_id
==
ULI526X
&&
(
tp
->
revision
=
0x40
||
tp
->
revision
==
0x50
)))
{
tp
->
tx_buffers
[
entry
].
skb
=
NULL
;
tp
->
tx_buffers
[
entry
].
mapping
=
0
;
tp
->
tx_ring
[
entry
].
length
=
(
entry
==
TX_RING_SIZE
-
1
)
?
cpu_to_le32
(
DESC_RING_WRAP
)
:
0
;
tp
->
tx_ring
[
entry
].
buffer1
=
0
;
/* Must set DescOwned later to avoid race with chip */
dummy
=
entry
;
entry
=
tp
->
cur_tx
++
%
TX_RING_SIZE
;
}
}
tp
->
tx_buffers
[
entry
].
skb
=
NULL
;
...
...
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