The text 9f5a89fc1cbe, as Debian 4.0 (Etch) shipped it.
wait until register value changes
ata_wait_register(9) on Linux now