My PC has Win-7 Embedded and I'm trying to connect to PCIe switch BAR.
At first when windows detects the PCIe switch it is not configured to use the requested BAR. After my program change the switch settings it is required to restart windows in order to detect and use the BAR, If Hot-Plug functionality is enabled at the BIOS it is possible to only rescan the Device Manager and the BAR is detected by Windows without any restart. The problem is that I don't want to use Hot-Plug because it can cause various problems.
Is it possible to detect the BAR without restart and without using Hot-Plug?
I also noticed that windows automatically assign the BAR memory address, Is it possible to manually assign the BAR memory address?
Thanks