/* SATA interface between low level driver and command layer  */
static ulong sata_read_common(struct ahci_uc_priv *uc_priv, struct blk_device *desc, ulong blknr, lbaint_t blkcnt, void *buffer)
/* SATA interface between low level driver and command layer  */
static ulong sata_read_common(struct ahci_uc_priv *uc_priv, struct blk_device *desc, ulong blknr, lbaint_t blkcnt, void *buffer)
{
    u32 rc;
    if (desc->lba48)
        rc = ata_low_level_rw_lba48(uc_priv, blknr, blkcnt, buffer,
                                    READ_CMD);
    else
        rc = ata_low_level_rw_lba28(uc_priv, blknr, blkcnt, buffer,
                                    READ_CMD);
    return rc;
}