sata_scr_write9
Write scr register of the specified port
Usage
int sata_scr_write(struct ata_link * link, int reg, u32 val);
Arguments
link
ATA link to write SCR for
reg
SCR to write
val
value to write
Overview
Write val to SCR register reg of link. 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.
LOCKING: None if link is ap->link. Kernel thread context otherwise.
Return
0 on success, negative errno on failure.
Releases
6 releases since Debian 4.0 (Etch); the text changed 5 times.