Changes between Initial Version and Version 1 of Ticket #3, comment 11


Ignore:
Timestamp:
Mar 26, 2022, 7:33:26 PM (8 months ago)
Author:
pulkomandy

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3, comment 11

    initial v1  
    66
    77We are supposed to find that first, and get the segment and bus numbers from there (_BBN and _SEG methods). From these, we can lookup the corresponding base address in the MCFG. But in addition, we also get the _CRS method, which gives us information about the address range allocated to this PCI bus. Once we know that, we can see which parts of this space are already allocated to devices, and finally use the remaining space to assign addresses to the devices that don't yet have one.
     8
     9This is how it's done in freeBSD: https://www.leidinger.net/FreeBSD/dox/dev_pci/html/d2/d72/pci__host__generic__acpi_8c_source.html#l00117