Enumerating PCI, can't find SATA or IDE controllers

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
aaronhance
Posts: 4
Joined: Mon Sep 21, 2015 2:37 am

Enumerating PCI, can't find SATA or IDE controllers

Post by aaronhance »

I've lost count of how many hours I've spent on this issue. I'm enumerating the PCI bus, I get valid devices, but no SATA or IDE controllers. I'm using virtualbox and have controllers and drives attached. If there's any relevant information that I havn't included please let me know.

Thanks,
Aaron

PCI driver
https://gist.github.com/aaronhance/2ce2 ... ddfbf4aff9

Image
MollenOS
Member
Member
Posts: 202
Joined: Wed Oct 26, 2011 12:00 pm

Re: Enumerating PCI, can't find SATA or IDE controllers

Post by MollenOS »

ISA devices don't always appear on the PCI bus. You can sometimes detect if the PCI bus has a ISA bus bridge and then enumerate the ISA bus bridge, OR you can use ACPI to find which ISA devices are present in the system. For the IDE controller maybe just manually probe for it if you only need to enumerate the IDE controller.
mallard
Member
Member
Posts: 280
Joined: Tue May 13, 2014 3:02 am
Location: Private, UK

Re: Enumerating PCI, can't find SATA or IDE controllers

Post by mallard »

The second device on your list appears to be an Intel (8086) 82371 (7000), which is an IDE controller (among other things). You appear only to be enumerating the first function of each device.
Image
MollenOS
Member
Member
Posts: 202
Joined: Wed Oct 26, 2011 12:00 pm

Re: Enumerating PCI, can't find SATA or IDE controllers

Post by MollenOS »

mallard wrote:The second device on your list appears to be an Intel (8086) 82371 (7000), which is an IDE controller (among other things). You appear only to be enumerating the first function of each device.
Good point :wink:
aaronhance
Posts: 4
Joined: Mon Sep 21, 2015 2:37 am

Re: Enumerating PCI, can't find SATA or IDE controllers

Post by aaronhance »

mallard wrote:The second device on your list appears to be an Intel (8086) 82371 (7000), which is an IDE controller (among other things). You appear only to be enumerating the first function of each device.
Thanks for the help! :)

Image
Post Reply