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.
PCI Scanning (continued from Enumarating USB)
- naiksidd_85
- Member
- Posts: 76
- Joined: Thu Jan 17, 2008 1:15 am
Re: PCI Scanning (continued from Enumarating USB)
Learning a lot these days THANKS to OSdev users
- Combuster
- 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)
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
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