]> git.pld-linux.org Git - packages/kernel.git/blame - linux-2.4.19-pcnet-parms.patch
- added Wake-On-Lan patch for nVidia nForce ethernet driver forcedeth
[packages/kernel.git] / linux-2.4.19-pcnet-parms.patch
CommitLineData
0dc0a2ce
JR
1diff -durN linux-2.4.2.orig/drivers/net/pcnet32.c linux-2.4.2/drivers/net/pcnet32.c
2--- linux-2.4.2.orig/drivers/net/pcnet32.c Tue Feb 13 22:15:05 2001
3+++ linux-2.4.2/drivers/net/pcnet32.c Wed Mar 7 11:11:36 2001
4@@ -1660,6 +1660,8 @@
5 id_table: pcnet32_pci_tbl,
6 };
7
8+MODULE_PARM(io, "i");
9+MODULE_PARM(irq, "i");
10 MODULE_PARM(debug, "i");
11 MODULE_PARM(max_interrupt_work, "i");
12 MODULE_PARM(rx_copybreak, "i");
13@@ -1680,6 +1682,8 @@
14 /* An additional parameter that may be passed in... */
15 static int debug = -1;
16 static int tx_start_pt = -1;
17+static int io = 0;
18+static int irq = 0;
19
20 static int __init pcnet32_init_module(void)
21 {
22@@ -1690,6 +1694,13 @@
23
24 if ((tx_start_pt >= 0) && (tx_start_pt <= 3))
25 tx_start = tx_start_pt;
26+
27+ if (io > 0x1ff) {
28+ if (check_region(io, PCNET32_TOTAL_SIZE) == 0)
1ab04ee6 29+ return pcnet32_probe1(io, irq, 0, NULL);
0dc0a2ce
JR
30+ else
31+ return -ENODEV;
32+ }
33
34 /* find the PCI devices */
35 pci_module_init(&pcnet32_driver);
This page took 0.205753 seconds and 4 git commands to generate.