简体   繁体   中英

Read and Write PCI BAR0 register in windows

I need a test application which can Read and Write PCI BAR0 register in windows. Input: offset, length I have tried in Linux and its working but i want to write in windows.

You need a driver for that and even with a driver there is no easy way to do since the APIs are deprecated but you can use the following API HalGetBusDataByOffset to read the PCI Config space from a device, then you will have the physical address and map it and write using HAL MMIO functions

if it is just for testing use R/W Everything with a script.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM