Rechercher une page de manuel
ata_wait_register
Langue: en
Version: June 2009 (debian - 07/07/09)
Section: 9 (Appels noyau Linux)
NAME
ata_wait_register - wait until register value changesSYNOPSIS
- u32 ata_wait_register(void __iomem * reg, u32 mask, u32 val, unsigned long interval_msec, unsigned long timeout_msec);
ARGUMENTS
reg
- IO-mapped register
mask
- Mask to apply to read register value
val
- Wait condition
interval_msec
- polling interval in milliseconds
timeout_msec
- timeout in milliseconds
DESCRIPTION
Waiting for some bits of register to change is a common operation for ATA controllers. This function reads 32bit LE IO-mapped register reg and tests for the following condition.
(*reg & mask) != val
If the condition is met, it returns; otherwise, the process is repeated after interval_msec until timeout.
LOCKING
Kernel thread context (may sleep)
RETURNS
The final register value.
AUTHOR
Jeff Garzik
- Author.
COPYRIGHT
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre