]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a helper routine to conditionally modify the start address of a
authorjhb <jhb@FreeBSD.org>
Wed, 22 Jun 2011 16:15:15 +0000 (16:15 +0000)
committerjhb <jhb@FreeBSD.org>
Wed, 22 Jun 2011 16:15:15 +0000 (16:15 +0000)
commita0627f2e3f8b11a06d848f46dcd73032ded3bf5f
tree687ef6710344d3f0745815dbef95fa62def8b1ac
parentda0d2942ce08958ef4188446f468ba7dbc4d686e
Add a helper routine to conditionally modify the start address of a
resource allocation from an x86 Host-PCI bridge driver so that it can be
reused by the ACPI Host-PCI bridge driver (and eventually the MPTable
Host-PCI bridge driver) instead of duplicating the same logic.  Note that
this means that hw.acpi.host_mem_start is now replaced with the
hw.pci.host_mem_start tunable that was already used in the non-ACPI case.
This also removes hw.acpi.host_mem_start on ia64 where it was not
applicable (the implementation was very x86-specific).

While here, adjust the logic to apply the new start address on any
"wildcard" allocation even if that allocation comes from a subset of
the allowable address range.

Reviewed by: imp (1)
sys/amd64/pci/pci_bus.c
sys/dev/acpica/acpi_pcib_acpi.c
sys/i386/pci/pci_bus.c