BAR0/1 & enumeration (NTB)
Posted:
Eli, I'm one of the thousands who browse and read your blog silently.
But now I need to get in touch about something I hope you can help. Here it is.
I'm working on a NTB driver. NT functions have Type-0 headers, like any PCIe end point.
Now, BAR0/1 on NT functions can be setup (in general via eeprom) as base address for the 4K config-space of its function OR as based address of the memory space for memory transactions. In any case, during enumeration the bios must write the proper base address into BAR0/1.
My question is:
How can the bios during enumeration know whether BAR0/1 is setup for pointing to its function config-space or to memory space for memory transactions?
Hope you can help.
Kind Regards
But now I need to get in touch about something I hope you can help. Here it is.
I'm working on a NTB driver. NT functions have Type-0 headers, like any PCIe end point.
Now, BAR0/1 on NT functions can be setup (in general via eeprom) as base address for the 4K config-space of its function OR as based address of the memory space for memory transactions. In any case, during enumeration the bios must write the proper base address into BAR0/1.
My question is:
How can the bios during enumeration know whether BAR0/1 is setup for pointing to its function config-space or to memory space for memory transactions?
Hope you can help.
Kind Regards