On Sun, Jul 21, 2019 at 07:10:02PM +0100, Mark Cave-Ayland wrote:
On 21/07/2019 15:16, BALATON Zoltan wrote: Now I'm really confused - I had a quick look at your patch and compared it with pci_config_*() words and they show that you can't memory map PCI config space on a Mac.
That depends on the PCI host bridge. Most are direct-mapped on powermac. A few are not.
0 > " /pci@f2000000/ATY" open-dev to my-self
Like this f2000000, that is the physical address that maps directly to PCI config space on that bus.
Segher