Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
e67b23c7
Commit
e67b23c7
authored
Nov 18, 2005
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'upstream-fixes' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6
parents
d4bf2053
f7492f17
Changes
17
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
353 additions
and
62 deletions
+353
-62
drivers/net/au1000_eth.c
drivers/net/au1000_eth.c
+1
-0
drivers/net/e100.c
drivers/net/e100.c
+257
-18
drivers/net/fec_8xx/Kconfig
drivers/net/fec_8xx/Kconfig
+1
-1
drivers/net/ioc3-eth.c
drivers/net/ioc3-eth.c
+1
-1
drivers/net/r8169.c
drivers/net/r8169.c
+2
-4
drivers/net/saa9730.h
drivers/net/saa9730.h
+25
-11
drivers/net/smc91x.c
drivers/net/smc91x.c
+13
-4
drivers/net/wan/hdlc_cisco.c
drivers/net/wan/hdlc_cisco.c
+6
-0
drivers/net/wan/hdlc_fr.c
drivers/net/wan/hdlc_fr.c
+4
-0
drivers/net/wan/hdlc_generic.c
drivers/net/wan/hdlc_generic.c
+6
-0
drivers/net/wireless/hermes.c
drivers/net/wireless/hermes.c
+3
-3
drivers/net/wireless/hermes.h
drivers/net/wireless/hermes.h
+3
-3
drivers/net/wireless/i82593.h
drivers/net/wireless/i82593.h
+8
-3
drivers/net/wireless/ipw2100.c
drivers/net/wireless/ipw2100.c
+18
-11
drivers/net/wireless/ipw2100.h
drivers/net/wireless/ipw2100.h
+2
-0
drivers/net/wireless/prism54/isl_38xx.c
drivers/net/wireless/prism54/isl_38xx.c
+2
-2
include/net/ieee80211.h
include/net/ieee80211.h
+1
-1
No files found.
drivers/net/au1000_eth.c
View file @
e67b23c7
...
...
@@ -32,6 +32,7 @@
*
*/
#include <linux/config.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/sched.h>
...
...
drivers/net/e100.c
View file @
e67b23c7
This diff is collapsed.
Click to expand it.
drivers/net/fec_8xx/Kconfig
View file @
e67b23c7
config FEC_8XX
tristate "Motorola 8xx FEC driver"
depends on NET_ETHERNET &&
FEC
depends on NET_ETHERNET &&
8xx
select MII
config FEC_8XX_GENERIC_PHY
...
...
drivers/net/ioc3-eth.c
View file @
e67b23c7
...
...
@@ -1360,7 +1360,7 @@ static struct pci_driver ioc3_driver = {
static
int
__init
ioc3_init_module
(
void
)
{
return
pci_
module_init
(
&
ioc3_driver
);
return
pci_
register_driver
(
&
ioc3_driver
);
}
static
void
__exit
ioc3_cleanup_module
(
void
)
...
...
drivers/net/r8169.c
View file @
e67b23c7
...
...
@@ -1346,10 +1346,8 @@ rtl8169_init_board(struct pci_dev *pdev, struct net_device **dev_out,
}
else
{
if
(
netif_msg_probe
(
tp
))
{
printk
(
KERN_ERR
PFX
"Cannot find PowerManagement capability. "
"Aborting.
\n
"
);
"PowerManagement capability not found.
\n
"
);
}
goto
err_out_mwi
;
}
/* make sure PCI base addr 1 is MMIO */
...
...
@@ -2516,7 +2514,7 @@ rtl8169_interrupt(int irq, void *dev_instance, struct pt_regs *regs)
}
while
(
boguscnt
>
0
);
if
(
boguscnt
<=
0
)
{
if
(
net
_ratelimit
()
&&
netif_msg_intr
(
tp
)
)
{
if
(
net
if_msg_intr
(
tp
)
&&
net_ratelimit
()
)
{
printk
(
KERN_WARNING
"%s: Too much work at interrupt!
\n
"
,
dev
->
name
);
}
...
...
drivers/net/saa9730.h
View file @
e67b23c7
/*
* Carsten Langgaard, carstenl@mips.com
* Copyright (C) 2000 MIPS Technologies, Inc. All rights reserved.
* Copyright (C) 2000, 2005 MIPS Technologies, Inc. All rights reserved.
* Authors: Carsten Langgaard <carstenl@mips.com>
* Maciej W. Rozycki <macro@mips.com>
*
* ########################################################################
*
...
...
@@ -265,6 +266,7 @@
/* The SAA9730 (LAN) controller register map, as seen via the PCI-bus. */
#define SAA9730_LAN_REGS_ADDR 0x20400
#define SAA9730_LAN_REGS_SIZE 0x00400
struct
lan_saa9730_regmap
{
volatile
unsigned
int
TxBuffA
;
/* 0x20400 */
...
...
@@ -309,6 +311,7 @@ typedef volatile struct lan_saa9730_regmap t_lan_saa9730_regmap;
/* The SAA9730 (EVM) controller register map, as seen via the PCI-bus. */
#define SAA9730_EVM_REGS_ADDR 0x02000
#define SAA9730_EVM_REGS_SIZE 0x00400
struct
evm_saa9730_regmap
{
volatile
unsigned
int
InterruptStatus1
;
/* 0x2000 */
...
...
@@ -329,16 +332,32 @@ typedef volatile struct evm_saa9730_regmap t_evm_saa9730_regmap;
struct
lan_saa9730_private
{
/*
* Rx/Tx packet buffers.
* The Rx and Tx packets must be PACKET_SIZE aligned.
*/
void
*
buffer_start
;
unsigned
int
buffer_size
;
/*
* DMA address of beginning of this object, returned
* by pci_alloc_consistent().
*/
dma_addr_t
dma_addr
;
/* Pointer to the associated pci device structure */
struct
pci_dev
*
pci_dev
;
/* Pointer for the SAA9730 LAN controller register set. */
t_lan_saa9730_regmap
*
lan_saa9730_regs
;
/* Pointer to the SAA9730 EVM register. */
t_evm_saa9730_regmap
*
evm_saa9730_regs
;
/* TRUE if the next buffer to write is RxBuffA, FALSE if RxBuffB. */
unsigned
char
NextRcvToUseIsA
;
/* Rcv buffer Index. */
unsigned
char
NextRcvPacketIndex
;
/* Next buffer index. */
unsigned
char
NextRcvBufferIndex
;
/* Index of next packet to use in that buffer. */
unsigned
char
NextTxmPacketIndex
;
...
...
@@ -353,13 +372,8 @@ struct lan_saa9730_private {
unsigned
char
DmaRcvPackets
;
unsigned
char
DmaTxmPackets
;
unsigned
char
RcvAIndex
;
/* index into RcvBufferSpace[] for Blk A */
unsigned
char
RcvBIndex
;
/* index into RcvBufferSpace[] for Blk B */
unsigned
int
TxmBuffer
[
LAN_SAA9730_BUFFERS
][
LAN_SAA9730_TXM_Q_SIZE
];
unsigned
int
RcvBuffer
[
LAN_SAA9730_BUFFERS
][
LAN_SAA9730_RCV_Q_SIZE
];
void
*
TxmBuffer
[
LAN_SAA9730_BUFFERS
][
LAN_SAA9730_TXM_Q_SIZE
];
void
*
RcvBuffer
[
LAN_SAA9730_BUFFERS
][
LAN_SAA9730_RCV_Q_SIZE
];
unsigned
int
TxBufferFree
[
LAN_SAA9730_BUFFERS
];
unsigned
char
PhysicalAddress
[
LAN_SAA9730_CAM_ENTRIES
][
6
];
...
...
drivers/net/smc91x.c
View file @
e67b23c7
...
...
@@ -154,6 +154,12 @@ MODULE_LICENSE("GPL");
*/
#define MEMORY_WAIT_TIME 16
/*
* The maximum number of processing loops allowed for each call to the
* IRQ handler.
*/
#define MAX_IRQ_LOOPS 8
/*
* This selects whether TX packets are sent one by one to the SMC91x internal
* memory and throttled until transmission completes. This may prevent
...
...
@@ -684,7 +690,6 @@ static void smc_hardware_send_pkt(unsigned long data)
/* queue the packet for TX */
SMC_SET_MMU_CMD
(
MC_ENQUEUE
);
SMC_ACK_INT
(
IM_TX_EMPTY_INT
);
smc_special_unlock
(
&
lp
->
lock
);
dev
->
trans_start
=
jiffies
;
...
...
@@ -1207,6 +1212,7 @@ static void smc_phy_configure(void *data)
smc_phy_check_media
(
dev
,
1
);
smc_phy_configure_exit:
SMC_SELECT_BANK
(
2
);
spin_unlock_irq
(
&
lp
->
lock
);
lp
->
work_pending
=
0
;
}
...
...
@@ -1305,7 +1311,7 @@ static irqreturn_t smc_interrupt(int irq, void *dev_id, struct pt_regs *regs)
SMC_SET_INT_MASK
(
0
);
/* set a timeout value, so I don't stay here forever */
timeout
=
8
;
timeout
=
MAX_IRQ_LOOPS
;
do
{
status
=
SMC_GET_INT
();
...
...
@@ -1372,10 +1378,13 @@ static irqreturn_t smc_interrupt(int irq, void *dev_id, struct pt_regs *regs)
/* restore register states */
SMC_SET_PTR
(
saved_pointer
);
SMC_SET_INT_MASK
(
mask
);
spin_unlock
(
&
lp
->
lock
);
DBG
(
3
,
"%s: Interrupt done (%d loops)
\n
"
,
dev
->
name
,
8
-
timeout
);
if
(
timeout
==
MAX_IRQ_LOOPS
)
PRINTK
(
"%s: spurious interrupt (mask = 0x%02x)
\n
"
,
dev
->
name
,
mask
);
DBG
(
3
,
"%s: Interrupt done (%d loops)
\n
"
,
dev
->
name
,
MAX_IRQ_LOOPS
-
timeout
);
/*
* We return IRQ_HANDLED unconditionally here even if there was
...
...
drivers/net/wan/hdlc_cisco.c
View file @
e67b23c7
...
...
@@ -192,7 +192,9 @@ static int cisco_rx(struct sk_buff *skb)
"uptime %ud%uh%um%us)
\n
"
,
dev
->
name
,
days
,
hrs
,
min
,
sec
);
#if 0
netif_carrier_on(dev);
#endif
hdlc
->
state
.
cisco
.
up
=
1
;
}
}
...
...
@@ -225,7 +227,9 @@ static void cisco_timer(unsigned long arg)
hdlc
->
state
.
cisco
.
settings
.
timeout
*
HZ
))
{
hdlc
->
state
.
cisco
.
up
=
0
;
printk
(
KERN_INFO
"%s: Link down
\n
"
,
dev
->
name
);
#if 0
netif_carrier_off(dev);
#endif
}
cisco_keepalive_send
(
dev
,
CISCO_KEEPALIVE_REQ
,
...
...
@@ -261,8 +265,10 @@ static void cisco_stop(struct net_device *dev)
{
hdlc_device
*
hdlc
=
dev_to_hdlc
(
dev
);
del_timer_sync
(
&
hdlc
->
state
.
cisco
.
timer
);
#if 0
if (netif_carrier_ok(dev))
netif_carrier_off(dev);
#endif
hdlc
->
state
.
cisco
.
up
=
0
;
hdlc
->
state
.
cisco
.
request_sent
=
0
;
}
...
...
drivers/net/wan/hdlc_fr.c
View file @
e67b23c7
...
...
@@ -545,8 +545,10 @@ static void fr_set_link_state(int reliable, struct net_device *dev)
hdlc
->
state
.
fr
.
reliable
=
reliable
;
if
(
reliable
)
{
#if 0
if (!netif_carrier_ok(dev))
netif_carrier_on(dev);
#endif
hdlc
->
state
.
fr
.
n391cnt
=
0
;
/* Request full status */
hdlc
->
state
.
fr
.
dce_changed
=
1
;
...
...
@@ -560,8 +562,10 @@ static void fr_set_link_state(int reliable, struct net_device *dev)
}
}
}
else
{
#if 0
if (netif_carrier_ok(dev))
netif_carrier_off(dev);
#endif
while
(
pvc
)
{
/* Deactivate all PVCs */
pvc_carrier
(
0
,
pvc
);
...
...
drivers/net/wan/hdlc_generic.c
View file @
e67b23c7
...
...
@@ -79,11 +79,13 @@ static void __hdlc_set_carrier_on(struct net_device *dev)
hdlc_device
*
hdlc
=
dev_to_hdlc
(
dev
);
if
(
hdlc
->
proto
.
start
)
return
hdlc
->
proto
.
start
(
dev
);
#if 0
#ifdef DEBUG_LINK
if (netif_carrier_ok(dev))
printk(KERN_ERR "hdlc_set_carrier_on(): already on\n");
#endif
netif_carrier_on(dev);
#endif
}
...
...
@@ -94,11 +96,13 @@ static void __hdlc_set_carrier_off(struct net_device *dev)
if
(
hdlc
->
proto
.
stop
)
return
hdlc
->
proto
.
stop
(
dev
);
#if 0
#ifdef DEBUG_LINK
if (!netif_carrier_ok(dev))
printk(KERN_ERR "hdlc_set_carrier_off(): already off\n");
#endif
netif_carrier_off(dev);
#endif
}
...
...
@@ -294,8 +298,10 @@ int register_hdlc_device(struct net_device *dev)
if
(
result
!=
0
)
return
-
EIO
;
#if 0
if (netif_carrier_ok(dev))
netif_carrier_off(dev); /* no carrier until DCD goes up */
#endif
return
0
;
}
...
...
drivers/net/wireless/hermes.c
View file @
e67b23c7
...
...
@@ -398,7 +398,7 @@ static int hermes_bap_seek(hermes_t *hw, int bap, u16 id, u16 offset)
*
* Returns: < 0 on internal failure (errno), 0 on success, > 0 on error from firmware
*/
int
hermes_bap_pread
(
hermes_t
*
hw
,
int
bap
,
void
*
buf
,
unsigned
len
,
int
hermes_bap_pread
(
hermes_t
*
hw
,
int
bap
,
void
*
buf
,
int
len
,
u16
id
,
u16
offset
)
{
int
dreg
=
bap
?
HERMES_DATA1
:
HERMES_DATA0
;
...
...
@@ -424,7 +424,7 @@ int hermes_bap_pread(hermes_t *hw, int bap, void *buf, unsigned len,
*
* Returns: < 0 on internal failure (errno), 0 on success, > 0 on error from firmware
*/
int
hermes_bap_pwrite
(
hermes_t
*
hw
,
int
bap
,
const
void
*
buf
,
unsigned
len
,
int
hermes_bap_pwrite
(
hermes_t
*
hw
,
int
bap
,
const
void
*
buf
,
int
len
,
u16
id
,
u16
offset
)
{
int
dreg
=
bap
?
HERMES_DATA1
:
HERMES_DATA0
;
...
...
@@ -450,7 +450,7 @@ int hermes_bap_pwrite(hermes_t *hw, int bap, const void *buf, unsigned len,
*
* Returns: < 0 on internal failure (errno), 0 on success, > 0 on error from firmware
*/
int
hermes_bap_pwrite_pad
(
hermes_t
*
hw
,
int
bap
,
const
void
*
buf
,
unsigned
data_len
,
unsigned
len
,
int
hermes_bap_pwrite_pad
(
hermes_t
*
hw
,
int
bap
,
const
void
*
buf
,
unsigned
data_len
,
int
len
,
u16
id
,
u16
offset
)
{
int
dreg
=
bap
?
HERMES_DATA1
:
HERMES_DATA0
;
...
...
drivers/net/wireless/hermes.h
View file @
e67b23c7
...
...
@@ -372,12 +372,12 @@ int hermes_docmd_wait(hermes_t *hw, u16 cmd, u16 parm0,
struct
hermes_response
*
resp
);
int
hermes_allocate
(
hermes_t
*
hw
,
u16
size
,
u16
*
fid
);
int
hermes_bap_pread
(
hermes_t
*
hw
,
int
bap
,
void
*
buf
,
unsigned
len
,
int
hermes_bap_pread
(
hermes_t
*
hw
,
int
bap
,
void
*
buf
,
int
len
,
u16
id
,
u16
offset
);
int
hermes_bap_pwrite
(
hermes_t
*
hw
,
int
bap
,
const
void
*
buf
,
unsigned
len
,
int
hermes_bap_pwrite
(
hermes_t
*
hw
,
int
bap
,
const
void
*
buf
,
int
len
,
u16
id
,
u16
offset
);
int
hermes_bap_pwrite_pad
(
hermes_t
*
hw
,
int
bap
,
const
void
*
buf
,
unsigned
data_len
,
unsigned
len
,
u16
id
,
u16
offset
);
unsigned
data_len
,
int
len
,
u16
id
,
u16
offset
);
int
hermes_read_ltv
(
hermes_t
*
hw
,
int
bap
,
u16
rid
,
unsigned
buflen
,
u16
*
length
,
void
*
buf
);
int
hermes_write_ltv
(
hermes_t
*
hw
,
int
bap
,
u16
rid
,
...
...
drivers/net/wireless/i82593.h
View file @
e67b23c7
...
...
@@ -7,11 +7,16 @@
*
* Copyright 1994, Anders Klemets <klemets@it.kth.se>
*
* This software may be freely distributed for noncommercial purposes
* as long as this notice is retained.
*
* HISTORY
* i82593.h,v
* Revision 1.4 2005/11/4 09:15:00 baroniunas
* Modified copyright with permission of author as follows:
*
* "If I82539.H is the only file with my copyright statement
* that is included in the Source Forge project, then you have
* my approval to change the copyright statement to be a GPL
* license, in the way you proposed on October 10."
*
* Revision 1.1 1996/07/17 15:23:12 root
* Initial revision
*
...
...
drivers/net/wireless/ipw2100.c
View file @
e67b23c7
...
...
@@ -6344,7 +6344,8 @@ static struct net_device *ipw2100_alloc_device(struct pci_dev *pci_dev,
dev
->
ethtool_ops
=
&
ipw2100_ethtool_ops
;
dev
->
tx_timeout
=
ipw2100_tx_timeout
;
dev
->
wireless_handlers
=
&
ipw2100_wx_handler_def
;
dev
->
get_wireless_stats
=
ipw2100_wx_wireless_stats
;
priv
->
wireless_data
.
ieee80211
=
priv
->
ieee
;
dev
->
wireless_data
=
&
priv
->
wireless_data
;
dev
->
set_mac_address
=
ipw2100_set_address
;
dev
->
watchdog_timeo
=
3
*
HZ
;
dev
->
irq
=
0
;
...
...
@@ -7178,6 +7179,11 @@ static int ipw2100_wx_get_range(struct net_device *dev,
}
range
->
num_frequency
=
val
;
/* Event capability (kernel + driver) */
range
->
event_capa
[
0
]
=
(
IW_EVENT_CAPA_K_0
|
IW_EVENT_CAPA_MASK
(
SIOCGIWAP
));
range
->
event_capa
[
1
]
=
IW_EVENT_CAPA_K_1
;
IPW_DEBUG_WX
(
"GET Range
\n
"
);
return
0
;
...
...
@@ -8446,16 +8452,6 @@ static iw_handler ipw2100_private_handler[] = {
#endif
/* CONFIG_IPW2100_MONITOR */
};
static
struct
iw_handler_def
ipw2100_wx_handler_def
=
{
.
standard
=
ipw2100_wx_handlers
,
.
num_standard
=
sizeof
(
ipw2100_wx_handlers
)
/
sizeof
(
iw_handler
),
.
num_private
=
sizeof
(
ipw2100_private_handler
)
/
sizeof
(
iw_handler
),
.
num_private_args
=
sizeof
(
ipw2100_private_args
)
/
sizeof
(
struct
iw_priv_args
),
.
private
=
(
iw_handler
*
)
ipw2100_private_handler
,
.
private_args
=
(
struct
iw_priv_args
*
)
ipw2100_private_args
,
};
/*
* Get wireless statistics.
* Called by /proc/net/wireless
...
...
@@ -8597,6 +8593,17 @@ static struct iw_statistics *ipw2100_wx_wireless_stats(struct net_device *dev)
return
(
struct
iw_statistics
*
)
NULL
;
}
static
struct
iw_handler_def
ipw2100_wx_handler_def
=
{
.
standard
=
ipw2100_wx_handlers
,
.
num_standard
=
sizeof
(
ipw2100_wx_handlers
)
/
sizeof
(
iw_handler
),
.
num_private
=
sizeof
(
ipw2100_private_handler
)
/
sizeof
(
iw_handler
),
.
num_private_args
=
sizeof
(
ipw2100_private_args
)
/
sizeof
(
struct
iw_priv_args
),
.
private
=
(
iw_handler
*
)
ipw2100_private_handler
,
.
private_args
=
(
struct
iw_priv_args
*
)
ipw2100_private_args
,
.
get_wireless_stats
=
ipw2100_wx_wireless_stats
,
};
static
void
ipw2100_wx_event_work
(
struct
ipw2100_priv
*
priv
)
{
union
iwreq_data
wrqu
;
...
...
drivers/net/wireless/ipw2100.h
View file @
e67b23c7
...
...
@@ -571,6 +571,8 @@ struct ipw2100_priv {
struct
net_device
*
net_dev
;
struct
iw_statistics
wstats
;
struct
iw_public_data
wireless_data
;
struct
tasklet_struct
irq_tasklet
;
struct
workqueue_struct
*
workqueue
;
...
...
drivers/net/wireless/prism54/isl_38xx.c
View file @
e67b23c7
...
...
@@ -164,12 +164,12 @@ isl38xx_trigger_device(int asleep, void __iomem *device_base)
/* assert the Wakeup interrupt in the Device Interrupt Register */
isl38xx_w32_flush
(
device_base
,
ISL38XX_DEV_INT_WAKEUP
,
ISL38XX_DEV_INT_REG
);
#if VERBOSE > SHOW_ERROR_MESSAGES
udelay
(
ISL38XX_WRITEIO_DELAY
);
/* perform another read on the Device Status Register */
reg
=
readl
(
device_base
+
ISL38XX_CTRL_STAT_REG
);
#if VERBOSE > SHOW_ERROR_MESSAGES
do_gettimeofday
(
&
current_time
);
DEBUG
(
SHOW_TRACING
,
"%08li.%08li Device register read %08x
\n
"
,
current_time
.
tv_sec
,
(
long
)
current_time
.
tv_usec
,
reg
);
...
...
include/net/ieee80211.h
View file @
e67b23c7
...
...
@@ -1042,7 +1042,7 @@ static inline u8 *ieee80211_get_payload(struct ieee80211_hdr *hdr)
case
IEEE80211_4ADDR_LEN
:
return
((
struct
ieee80211_hdr_4addr
*
)
hdr
)
->
payload
;
}
return
NULL
;
}
static
inline
int
ieee80211_is_ofdm_rate
(
u8
rate
)
...
...
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