aboutsummaryrefslogtreecommitdiff
path: root/drivers/scsi/ahci.c
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2006-04-11 22:22:29 +0900
committerJeff Garzik <jeff@garzik.org>2006-04-11 13:19:11 -0400
commitc22daff41001e9ccead87179ac0547f85447139e (patch)
treeb8faa6e19419704c19f07a9f7043ab2435f719df /drivers/scsi/ahci.c
parent643be977f9feba8c3c1e768fc06cac84596ec6f8 (diff)
[PATCH] libata: implement ata_wait_register()
As waiting for some register bits to change seems to be a common operation shared by some controllers, implement helper function ata_wait_register(). This function also takes care of register write flushing. Note that the condition is inverted, the wait is over when the masked value does NOT match @val. As we're waiting for bits to change, this test is more powerful and allows the function to be used in more places. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/scsi/ahci.c')
0 files changed, 0 insertions, 0 deletions