- - I can from the PCI configuration space by writing address of register I want to read to 0xCF8, and reading it from 0xCF8. On wiki page I found that I can write some configuration registers, but there's nothing about how what's the way to do it. Is it possible then? How can I do it?
- Let's say I have graphic card connected to my computer via PCI. If I read BARs, can I get the memory or IO port for writing video memory? Or there's some special way and BARs are there only for some configurations?
[SOLVED] Questions on PCI
[SOLVED] Questions on PCI
Hi all. I have few questions on PCI. The first one is practical:
Last edited by HugeCode on Tue Apr 16, 2013 9:49 am, edited 1 time in total.
Re: Questions on PCI
1. outl [register index] to address registerHugeCode wrote:Hi all. I have few questions on PCI. The first one is practical:
- - I can from the PCI configuration space by writing address of register I want to read to 0xCF8, and reading it from 0xCF8. On wiki page I found that I can write some configuration registers, but there's nothing about how what's the way to do it. Is it possible then? How can I do it?
2. in/out [data register]
In theory every graphic card may be different, and you should check the device identity from configuration and don't touch any device you don't know about. Next, check the device's manual for supported interface(s), which may involve multiple BARs, and there are types of BAR to tell about io port number, address, and IRQ.HugeCode wrote:- Let's say I have graphic card connected to my computer via PCI. If I read BARs, can I get the memory or IO port for writing video memory? Or there's some special way and BARs are there only for some configurations?[/list]
Please help.
Re: Questions on PCI
Thanks alot....