Page 1 of 1

Where is my IDEs & SATAs?

Posted: Thu Oct 30, 2014 4:27 am
by donggas90
Now I'm working to read CD-ROM or HDD in protected mode.
but stucked at first step that finding my IDEs or SATAs in PCI.

I querried PCI buses 0~255, Devices 0~31 per bus and Functions 0~7 per device.
but didn't find any IDE or SATA.
Only found 2 devices as below.

Bus 0, Device 0 - Host PCI(Class 6, Subclass 0, Prog IF 0, Header 0(Standard))
Bus 0, Device 1 - PCI-to-PCI bridge(6, 4, 0, 1(PCI-to-PCI bridge)).

I expected that PCI-to-PCI bridge has multi-functions, but NO.
Host PCI neither.

Where is my CD-ROM and HDD? :(

I'm using VMware VM that has an ISO as CD-ROM and 1GB of virtual HDD.
They connected with IDE. I checked my VM settings.

Re: Where is my IDEs & SATAs?

Posted: Thu Oct 30, 2014 4:48 am
by Combuster
The mere fact that VMware only returns two devices is a good indication that your PCI detection code is bogus. Start with trying all 64 thousand combinations of bus/device/function (and if you still can't find your disk, post the vendor:device ids as well). You'll probably find yourself having quite a fair few duplicates that a proper reading the PCI can fix, but first I want to be sure you can do that basic test right.


I haven't touched VMware for a while, but googling for device listings does show that it has quite a few of them.

Re: Where is my IDEs & SATAs?

Posted: Thu Oct 30, 2014 4:57 am
by donggas90
Thanks, Combuster.
Combuster wrote:Start with trying all 64 thousand combinations of bus/device/function
Are VMware devices not numbered continuously? #-o
OK, I'll test it.

Re: Where is my IDEs & SATAs?

Posted: Thu Oct 30, 2014 5:09 am
by donggas90
There is. I found them.
Device ID and Vandor ID are valid.
Thanks!

Re: Where is my IDEs & SATAs?

Posted: Thu Oct 30, 2014 7:20 am
by Combuster
donggas90 wrote:Are VMware devices not numbered continuously? #-o
Why do you make such an assumption if you haven't tested it? Device numbers on real hardware are just as sparse as they are on VMware.

Re: Where is my IDEs & SATAs?

Posted: Thu Oct 30, 2014 8:17 am
by donggas90
Combuster wrote:Why do you make such an assumption if you haven't tested it?
I misunderstanded checking example code in wiki page because of just 'break' keywords. :lol:
Yup, that's right.
Primarily, it wasn't say any words about that devices are arranged continuously in PCI.
Just my misunderstanding.
You know, I'm not good at English. :lol:
Advise me again and
Thanks for your attention!