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
2ad657c8
Commit
2ad657c8
authored
Dec 04, 2006
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'netdev-2.6.20' of master.kernel.org:/pub/scm/linux/kernel/git/viro/bird into tmp
parents
ff51a987
c69fda4e
Changes
41
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
41 changed files
with
139 additions
and
131 deletions
+139
-131
drivers/net/3c501.c
drivers/net/3c501.c
+1
-1
drivers/net/3c503.c
drivers/net/3c503.c
+1
-1
drivers/net/3c505.c
drivers/net/3c505.c
+1
-1
drivers/net/3c507.c
drivers/net/3c507.c
+1
-1
drivers/net/3c523.c
drivers/net/3c523.c
+1
-1
drivers/net/3c527.c
drivers/net/3c527.c
+1
-1
drivers/net/ac3200.c
drivers/net/ac3200.c
+1
-1
drivers/net/apne.c
drivers/net/apne.c
+2
-2
drivers/net/appletalk/cops.c
drivers/net/appletalk/cops.c
+1
-1
drivers/net/arm/ether1.c
drivers/net/arm/ether1.c
+3
-3
drivers/net/arm/ether3.c
drivers/net/arm/ether3.c
+4
-4
drivers/net/at1700.c
drivers/net/at1700.c
+1
-1
drivers/net/atarilance.c
drivers/net/atarilance.c
+2
-2
drivers/net/cs89x0.c
drivers/net/cs89x0.c
+1
-1
drivers/net/e2100.c
drivers/net/e2100.c
+1
-1
drivers/net/eepro.c
drivers/net/eepro.c
+1
-1
drivers/net/eexpress.c
drivers/net/eexpress.c
+1
-1
drivers/net/es3210.c
drivers/net/es3210.c
+1
-1
drivers/net/eth16i.c
drivers/net/eth16i.c
+1
-1
drivers/net/hp-plus.c
drivers/net/hp-plus.c
+1
-1
drivers/net/hp.c
drivers/net/hp.c
+1
-1
drivers/net/lance.c
drivers/net/lance.c
+1
-1
drivers/net/lne390.c
drivers/net/lne390.c
+1
-1
drivers/net/mv643xx_eth.c
drivers/net/mv643xx_eth.c
+2
-2
drivers/net/mvme147.c
drivers/net/mvme147.c
+2
-2
drivers/net/myri10ge/myri10ge.c
drivers/net/myri10ge/myri10ge.c
+48
-43
drivers/net/myri10ge/myri10ge_mcp.h
drivers/net/myri10ge/myri10ge_mcp.h
+28
-28
drivers/net/myri10ge/myri10ge_mcp_gen_header.h
drivers/net/myri10ge/myri10ge_mcp_gen_header.h
+1
-1
drivers/net/ne.c
drivers/net/ne.c
+1
-1
drivers/net/ne2.c
drivers/net/ne2.c
+1
-1
drivers/net/ni52.c
drivers/net/ni52.c
+1
-1
drivers/net/ni65.c
drivers/net/ni65.c
+1
-1
drivers/net/ns83820.c
drivers/net/ns83820.c
+14
-11
drivers/net/seeq8005.c
drivers/net/seeq8005.c
+1
-1
drivers/net/smc-ultra.c
drivers/net/smc-ultra.c
+1
-1
drivers/net/smc-ultra32.c
drivers/net/smc-ultra32.c
+1
-1
drivers/net/smc9194.c
drivers/net/smc9194.c
+1
-1
drivers/net/smc91x.h
drivers/net/smc91x.h
+2
-2
drivers/net/sun3lance.c
drivers/net/sun3lance.c
+2
-2
drivers/net/tokenring/smctr.c
drivers/net/tokenring/smctr.c
+1
-1
drivers/net/wd.c
drivers/net/wd.c
+1
-1
No files found.
drivers/net/3c501.c
View file @
2ad657c8
...
...
@@ -922,7 +922,7 @@ int __init init_module(void)
* and then free up the resources we took when the card was found.
*/
void
cleanup_module
(
void
)
void
__exit
cleanup_module
(
void
)
{
struct
net_device
*
dev
=
dev_3c501
;
unregister_netdev
(
dev
);
...
...
drivers/net/3c503.c
View file @
2ad657c8
...
...
@@ -726,7 +726,7 @@ static void cleanup_card(struct net_device *dev)
iounmap
(
ei_status
.
mem
);
}
void
void
__exit
cleanup_module
(
void
)
{
int
this_dev
;
...
...
drivers/net/3c505.c
View file @
2ad657c8
...
...
@@ -1670,7 +1670,7 @@ int __init init_module(void)
return
0
;
}
void
cleanup_module
(
void
)
void
__exit
cleanup_module
(
void
)
{
int
this_dev
;
...
...
drivers/net/3c507.c
View file @
2ad657c8
...
...
@@ -940,7 +940,7 @@ int __init init_module(void)
return
IS_ERR
(
dev_3c507
)
?
PTR_ERR
(
dev_3c507
)
:
0
;
}
void
void
__exit
cleanup_module
(
void
)
{
struct
net_device
*
dev
=
dev_3c507
;
...
...
drivers/net/3c523.c
View file @
2ad657c8
...
...
@@ -1302,7 +1302,7 @@ int __init init_module(void)
}
else
return
0
;
}
void
cleanup_module
(
void
)
void
__exit
cleanup_module
(
void
)
{
int
this_dev
;
for
(
this_dev
=
0
;
this_dev
<
MAX_3C523_CARDS
;
this_dev
++
)
{
...
...
drivers/net/3c527.c
View file @
2ad657c8
...
...
@@ -1659,7 +1659,7 @@ int __init init_module(void)
* transmit operations are allowed to start scribbling into memory.
*/
void
cleanup_module
(
void
)
void
__exit
cleanup_module
(
void
)
{
unregister_netdev
(
this_device
);
cleanup_card
(
this_device
);
...
...
drivers/net/ac3200.c
View file @
2ad657c8
...
...
@@ -405,7 +405,7 @@ static void cleanup_card(struct net_device *dev)
iounmap
(
ei_status
.
mem
);
}
void
void
__exit
cleanup_module
(
void
)
{
int
this_dev
;
...
...
drivers/net/apne.c
View file @
2ad657c8
...
...
@@ -568,7 +568,7 @@ static irqreturn_t apne_interrupt(int irq, void *dev_id)
#ifdef MODULE
static
struct
net_device
*
apne_dev
;
int
init_module
(
void
)
int
__init
init_module
(
void
)
{
apne_dev
=
apne_probe
(
-
1
);
if
(
IS_ERR
(
apne_dev
))
...
...
@@ -576,7 +576,7 @@ int init_module(void)
return
0
;
}
void
cleanup_module
(
void
)
void
__exit
cleanup_module
(
void
)
{
unregister_netdev
(
apne_dev
);
...
...
drivers/net/appletalk/cops.c
View file @
2ad657c8
...
...
@@ -1041,7 +1041,7 @@ int __init init_module(void)
return
0
;
}
void
cleanup_module
(
void
)
void
__exit
cleanup_module
(
void
)
{
unregister_netdev
(
cops_dev
);
cleanup_card
(
cops_dev
);
...
...
drivers/net/arm/ether1.c
View file @
2ad657c8
...
...
@@ -254,7 +254,7 @@ ether1_readbuffer (struct net_device *dev, void *data, unsigned int start, unsig
}
while
(
thislen
);
}
static
int
__init
static
int
__
dev
init
ether1_ramtest
(
struct
net_device
*
dev
,
unsigned
char
byte
)
{
unsigned
char
*
buffer
=
kmalloc
(
BUFFER_SIZE
,
GFP_KERNEL
);
...
...
@@ -308,7 +308,7 @@ ether1_reset (struct net_device *dev)
return
BUS_16
;
}
static
int
__init
static
int
__
dev
init
ether1_init_2
(
struct
net_device
*
dev
)
{
int
i
;
...
...
@@ -986,7 +986,7 @@ ether1_setmulticastlist (struct net_device *dev)
/* ------------------------------------------------------------------------- */
static
void
__init
ether1_banner
(
void
)
static
void
__
dev
init
ether1_banner
(
void
)
{
static
unsigned
int
version_printed
=
0
;
...
...
drivers/net/arm/ether3.c
View file @
2ad657c8
...
...
@@ -198,7 +198,7 @@ static inline void ether3_ledon(struct net_device *dev)
* Read the ethernet address string from the on board rom.
* This is an ascii string!!!
*/
static
int
__init
static
int
__
dev
init
ether3_addr
(
char
*
addr
,
struct
expansion_card
*
ec
)
{
struct
in_chunk_dir
cd
;
...
...
@@ -223,7 +223,7 @@ ether3_addr(char *addr, struct expansion_card *ec)
/* --------------------------------------------------------------------------- */
static
int
__init
static
int
__
dev
init
ether3_ramtest
(
struct
net_device
*
dev
,
unsigned
char
byte
)
{
unsigned
char
*
buffer
=
kmalloc
(
RX_END
,
GFP_KERNEL
);
...
...
@@ -272,7 +272,7 @@ ether3_ramtest(struct net_device *dev, unsigned char byte)
/* ------------------------------------------------------------------------------- */
static
int
__init
ether3_init_2
(
struct
net_device
*
dev
)
static
int
__
dev
init
ether3_init_2
(
struct
net_device
*
dev
)
{
int
i
;
...
...
@@ -765,7 +765,7 @@ static void ether3_tx(struct net_device *dev)
}
}
static
void
__init
ether3_banner
(
void
)
static
void
__
dev
init
ether3_banner
(
void
)
{
static
unsigned
version_printed
=
0
;
...
...
drivers/net/at1700.c
View file @
2ad657c8
...
...
@@ -908,7 +908,7 @@ int __init init_module(void)
return
0
;
}
void
void
__exit
cleanup_module
(
void
)
{
unregister_netdev
(
dev_at1700
);
...
...
drivers/net/atarilance.c
View file @
2ad657c8
...
...
@@ -1179,7 +1179,7 @@ static int lance_set_mac_address( struct net_device *dev, void *addr )
#ifdef MODULE
static
struct
net_device
*
atarilance_dev
;
int
init_module
(
void
)
int
__init
init_module
(
void
)
{
atarilance_dev
=
atarilance_probe
(
-
1
);
if
(
IS_ERR
(
atarilance_dev
))
...
...
@@ -1187,7 +1187,7 @@ int init_module(void)
return
0
;
}
void
cleanup_module
(
void
)
void
__exit
cleanup_module
(
void
)
{
unregister_netdev
(
atarilance_dev
);
free_irq
(
atarilance_dev
->
irq
,
atarilance_dev
);
...
...
drivers/net/cs89x0.c
View file @
2ad657c8
...
...
@@ -1974,7 +1974,7 @@ int __init init_module(void)
return
ret
;
}
void
void
__exit
cleanup_module
(
void
)
{
unregister_netdev
(
dev_cs89x0
);
...
...
drivers/net/e2100.c
View file @
2ad657c8
...
...
@@ -463,7 +463,7 @@ static void cleanup_card(struct net_device *dev)
release_region
(
dev
->
base_addr
,
E21_IO_EXTENT
);
}
void
void
__exit
cleanup_module
(
void
)
{
int
this_dev
;
...
...
drivers/net/eepro.c
View file @
2ad657c8
...
...
@@ -1827,7 +1827,7 @@ int __init init_module(void)
return
n_eepro
?
0
:
-
ENODEV
;
}
void
void
__exit
cleanup_module
(
void
)
{
int
i
;
...
...
drivers/net/eexpress.c
View file @
2ad657c8
...
...
@@ -1719,7 +1719,7 @@ int __init init_module(void)
return
-
ENXIO
;
}
void
cleanup_module
(
void
)
void
__exit
cleanup_module
(
void
)
{
int
this_dev
;
...
...
drivers/net/es3210.c
View file @
2ad657c8
...
...
@@ -455,7 +455,7 @@ static void cleanup_card(struct net_device *dev)
iounmap
(
ei_status
.
mem
);
}
void
void
__exit
cleanup_module
(
void
)
{
int
this_dev
;
...
...
drivers/net/eth16i.c
View file @
2ad657c8
...
...
@@ -1475,7 +1475,7 @@ int __init init_module(void)
return
-
ENXIO
;
}
void
cleanup_module
(
void
)
void
__exit
cleanup_module
(
void
)
{
int
this_dev
;
...
...
drivers/net/hp-plus.c
View file @
2ad657c8
...
...
@@ -482,7 +482,7 @@ static void cleanup_card(struct net_device *dev)
release_region
(
dev
->
base_addr
-
NIC_OFFSET
,
HP_IO_EXTENT
);
}
void
void
__exit
cleanup_module
(
void
)
{
int
this_dev
;
...
...
drivers/net/hp.c
View file @
2ad657c8
...
...
@@ -444,7 +444,7 @@ static void cleanup_card(struct net_device *dev)
release_region
(
dev
->
base_addr
-
NIC_OFFSET
,
HP_IO_EXTENT
);
}
void
void
__exit
cleanup_module
(
void
)
{
int
this_dev
;
...
...
drivers/net/lance.c
View file @
2ad657c8
...
...
@@ -368,7 +368,7 @@ static void cleanup_card(struct net_device *dev)
kfree
(
lp
);
}
void
cleanup_module
(
void
)
void
__exit
cleanup_module
(
void
)
{
int
this_dev
;
...
...
drivers/net/lne390.c
View file @
2ad657c8
...
...
@@ -440,7 +440,7 @@ static void cleanup_card(struct net_device *dev)
iounmap
(
ei_status
.
mem
);
}
void
cleanup_module
(
void
)
void
__exit
cleanup_module
(
void
)
{
int
this_dev
;
...
...
drivers/net/mv643xx_eth.c
View file @
2ad657c8
...
...
@@ -1098,7 +1098,7 @@ static void eth_tx_fill_frag_descs(struct mv643xx_private *mp,
ETH_TX_ENABLE_INTERRUPT
;
mp
->
tx_skb
[
tx_index
]
=
skb
;
}
else
mp
->
tx_skb
[
tx_index
]
=
0
;
mp
->
tx_skb
[
tx_index
]
=
NULL
;
desc
=
&
mp
->
p_tx_desc_area
[
tx_index
];
desc
->
l4i_chk
=
0
;
...
...
@@ -1134,7 +1134,7 @@ static void eth_tx_submit_descs_for_skb(struct mv643xx_private *mp,
eth_tx_fill_frag_descs
(
mp
,
skb
);
length
=
skb_headlen
(
skb
);
mp
->
tx_skb
[
tx_index
]
=
0
;
mp
->
tx_skb
[
tx_index
]
=
NULL
;
}
else
{
cmd_sts
|=
ETH_ZERO_PADDING
|
ETH_TX_LAST_DESC
|
...
...
drivers/net/mvme147.c
View file @
2ad657c8
...
...
@@ -184,7 +184,7 @@ static int m147lance_close(struct net_device *dev)
MODULE_LICENSE
(
"GPL"
);
static
struct
net_device
*
dev_mvme147_lance
;
int
init_module
(
void
)
int
__init
init_module
(
void
)
{
dev_mvme147_lance
=
mvme147lance_probe
(
-
1
);
if
(
IS_ERR
(
dev_mvme147_lance
))
...
...
@@ -192,7 +192,7 @@ int init_module(void)
return
0
;
}
void
cleanup_module
(
void
)
void
__exit
cleanup_module
(
void
)
{
struct
m147lance_private
*
lp
=
dev_mvme147_lance
->
priv
;
unregister_netdev
(
dev_mvme147_lance
);
...
...
drivers/net/myri10ge/myri10ge.c
View file @
2ad657c8
This diff is collapsed.
Click to expand it.
drivers/net/myri10ge/myri10ge_mcp.h
View file @
2ad657c8
...
...
@@ -6,23 +6,23 @@
/* 8 Bytes */
struct
mcp_dma_addr
{
u
32
high
;
u
32
low
;
__be
32
high
;
__be
32
low
;
};
/* 4 Bytes */
struct
mcp_slot
{
u
16
checksum
;
u
16
length
;
__sum
16
checksum
;
__be
16
length
;
};
/* 64 Bytes */
struct
mcp_cmd
{
u
32
cmd
;
u
32
data0
;
/* will be low portion if data > 32 bits */
__be
32
cmd
;
__be
32
data0
;
/* will be low portion if data > 32 bits */
/* 8 */
u
32
data1
;
/* will be high portion if data > 32 bits */
u
32
data2
;
/* currently unused.. */
__be
32
data1
;
/* will be high portion if data > 32 bits */
__be
32
data2
;
/* currently unused.. */
/* 16 */
struct
mcp_dma_addr
response_addr
;
/* 24 */
...
...
@@ -31,8 +31,8 @@ struct mcp_cmd {
/* 8 Bytes */
struct
mcp_cmd_response
{
u
32
data
;
u
32
result
;
__be
32
data
;
__be
32
result
;
};
/*
...
...
@@ -73,10 +73,10 @@ union mcp_pso_or_cumlen {
/* 16 Bytes */
struct
mcp_kreq_ether_send
{
u
32
addr_high
;
u
32
addr_low
;
u
16
pseudo_hdr_offset
;
u
16
length
;
__be
32
addr_high
;
__be
32
addr_low
;
__be
16
pseudo_hdr_offset
;
__be
16
length
;
u8
pad
;
u8
rdma_count
;
u8
cksum_offset
;
/* where to start computing cksum */
...
...
@@ -85,8 +85,8 @@ struct mcp_kreq_ether_send {
/* 8 Bytes */
struct
mcp_kreq_ether_recv
{
u
32
addr_high
;
u
32
addr_low
;
__be
32
addr_high
;
__be
32
addr_low
;
};
/* Commands */
...
...
@@ -219,19 +219,19 @@ enum myri10ge_mcp_cmd_status {
struct
mcp_irq_data
{
/* add new counters at the beginning */
u
32
future_use
[
5
];
u
32
dropped_multicast_filtered
;
__be
32
future_use
[
5
];
__be
32
dropped_multicast_filtered
;
/* 40 Bytes */
u
32
send_done_count
;
u
32
link_up
;
u
32
dropped_link_overflow
;
u
32
dropped_link_error_or_filtered
;
u
32
dropped_runt
;
u
32
dropped_overrun
;
u
32
dropped_no_small_buffer
;
u
32
dropped_no_big_buffer
;
u
32
rdma_tags_available
;
__be
32
send_done_count
;
__be
32
link_up
;
__be
32
dropped_link_overflow
;
__be
32
dropped_link_error_or_filtered
;
__be
32
dropped_runt
;
__be
32
dropped_overrun
;
__be
32
dropped_no_small_buffer
;
__be
32
dropped_no_big_buffer
;
__be
32
rdma_tags_available
;
u8
tx_stopped
;
u8
link_down
;
...
...
drivers/net/myri10ge/myri10ge_mcp_gen_header.h
View file @
2ad657c8
...
...
@@ -36,7 +36,7 @@
struct
mcp_gen_header
{
/* the first 4 fields are filled at compile time */
unsigned
header_length
;
unsigned
mcp_type
;
__be32
mcp_type
;
char
version
[
128
];
unsigned
mcp_globals
;
/* pointer to mcp-type specific structure */
...
...
drivers/net/ne.c
View file @
2ad657c8
...
...
@@ -867,7 +867,7 @@ static void cleanup_card(struct net_device *dev)
release_region
(
dev
->
base_addr
,
NE_IO_EXTENT
);
}
void
cleanup_module
(
void
)
void
__exit
cleanup_module
(
void
)
{
int
this_dev
;
...
...
drivers/net/ne2.c
View file @
2ad657c8
...
...
@@ -813,7 +813,7 @@ static void cleanup_card(struct net_device *dev)
release_region
(
dev
->
base_addr
,
NE_IO_EXTENT
);
}
void
cleanup_module
(
void
)
void
__exit
cleanup_module
(
void
)
{
int
this_dev
;
...
...
drivers/net/ni52.c
View file @
2ad657c8
...
...
@@ -1335,7 +1335,7 @@ int __init init_module(void)
return
0
;
}
void
cleanup_module
(
void
)
void
__exit
cleanup_module
(
void
)
{
unregister_netdev
(
dev_ni52
);
release_region
(
dev_ni52
->
base_addr
,
NI52_TOTAL_SIZE
);
...
...
drivers/net/ni65.c
View file @
2ad657c8
...
...
@@ -1259,7 +1259,7 @@ int __init init_module(void)
return
IS_ERR
(
dev_ni65
)
?
PTR_ERR
(
dev_ni65
)
:
0
;
}
void
cleanup_module
(
void
)
void
__exit
cleanup_module
(
void
)
{
unregister_netdev
(
dev_ni65
);
cleanup_card
(
dev_ni65
);
...
...
drivers/net/ns83820.c
View file @
2ad657c8
...
...
@@ -414,10 +414,10 @@ struct rx_info {
struct
sk_buff
*
skbs
[
NR_RX_DESC
];
u
32
*
next_rx_desc
;
__le
32
*
next_rx_desc
;
u16
next_rx
,
next_empty
;
u
32
*
descs
;
__le
32
*
descs
;
dma_addr_t
phy_descs
;
};
...
...
@@ -459,7 +459,7 @@ struct ns83820 {
struct
sk_buff
*
tx_skbs
[
NR_TX_DESC
];
char
pad
[
16
]
__attribute__
((
aligned
(
16
)));
u
32
*
tx_descs
;
__le
32
*
tx_descs
;
dma_addr_t
tx_phy_descs
;
struct
timer_list
tx_watchdog
;
...
...
@@ -533,7 +533,7 @@ static void ns83820_vlan_rx_kill_vid(struct net_device *ndev, unsigned short vid
* conditions, still route realtime traffic with as low jitter as
* possible.
*/
static
inline
void
build_rx_desc
(
struct
ns83820
*
dev
,
u
32
*
desc
,
dma_addr_t
link
,
dma_addr_t
buf
,
u32
cmdsts
,
u32
extsts
)
static
inline
void
build_rx_desc
(
struct
ns83820
*
dev
,
__le
32
*
desc
,
dma_addr_t
link
,
dma_addr_t
buf
,
u32
cmdsts
,
u32
extsts
)
{
desc_addr_set
(
desc
+
DESC_LINK
,
link
);
desc_addr_set
(
desc
+
DESC_BUFPTR
,
buf
);
...
...
@@ -547,7 +547,7 @@ static inline int ns83820_add_rx_skb(struct ns83820 *dev, struct sk_buff *skb)
{
unsigned
next_empty
;
u32
cmdsts
;
u
32
*
sg
;
__le
32
*
sg
;
dma_addr_t
buf
;
next_empty
=
dev
->
rx_info
.
next_empty
;
...
...
@@ -874,7 +874,8 @@ static void fastcall rx_irq(struct net_device *ndev)
struct
rx_info
*
info
=
&
dev
->
rx_info
;
unsigned
next_rx
;
int
rx_rc
,
len
;
u32
cmdsts
,
*
desc
;
u32
cmdsts
;
__le32
*
desc
;
unsigned
long
flags
;
int
nr
=
0
;
...
...
@@ -1010,7 +1011,8 @@ static inline void kick_tx(struct ns83820 *dev)
static
void
do_tx_done
(
struct
net_device
*
ndev
)
{
struct
ns83820
*
dev
=
PRIV
(
ndev
);
u32
cmdsts
,
tx_done_idx
,
*
desc
;
u32
cmdsts
,
tx_done_idx
;
__le32
*
desc
;
dprintk
(
"do_tx_done(%p)
\n
"
,
ndev
);
tx_done_idx
=
dev
->
tx_done_idx
;
...
...
@@ -1077,7 +1079,7 @@ static void ns83820_cleanup_tx(struct ns83820 *dev)
struct
sk_buff
*
skb
=
dev
->
tx_skbs
[
i
];
dev
->
tx_skbs
[
i
]
=
NULL
;
if
(
skb
)
{
u
32
*
desc
=
dev
->
tx_descs
+
(
i
*
DESC_SIZE
);
__le
32
*
desc
=
dev
->
tx_descs
+
(
i
*
DESC_SIZE
);
pci_unmap_single
(
dev
->
pci_dev
,
desc_addr_get
(
desc
+
DESC_BUFPTR
),
le32_to_cpu
(
desc
[
DESC_CMDSTS
])
&
CMDSTS_LEN_MASK
,
...
...
@@ -1107,7 +1109,7 @@ static int ns83820_hard_start_xmit(struct sk_buff *skb, struct net_device *ndev)
skb_frag_t
*
frag
;
int
stopped
=
0
;
int
do_intr
=
0
;
volatile
u
32
*
first_desc
;
volatile
__le
32
*
first_desc
;
dprintk
(
"ns83820_hard_start_xmit
\n
"
);
...
...
@@ -1180,7 +1182,7 @@ static int ns83820_hard_start_xmit(struct sk_buff *skb, struct net_device *ndev)
first_desc
=
dev
->
tx_descs
+
(
free_idx
*
DESC_SIZE
);
for
(;;)
{
volatile
u
32
*
desc
=
dev
->
tx_descs
+
(
free_idx
*
DESC_SIZE
);
volatile
__le
32
*
desc
=
dev
->
tx_descs
+
(
free_idx
*
DESC_SIZE
);
dprintk
(
"frag[%3u]: %4u @ 0x%08Lx
\n
"
,
free_idx
,
len
,
(
unsigned
long
long
)
buf
);
...
...
@@ -1455,7 +1457,8 @@ static int ns83820_stop(struct net_device *ndev)
static
void
ns83820_tx_timeout
(
struct
net_device
*
ndev
)
{
struct
ns83820
*
dev
=
PRIV
(
ndev
);
u32
tx_done_idx
,
*
desc
;
u32
tx_done_idx
;
__le32
*
desc
;
unsigned
long
flags
;
spin_lock_irqsave
(
&
dev
->
tx_lock
,
flags
);
...
...
drivers/net/seeq8005.c
View file @
2ad657c8
...
...
@@ -750,7 +750,7 @@ int __init init_module(void)
return
0
;
}
void
cleanup_module
(
void
)
void
__exit
cleanup_module
(
void
)
{
unregister_netdev
(
dev_seeq
);
release_region
(
dev_seeq
->
base_addr
,
SEEQ8005_IO_EXTENT
);
...
...
drivers/net/smc-ultra.c
View file @
2ad657c8
...
...
@@ -593,7 +593,7 @@ static void cleanup_card(struct net_device *dev)
iounmap
(
ei_status
.
mem
);
}
void
void
__exit
cleanup_module
(
void
)
{
int
this_dev
;
...
...
drivers/net/smc-ultra32.c
View file @
2ad657c8
...
...
@@ -437,7 +437,7 @@ int __init init_module(void)
return
-
ENXIO
;
}
void
cleanup_module
(
void
)
void
__exit
cleanup_module
(
void
)
{
int
this_dev
;
...
...
drivers/net/smc9194.c
View file @
2ad657c8
...
...
@@ -1616,7 +1616,7 @@ int __init init_module(void)
return
0
;
}
void
cleanup_module
(
void
)
void
__exit
cleanup_module
(
void
)
{
unregister_netdev
(
devSMC9194
);
free_irq
(
devSMC9194
->
irq
,
devSMC9194
);
...
...
drivers/net/smc91x.h
View file @
2ad657c8
...
...
@@ -1216,7 +1216,7 @@ static const char * chip_ids[ 16 ] = {
if (SMC_CAN_USE_32BIT) { \
void *__ptr = (p); \
int __len = (l); \
void
*__ioaddr = ioaddr;
\
void
__iomem *__ioaddr = ioaddr;
\
if (__len >= 2 && (unsigned long)__ptr & 2) { \
__len -= 2; \
SMC_outw(*(u16 *)__ptr, ioaddr, DATA_REG); \
...
...
@@ -1240,7 +1240,7 @@ static const char * chip_ids[ 16 ] = {
if (SMC_CAN_USE_32BIT) { \
void *__ptr = (p); \
int __len = (l); \
void
*__ioaddr = ioaddr;
\
void
__iomem *__ioaddr = ioaddr;
\
if ((unsigned long)__ptr & 2) { \
/* \
* We want 32bit alignment here. \
...
...
drivers/net/sun3lance.c
View file @
2ad657c8
...
...
@@ -945,7 +945,7 @@ static void set_multicast_list( struct net_device *dev )
static
struct
net_device
*
sun3lance_dev
;
int
init_module
(
void
)
int
__init
init_module
(
void
)
{
sun3lance_dev
=
sun3lance_probe
(
-
1
);
if
(
IS_ERR
(
sun3lance_dev
))
...
...
@@ -953,7 +953,7 @@ int init_module(void)
return
0
;
}
void
cleanup_module
(
void
)
void
__exit
cleanup_module
(
void
)
{
unregister_netdev
(
sun3lance_dev
);
#ifdef CONFIG_SUN3
...
...
drivers/net/tokenring/smctr.c
View file @
2ad657c8
...
...
@@ -5706,7 +5706,7 @@ int __init init_module(void)
return
found
?
0
:
-
ENODEV
;
}
void
cleanup_module
(
void
)
void
__exit
cleanup_module
(
void
)
{
int
i
;
...
...
drivers/net/wd.c
View file @
2ad657c8
...
...
@@ -538,7 +538,7 @@ static void cleanup_card(struct net_device *dev)
iounmap
(
ei_status
.
mem
);
}
void
void
__exit
cleanup_module
(
void
)
{
int
this_dev
;
...
...
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