This program will show you the detail information about the PCI card, such as Bus number, Device number, Function number, all the registers, base address and interrupt information.
I'd like to explain this program for you. Most of all, the 'ven_id' (Vendor ID) and 'dev_id' (Device ID) must be aware first. Both of them were fixed and can be read by first 4 bytes of the register. For example "175013fe". The '1750' means the 'ven_id', and the '13fe' means the 'dev_id'. If one of them mismatch, then the program can't execute any more.
Then, this program will show Bus number, Device number, Function number, all the registers, base address and interrupt information. In my testing environment, I got following information.
Bus No. = 0
Device No. = 20
Function No. = 0
base_addr = 6900
Interrupt line No. = 10
Finally, this program will keep reading the Digital Input port until press any key.
Thank you for your feedback
We will look over your massage and get back to you soon if you need further assistance!