Page MenuHomeFreeBSD

pci_host_generic*: basic implementation of bus range

Authored by jchandra on Oct 22 2018, 11:47 PM.



Both ACPI and FDT support bus ranges for pci host bridges. Add a
default implementation for now. This is no intention to introduce
any functional difference with this change. This will be used in the
next set of changes for ACPI based host bridge.

Diff Detail

rS FreeBSD src repository - subversion
Lint Not Applicable
Tests Not Applicable

Event Timeline

140–141 ↗(On Diff #49477)

Are these numbers defined anywhere?

jchandra added inline comments.
140–141 ↗(On Diff #49477)

The ACPI code here tried to make 2 PCI domains - one for bus 0-7f and one for 0x80-0xff. In this commit I have not changed this mechanism - just trying to save the value instead of making ACPI call multiple times.

In I have redone this part. The domain should come from the _SEG call and the bus range should be from bus resource specified in the ACPI resources.

So basically, this commit is just to add bus_start, no functional changes. The next commit does the change in implementation.

This revision is now accepted and ready to land.Nov 1 2018, 12:17 PM
This revision was automatically updated to reflect the committed changes.