PCI Device Detection (IDE Controller)

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
jenfoong
Posts: 2
Joined: Sat Oct 25, 2008 10:26 pm

PCI Device Detection (IDE Controller)

Post by jenfoong »

Hi,

I have written a pci device detection function. It is able to detect the IDE controller successfully, but the BAR0 to BAR3 values that I got are all zero. BAR4 value is 0xc001 .

Is this normal? I suppose I should get values like 0x1f0 and 0x3f0.

Regards,
Jen Foong
Attachments
screenshot.png
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 Device Detection (IDE Controller)

Post by Combuster »

Backwards compatibility ports are never listed by a PCI device (other than guessing their presence from class:subclass). Devices just listen to them and there's often little you can do about it.
"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