patch-2.2.0-pre1 linux/drivers/net/lance.c
Next file: linux/drivers/net/sdlamain.c
Previous file: linux/drivers/net/cosa.h
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Mon Dec 28 11:05:14 1998
- Orig file:
v2.1.132/linux/drivers/net/lance.c
- Orig date:
Tue Dec 22 14:16:55 1998
diff -u --recursive --new-file v2.1.132/linux/drivers/net/lance.c linux/drivers/net/lance.c
@@ -303,6 +303,10 @@
static int dma[MAX_CARDS] = { 0, };
static int irq[MAX_CARDS] = { 0, };
+MODULE_PARM(io, "1-" __MODULE_STRING(MAX_CARDS) "i");
+MODULE_PARM(dma, "1-" __MODULE_STRING(MAX_CARDS) "i");
+MODULE_PARM(irq, "1-" __MODULE_STRING(MAX_CARDS) "i");
+
static char ifnames[MAX_CARDS][IF_NAMELEN] = { {0, }, };
static struct device dev_lance[MAX_CARDS] =
{{
@@ -363,11 +367,12 @@
{
int *port, result;
- if (high_memory <= 16*1024*1024)
+ if (high_memory <= phys_to_virt(16*1024*1024))
lance_need_isa_bounce_buffers = 0;
#if defined(CONFIG_PCI)
- if (pci_present()) {
+ if (pci_present())
+ {
struct pci_dev *pdev = NULL;
if (lance_debug > 1)
printk("lance.c: PCI bios is present, checking for devices...\n");
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov