If you have configured PCI support, but your computer has no PCI
BIOS, it looks as if there are no PCI DEVICES. The following patch
gives a better message in /proc/pci.
(The same method could be applied for /proc/apm which is just empty
if there's no APM BIOS support)
I've added the same patch as attachment, too.
*** /usr/src/linux/drivers/pci/pci.c Tue Feb 20 08:08:41 1996
--- /tmp/pci.c Tue Feb 20 11:01:50 1996
***************
*** 689,694 ****
--- 689,697 ----
/* reserve same for truncation warning message: */
size = PAGE_SIZE - (strlen(MSG) + 1);
+ if (pcibios_present() == 0) {
+ return( sprintf(buf, "No PCI BIOS detected\n") );
+ }
len = sprintf(buf, "PCI devices found:\n");
for (dev = pci_devices; dev; dev = dev->next) {
--Message-Boundary-17266
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Text from file 'pci.lxp'
*** /usr/src/linux/drivers/pci/pci.c Tue Feb 20 08:08:41 1996
--- /tmp/pci.c Tue Feb 20 11:01:50 1996
***************
*** 689,694 ****
--- 689,697 ----
/* reserve same for truncation warning message: */
size = PAGE_SIZE - (strlen(MSG) + 1);
+ if (pcibios_present() == 0) {
+ return( sprintf(buf, "No PCI BIOS detected\n") );
+ }
len = sprintf(buf, "PCI devices found:\n");
for (dev = pci_devices; dev; dev = dev->next) {
--Message-Boundary-17266--