SATA in Compatibility Mode VS ATAPI CD

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
bigbob
Member
Member
Posts: 122
Joined: Tue Oct 01, 2013 2:50 am
Location: Budapest, Hungary
Contact:

SATA in Compatibility Mode VS ATAPI CD

Post by bigbob »

Hi,

On a laptop (see its lspci below) I set the SATA Controller to compatibility mode and I also set the IDE controller to native mode in order the SATA winchester to work with my ATA/PATA (or IDE) driver.
There is also an ATAPI CD-Drive in the laptop and I would like to use it (I assume it's controlled by the IDE controller).
The question is that will I be able to use the ATAPI CD-Drive normally (e.g. as a Secondary master) knowing that the IDE controller is in native mode?

lspci:
  • 00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode]
    00:14.1 IDE interface: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 IDE Controller (rev 40)
bigbob
Member
Member
Posts: 122
Joined: Tue Oct 01, 2013 2:50 am
Location: Budapest, Hungary
Contact:

Re: SATA in Compatibility Mode VS ATAPI CD

Post by bigbob »

I think I have found the answer in the "PCI IDE Specification":
"In native mode, the registers of the IDE channels are completely relocatable in IO space.
Base Address Registers in the PCI IDE Controller's Configuration Space registers are used to map the IDE registers into IO space."

So the BARs need to be set but not to those addresses that are used in compatibility mode (0x1F0- and 0x170-).
It seems that there is only one IRQ in this mode, a shared one.
Post Reply