Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 3483
b: refs/heads/master
c: 020f46a
h: refs/heads/master
i:
  3481: 1c1cb74
  3479: d9d8884
v: v3
  • Loading branch information
Linus Torvalds committed Jun 27, 2005
1 parent 8f4d5e5 commit ebb07c7
Show file tree
Hide file tree
Showing 105 changed files with 1,076 additions and 2,233 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: 4da62fc70d7cbcf8fa606a8c806d9dc8faa0ceae
refs/heads/master: 020f46a39eb7b99a575b9f4d105fce2b142acdf1
82 changes: 44 additions & 38 deletions trunk/Documentation/networking/dmfe.txt
Original file line number Diff line number Diff line change
@@ -1,59 +1,65 @@
dmfe.c: Version 1.28 01/18/2000
Davicom DM9102(A)/DM9132/DM9801 fast ethernet driver for Linux.

A Davicom DM9102(A)/DM9132/DM9801 fast ethernet driver for Linux.
Copyright (C) 1997 Sten Wang
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

This driver provides kernel support for Davicom DM9102(A)/DM9132/DM9801 ethernet cards ( CNET
10/100 ethernet cards uses Davicom chipset too, so this driver supports CNET cards too ).If you
didn't compile this driver as a module, it will automatically load itself on boot and print a
line similar to :

A. Compiler command:
dmfe: Davicom DM9xxx net driver, version 1.36.4 (2002-01-17)

A-1: For normal single or multiple processor kernel
"gcc -DMODULE -D__KERNEL__ -I/usr/src/linux/net/inet -Wall
-Wstrict-prototypes -O6 -c dmfe.c"
If you compiled this driver as a module, you have to load it on boot.You can load it with command :

A-2: For single or multiple processor with kernel module version function
"gcc -DMODULE -DMODVERSIONS -D__KERNEL__ -I/usr/src/linux/net/inet
-Wall -Wstrict-prototypes -O6 -c dmfe.c"
insmod dmfe

This way it will autodetect the device mode.This is the suggested way to load the module.Or you can pass
a mode= setting to module while loading, like :

B. The following steps teach you how to activate a DM9102 board:
insmod dmfe mode=0 # Force 10M Half Duplex
insmod dmfe mode=1 # Force 100M Half Duplex
insmod dmfe mode=4 # Force 10M Full Duplex
insmod dmfe mode=5 # Force 100M Full Duplex

1. Used the upper compiler command to compile dmfe.c
Next you should configure your network interface with a command similar to :

2. Insert dmfe module into kernel
"insmod dmfe" ;;Auto Detection Mode (Suggest)
"insmod dmfe mode=0" ;;Force 10M Half Duplex
"insmod dmfe mode=1" ;;Force 100M Half Duplex
"insmod dmfe mode=4" ;;Force 10M Full Duplex
"insmod dmfe mode=5" ;;Force 100M Full Duplex
ifconfig eth0 172.22.3.18
^^^^^^^^^^^
Your IP Adress

3. Config a dm9102 network interface
"ifconfig eth0 172.22.3.18"
^^^^^^^^^^^ Your IP address
Then you may have to modify the default routing table with command :

4. Activate the IP routing table. For some distributions, it is not
necessary. You can type "route" to check.
route add default eth0

"route add default eth0"

Now your ethernet card should be up and running.

5. Well done. Your DM9102 adapter is now activated.

TODO:

C. Object files description:
1. dmfe_rh61.o: For Redhat 6.1
Implement pci_driver::suspend() and pci_driver::resume() power management methods.
Check on 64 bit boxes.
Check and fix on big endian boxes.
Test and make sure PCI latency is now correct for all cases.

If you can make sure your kernel version, you can rename
to dmfe.o and directly use it without re-compiling.

Authors:

Author: Sten Wang, 886-3-5798797-8517, E-mail: sten_wang@davicom.com.tw
Sten Wang <sten_wang@davicom.com.tw > : Original Author
Tobias Ringstrom <tori@unhappy.mine.nu> : Current Maintainer

Contributors:

Marcelo Tosatti <marcelo@conectiva.com.br>
Alan Cox <alan@redhat.com>
Jeff Garzik <jgarzik@pobox.com>
Vojtech Pavlik <vojtech@suse.cz>
4 changes: 2 additions & 2 deletions trunk/arch/arm/mach-aaec2000/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ aaec2000_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)

static struct irqaction aaec2000_timer_irq = {
.name = "AAEC-2000 Timer Tick",
.flags = SA_INTERRUPT,
.handler = aaec2000_timer_interrupt
.flags = SA_INTERRUPT | SA_TIMER,
.handler = aaec2000_timer_interrupt,
};

static void __init aaec2000_timer_init(void)
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/arm/mach-clps711x/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ p720t_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)

static struct irqaction clps711x_timer_irq = {
.name = "CLPS711x Timer Tick",
.flags = SA_INTERRUPT,
.handler = p720t_timer_interrupt
.flags = SA_INTERRUPT | SA_TIMER,
.handler = p720t_timer_interrupt,
};

static void __init clps711x_timer_init(void)
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/arm/mach-clps7500/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@ clps7500_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)

static struct irqaction clps7500_timer_irq = {
.name = "CLPS7500 Timer Tick",
.flags = SA_INTERRUPT,
.handler = clps7500_timer_interrupt
.flags = SA_INTERRUPT | SA_TIMER,
.handler = clps7500_timer_interrupt,
};

/*
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/arm/mach-ebsa110/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ ebsa110_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)

static struct irqaction ebsa110_timer_irq = {
.name = "EBSA110 Timer Tick",
.flags = SA_INTERRUPT,
.handler = ebsa110_timer_interrupt
.flags = SA_INTERRUPT | SA_TIMER,
.handler = ebsa110_timer_interrupt,
};

/*
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/arm/mach-epxa10db/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ epxa10db_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)

static struct irqaction epxa10db_timer_irq = {
.name = "Excalibur Timer Tick",
.flags = SA_INTERRUPT,
.handler = epxa10db_timer_interrupt
.flags = SA_INTERRUPT | SA_TIMER,
.handler = epxa10db_timer_interrupt,
};

/*
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-footbridge/dc21285-timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ timer1_interrupt(int irq, void *dev_id, struct pt_regs *regs)
static struct irqaction footbridge_timer_irq = {
.name = "Timer1 timer tick",
.handler = timer1_interrupt,
.flags = SA_INTERRUPT,
.flags = SA_INTERRUPT | SA_TIMER,
};

/*
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-footbridge/isa-timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ isa_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
static struct irqaction isa_timer_irq = {
.name = "ISA timer tick",
.handler = isa_timer_interrupt,
.flags = SA_INTERRUPT,
.flags = SA_INTERRUPT | SA_TIMER,
};

static void __init isa_timer_init(void)
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/arm/mach-h720x/cpu-h7201.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ h7201_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)

static struct irqaction h7201_timer_irq = {
.name = "h7201 Timer Tick",
.flags = SA_INTERRUPT,
.handler = h7201_timer_interrupt
.flags = SA_INTERRUPT | SA_TIMER,
.handler = h7201_timer_interrupt,
};

/*
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/arm/mach-h720x/cpu-h7202.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ static struct irqchip h7202_timerx_chip = {

static struct irqaction h7202_timer_irq = {
.name = "h7202 Timer Tick",
.flags = SA_INTERRUPT,
.handler = h7202_timer_interrupt
.flags = SA_INTERRUPT | SA_TIMER,
.handler = h7202_timer_interrupt,
};

/*
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/arm/mach-imx/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ imx_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)

static struct irqaction imx_timer_irq = {
.name = "i.MX Timer Tick",
.flags = SA_INTERRUPT,
.handler = imx_timer_interrupt
.flags = SA_INTERRUPT | SA_TIMER,
.handler = imx_timer_interrupt,
};

/*
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/arm/mach-integrator/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ integrator_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)

static struct irqaction integrator_timer_irq = {
.name = "Integrator Timer Tick",
.flags = SA_INTERRUPT,
.handler = integrator_timer_interrupt
.flags = SA_INTERRUPT | SA_TIMER,
.handler = integrator_timer_interrupt,
};

/*
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-iop3xx/iop321-time.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ iop321_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
static struct irqaction iop321_timer_irq = {
.name = "IOP321 Timer Tick",
.handler = iop321_timer_interrupt,
.flags = SA_INTERRUPT
.flags = SA_INTERRUPT | SA_TIMER,
};

static void __init iop321_timer_init(void)
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-iop3xx/iop331-time.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ iop331_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
static struct irqaction iop331_timer_irq = {
.name = "IOP331 Timer Tick",
.handler = iop331_timer_interrupt,
.flags = SA_INTERRUPT
.flags = SA_INTERRUPT | SA_TIMER,
};

static void __init iop331_timer_init(void)
Expand Down
9 changes: 7 additions & 2 deletions trunk/arch/arm/mach-ixp2000/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ static struct map_desc ixp2000_io_desc[] __initdata = {
.physical = IXP2000_PCI_CSR_PHYS_BASE,
.length = IXP2000_PCI_CSR_SIZE,
.type = MT_DEVICE
}, {
.virtual = IXP2000_MSF_VIRT_BASE,
.physical = IXP2000_MSF_PHYS_BASE,
.length = IXP2000_MSF_SIZE,
.type = MT_DEVICE
}, {
.virtual = IXP2000_PCI_IO_VIRT_BASE,
.physical = IXP2000_PCI_IO_PHYS_BASE,
Expand Down Expand Up @@ -194,8 +199,8 @@ static int ixp2000_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)

static struct irqaction ixp2000_timer_irq = {
.name = "IXP2000 Timer Tick",
.flags = SA_INTERRUPT,
.handler = ixp2000_timer_interrupt
.flags = SA_INTERRUPT | SA_TIMER,
.handler = ixp2000_timer_interrupt,
};

void __init ixp2000_init_time(unsigned long tick_rate)
Expand Down
6 changes: 0 additions & 6 deletions trunk/arch/arm/mach-ixp2000/ixdp2800.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,6 @@
#include <asm/mach/flash.h>
#include <asm/mach/arch.h>


void ixdp2400_init_irq(void)
{
ixdp2x00_init_irq(IXDP2800_CPLD_INT_STAT, IXDP2800_CPLD_INT_MASK, IXDP2400_NR_IRQS);
}

/*************************************************************************
* IXDP2800 timer tick
*************************************************************************/
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/arm/mach-ixp4xx/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@ static irqreturn_t ixp4xx_timer_interrupt(int irq, void *dev_id, struct pt_regs

static struct irqaction ixp4xx_timer_irq = {
.name = "IXP4xx Timer Tick",
.flags = SA_INTERRUPT,
.handler = ixp4xx_timer_interrupt
.flags = SA_INTERRUPT | SA_TIMER,
.handler = ixp4xx_timer_interrupt,
};

static void __init ixp4xx_timer_init(void)
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/arm/mach-lh7a40x/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ lh7a40x_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)

static struct irqaction lh7a40x_timer_irq = {
.name = "LHA740x Timer Tick",
.flags = SA_INTERRUPT,
.handler = lh7a40x_timer_interrupt
.flags = SA_INTERRUPT | SA_TIMER,
.handler = lh7a40x_timer_interrupt,
};

static void __init lh7a40x_timer_init(void)
Expand Down
10 changes: 5 additions & 5 deletions trunk/arch/arm/mach-omap/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ static irqreturn_t omap_mpu_timer_interrupt(int irq, void *dev_id,

static struct irqaction omap_mpu_timer_irq = {
.name = "mpu timer",
.flags = SA_INTERRUPT,
.handler = omap_mpu_timer_interrupt
.flags = SA_INTERRUPT | SA_TIMER,
.handler = omap_mpu_timer_interrupt,
};

static unsigned long omap_mpu_timer1_overflows;
Expand All @@ -203,7 +203,7 @@ static irqreturn_t omap_mpu_timer1_interrupt(int irq, void *dev_id,
static struct irqaction omap_mpu_timer1_irq = {
.name = "mpu timer1 overflow",
.flags = SA_INTERRUPT,
.handler = omap_mpu_timer1_interrupt
.handler = omap_mpu_timer1_interrupt,
};

static __init void omap_init_mpu_timer(void)
Expand Down Expand Up @@ -349,8 +349,8 @@ static irqreturn_t omap_32k_timer_interrupt(int irq, void *dev_id,

static struct irqaction omap_32k_timer_irq = {
.name = "32KHz timer",
.flags = SA_INTERRUPT,
.handler = omap_32k_timer_interrupt
.flags = SA_INTERRUPT | SA_TIMER,
.handler = omap_32k_timer_interrupt,
};

static __init void omap_init_32k_timer(void)
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/arm/mach-pxa/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ pxa_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)

static struct irqaction pxa_timer_irq = {
.name = "PXA Timer Tick",
.flags = SA_INTERRUPT,
.handler = pxa_timer_interrupt
.flags = SA_INTERRUPT | SA_TIMER,
.handler = pxa_timer_interrupt,
};

static void __init pxa_timer_init(void)
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/arm/mach-s3c2410/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ s3c2410_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)

static struct irqaction s3c2410_timer_irq = {
.name = "S3C2410 Timer Tick",
.flags = SA_INTERRUPT,
.handler = s3c2410_timer_interrupt
.flags = SA_INTERRUPT | SA_TIMER,
.handler = s3c2410_timer_interrupt,
};

/*
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-sa1100/h3600.c
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ static void h3800_IRQ_demux(unsigned int irq, struct irqdesc *desc, struct pt_re
static struct irqaction h3800_irq = {
.name = "h3800_asic",
.handler = h3800_IRQ_demux,
.flags = SA_INTERRUPT,
.flags = SA_INTERRUPT | SA_TIMER,
};

u32 kpio_int_shadow = 0;
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/arm/mach-sa1100/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ sa1100_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)

static struct irqaction sa1100_timer_irq = {
.name = "SA11xx Timer Tick",
.flags = SA_INTERRUPT,
.handler = sa1100_timer_interrupt
.flags = SA_INTERRUPT | SA_TIMER,
.handler = sa1100_timer_interrupt,
};

static void __init sa1100_timer_init(void)
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/arm/mach-shark/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ shark_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)

static struct irqaction shark_timer_irq = {
.name = "Shark Timer Tick",
.flags = SA_INTERRUPT,
.handler = shark_timer_interrupt
.flags = SA_INTERRUPT | SA_TIMER,
.handler = shark_timer_interrupt,
};

/*
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/arm/mach-versatile/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -875,8 +875,8 @@ static irqreturn_t versatile_timer_interrupt(int irq, void *dev_id, struct pt_re

static struct irqaction versatile_timer_irq = {
.name = "Versatile Timer Tick",
.flags = SA_INTERRUPT,
.handler = versatile_timer_interrupt
.flags = SA_INTERRUPT | SA_TIMER,
.handler = versatile_timer_interrupt,
};

/*
Expand Down
Loading

0 comments on commit ebb07c7

Please sign in to comment.