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.
Where is my IDEs & SATAs?
Where is my IDEs & SATAs?
Last edited by donggas90 on Thu Oct 30, 2014 6:38 am, edited 1 time in total.
- Combuster
- 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?
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.
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?
Thanks, Combuster.
OK, I'll test it.
Are VMware devices not numbered continuously?Combuster wrote:Start with trying all 64 thousand combinations of bus/device/function
OK, I'll test it.
Re: Where is my IDEs & SATAs?
There is. I found them.
Device ID and Vandor ID are valid.
Thanks!
Device ID and Vandor ID are valid.
Thanks!
- Combuster
- 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?
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.donggas90 wrote:Are VMware devices not numbered continuously?
Re: Where is my IDEs & SATAs?
I misunderstanded checking example code in wiki page because of just 'break' keywords.Combuster wrote:Why do you make such an assumption if you haven't tested it?
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.
Advise me again and
Thanks for your attention!