Page 2 of 2
Re: PCI Scanning (continued from Enumarating USB)
Posted: Sun Jul 20, 2008 11:05 pm
by naiksidd_85
Came back after a long time and yes the answere did work for me too.
but am not sure how exactly do I read the Bar.
Re: PCI Scanning (continued from Enumarating USB)
Posted: Mon Jul 21, 2008 9:07 am
by Combuster
the BAR contains the base address in physical memory where that device expects some data.
To get more info about it, write all ones, then read it back. Some bits at the bottom tell things about the kind of range, but for the most part, the highest unsettable bit indicates the BAR's size (the settable bits above it will be matched to the address, and if they match, the device will do something with the data and the rest of the address)
Don't forget to restore the original value