PCI Scanning (continued from Enumarating USB)

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
User avatar
naiksidd_85
Member
Member
Posts: 76
Joined: Thu Jan 17, 2008 1:15 am

Re: PCI Scanning (continued from Enumarating USB)

Post 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.
:oops:
Learning a lot these days THANKS to OSdev users
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: PCI Scanning (continued from Enumarating USB)

Post 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 :wink:
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Post Reply