Subject: PCI probe
To: None <port-i386@netbsd.org>
From: None <openbsd@softhome.net>
List: port-i386
Date: 03/18/2004 12:56:06
Hi all,
I am trying to get the kernel to avoid probbing PCI 0:0:1 and 0:0:2. Also,
everything above 1:0:0 (not included) needs to be avoided. I made this
patch for /sys/dev/pci/pciconf.c, can anyone tell me if it might work?
Thanks,
Nicolas.
--- ./sys/dev/pci/pciconf.c Thu Mar 18 09:07:24 2004
+++ ./sys/dev/pci/pciconf.c.orig Thu Mar 18 06:05:10 2004
@@ -256,15 +256,6 @@
bhlcr = pci_conf_read(pb->pc, tag, PCI_BHLC_REG);
nfunction = PCI_HDRTYPE_MULTIFN(bhlcr) ? 8 : 1;
for (function = 0 ; function < nfunction ; function++) {
-#ifdef XBOX
- if ((pb->busno) > 1)
- return -EINVAL;
- if (((pb->busno) == 1)) && (device | function)
- return -EINVAL;
- if (((pb->busno) == 0 && device == 0) &&
- ((function == 1) || (function == 2)
- return -EINVAL;
-#endif
tag = pci_make_tag(pb->pc, pb->busno, device,
function);
id = pci_conf_read(pb->pc, tag, PCI_ID_REG);
if (PCI_VENDOR(id) == PCI_VENDOR_INVALID)