/* SATA interface between low level driver and command layer  */
ulong sata_read(int dev, u32 blknr, u32 blkcnt, void *buffer)
/* SATA interface between low level driver and command layer  */
ulong sata_read(int dev, u32 blknr, u32 blkcnt, void *buffer)
{
	u32 rc;
	if (sata_dev_desc[dev].lba48)
		rc = ata_low_level_rw_lba48(dev, blknr, blkcnt, buffer, READ_CMD);
	else
		rc = ata_low_level_rw_lba28(dev, blknr, blkcnt, buffer, READ_CMD);
	return rc;
}