Where is my IDEs & SATAs?

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
donggas90
Member
Member
Posts: 38
Joined: Fri Oct 17, 2014 12:07 pm

Where is my IDEs & SATAs?

Post 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.
Last edited by donggas90 on Thu Oct 30, 2014 6:38 am, edited 1 time in total.
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: Where is my IDEs & SATAs?

Post 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.
"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 ]
donggas90
Member
Member
Posts: 38
Joined: Fri Oct 17, 2014 12:07 pm

Re: Where is my IDEs & SATAs?

Post 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.
donggas90
Member
Member
Posts: 38
Joined: Fri Oct 17, 2014 12:07 pm

Re: Where is my IDEs & SATAs?

Post by donggas90 »

There is. I found them.
Device ID and Vandor ID are valid.
Thanks!
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: Where is my IDEs & SATAs?

Post 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.
"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 ]
donggas90
Member
Member
Posts: 38
Joined: Fri Oct 17, 2014 12:07 pm

Re: Where is my IDEs & SATAs?

Post 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!
Post Reply