How to calculate the Base Address in the PCI header

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.
Post Reply
Jim
Member
Member
Posts: 27
Joined: Sun Nov 05, 2006 3:46 am

How to calculate the Base Address in the PCI header

Post by Jim »

How to calculate the BASE address???

:roll: :roll: :roll:
This is an example of a base address that I calculated:
I/O Address =0xD1D0 Length=0xE10
MEMORY =0xFEA0FEA0 (32-bit) Length=0xF0010
I/O Address =0xF000 Length=0x10
:roll: :roll: :roll:
But when I use SoftIce (or Craig Hart's PCI+AGP bus stiffer) to get information about the PCI it tells me like this:
I/O Port Range Passed to Secondary Bus : 0000D000h to 0000DFFFh (32-bit)
Memory Range Passed to Secondary Bus : FEA00000h to FEAFFFFFh
:roll: :roll: :roll:
So it seems that I am not calculating something right. Can any one help how to calculate it?
(It seems that the results of my calculation are very close to the results of SoftIce.
flash
Member
Member
Posts: 29
Joined: Sun Feb 04, 2007 6:33 am

Post by flash »

it seems that you didn't get the correct data from the config space.
Post Reply