Make sure we have enough space to add padding and final token to the nvram
authorkettenis <kettenis@openbsd.org>
Sat, 23 Oct 2021 12:48:17 +0000 (12:48 +0000)
committerkettenis <kettenis@openbsd.org>
Sat, 23 Oct 2021 12:48:17 +0000 (12:48 +0000)
commitdb31205a9fe3825962fcc94215bac8ee43eb6375
treea6e08af4c8b627e0b72f65b970ec7b675b2eb092
parentac5c5185b0a7271afcc8738854b1c1e9d30c623e
Make sure we have enough space to add padding and final token to the nvram
data.  Also add the MAC address to the nvram data when there is a
"local-mac-address" property in the device tree.  This makes bwfm(4) work
with the firmware/nvram/clm_blob files provided with MacOS on the Apple
M1 Macs.

ok patrick@
sys/dev/ic/bwfm.c
sys/dev/ic/bwfmvar.h
sys/dev/pci/if_bwfm_pci.c
sys/dev/sdmmc/if_bwfm_sdio.c