Page MenuHomeFreeBSD

pci_host_generic*: basic implementation of bus range
ClosedPublic

Authored by jchandra on Oct 22 2018, 11:47 PM.
Tags
Referenced Files
Unknown Object (File)
Jan 21 2024, 1:31 AM
Unknown Object (File)
Jan 12 2024, 3:30 AM
Unknown Object (File)
Dec 20 2023, 2:36 AM
Unknown Object (File)
Dec 13 2023, 8:19 AM
Unknown Object (File)
Nov 30 2023, 5:13 AM
Unknown Object (File)
Sep 3 2023, 3:43 AM
Unknown Object (File)
Aug 27 2023, 5:09 AM
Unknown Object (File)
Aug 15 2023, 6:14 AM
Subscribers

Details

Summary

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

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

Event Timeline

sys/dev/pci/pci_host_generic_acpi.c
140–141 ↗(On Diff #49477)

Are these numbers defined anywhere?

jchandra added inline comments.
sys/dev/pci/pci_host_generic_acpi.c
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 https://reviews.freebsd.org/D17659 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.