]> git.pld-linux.org Git - packages/kernel.git/blame - linux-2.4.2-pcnet-parms.patch
- added description of djurban's branch
[packages/kernel.git] / linux-2.4.2-pcnet-parms.patch
CommitLineData
0c9583f8
JK
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@@ -1483,6 +1483,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@@ -1495,6 +1497,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@@ -1505,6 +1509,13 @@
23 pcnet32_debug = debug;
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)
29+ return pcnet32_probe1(io, irq, 0, 0, NULL);
30+ else
31+ return -ENODEV;
32+ }
33
34 pcnet32_dev = NULL;
35 /* find the PCI devices */
This page took 1.067155 seconds and 4 git commands to generate.