do not blindly configure everything to sit on function 0. jmicron tell me that some vendors will ship their chip with two functions enabled, so now the code will only configure the functionality that is enabled on the current function. two function setups will now work as the oem intended.
do not blindly configure everything to sit on function 0. jmicron tell me
that some vendors will ship their chip with two functions enabled, so now
the code will only configure the functionality that is enabled on the
current function. two function setups will now work as the oem intended.

requested by kettenis@

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