1. NAME

sata_scr_read - read SCR register of the specified port

2. SYNOPSIS

int sata_scr_read(struct ata_link *  link , int  reg , u32 *  val );

3. ARGUMENTS

link
    ATA link to read SCR for

reg
    SCR to read

val
    Place to store read value

4. DESCRIPTION

Read SCR register reg of link into *val. This function is guaranteed to succeed if link is ap->link, the cable type of the port is SATA and the port implements ->scr_read.

5. LOCKING

None if link is ap->link. Kernel thread context otherwise.

6. RETURNS

0 on success, negative errno on failure.

7. AUTHOR

Jeff Garzik
    Author.

8. COPYRIGHT