/* SATA interface between low level driver and command layer  */
static int sata_read(fsl_sata_t *sata, ulong blknr, lbaint_t blkcnt, void *buffer)
/* SATA interface between low level driver and command layer  */
static int sata_read(fsl_sata_t *sata, ulong blknr, lbaint_t blkcnt, void *buffer)
{
	u32 rc;
	if (sata->lba48)
		rc = ata_low_level_rw_lba48(sata, blknr, blkcnt, buffer,
					    READ_CMD);
	else
		rc = ata_low_level_rw_lba28(sata, blknr, blkcnt, buffer,
					    READ_CMD);
	return rc;
}