patch-2.1.97 linux/drivers/pci/proc.c
Next file: linux/drivers/sbus/char/Makefile
Previous file: linux/drivers/pci/pcisyms.c
Back to the patch index
Back to the overall index
- Lines: 39
- Date:
Fri Apr 17 21:58:48 1998
- Orig file:
v2.1.96/linux/drivers/pci/proc.c
- Orig date:
Mon Apr 6 17:41:00 1998
diff -u --recursive --new-file v2.1.96/linux/drivers/pci/proc.c linux/drivers/pci/proc.c
@@ -1,5 +1,5 @@
/*
- * $Id: proc.c,v 1.8 1998/03/12 14:32:51 mj Exp $
+ * $Id: proc.c,v 1.10 1998/04/16 20:48:30 mj Exp $
*
* Procfs interface for the PCI bus.
*
@@ -250,6 +250,13 @@
"\t%016lx",
#endif
dev->base_address[i]);
+ len += sprintf(buf+len,
+#if BITS_PER_LONG == 32
+ "\t%08lx",
+#else
+ "\t%016lx",
+#endif
+ dev->rom_address);
buf[len++] = '\n';
at += len;
if (at >= pos) {
@@ -298,7 +305,7 @@
}
}
-__initfunc(void proc_bus_pci_init(void))
+__initfunc(void pci_proc_init(void))
{
struct proc_dir_entry *proc_pci;
@@ -307,4 +314,8 @@
proc_pci = create_proc_entry("pci", S_IFDIR, proc_bus);
proc_register(proc_pci, &proc_pci_devices);
proc_bus_pci_add(&pci_root, proc_pci);
+
+#ifdef CONFIG_PCI_OLD_PROC
+ proc_old_pci_init();
+#endif
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov