Page 3 of 3
Re: atapi cdrom read problem
Posted: Tue Jun 21, 2016 11:21 am
by BenLunt
Those offsets vary by device and usually are where the extended capabilities reside. If yours says something about interrupts, it might be the MSI part of the extended capabilities. However, since they vary between devices, I cannot tell you what they are without knowing exactly what device you have.
Start with the extended capabilities pointer and enumerate these caps from there.
Re: atapi cdrom read problem
Posted: Wed Jun 22, 2016 5:19 am
by Raymond
It is a pci2isa device.I need to set offset 0x60-0x63 of pci config space in the pci2isa,such as network ,vga,ehci,uhci need the offset 0x60.
I think the bochs has became a 4096 bytes config space vm,can you tell me in isa ,how to use the offset 0x60-0x63?
Re: atapi cdrom read problem
Posted: Wed Jun 22, 2016 5:40 am
by Raymond
Anthor question,on bochs how can i config the uhci to a pci slot like below:
Code: Select all
pci: enabled=1, chipset=i440fx, slot1=pcivga, slot2=ne2k,slot3=uhci,slot4=ehci
Re: atapi cdrom read problem
Posted: Wed Jun 22, 2016 5:52 am
by Combuster
PCI has 256 bytes config space. PCI Express has 4K. ISA has none. You can't look up details of an ISA device, you have to guess where it is. In addition, ISA has rather poor DMA support, so you'll want to avoid it.
That said, I don't think this thread is the right place to suddenly start discussing USB controllers. Make a new thread and post a proper question.
Re: atapi cdrom read problem
Posted: Wed Jun 22, 2016 12:20 pm
by BenLunt
Combuster is correct, ISA has no config space as the PCI does. If the ATA device is an ISA device, use PIO always.
Keep in mind that if you enable EHCI, it will have UHCI (or OHCI) enabled by default.
Bochs does not fully support EHCI yet. The good man that is working on that has not finished it, and I have dropped the ball and not given him any help.
If you are done with the ATA subject here, let's "close" this thread and start a new one if you need help on a different subject.
Thanks,
Ben
Re: atapi cdrom read problem
Posted: Wed Jun 22, 2016 4:23 pm
by Raymond
yes,we can close this topic.how to close?I can find the button.
Re: atapi cdrom read problem
Posted: Wed Jun 22, 2016 5:33 pm
by BenLunt
I don't think there is an actual way to close it, I am fairly new to this forum myself. Maybe others can give us pointers, or can point us to a FAQ entry that states what to do when the subject is complete.
I have seen the word "[solved]" added to the topic header.
Anyway, my intentions were to mentally close it, meaning we are done with this subject, no need to post to this thread anymore.