/* Change Logs: Date Author Notes  lizhirui porting to ls2k  */
u64 ata_id_n_sectors(u16 *id)
/* Change Logs: Date Author Notes  lizhirui porting to ls2k  */
u64 ata_id_n_sectors(u16 *id)
{
    if (ata_id_has_lba(id)) {
        if (ata_id_has_lba48(id))
            return ata_id_u64(id, ATA_ID_LBA48_SECTORS);
        else
            return ata_id_u32(id, ATA_ID_LBA_SECTORS);
    } else {
        return 0;
    }
}