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
dfcba092
Commit
dfcba092
authored
Mar 11, 2005
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://gkernel.bkbits.net/net-drivers-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux
parents
a4fa7036
b42d1551
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
27 additions
and
20 deletions
+27
-20
drivers/net/lance.c
drivers/net/lance.c
+1
-0
drivers/net/r8169.c
drivers/net/r8169.c
+10
-7
drivers/net/sk98lin/skge.c
drivers/net/sk98lin/skge.c
+1
-1
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
drivers/net/typhoon-firmware.h
drivers/net/typhoon-firmware.h
+1
-1
No files found.
drivers/net/lance.c
View file @
dfcba092
...
@@ -47,6 +47,7 @@ static const char version[] = "lance.c:v1.15ac 1999/11/13 dplatt@3do.com, becker
...
@@ -47,6 +47,7 @@ static const char version[] = "lance.c:v1.15ac 1999/11/13 dplatt@3do.com, becker
#include <linux/module.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/string.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <linux/errno.h>
#include <linux/ioport.h>
#include <linux/ioport.h>
#include <linux/slab.h>
#include <linux/slab.h>
...
...
drivers/net/r8169.c
View file @
dfcba092
...
@@ -1683,16 +1683,19 @@ static void rtl8169_free_rx_skb(struct rtl8169_private *tp,
...
@@ -1683,16 +1683,19 @@ static void rtl8169_free_rx_skb(struct rtl8169_private *tp,
rtl8169_make_unusable_by_asic
(
desc
);
rtl8169_make_unusable_by_asic
(
desc
);
}
}
static
inline
void
rtl8169_
return_to_asic
(
struct
RxDesc
*
desc
,
int
rx_buf_sz
)
static
inline
void
rtl8169_
mark_to_asic
(
struct
RxDesc
*
desc
,
u32
rx_buf_sz
)
{
{
desc
->
opts1
|=
cpu_to_le32
(
DescOwn
+
rx_buf_sz
);
u32
eor
=
le32_to_cpu
(
desc
->
opts1
)
&
RingEnd
;
desc
->
opts1
=
cpu_to_le32
(
DescOwn
|
eor
|
rx_buf_sz
);
}
}
static
inline
void
rtl8169_
give
_to_asic
(
struct
RxDesc
*
desc
,
dma_addr_t
mapping
,
static
inline
void
rtl8169_
map
_to_asic
(
struct
RxDesc
*
desc
,
dma_addr_t
mapping
,
int
rx_buf_sz
)
u32
rx_buf_sz
)
{
{
desc
->
addr
=
cpu_to_le64
(
mapping
);
desc
->
addr
=
cpu_to_le64
(
mapping
);
desc
->
opts1
|=
cpu_to_le32
(
DescOwn
+
rx_buf_sz
);
wmb
();
rtl8169_mark_to_asic
(
desc
,
rx_buf_sz
);
}
}
static
int
rtl8169_alloc_rx_skb
(
struct
pci_dev
*
pdev
,
struct
sk_buff
**
sk_buff
,
static
int
rtl8169_alloc_rx_skb
(
struct
pci_dev
*
pdev
,
struct
sk_buff
**
sk_buff
,
...
@@ -1712,7 +1715,7 @@ static int rtl8169_alloc_rx_skb(struct pci_dev *pdev, struct sk_buff **sk_buff,
...
@@ -1712,7 +1715,7 @@ static int rtl8169_alloc_rx_skb(struct pci_dev *pdev, struct sk_buff **sk_buff,
mapping
=
pci_map_single
(
pdev
,
skb
->
tail
,
rx_buf_sz
,
mapping
=
pci_map_single
(
pdev
,
skb
->
tail
,
rx_buf_sz
,
PCI_DMA_FROMDEVICE
);
PCI_DMA_FROMDEVICE
);
rtl8169_
give
_to_asic
(
desc
,
mapping
,
rx_buf_sz
);
rtl8169_
map
_to_asic
(
desc
,
mapping
,
rx_buf_sz
);
out:
out:
return
ret
;
return
ret
;
...
@@ -2150,7 +2153,7 @@ static inline int rtl8169_try_rx_copy(struct sk_buff **sk_buff, int pkt_size,
...
@@ -2150,7 +2153,7 @@ static inline int rtl8169_try_rx_copy(struct sk_buff **sk_buff, int pkt_size,
skb_reserve
(
skb
,
NET_IP_ALIGN
);
skb_reserve
(
skb
,
NET_IP_ALIGN
);
eth_copy_and_sum
(
skb
,
sk_buff
[
0
]
->
tail
,
pkt_size
,
0
);
eth_copy_and_sum
(
skb
,
sk_buff
[
0
]
->
tail
,
pkt_size
,
0
);
*
sk_buff
=
skb
;
*
sk_buff
=
skb
;
rtl8169_
return
_to_asic
(
desc
,
rx_buf_sz
);
rtl8169_
mark
_to_asic
(
desc
,
rx_buf_sz
);
ret
=
0
;
ret
=
0
;
}
}
}
}
...
...
drivers/net/sk98lin/skge.c
View file @
dfcba092
...
@@ -5155,7 +5155,7 @@ static struct pci_device_id skge_pci_tbl[] = {
...
@@ -5155,7 +5155,7 @@ static struct pci_device_id skge_pci_tbl[] = {
MODULE_DEVICE_TABLE
(
pci
,
skge_pci_tbl
);
MODULE_DEVICE_TABLE
(
pci
,
skge_pci_tbl
);
static
struct
pci_driver
skge_driver
=
{
static
struct
pci_driver
skge_driver
=
{
.
name
=
"sk
ge
"
,
.
name
=
"sk
98lin
"
,
.
id_table
=
skge_pci_tbl
,
.
id_table
=
skge_pci_tbl
,
.
probe
=
skge_probe_one
,
.
probe
=
skge_probe_one
,
.
remove
=
__devexit_p
(
skge_remove_one
),
.
remove
=
__devexit_p
(
skge_remove_one
),
...
...
drivers/net/tulip/media.c
View file @
dfcba092
...
@@ -88,7 +88,7 @@ int tulip_mdio_read(struct net_device *dev, int phy_id, int location)
...
@@ -88,7 +88,7 @@ int tulip_mdio_read(struct net_device *dev, int phy_id, int location)
value
=
ioread32
(
ioaddr
+
CSR9
);
value
=
ioread32
(
ioaddr
+
CSR9
);
iowrite32
(
value
&
0xFFEFFFFF
,
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
);
iowrite32
(
value
,
ioaddr
+
CSR10
);
while
(
--
i
>
0
)
{
while
(
--
i
>
0
)
{
...
@@ -166,7 +166,7 @@ void tulip_mdio_write(struct net_device *dev, int phy_id, int location, int val)
...
@@ -166,7 +166,7 @@ void tulip_mdio_write(struct net_device *dev, int phy_id, int location, int val)
value
=
ioread32
(
ioaddr
+
CSR9
);
value
=
ioread32
(
ioaddr
+
CSR9
);
iowrite32
(
value
&
0xFFEFFFFF
,
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
);
iowrite32
(
value
,
ioaddr
+
CSR10
);
while
(
--
i
>
0
)
{
while
(
--
i
>
0
)
{
...
...
drivers/net/tulip/tulip_core.c
View file @
dfcba092
...
@@ -1102,15 +1102,18 @@ static void set_rx_mode(struct net_device *dev)
...
@@ -1102,15 +1102,18 @@ static void set_rx_mode(struct net_device *dev)
entry
=
tp
->
cur_tx
++
%
TX_RING_SIZE
;
entry
=
tp
->
cur_tx
++
%
TX_RING_SIZE
;
if
(
entry
!=
0
)
{
if
(
entry
!=
0
)
{
/* Avoid a chip errata by prefixing a dummy entry. */
/* Avoid a chip errata by prefixing a dummy entry. Don't do
tp
->
tx_buffers
[
entry
].
skb
=
NULL
;
this on the ULI526X as it triggers a different problem */
tp
->
tx_buffers
[
entry
].
mapping
=
0
;
if
(
!
(
tp
->
chip_id
==
ULI526X
&&
(
tp
->
revision
=
0x40
||
tp
->
revision
==
0x50
)))
{
tp
->
tx_ring
[
entry
].
length
=
tp
->
tx_buffers
[
entry
].
skb
=
NULL
;
(
entry
==
TX_RING_SIZE
-
1
)
?
cpu_to_le32
(
DESC_RING_WRAP
)
:
0
;
tp
->
tx_buffers
[
entry
].
mapping
=
0
;
tp
->
tx_ring
[
entry
].
buffer1
=
0
;
tp
->
tx_ring
[
entry
].
length
=
/* Must set DescOwned later to avoid race with chip */
(
entry
==
TX_RING_SIZE
-
1
)
?
cpu_to_le32
(
DESC_RING_WRAP
)
:
0
;
dummy
=
entry
;
tp
->
tx_ring
[
entry
].
buffer1
=
0
;
entry
=
tp
->
cur_tx
++
%
TX_RING_SIZE
;
/* Must set DescOwned later to avoid race with chip */
dummy
=
entry
;
entry
=
tp
->
cur_tx
++
%
TX_RING_SIZE
;
}
}
}
tp
->
tx_buffers
[
entry
].
skb
=
NULL
;
tp
->
tx_buffers
[
entry
].
skb
=
NULL
;
...
...
drivers/net/typhoon-firmware.h
View file @
dfcba092
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
*/
*/
/* ver 03.001.008 */
/* ver 03.001.008 */
const
u8
typhoon_firmware_image
[]
=
{
static
const
u8
typhoon_firmware_image
[]
=
{
0x54
,
0x59
,
0x50
,
0x48
,
0x4f
,
0x4f
,
0x4e
,
0x00
,
0x02
,
0x00
,
0x00
,
0x00
,
0x54
,
0x59
,
0x50
,
0x48
,
0x4f
,
0x4f
,
0x4e
,
0x00
,
0x02
,
0x00
,
0x00
,
0x00
,
0x09
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0xff
,
0xff
,
0xcb
,
0x99
,
0xb1
,
0xd4
,
0x09
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0xff
,
0xff
,
0xcb
,
0x99
,
0xb1
,
0xd4
,
0x4c
,
0xb8
,
0xd0
,
0x4b
,
0x32
,
0x02
,
0xd4
,
0xee
,
0x73
,
0x7e
,
0x0b
,
0x13
,
0x4c
,
0xb8
,
0xd0
,
0x4b
,
0x32
,
0x02
,
0xd4
,
0xee
,
0x73
,
0x7e
,
0x0b
,
0x13
,
...
...
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