Refactor bwfm(4) firmware loading. The PCIe backend will need to be able
authorpatrick <patrick@openbsd.org>
Fri, 26 Feb 2021 00:07:41 +0000 (00:07 +0000)
committerpatrick <patrick@openbsd.org>
Fri, 26 Feb 2021 00:07:41 +0000 (00:07 +0000)
commit94e4747cf8507bfa25f5391c2d82bc52c1f571c7
tree60d0a3b5bad4a3006e45a13af085abfcd4f525aa
parent9e2c067e34c918f4db0502c464b437d11e7498d6
Refactor bwfm(4) firmware loading.  The PCIe backend will need to be able
to load the CLM blob like the SDIO backend already does.  Additionally it
is also helpful for the PCIe backend to try a file named after the device
tree compatible.  Thus refactor the SDIO code and make it available for
both SDIO and PCIe.
sys/dev/ic/bwfm.c
sys/dev/ic/bwfmvar.h
sys/dev/pci/if_bwfm_pci.c
sys/dev/sdmmc/if_bwfm_sdio.c