Add some defines and remove some of the magic numbers from the code.
Add some defines and remove some of the magic numbers from the code.

From DragonFly

ok jsg@

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