PCI & Memory Detection

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

PCI & Memory Detection

Post by Jim »

How do I know from the PCI.BaseMemory if it is an I/O address or a Memory base address??? :?:
:wink: :wink: :wink:
Is it right to say that
IF PCI.BaseMemory[x]>0xFFFF
it is a Memory Base address
ELSE
It is an I/O address

And how I can find out were the memory location ends?:?:

BTW: Is there a way to get free PCI specification???:?:
xsix
Member
Member
Posts: 59
Joined: Tue Oct 24, 2006 10:52 am

Post by xsix »

to detect if it is MEMORY location or I/O space you need to check afaik the last 2 bits of address. There is a good PCI document on the internet, i've one
User avatar
ces_mohab
Member
Member
Posts: 77
Joined: Wed Oct 18, 2006 3:08 am

Post by ces_mohab »

Recently i started some PCI work. i couldn't find a free PCI 3.0 specifications.
but you can find 2.1 or 2.2.
http://alpha1.dyns.net/files/PCI/pci21.pdf
Also you may need to know some header formats as BRIDGE and CARDBUS headers.
Also this link is a treasure.
http://members.datafast.net.au/dft0802/downloads.htm

:roll:
To write an OS you need 2 minds one for coding and other for debugging.
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post by Brynet-Inc »

http://www.pcisig.com/specifications/conventional/

This seems to contain some documentation on PCI 3.0.. Hope it's useful.
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
Post Reply