/* RETURNS: 1 if SCRs are accessible, 0 otherwise.  */
int sata_scr_valid(struct ata_link *link)
/* RETURNS: 1 if SCRs are accessible, 0 otherwise.  */
int sata_scr_valid(struct ata_link *link)
{
	struct ata_port *ap = link->ap;
	return (ap->flags & ATA_FLAG_SATA) && ap->ops->scr_read;
}