Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 10956
b: refs/heads/master
c: b59a950
h: refs/heads/master
v: v3
  • Loading branch information
Thiemo Seufer authored and Ralf Baechle committed Oct 29, 2005
1 parent 61b0b22 commit 67aea4e
Show file tree
Hide file tree
Showing 92 changed files with 3,331 additions and 9,652 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 955c5038823748e529a49f0e33ab635d92843500
refs/heads/master: b59a9504cb93db7fae31e60760725d48652a1fc3
8 changes: 0 additions & 8 deletions trunk/MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -1945,14 +1945,6 @@ M: george@mvista.com
L: netdev@vger.kernel.org
S: Supported

POWERPC 4xx EMAC DRIVER
P: Eugene Surovegin
M: ebs@ebshome.net
W: http://kernel.ebshome.net/emac/
L: linuxppc-embedded@ozlabs.org
L: netdev@vger.kernel.org
S: Maintained

PNP SUPPORT
P: Adam Belay
M: ambx1@neo.rr.com
Expand Down
13 changes: 5 additions & 8 deletions trunk/arch/mips/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -128,28 +128,25 @@ FEXPORT(syscall_exit_work)
/*
* Common spurious interrupt handler.
*/
.text
.align 5
LEAF(spurious_interrupt)
/*
* Someone tried to fool us by sending an interrupt but we
* couldn't find a cause for it.
*/
PTR_LA t1, irq_err_count
#ifdef CONFIG_SMP
lui t1, %hi(irq_err_count)
1: ll t0, %lo(irq_err_count)(t1)
1: ll t0, (t1)
addiu t0, 1
sc t0, %lo(irq_err_count)(t1)
sc t0, (t1)
#if R10000_LLSC_WAR
beqzl t0, 1b
#else
beqz t0, 1b
#endif
#else
lui t1, %hi(irq_err_count)
lw t0, %lo(irq_err_count)(t1)
lw t0, (t1)
addiu t0, 1
sw t0, %lo(irq_err_count)(t1)
sw t0, (t1)
#endif
j ret_from_irq
END(spurious_interrupt)
77 changes: 20 additions & 57 deletions trunk/drivers/net/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1163,74 +1163,38 @@ config IBMVETH
be called ibmveth.

config IBM_EMAC
tristate "PowerPC 4xx on-chip Ethernet support"
bool "IBM PPC4xx EMAC driver support"
depends on 4xx
help
This driver supports the PowerPC 4xx EMAC family of on-chip
Ethernet controllers.
select CRC32
---help---
This driver supports the IBM PPC4xx EMAC family of on-chip
Ethernet controllers.

config IBM_EMAC_ERRMSG
bool "Verbose error messages"
depends on IBM_EMAC && BROKEN

config IBM_EMAC_RXB
int "Number of receive buffers"
depends on IBM_EMAC
default "128"
default "128" if IBM_EMAC4
default "64"

config IBM_EMAC_TXB
int "Number of transmit buffers"
depends on IBM_EMAC
default "64"

config IBM_EMAC_POLL_WEIGHT
int "MAL NAPI polling weight"
depends on IBM_EMAC
default "32"
default "128" if IBM_EMAC4
default "8"

config IBM_EMAC_RX_COPY_THRESHOLD
int "RX skb copy threshold (bytes)"
config IBM_EMAC_FGAP
int "Frame gap"
depends on IBM_EMAC
default "256"
default "8"

config IBM_EMAC_RX_SKB_HEADROOM
int "Additional RX skb headroom (bytes)"
config IBM_EMAC_SKBRES
int "Skb reserve amount"
depends on IBM_EMAC
default "0"
help
Additional receive skb headroom. Note, that driver
will always reserve at least 2 bytes to make IP header
aligned, so usualy there is no need to add any additional
headroom.

If unsure, set to 0.

config IBM_EMAC_PHY_RX_CLK_FIX
bool "PHY Rx clock workaround"
depends on IBM_EMAC && (405EP || 440GX || 440EP)
help
Enable this if EMAC attached to a PHY which doesn't generate
RX clock if there is no link, if this is the case, you will
see "TX disable timeout" or "RX disable timeout" in the system
log.

If unsure, say N.

config IBM_EMAC_DEBUG
bool "Debugging"
depends on IBM_EMAC
default n

config IBM_EMAC_ZMII
bool
depends on IBM_EMAC && (NP405H || NP405L || 44x)
default y

config IBM_EMAC_RGMII
bool
depends on IBM_EMAC && 440GX
default y

config IBM_EMAC_TAH
bool
depends on IBM_EMAC && 440GX
default y

config NET_PCI
bool "EISA, VLB, PCI and on board controllers"
Expand Down Expand Up @@ -1811,7 +1775,6 @@ config NE_H8300
controller on the Renesas H8/300 processor.

source "drivers/net/fec_8xx/Kconfig"
source "drivers/net/fs_enet/Kconfig"

endmenu

Expand Down Expand Up @@ -2238,8 +2201,8 @@ config S2IO
depends on PCI
---help---
This driver supports the 10Gbe XFrame NIC of S2IO.
More specific information on configuring the driver is in
<file:Documentation/networking/s2io.txt>.
For help regarding driver compilation, installation and
tuning please look into ~/drivers/net/s2io/README.txt.

config S2IO_NAPI
bool "Use Rx Polling (NAPI) (EXPERIMENTAL)"
Expand Down
3 changes: 0 additions & 3 deletions trunk/drivers/net/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,3 @@ obj-$(CONFIG_IRDA) += irda/
obj-$(CONFIG_ETRAX_ETHERNET) += cris/

obj-$(CONFIG_NETCONSOLE) += netconsole.o

obj-$(CONFIG_FS_ENET) += fs_enet/

6 changes: 4 additions & 2 deletions trunk/drivers/net/acenic.c
Original file line number Diff line number Diff line change
Expand Up @@ -871,8 +871,10 @@ static void ace_init_cleanup(struct net_device *dev)
if (ap->info)
pci_free_consistent(ap->pdev, sizeof(struct ace_info),
ap->info, ap->info_dma);
kfree(ap->skb);
kfree(ap->trace_buf);
if (ap->skb)
kfree(ap->skb);
if (ap->trace_buf)
kfree(ap->trace_buf);

if (dev->irq)
free_irq(dev->irq, dev);
Expand Down
Empty file modified trunk/drivers/net/amd8111e.c
100644 → 100755
Empty file.
Empty file modified trunk/drivers/net/amd8111e.h
100644 → 100755
Empty file.
6 changes: 4 additions & 2 deletions trunk/drivers/net/au1000_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -1606,7 +1606,8 @@ au1000_probe(u32 ioaddr, int irq, int port_num)
/* here we should have a valid dev plus aup-> register addresses
* so we can reset the mac properly.*/
reset_mac(dev);
kfree(aup->mii);
if (aup->mii)
kfree(aup->mii);
for (i = 0; i < NUM_RX_DMA; i++) {
if (aup->rx_db_inuse[i])
ReleaseDB(aup, aup->rx_db_inuse[i]);
Expand Down Expand Up @@ -1805,7 +1806,8 @@ static void __exit au1000_cleanup_module(void)
if (dev) {
aup = (struct au1000_private *) dev->priv;
unregister_netdev(dev);
kfree(aup->mii);
if (aup->mii)
kfree(aup->mii);
for (j = 0; j < NUM_RX_DMA; j++) {
if (aup->rx_db_inuse[j])
ReleaseDB(aup, aup->rx_db_inuse[j]);
Expand Down
28 changes: 13 additions & 15 deletions trunk/drivers/net/b44.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/version.h>
#include <linux/dma-mapping.h>

#include <asm/uaccess.h>
#include <asm/io.h>
Expand Down Expand Up @@ -1131,10 +1130,14 @@ static void b44_init_rings(struct b44 *bp)
*/
static void b44_free_consistent(struct b44 *bp)
{
kfree(bp->rx_buffers);
bp->rx_buffers = NULL;
kfree(bp->tx_buffers);
bp->tx_buffers = NULL;
if (bp->rx_buffers) {
kfree(bp->rx_buffers);
bp->rx_buffers = NULL;
}
if (bp->tx_buffers) {
kfree(bp->tx_buffers);
bp->tx_buffers = NULL;
}
if (bp->rx_ring) {
if (bp->flags & B44_FLAG_RX_RING_HACK) {
dma_unmap_single(&bp->pdev->dev, bp->rx_ring_dma,
Expand Down Expand Up @@ -1616,14 +1619,14 @@ static int b44_get_settings(struct net_device *dev, struct ethtool_cmd *cmd)

cmd->advertising = 0;
if (bp->flags & B44_FLAG_ADV_10HALF)
cmd->advertising |= ADVERTISED_10baseT_Half;
cmd->advertising |= ADVERTISE_10HALF;
if (bp->flags & B44_FLAG_ADV_10FULL)
cmd->advertising |= ADVERTISED_10baseT_Full;
cmd->advertising |= ADVERTISE_10FULL;
if (bp->flags & B44_FLAG_ADV_100HALF)
cmd->advertising |= ADVERTISED_100baseT_Half;
cmd->advertising |= ADVERTISE_100HALF;
if (bp->flags & B44_FLAG_ADV_100FULL)
cmd->advertising |= ADVERTISED_100baseT_Full;
cmd->advertising |= ADVERTISED_Pause | ADVERTISED_Asym_Pause;
cmd->advertising |= ADVERTISE_100FULL;
cmd->advertising |= ADVERTISE_PAUSE_CAP | ADVERTISE_PAUSE_ASYM;
cmd->speed = (bp->flags & B44_FLAG_100_BASE_T) ?
SPEED_100 : SPEED_10;
cmd->duplex = (bp->flags & B44_FLAG_FULL_DUPLEX) ?
Expand Down Expand Up @@ -2041,8 +2044,6 @@ static int b44_suspend(struct pci_dev *pdev, pm_message_t state)
b44_free_rings(bp);

spin_unlock_irq(&bp->lock);

free_irq(dev->irq, dev);
pci_disable_device(pdev);
return 0;
}
Expand All @@ -2059,9 +2060,6 @@ static int b44_resume(struct pci_dev *pdev)
if (!netif_running(dev))
return 0;

if (request_irq(dev->irq, b44_interrupt, SA_SHIRQ, dev->name, dev))
printk(KERN_ERR PFX "%s: request_irq failed\n", dev->name);

spin_lock_irq(&bp->lock);

b44_init_rings(bp);
Expand Down
6 changes: 4 additions & 2 deletions trunk/drivers/net/bmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -1689,8 +1689,10 @@ static void __exit bmac_exit(void)
{
macio_unregister_driver(&bmac_driver);

kfree(bmac_emergency_rxbuf);
bmac_emergency_rxbuf = NULL;
if (bmac_emergency_rxbuf != NULL) {
kfree(bmac_emergency_rxbuf);
bmac_emergency_rxbuf = NULL;
}
}

MODULE_AUTHOR("Randy Gobbel/Paul Mackerras");
Expand Down
12 changes: 8 additions & 4 deletions trunk/drivers/net/bnx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,16 +314,20 @@ bnx2_free_mem(struct bnx2 *bp)
bp->tx_desc_ring, bp->tx_desc_mapping);
bp->tx_desc_ring = NULL;
}
kfree(bp->tx_buf_ring);
bp->tx_buf_ring = NULL;
if (bp->tx_buf_ring) {
kfree(bp->tx_buf_ring);
bp->tx_buf_ring = NULL;
}
if (bp->rx_desc_ring) {
pci_free_consistent(bp->pdev,
sizeof(struct rx_bd) * RX_DESC_CNT,
bp->rx_desc_ring, bp->rx_desc_mapping);
bp->rx_desc_ring = NULL;
}
kfree(bp->rx_buf_ring);
bp->rx_buf_ring = NULL;
if (bp->rx_buf_ring) {
kfree(bp->rx_buf_ring);
bp->rx_buf_ring = NULL;
}
}

static int
Expand Down
7 changes: 5 additions & 2 deletions trunk/drivers/net/e1000/e1000_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -965,8 +965,11 @@ e1000_free_desc_rings(struct e1000_adapter *adapter)
if(rxdr->desc)
pci_free_consistent(pdev, rxdr->size, rxdr->desc, rxdr->dma);

kfree(txdr->buffer_info);
kfree(rxdr->buffer_info);
if(txdr->buffer_info)
kfree(txdr->buffer_info);
if(rxdr->buffer_info)
kfree(rxdr->buffer_info);

return;
}

Expand Down
9 changes: 4 additions & 5 deletions trunk/drivers/net/e1000/e1000_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ static void e1000_vlan_rx_add_vid(struct net_device *netdev, uint16_t vid);
static void e1000_vlan_rx_kill_vid(struct net_device *netdev, uint16_t vid);
static void e1000_restore_vlan(struct e1000_adapter *adapter);

#ifdef CONFIG_PM
static int e1000_suspend(struct pci_dev *pdev, pm_message_t state);
#ifdef CONFIG_PM
static int e1000_resume(struct pci_dev *pdev);
#endif

Expand Down Expand Up @@ -1149,8 +1149,7 @@ e1000_setup_tx_resources(struct e1000_adapter *adapter,
int size;

size = sizeof(struct e1000_buffer) * txdr->count;

txdr->buffer_info = vmalloc_node(size, pcibus_to_node(pdev->bus));
txdr->buffer_info = vmalloc(size);
if(!txdr->buffer_info) {
DPRINTK(PROBE, ERR,
"Unable to allocate memory for the transmit descriptor ring\n");
Expand Down Expand Up @@ -1367,7 +1366,7 @@ e1000_setup_rx_resources(struct e1000_adapter *adapter,
int size, desc_len;

size = sizeof(struct e1000_buffer) * rxdr->count;
rxdr->buffer_info = vmalloc_node(size, pcibus_to_node(pdev->bus));
rxdr->buffer_info = vmalloc(size);
if (!rxdr->buffer_info) {
DPRINTK(PROBE, ERR,
"Unable to allocate memory for the receive descriptor ring\n");
Expand Down Expand Up @@ -4194,7 +4193,6 @@ e1000_set_spd_dplx(struct e1000_adapter *adapter, uint16_t spddplx)
return 0;
}

#ifdef CONFIG_PM
static int
e1000_suspend(struct pci_dev *pdev, pm_message_t state)
{
Expand Down Expand Up @@ -4291,6 +4289,7 @@ e1000_suspend(struct pci_dev *pdev, pm_message_t state)
return 0;
}

#ifdef CONFIG_PM
static int
e1000_resume(struct pci_dev *pdev)
{
Expand Down
7 changes: 4 additions & 3 deletions trunk/drivers/net/eepro.c
Original file line number Diff line number Diff line change
Expand Up @@ -1797,9 +1797,10 @@ MODULE_AUTHOR("Pascal Dupuis and others");
MODULE_DESCRIPTION("Intel i82595 ISA EtherExpressPro10/10+ driver");
MODULE_LICENSE("GPL");

module_param_array(io, int, NULL, 0);
module_param_array(irq, int, NULL, 0);
module_param_array(mem, int, NULL, 0);
static int num_params;
module_param_array(io, int, &num_params, 0);
module_param_array(irq, int, &num_params, 0);
module_param_array(mem, int, &num_params, 0);
module_param(autodetect, int, 0);
MODULE_PARM_DESC(io, "EtherExpress Pro/10 I/O base addres(es)");
MODULE_PARM_DESC(irq, "EtherExpress Pro/10 IRQ number(s)");
Expand Down
Loading

0 comments on commit 67aea4e

Please sign in to comment.