Add functions to wait for bit changes in port registers.
Add functions to wait for bit changes in port registers.

orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars