On Thu, 25 Jun 2009 10:38:34 +0200 Andrei Martynov <andrei.martynov@xxxxxx> wrote: > Hi Alan, > > Thursday, June 25, 2009, 10:23:24 AM, you wrote: > > >> I'm porting Sigma IDE driver for EM85XX chipset from 2.4.17 to 2.6 > > > Are you trying to port it to the legacy IDE code in 2.6 or to libata ? > > I'm trying to port it to libata. My PATA driver already supports EM8511 > chipset but I constantly get errors on EM8500 chipset. Assuming you are using the standard qc_issue (ie you've not overridden it) then: bmdma_setup is called at the start of the DMA command bmdma_start is called to begin a DMA transfer bmdma_stop is called to end one For ATA you get bmdma_setup bmdma_start DMA bmdma_stop for ATAPI bmdma_setup PIO CDB bmdma_start bmdma_stop Also related to this is check_atapi_dma which is passed a potential ATAPI command and you can return zero for OK for DMA or an error to make the kernel switch that command to PIO. -- To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html