[PATCH v2] drivers/ata: add support to Freescale 3.0Gbps SATA Controller

Alan Cox alan at lxorguk.ukuu.org.uk
Fri Oct 12 23:55:22 EST 2007


> +	cd = pp->cmdentry + tag;
> +
> +	memcpy(fis, &cd->sfis, 6 * 4);	/* should we use memcpy_from_io() */

If cd->sfis points at memory over the PCI bus (eg mmio or memory on the
controller card) then you need to use ioread/_io type functions. If
cd->sfis points into host memory where the FIS is delivered by DMA from
the card you will be fine if it was allocated with an _coherent allocator


Alan



More information about the Linuxppc-dev mailing list