Query: ata_wait_register
OS: suse
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
ATA_WAIT_REGISTER(9) libata Library ATA_WAIT_REGISTER(9)NAMEata_wait_register - wait until register value changesSYNOPSISu32 ata_wait_register(void __iomem * reg, u32 mask, u32 val, unsigned long interval, unsigned long timeout);ARGUMENTSreg IO-mapped register mask Mask to apply to read register value val Wait condition interval polling interval in milliseconds timeout timeout in millisecondsDESCRIPTIONWaiting 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.LOCKINGKernel thread context (may sleep)RETURNSThe final register value.AUTHORJeff Garzik Author.COPYRIGHTKernel Hackers Manual 2.6. July 2010 ATA_WAIT_REGISTER(9)