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
5d4bb599
Commit
5d4bb599
authored
Apr 14, 2004
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Plain Diff
Merge redhat.com:/spare/repo/netdev-2.6/janitor
into redhat.com:/spare/repo/net-drivers-2.6
parents
62e88cfd
fb320b95
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
58 additions
and
178 deletions
+58
-178
drivers/net/dgrs.c
drivers/net/dgrs.c
+7
-1
drivers/net/gt96100eth.c
drivers/net/gt96100eth.c
+1
-1
drivers/net/irda/smsc-ircc2.c
drivers/net/irda/smsc-ircc2.c
+3
-3
drivers/net/irda/via-ircc.c
drivers/net/irda/via-ircc.c
+1
-1
drivers/net/net_init.c
drivers/net/net_init.c
+5
-3
drivers/net/pcmcia/nmclan_cs.c
drivers/net/pcmcia/nmclan_cs.c
+16
-16
drivers/net/pcmcia/xirc2ps_cs.c
drivers/net/pcmcia/xirc2ps_cs.c
+16
-16
drivers/net/tc35815.c
drivers/net/tc35815.c
+1
-6
drivers/net/wan/lmc/lmc_proto.c
drivers/net/wan/lmc/lmc_proto.c
+0
-1
drivers/net/wan/lmc/lmc_proto_raw.h
drivers/net/wan/lmc/lmc_proto_raw.h
+0
-4
drivers/net/wan/lmc/lmc_ver.h
drivers/net/wan/lmc/lmc_ver.h
+0
-123
drivers/net/wireless/orinoco.h
drivers/net/wireless/orinoco.h
+2
-2
include/linux/netdevice.h
include/linux/netdevice.h
+6
-1
No files found.
drivers/net/dgrs.c
View file @
5d4bb599
...
@@ -327,8 +327,10 @@ check_board_dma(struct net_device *dev0)
...
@@ -327,8 +327,10 @@ check_board_dma(struct net_device *dev0)
*/
*/
priv0
->
vplxdma
[
PLX_DMA0_MODE
/
4
]
=
0xFFFFFFFF
;
priv0
->
vplxdma
[
PLX_DMA0_MODE
/
4
]
=
0xFFFFFFFF
;
x
=
priv0
->
vplxdma
[
PLX_DMA0_MODE
/
4
];
x
=
priv0
->
vplxdma
[
PLX_DMA0_MODE
/
4
];
if
(
x
!=
0x00001FFF
)
if
(
x
!=
0x00001FFF
)
{
iounmap
((
void
*
)
priv0
->
vplxdma
);
return
(
0
);
return
(
0
);
}
return
(
1
);
return
(
1
);
}
}
...
@@ -1020,6 +1022,8 @@ dgrs_download(struct net_device *dev0)
...
@@ -1020,6 +1022,8 @@ dgrs_download(struct net_device *dev0)
if
(
!
is
)
if
(
!
is
)
{
{
printk
(
"%s: Illegal IRQ %d
\n
"
,
dev0
->
name
,
dev0
->
irq
);
printk
(
"%s: Illegal IRQ %d
\n
"
,
dev0
->
name
,
dev0
->
irq
);
iounmap
(
priv0
->
vmem
);
priv0
->
vmem
=
NULL
;
return
-
ENXIO
;
return
-
ENXIO
;
}
}
OUTB
(
dev0
->
base_addr
+
ES4H_AS_31_24
,
OUTB
(
dev0
->
base_addr
+
ES4H_AS_31_24
,
...
@@ -1101,6 +1105,8 @@ dgrs_download(struct net_device *dev0)
...
@@ -1101,6 +1105,8 @@ dgrs_download(struct net_device *dev0)
if
(
priv0
->
bcomm
->
bc_status
<
BC_RUN
)
if
(
priv0
->
bcomm
->
bc_status
<
BC_RUN
)
{
{
printk
(
"%s: board not operating
\n
"
,
dev0
->
name
);
printk
(
"%s: board not operating
\n
"
,
dev0
->
name
);
iounmap
(
priv0
->
vmem
);
priv0
->
vmem
=
NULL
;
return
-
ENXIO
;
return
-
ENXIO
;
}
}
...
...
drivers/net/gt96100eth.c
View file @
5d4bb599
...
@@ -1212,7 +1212,7 @@ gt96100_rx(struct net_device *dev, u32 status)
...
@@ -1212,7 +1212,7 @@ gt96100_rx(struct net_device *dev, u32 status)
cmdstat
,
nextOut
);
cmdstat
,
nextOut
);
if
(
cmdstat
&
(
u32
)
rxOwn
)
{
if
(
cmdstat
&
(
u32
)
rxOwn
)
{
//err(
__FUNCTION__ ": device owns descriptor!\n"
);
//err(
"%s: device owns descriptor!\n", __FUNCTION__
);
// DMA is not finished updating descriptor???
// DMA is not finished updating descriptor???
// Leave and come back later to pick-up where
// Leave and come back later to pick-up where
// we left off.
// we left off.
...
...
drivers/net/irda/smsc-ircc2.c
View file @
5d4bb599
...
@@ -1429,7 +1429,7 @@ static irqreturn_t smsc_ircc_interrupt(int irq, void *dev_id, struct pt_regs *re
...
@@ -1429,7 +1429,7 @@ static irqreturn_t smsc_ircc_interrupt(int irq, void *dev_id, struct pt_regs *re
}
}
if
(
iir
&
IRCC_IIR_ACTIVE_FRAME
)
{
if
(
iir
&
IRCC_IIR_ACTIVE_FRAME
)
{
/*printk(KERN_WARNING
__FUNCTION__ "(): Active Frame\n"
);*/
/*printk(KERN_WARNING
"%s(): Active Frame\n", __FUNCTION__
);*/
}
}
/* Enable interrupts again */
/* Enable interrupts again */
...
@@ -1995,7 +1995,7 @@ static int __init smsc_ircc_look_for_chips(void)
...
@@ -1995,7 +1995,7 @@ static int __init smsc_ircc_look_for_chips(void)
while
(
address
->
cfg_base
){
while
(
address
->
cfg_base
){
cfg_base
=
address
->
cfg_base
;
cfg_base
=
address
->
cfg_base
;
/*printk(KERN_WARNING
__FUNCTION__ "(): probing: 0x%02x for: 0x%02x\n"
, cfg_base, address->type);*/
/*printk(KERN_WARNING
"%s(): probing: 0x%02x for: 0x%02x\n", __FUNCTION__
, cfg_base, address->type);*/
if
(
address
->
type
&
SMSCSIO_TYPE_FDC
){
if
(
address
->
type
&
SMSCSIO_TYPE_FDC
){
type
=
"FDC"
;
type
=
"FDC"
;
...
@@ -2040,7 +2040,7 @@ static int __init smsc_superio_flat(const smsc_chip_t *chips, unsigned short cfg
...
@@ -2040,7 +2040,7 @@ static int __init smsc_superio_flat(const smsc_chip_t *chips, unsigned short cfg
outb
(
SMSCSIOFLAT_UARTMODE0C_REG
,
cfgbase
);
outb
(
SMSCSIOFLAT_UARTMODE0C_REG
,
cfgbase
);
mode
=
inb
(
cfgbase
+
1
);
mode
=
inb
(
cfgbase
+
1
);
/*printk(KERN_WARNING
__FUNCTION__ "(): mode: 0x%02x\n"
, mode);*/
/*printk(KERN_WARNING
"%s(): mode: 0x%02x\n", __FUNCTION__
, mode);*/
if
(
!
(
mode
&
SMSCSIOFLAT_UART2MODE_VAL_IRDA
))
if
(
!
(
mode
&
SMSCSIOFLAT_UART2MODE_VAL_IRDA
))
WARNING
(
"%s(): IrDA not enabled
\n
"
,
__FUNCTION__
);
WARNING
(
"%s(): IrDA not enabled
\n
"
,
__FUNCTION__
);
...
...
drivers/net/irda/via-ircc.c
View file @
5d4bb599
...
@@ -360,7 +360,7 @@ static __devinit int via_ircc_open(int i, chipio_t * info, unsigned int id)
...
@@ -360,7 +360,7 @@ static __devinit int via_ircc_open(int i, chipio_t * info, unsigned int id)
/* Reserve the ioports that we need */
/* Reserve the ioports that we need */
if
(
!
request_region
(
self
->
io
.
fir_base
,
self
->
io
.
fir_ext
,
driver_name
))
{
if
(
!
request_region
(
self
->
io
.
fir_base
,
self
->
io
.
fir_ext
,
driver_name
))
{
// WARNING(
__FUNCTION__ "(), can't get iobase of 0x%03x\n",
self->io.fir_base);
// WARNING(
"%s(), can't get iobase of 0x%03x\n", __FUNCTION__,
self->io.fir_base);
err
=
-
ENODEV
;
err
=
-
ENODEV
;
goto
err_out1
;
goto
err_out1
;
}
}
...
...
drivers/net/net_init.c
View file @
5d4bb599
...
@@ -79,8 +79,9 @@ struct net_device *alloc_netdev(int sizeof_priv, const char *mask,
...
@@ -79,8 +79,9 @@ struct net_device *alloc_netdev(int sizeof_priv, const char *mask,
/* ensure 32-byte alignment of both the device and private area */
/* ensure 32-byte alignment of both the device and private area */
alloc_size
=
(
sizeof
(
struct
net_device
)
+
31
)
&
~
31
;
alloc_size
=
(
sizeof
(
struct
net_device
)
+
NETDEV_ALIGN_CONST
)
alloc_size
+=
sizeof_priv
+
31
;
&
~
NETDEV_ALIGN_CONST
;
alloc_size
+=
sizeof_priv
+
NETDEV_ALIGN_CONST
;
p
=
kmalloc
(
alloc_size
,
GFP_KERNEL
);
p
=
kmalloc
(
alloc_size
,
GFP_KERNEL
);
if
(
!
p
)
{
if
(
!
p
)
{
...
@@ -90,7 +91,8 @@ struct net_device *alloc_netdev(int sizeof_priv, const char *mask,
...
@@ -90,7 +91,8 @@ struct net_device *alloc_netdev(int sizeof_priv, const char *mask,
memset
(
p
,
0
,
alloc_size
);
memset
(
p
,
0
,
alloc_size
);
dev
=
(
struct
net_device
*
)(((
long
)
p
+
31
)
&
~
31
);
dev
=
(
struct
net_device
*
)(((
long
)
p
+
NETDEV_ALIGN_CONST
)
&
~
NETDEV_ALIGN_CONST
);
dev
->
padded
=
(
char
*
)
dev
-
(
char
*
)
p
;
dev
->
padded
=
(
char
*
)
dev
-
(
char
*
)
p
;
if
(
sizeof_priv
)
if
(
sizeof_priv
)
...
...
drivers/net/pcmcia/nmclan_cs.c
View file @
5d4bb599
...
@@ -470,7 +470,7 @@ static dev_link_t *nmclan_attach(void)
...
@@ -470,7 +470,7 @@ static dev_link_t *nmclan_attach(void)
dev
=
alloc_etherdev
(
sizeof
(
mace_private
));
dev
=
alloc_etherdev
(
sizeof
(
mace_private
));
if
(
!
dev
)
if
(
!
dev
)
return
NULL
;
return
NULL
;
lp
=
dev
->
priv
;
lp
=
netdev_priv
(
dev
)
;
link
=
&
lp
->
link
;
link
=
&
lp
->
link
;
link
->
priv
=
dev
;
link
->
priv
=
dev
;
...
@@ -707,7 +707,7 @@ static void nmclan_config(dev_link_t *link)
...
@@ -707,7 +707,7 @@ static void nmclan_config(dev_link_t *link)
{
{
client_handle_t
handle
=
link
->
handle
;
client_handle_t
handle
=
link
->
handle
;
struct
net_device
*
dev
=
link
->
priv
;
struct
net_device
*
dev
=
link
->
priv
;
mace_private
*
lp
=
dev
->
priv
;
mace_private
*
lp
=
netdev_priv
(
dev
)
;
tuple_t
tuple
;
tuple_t
tuple
;
cisparse_t
parse
;
cisparse_t
parse
;
u_char
buf
[
64
];
u_char
buf
[
64
];
...
@@ -875,7 +875,7 @@ nmclan_reset
...
@@ -875,7 +875,7 @@ nmclan_reset
---------------------------------------------------------------------------- */
---------------------------------------------------------------------------- */
static
void
nmclan_reset
(
struct
net_device
*
dev
)
static
void
nmclan_reset
(
struct
net_device
*
dev
)
{
{
mace_private
*
lp
=
dev
->
priv
;
mace_private
*
lp
=
netdev_priv
(
dev
)
;
#if RESET_XILINX
#if RESET_XILINX
dev_link_t
*
link
=
&
lp
->
link
;
dev_link_t
*
link
=
&
lp
->
link
;
...
@@ -944,7 +944,7 @@ mace_open
...
@@ -944,7 +944,7 @@ mace_open
static
int
mace_open
(
struct
net_device
*
dev
)
static
int
mace_open
(
struct
net_device
*
dev
)
{
{
ioaddr_t
ioaddr
=
dev
->
base_addr
;
ioaddr_t
ioaddr
=
dev
->
base_addr
;
mace_private
*
lp
=
dev
->
priv
;
mace_private
*
lp
=
netdev_priv
(
dev
)
;
dev_link_t
*
link
=
&
lp
->
link
;
dev_link_t
*
link
=
&
lp
->
link
;
if
(
!
DEV_OK
(
link
))
if
(
!
DEV_OK
(
link
))
...
@@ -967,7 +967,7 @@ mace_close
...
@@ -967,7 +967,7 @@ mace_close
static
int
mace_close
(
struct
net_device
*
dev
)
static
int
mace_close
(
struct
net_device
*
dev
)
{
{
ioaddr_t
ioaddr
=
dev
->
base_addr
;
ioaddr_t
ioaddr
=
dev
->
base_addr
;
mace_private
*
lp
=
dev
->
priv
;
mace_private
*
lp
=
netdev_priv
(
dev
)
;
dev_link_t
*
link
=
&
lp
->
link
;
dev_link_t
*
link
=
&
lp
->
link
;
DEBUG
(
2
,
"%s: shutting down ethercard.
\n
"
,
dev
->
name
);
DEBUG
(
2
,
"%s: shutting down ethercard.
\n
"
,
dev
->
name
);
...
@@ -1022,7 +1022,7 @@ mace_start_xmit
...
@@ -1022,7 +1022,7 @@ mace_start_xmit
static
void
mace_tx_timeout
(
struct
net_device
*
dev
)
static
void
mace_tx_timeout
(
struct
net_device
*
dev
)
{
{
mace_private
*
lp
=
(
mace_private
*
)
dev
->
priv
;
mace_private
*
lp
=
netdev_priv
(
dev
)
;
dev_link_t
*
link
=
&
lp
->
link
;
dev_link_t
*
link
=
&
lp
->
link
;
printk
(
KERN_NOTICE
"%s: transmit timed out -- "
,
dev
->
name
);
printk
(
KERN_NOTICE
"%s: transmit timed out -- "
,
dev
->
name
);
...
@@ -1038,7 +1038,7 @@ static void mace_tx_timeout(struct net_device *dev)
...
@@ -1038,7 +1038,7 @@ static void mace_tx_timeout(struct net_device *dev)
static
int
mace_start_xmit
(
struct
sk_buff
*
skb
,
struct
net_device
*
dev
)
static
int
mace_start_xmit
(
struct
sk_buff
*
skb
,
struct
net_device
*
dev
)
{
{
mace_private
*
lp
=
(
mace_private
*
)
dev
->
priv
;
mace_private
*
lp
=
netdev_priv
(
dev
)
;
ioaddr_t
ioaddr
=
dev
->
base_addr
;
ioaddr_t
ioaddr
=
dev
->
base_addr
;
netif_stop_queue
(
dev
);
netif_stop_queue
(
dev
);
...
@@ -1099,7 +1099,7 @@ mace_interrupt
...
@@ -1099,7 +1099,7 @@ mace_interrupt
static
irqreturn_t
mace_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
static
irqreturn_t
mace_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
{
struct
net_device
*
dev
=
(
struct
net_device
*
)
dev_id
;
struct
net_device
*
dev
=
(
struct
net_device
*
)
dev_id
;
mace_private
*
lp
=
dev
->
priv
;
mace_private
*
lp
=
netdev_priv
(
dev
)
;
ioaddr_t
ioaddr
=
dev
->
base_addr
;
ioaddr_t
ioaddr
=
dev
->
base_addr
;
int
status
;
int
status
;
int
IntrCnt
=
MACE_MAX_IR_ITERATIONS
;
int
IntrCnt
=
MACE_MAX_IR_ITERATIONS
;
...
@@ -1241,7 +1241,7 @@ mace_rx
...
@@ -1241,7 +1241,7 @@ mace_rx
---------------------------------------------------------------------------- */
---------------------------------------------------------------------------- */
static
int
mace_rx
(
struct
net_device
*
dev
,
unsigned
char
RxCnt
)
static
int
mace_rx
(
struct
net_device
*
dev
,
unsigned
char
RxCnt
)
{
{
mace_private
*
lp
=
(
mace_private
*
)
dev
->
priv
;
mace_private
*
lp
=
netdev_priv
(
dev
)
;
ioaddr_t
ioaddr
=
dev
->
base_addr
;
ioaddr_t
ioaddr
=
dev
->
base_addr
;
unsigned
char
rx_framecnt
;
unsigned
char
rx_framecnt
;
unsigned
short
rx_status
;
unsigned
short
rx_status
;
...
@@ -1408,7 +1408,7 @@ update_stats
...
@@ -1408,7 +1408,7 @@ update_stats
---------------------------------------------------------------------------- */
---------------------------------------------------------------------------- */
static
void
update_stats
(
ioaddr_t
ioaddr
,
struct
net_device
*
dev
)
static
void
update_stats
(
ioaddr_t
ioaddr
,
struct
net_device
*
dev
)
{
{
mace_private
*
lp
=
(
mace_private
*
)
dev
->
priv
;
mace_private
*
lp
=
netdev_priv
(
dev
)
;
lp
->
mace_stats
.
rcvcc
+=
mace_read
(
lp
,
ioaddr
,
MACE_RCVCC
);
lp
->
mace_stats
.
rcvcc
+=
mace_read
(
lp
,
ioaddr
,
MACE_RCVCC
);
lp
->
mace_stats
.
rntpc
+=
mace_read
(
lp
,
ioaddr
,
MACE_RNTPC
);
lp
->
mace_stats
.
rntpc
+=
mace_read
(
lp
,
ioaddr
,
MACE_RNTPC
);
...
@@ -1454,7 +1454,7 @@ mace_get_stats
...
@@ -1454,7 +1454,7 @@ mace_get_stats
---------------------------------------------------------------------------- */
---------------------------------------------------------------------------- */
static
struct
net_device_stats
*
mace_get_stats
(
struct
net_device
*
dev
)
static
struct
net_device_stats
*
mace_get_stats
(
struct
net_device
*
dev
)
{
{
mace_private
*
lp
=
(
mace_private
*
)
dev
->
priv
;
mace_private
*
lp
=
netdev_priv
(
dev
)
;
update_stats
(
dev
->
base_addr
,
dev
);
update_stats
(
dev
->
base_addr
,
dev
);
...
@@ -1549,7 +1549,7 @@ Input
...
@@ -1549,7 +1549,7 @@ Input
---------------------------------------------------------------------------- */
---------------------------------------------------------------------------- */
static
void
restore_multicast_list
(
struct
net_device
*
dev
)
static
void
restore_multicast_list
(
struct
net_device
*
dev
)
{
{
mace_private
*
lp
=
(
mace_private
*
)
dev
->
priv
;
mace_private
*
lp
=
netdev_priv
(
dev
)
;
int
num_addrs
=
lp
->
multicast_num_addrs
;
int
num_addrs
=
lp
->
multicast_num_addrs
;
int
*
ladrf
=
lp
->
multicast_ladrf
;
int
*
ladrf
=
lp
->
multicast_ladrf
;
ioaddr_t
ioaddr
=
dev
->
base_addr
;
ioaddr_t
ioaddr
=
dev
->
base_addr
;
...
@@ -1606,7 +1606,7 @@ Output
...
@@ -1606,7 +1606,7 @@ Output
static
void
set_multicast_list
(
struct
net_device
*
dev
)
static
void
set_multicast_list
(
struct
net_device
*
dev
)
{
{
mace_private
*
lp
=
(
mace_private
*
)
dev
->
priv
;
mace_private
*
lp
=
netdev_priv
(
dev
)
;
int
adr
[
ETHER_ADDR_LEN
]
=
{
0
};
/* Ethernet address */
int
adr
[
ETHER_ADDR_LEN
]
=
{
0
};
/* Ethernet address */
int
i
;
int
i
;
struct
dev_mc_list
*
dmi
=
dev
->
mc_list
;
struct
dev_mc_list
*
dmi
=
dev
->
mc_list
;
...
@@ -1645,10 +1645,10 @@ static void set_multicast_list(struct net_device *dev)
...
@@ -1645,10 +1645,10 @@ static void set_multicast_list(struct net_device *dev)
static
void
restore_multicast_list
(
struct
net_device
*
dev
)
static
void
restore_multicast_list
(
struct
net_device
*
dev
)
{
{
ioaddr_t
ioaddr
=
dev
->
base_addr
;
ioaddr_t
ioaddr
=
dev
->
base_addr
;
mace_private
*
lp
=
(
mace_private
*
)
dev
->
priv
;
mace_private
*
lp
=
netdev_priv
(
dev
)
;
DEBUG
(
2
,
"%s: restoring Rx mode to %d addresses.
\n
"
,
dev
->
name
,
DEBUG
(
2
,
"%s: restoring Rx mode to %d addresses.
\n
"
,
dev
->
name
,
((
mace_private
*
)(
dev
->
priv
))
->
multicast_num_addrs
);
lp
->
multicast_num_addrs
);
if
(
dev
->
flags
&
IFF_PROMISC
)
{
if
(
dev
->
flags
&
IFF_PROMISC
)
{
/* Promiscuous mode: receive all packets */
/* Promiscuous mode: receive all packets */
...
@@ -1665,7 +1665,7 @@ static void restore_multicast_list(struct net_device *dev)
...
@@ -1665,7 +1665,7 @@ static void restore_multicast_list(struct net_device *dev)
static
void
set_multicast_list
(
struct
net_device
*
dev
)
static
void
set_multicast_list
(
struct
net_device
*
dev
)
{
{
mace_private
*
lp
=
(
mace_private
*
)
dev
->
priv
;
mace_private
*
lp
=
netdev_priv
(
dev
)
;
#ifdef PCMCIA_DEBUG
#ifdef PCMCIA_DEBUG
if
(
pc_debug
>
1
)
{
if
(
pc_debug
>
1
)
{
...
...
drivers/net/pcmcia/xirc2ps_cs.c
View file @
5d4bb599
...
@@ -595,7 +595,7 @@ xirc2ps_attach(void)
...
@@ -595,7 +595,7 @@ xirc2ps_attach(void)
dev
=
alloc_etherdev
(
sizeof
(
local_info_t
));
dev
=
alloc_etherdev
(
sizeof
(
local_info_t
));
if
(
!
dev
)
if
(
!
dev
)
return
NULL
;
return
NULL
;
local
=
dev
->
priv
;
local
=
netdev_priv
(
dev
)
;
link
=
&
local
->
link
;
link
=
&
local
->
link
;
link
->
priv
=
dev
;
link
->
priv
=
dev
;
...
@@ -710,7 +710,7 @@ static int
...
@@ -710,7 +710,7 @@ static int
set_card_type
(
dev_link_t
*
link
,
const
void
*
s
)
set_card_type
(
dev_link_t
*
link
,
const
void
*
s
)
{
{
struct
net_device
*
dev
=
link
->
priv
;
struct
net_device
*
dev
=
link
->
priv
;
local_info_t
*
local
=
dev
->
priv
;
local_info_t
*
local
=
netdev_priv
(
dev
)
;
#ifdef PCMCIA_DEBUG
#ifdef PCMCIA_DEBUG
unsigned
cisrev
=
((
const
unsigned
char
*
)
s
)[
2
];
unsigned
cisrev
=
((
const
unsigned
char
*
)
s
)[
2
];
#endif
#endif
...
@@ -805,7 +805,7 @@ xirc2ps_config(dev_link_t * link)
...
@@ -805,7 +805,7 @@ xirc2ps_config(dev_link_t * link)
{
{
client_handle_t
handle
=
link
->
handle
;
client_handle_t
handle
=
link
->
handle
;
struct
net_device
*
dev
=
link
->
priv
;
struct
net_device
*
dev
=
link
->
priv
;
local_info_t
*
local
=
dev
->
priv
;
local_info_t
*
local
=
netdev_priv
(
dev
)
;
tuple_t
tuple
;
tuple_t
tuple
;
cisparse_t
parse
;
cisparse_t
parse
;
ioaddr_t
ioaddr
;
ioaddr_t
ioaddr
;
...
@@ -1159,7 +1159,7 @@ xirc2ps_release(dev_link_t *link)
...
@@ -1159,7 +1159,7 @@ xirc2ps_release(dev_link_t *link)
if
(
link
->
win
)
{
if
(
link
->
win
)
{
struct
net_device
*
dev
=
link
->
priv
;
struct
net_device
*
dev
=
link
->
priv
;
local_info_t
*
local
=
dev
->
priv
;
local_info_t
*
local
=
netdev_priv
(
dev
)
;
if
(
local
->
dingo
)
if
(
local
->
dingo
)
iounmap
(
local
->
dingo_ccr
-
0x0800
);
iounmap
(
local
->
dingo_ccr
-
0x0800
);
pcmcia_release_window
(
link
->
win
);
pcmcia_release_window
(
link
->
win
);
...
@@ -1246,7 +1246,7 @@ static irqreturn_t
...
@@ -1246,7 +1246,7 @@ static irqreturn_t
xirc2ps_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
xirc2ps_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
{
struct
net_device
*
dev
=
(
struct
net_device
*
)
dev_id
;
struct
net_device
*
dev
=
(
struct
net_device
*
)
dev_id
;
local_info_t
*
lp
=
dev
->
priv
;
local_info_t
*
lp
=
netdev_priv
(
dev
)
;
ioaddr_t
ioaddr
;
ioaddr_t
ioaddr
;
u_char
saved_page
;
u_char
saved_page
;
unsigned
bytes_rcvd
;
unsigned
bytes_rcvd
;
...
@@ -1468,7 +1468,7 @@ xirc2ps_interrupt(int irq, void *dev_id, struct pt_regs *regs)
...
@@ -1468,7 +1468,7 @@ xirc2ps_interrupt(int irq, void *dev_id, struct pt_regs *regs)
static
void
static
void
do_tx_timeout
(
struct
net_device
*
dev
)
do_tx_timeout
(
struct
net_device
*
dev
)
{
{
local_info_t
*
lp
=
dev
->
priv
;
local_info_t
*
lp
=
netdev_priv
(
dev
)
;
printk
(
KERN_NOTICE
"%s: transmit timed out
\n
"
,
dev
->
name
);
printk
(
KERN_NOTICE
"%s: transmit timed out
\n
"
,
dev
->
name
);
lp
->
stats
.
tx_errors
++
;
lp
->
stats
.
tx_errors
++
;
/* reset the card */
/* reset the card */
...
@@ -1480,7 +1480,7 @@ do_tx_timeout(struct net_device *dev)
...
@@ -1480,7 +1480,7 @@ do_tx_timeout(struct net_device *dev)
static
int
static
int
do_start_xmit
(
struct
sk_buff
*
skb
,
struct
net_device
*
dev
)
do_start_xmit
(
struct
sk_buff
*
skb
,
struct
net_device
*
dev
)
{
{
local_info_t
*
lp
=
dev
->
priv
;
local_info_t
*
lp
=
netdev_priv
(
dev
)
;
ioaddr_t
ioaddr
=
dev
->
base_addr
;
ioaddr_t
ioaddr
=
dev
->
base_addr
;
int
okay
;
int
okay
;
unsigned
freespace
;
unsigned
freespace
;
...
@@ -1537,7 +1537,7 @@ do_start_xmit(struct sk_buff *skb, struct net_device *dev)
...
@@ -1537,7 +1537,7 @@ do_start_xmit(struct sk_buff *skb, struct net_device *dev)
static
struct
net_device_stats
*
static
struct
net_device_stats
*
do_get_stats
(
struct
net_device
*
dev
)
do_get_stats
(
struct
net_device
*
dev
)
{
{
local_info_t
*
lp
=
dev
->
priv
;
local_info_t
*
lp
=
netdev_priv
(
dev
)
;
/* lp->stats.rx_missed_errors = GetByte(?) */
/* lp->stats.rx_missed_errors = GetByte(?) */
return
&
lp
->
stats
;
return
&
lp
->
stats
;
...
@@ -1552,7 +1552,7 @@ static void
...
@@ -1552,7 +1552,7 @@ static void
set_addresses
(
struct
net_device
*
dev
)
set_addresses
(
struct
net_device
*
dev
)
{
{
ioaddr_t
ioaddr
=
dev
->
base_addr
;
ioaddr_t
ioaddr
=
dev
->
base_addr
;
local_info_t
*
lp
=
dev
->
priv
;
local_info_t
*
lp
=
netdev_priv
(
dev
)
;
struct
dev_mc_list
*
dmi
=
dev
->
mc_list
;
struct
dev_mc_list
*
dmi
=
dev
->
mc_list
;
char
*
addr
;
char
*
addr
;
int
i
,
j
,
k
,
n
;
int
i
,
j
,
k
,
n
;
...
@@ -1617,7 +1617,7 @@ set_multicast_list(struct net_device *dev)
...
@@ -1617,7 +1617,7 @@ set_multicast_list(struct net_device *dev)
static
int
static
int
do_config
(
struct
net_device
*
dev
,
struct
ifmap
*
map
)
do_config
(
struct
net_device
*
dev
,
struct
ifmap
*
map
)
{
{
local_info_t
*
local
=
dev
->
priv
;
local_info_t
*
local
=
netdev_priv
(
dev
)
;
DEBUG
(
0
,
"do_config(%p)
\n
"
,
dev
);
DEBUG
(
0
,
"do_config(%p)
\n
"
,
dev
);
if
(
map
->
port
!=
255
&&
map
->
port
!=
dev
->
if_port
)
{
if
(
map
->
port
!=
255
&&
map
->
port
!=
dev
->
if_port
)
{
...
@@ -1643,7 +1643,7 @@ do_config(struct net_device *dev, struct ifmap *map)
...
@@ -1643,7 +1643,7 @@ do_config(struct net_device *dev, struct ifmap *map)
static
int
static
int
do_open
(
struct
net_device
*
dev
)
do_open
(
struct
net_device
*
dev
)
{
{
local_info_t
*
lp
=
dev
->
priv
;
local_info_t
*
lp
=
netdev_priv
(
dev
)
;
dev_link_t
*
link
=
&
lp
->
link
;
dev_link_t
*
link
=
&
lp
->
link
;
DEBUG
(
0
,
"do_open(%p)
\n
"
,
dev
);
DEBUG
(
0
,
"do_open(%p)
\n
"
,
dev
);
...
@@ -1676,7 +1676,7 @@ static struct ethtool_ops netdev_ethtool_ops = {
...
@@ -1676,7 +1676,7 @@ static struct ethtool_ops netdev_ethtool_ops = {
static
int
static
int
do_ioctl
(
struct
net_device
*
dev
,
struct
ifreq
*
rq
,
int
cmd
)
do_ioctl
(
struct
net_device
*
dev
,
struct
ifreq
*
rq
,
int
cmd
)
{
{
local_info_t
*
local
=
dev
->
priv
;
local_info_t
*
local
=
netdev_priv
(
dev
)
;
ioaddr_t
ioaddr
=
dev
->
base_addr
;
ioaddr_t
ioaddr
=
dev
->
base_addr
;
u16
*
data
=
(
u16
*
)
&
rq
->
ifr_data
;
u16
*
data
=
(
u16
*
)
&
rq
->
ifr_data
;
...
@@ -1708,7 +1708,7 @@ do_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
...
@@ -1708,7 +1708,7 @@ do_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
static
void
static
void
hardreset
(
struct
net_device
*
dev
)
hardreset
(
struct
net_device
*
dev
)
{
{
local_info_t
*
local
=
dev
->
priv
;
local_info_t
*
local
=
netdev_priv
(
dev
)
;
ioaddr_t
ioaddr
=
dev
->
base_addr
;
ioaddr_t
ioaddr
=
dev
->
base_addr
;
SelectPage
(
4
);
SelectPage
(
4
);
...
@@ -1725,7 +1725,7 @@ hardreset(struct net_device *dev)
...
@@ -1725,7 +1725,7 @@ hardreset(struct net_device *dev)
static
void
static
void
do_reset
(
struct
net_device
*
dev
,
int
full
)
do_reset
(
struct
net_device
*
dev
,
int
full
)
{
{
local_info_t
*
local
=
dev
->
priv
;
local_info_t
*
local
=
netdev_priv
(
dev
)
;
ioaddr_t
ioaddr
=
dev
->
base_addr
;
ioaddr_t
ioaddr
=
dev
->
base_addr
;
unsigned
value
;
unsigned
value
;
...
@@ -1886,7 +1886,7 @@ do_reset(struct net_device *dev, int full)
...
@@ -1886,7 +1886,7 @@ do_reset(struct net_device *dev, int full)
static
int
static
int
init_mii
(
struct
net_device
*
dev
)
init_mii
(
struct
net_device
*
dev
)
{
{
local_info_t
*
local
=
dev
->
priv
;
local_info_t
*
local
=
netdev_priv
(
dev
)
;
ioaddr_t
ioaddr
=
dev
->
base_addr
;
ioaddr_t
ioaddr
=
dev
->
base_addr
;
unsigned
control
,
status
,
linkpartner
;
unsigned
control
,
status
,
linkpartner
;
int
i
;
int
i
;
...
@@ -1973,7 +1973,7 @@ static int
...
@@ -1973,7 +1973,7 @@ static int
do_stop
(
struct
net_device
*
dev
)
do_stop
(
struct
net_device
*
dev
)
{
{
ioaddr_t
ioaddr
=
dev
->
base_addr
;
ioaddr_t
ioaddr
=
dev
->
base_addr
;
local_info_t
*
lp
=
dev
->
priv
;
local_info_t
*
lp
=
netdev_priv
(
dev
)
;
dev_link_t
*
link
=
&
lp
->
link
;
dev_link_t
*
link
=
&
lp
->
link
;
DEBUG
(
0
,
"do_stop(%p)
\n
"
,
dev
);
DEBUG
(
0
,
"do_stop(%p)
\n
"
,
dev
);
...
...
drivers/net/tc35815.c
View file @
5d4bb599
...
@@ -1724,12 +1724,7 @@ static struct pci_driver tc35815_driver = {
...
@@ -1724,12 +1724,7 @@ static struct pci_driver tc35815_driver = {
static
int
__init
tc35815_init_module
(
void
)
static
int
__init
tc35815_init_module
(
void
)
{
{
int
err
;
return
pci_module_init
(
&
tc35815_driver
);
if
((
err
=
pci_module_init
(
&
tc35815_driver
))
<
0
)
return
err
;
else
return
0
;
}
}
static
void
__exit
tc35815_cleanup_module
(
void
)
static
void
__exit
tc35815_cleanup_module
(
void
)
...
...
drivers/net/wan/lmc/lmc_proto.c
View file @
5d4bb599
...
@@ -50,7 +50,6 @@
...
@@ -50,7 +50,6 @@
#include "lmc_debug.h"
#include "lmc_debug.h"
#include "lmc_ioctl.h"
#include "lmc_ioctl.h"
#include "lmc_proto.h"
#include "lmc_proto.h"
//#include "lmc_proto_raw.h"
/*
/*
* The compile-time variable SPPPSTUP causes the module to be
* The compile-time variable SPPPSTUP causes the module to be
...
...
drivers/net/wan/lmc/lmc_proto_raw.h
deleted
100644 → 0
View file @
62e88cfd
#ifndef _LMC_PROTO_RAW_H_
#define _LMC_PROTO_RAW_H_
#endif
drivers/net/wan/lmc/lmc_ver.h
deleted
100644 → 0
View file @
62e88cfd
#include <linux/version.h>
#ifndef _IF_LMC_LINUXVER_
#define _IF_LMC_LINUXVER_
/*
* Copyright (c) 1997-2000 LAN Media Corporation (LMC)
* All rights reserved. www.lanmedia.com
*
* This code is written by:
* Andrew Stanley-Jones (asj@cban.com)
* Rob Braun (bbraun@vix.com),
* Michael Graff (explorer@vix.com) and
* Matt Thomas (matt@3am-software.com).
*
* This software may be used and distributed according to the terms
* of the GNU General Public License version 2, incorporated herein by reference.
*/
/*
* This file defines and controls all linux version
* differences.
*
* This is being done to keep 1 central location where all linux
* version differences can be kept and maintained. as this code was
* found version issues where pepered throughout the source code and
* made the souce code not only hard to read but version problems hard
* to track down. If I'm overiding a function/etc with something in
* this file it will be prefixed by "LMC_" which will mean look
* here for the version dependent change that's been done.
*
*/
#if LINUX_VERSION_CODE < 0x20363
#define net_device device
#endif
#if LINUX_VERSION_CODE < 0x20363
#define LMC_XMITTER_BUSY(x) (x)->tbusy = 1
#define LMC_XMITTER_FREE(x) (x)->tbusy = 0
#define LMC_XMITTER_INIT(x) (x)->tbusy = 0
#else
#define LMC_XMITTER_BUSY(x) netif_stop_queue(x)
#define LMC_XMITTER_FREE(x) netif_wake_queue(x)
#define LMC_XMITTER_INIT(x) netif_start_queue(x)
#endif
#if LINUX_VERSION_CODE < 0x20100
//typedef unsigned int u_int32_t;
#define LMC_SETUP_20_DEV {\
int indx; \
for (indx = 0; indx < DEV_NUMBUFFS; indx++) \
skb_queue_head_init (&dev->buffs[indx]); \
} \
dev->family = AF_INET; \
dev->pa_addr = 0; \
dev->pa_brdaddr = 0; \
dev->pa_mask = 0xFCFFFFFF; \
dev->pa_alen = 4;
/* IP addr. sizeof(u32) */
#else
#define LMC_SETUP_20_DEV
#endif
#if LINUX_VERSION_CODE < 0x20155
/* basically 2.2 plus */
#define LMC_DEV_KFREE_SKB(skb) dev_kfree_skb((skb), FREE_WRITE)
#else
/* Mostly 2.0 kernels */
#define LMC_DEV_KFREE_SKB(skb) dev_kfree_skb(skb)
#endif
#if LINUX_VERSION_CODE < 0x20200
#else
#endif
#if LINUX_VERSION_CODE < 0x20100
#define LMC_SKB_FREE(skb, val) (skb->free = val)
#else
#define LMC_SKB_FREE(skb, val)
#endif
#if (LINUX_VERSION_CODE >= 0x20200)
#define LMC_SPIN_FLAGS unsigned long flags;
#define LMC_SPIN_LOCK_INIT(x) spin_lock_init(&(x)->lmc_lock);
#define LMC_SPIN_UNLOCK(x) ((x)->lmc_lock = SPIN_LOCK_UNLOCKED)
#define LMC_SPIN_LOCK_IRQSAVE(x) spin_lock_irqsave (&(x)->lmc_lock, flags);
#define LMC_SPIN_UNLOCK_IRQRESTORE(x) spin_unlock_irqrestore (&(x)->lmc_lock, flags);
#else
#define LMC_SPIN_FLAGS
#define LMC_SPIN_LOCK_INIT(x)
#define LMC_SPIN_UNLOCK(x)
#define LMC_SPIN_LOCK_IRQSAVE(x)
#define LMC_SPIN_UNLOCK_IRQRESTORE(x)
#endif
#if LINUX_VERSION_CODE >= 0x20100
#define LMC_COPY_FROM_USER(x, y, z) if(copy_from_user ((x), (y), (z))) return -EFAULT
#define LMC_COPY_TO_USER(x, y, z) if(copy_to_user ((x), (y), (z))) return -EFAULT
#else
#define LMC_COPY_FROM_USER(x, y, z) if(verify_area(VERIFY_READ, (y), (z))) \
return -EFAULT; \
memcpy_fromfs ((x), (y), (z))
#define LMC_COPY_TO_USER(x, y, z) if(verify_area(VERIFY_WRITE, (x), (z))) \
return -EFAULT; \
memcpy_tofs ((x), (y), (z))
#endif
#endif
drivers/net/wireless/orinoco.h
View file @
5d4bb599
...
@@ -125,8 +125,8 @@ extern int orinoco_debug;
...
@@ -125,8 +125,8 @@ extern int orinoco_debug;
#define DEBUG(n, args...) do { } while (0)
#define DEBUG(n, args...) do { } while (0)
#endif
/* ORINOCO_DEBUG */
#endif
/* ORINOCO_DEBUG */
#define TRACE_ENTER(devname) DEBUG(2, "%s: ->
" __FUNCTION__ "()\n", devname
);
#define TRACE_ENTER(devname) DEBUG(2, "%s: ->
%s()\n", devname, __FUNCTION__
);
#define TRACE_EXIT(devname) DEBUG(2, "%s: <-
" __FUNCTION__ "()\n", devname
);
#define TRACE_EXIT(devname) DEBUG(2, "%s: <-
%s()\n", devname, __FUNCTION__
);
extern
struct
net_device
*
alloc_orinocodev
(
int
sizeof_card
,
extern
struct
net_device
*
alloc_orinocodev
(
int
sizeof_card
,
int
(
*
hard_reset
)(
struct
orinoco_private
*
));
int
(
*
hard_reset
)(
struct
orinoco_private
*
));
...
...
include/linux/netdevice.h
View file @
5d4bb599
...
@@ -484,9 +484,14 @@ struct net_device
...
@@ -484,9 +484,14 @@ struct net_device
int
padded
;
int
padded
;
};
};
#define NETDEV_ALIGN 32
#define NETDEV_ALIGN_CONST (NETDEV_ALIGN - 1)
static
inline
void
*
netdev_priv
(
struct
net_device
*
dev
)
static
inline
void
*
netdev_priv
(
struct
net_device
*
dev
)
{
{
return
(
char
*
)
dev
+
((
sizeof
(
struct
net_device
)
+
31
)
&
~
31
);
return
(
char
*
)
dev
+
((
sizeof
(
struct
net_device
)
+
NETDEV_ALIGN_CONST
)
&
~
NETDEV_ALIGN_CONST
);
}
}
#define SET_MODULE_OWNER(dev) do { } while (0)
#define SET_MODULE_OWNER(dev) do { } while (0)
...
...
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