]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make the PCI code aware of PCI domains (aka PCI segments) so we can
authorMarius Strobl <marius@FreeBSD.org>
Sun, 30 Sep 2007 11:05:18 +0000 (11:05 +0000)
committerMarius Strobl <marius@FreeBSD.org>
Sun, 30 Sep 2007 11:05:18 +0000 (11:05 +0000)
commit55aaf894e8a76fe780757ef6d9d1119c367946cf
tree8043b70223b1a26b9d8903a04633a168390b18dc
parent9140ec8e229385a784333f186a8323dcdfd84468
Make the PCI code aware of PCI domains (aka PCI segments) so we can
support machines having multiple independently numbered PCI domains
and don't support reenumeration without ambiguity amongst the
devices as seen by the OS and represented by PCI location strings.
This includes introducing a function pci_find_dbsf(9) which works
like pci_find_bsf(9) but additionally takes a domain number argument
and limiting pci_find_bsf(9) to only search devices in domain 0 (the
only domain in single-domain systems). Bge(4) and ofw_pcibus(4) are
changed to use pci_find_dbsf(9) instead of pci_find_bsf(9) in order
to no longer report false positives when searching for siblings and
dupe devices in the same domain respectively.
Along with this change the sole host-PCI bridge driver converted to
actually make use of PCI domain support is uninorth(4), the others
continue to use domain 0 only for now and need to be converted as
appropriate later on.
Note that this means that the format of the location strings as used
by pciconf(8) has been changed and that consumers of <sys/pciio.h>
potentially need to be recompiled.

Suggested by: jhb
Reviewed by: grehan, jhb, marcel
Approved by: re (kensmith), jhb (PCI maintainer hat)
36 files changed:
UPDATING
share/man/man4/pci.4
share/man/man9/pci.9
sys/amd64/amd64/legacy.c
sys/amd64/include/legacyvar.h
sys/amd64/pci/pci_bus.c
sys/arm/xscale/i80321/i80321_pci.c
sys/arm/xscale/i8134x/i81342_pci.c
sys/arm/xscale/ixp425/ixp425_pci.c
sys/dev/acpica/acpi_pci.c
sys/dev/acpica/acpi_pcib_acpi.c
sys/dev/bge/if_bge.c
sys/dev/cardbus/cardbus.c
sys/dev/pccbb/pccbb.c
sys/dev/pccbb/pccbb_pci.c
sys/dev/pccbb/pccbbvar.h
sys/dev/pci/pci.c
sys/dev/pci/pci_pci.c
sys/dev/pci/pci_private.h
sys/dev/pci/pci_user.c
sys/dev/pci/pcib_private.h
sys/dev/pci/pcivar.h
sys/i386/i386/legacy.c
sys/i386/include/legacyvar.h
sys/i386/pci/pci_bus.c
sys/powerpc/powermac/grackle.c
sys/powerpc/powermac/uninorth.c
sys/sparc64/pci/apb.c
sys/sparc64/pci/ofw_pcibus.c
sys/sparc64/pci/psycho.c
sys/sun4v/sun4v/hv_pci.c
sys/sys/param.h
sys/sys/pciio.h
tools/tools/pciroms/pciroms.c
usr.sbin/pciconf/pciconf.8
usr.sbin/pciconf/pciconf.c