atapi cdrom read problem

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.
User avatar
BenLunt
Member
Member
Posts: 941
Joined: Sat Nov 22, 2014 6:33 pm
Location: USA
Contact:

Re: atapi cdrom read problem

Post 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.
Raymond
Member
Member
Posts: 68
Joined: Thu Jun 09, 2016 4:39 am
Libera.chat IRC: 573410792

Re: atapi cdrom read problem

Post 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?
Raymond
Member
Member
Posts: 68
Joined: Thu Jun 09, 2016 4:39 am
Libera.chat IRC: 573410792

Re: atapi cdrom read problem

Post 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 
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: atapi cdrom read problem

Post 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.
"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 ]
User avatar
BenLunt
Member
Member
Posts: 941
Joined: Sat Nov 22, 2014 6:33 pm
Location: USA
Contact:

Re: atapi cdrom read problem

Post 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
Raymond
Member
Member
Posts: 68
Joined: Thu Jun 09, 2016 4:39 am
Libera.chat IRC: 573410792

Re: atapi cdrom read problem

Post by Raymond »

yes,we can close this topic.how to close?I can find the button.
User avatar
BenLunt
Member
Member
Posts: 941
Joined: Sat Nov 22, 2014 6:33 pm
Location: USA
Contact:

Re: atapi cdrom read problem

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