stand: Parse BIOS revision from SMBIOS
authorKornel Dulęba <kd@FreeBSD.org>
Fri, 2 Sep 2022 11:08:32 +0000 (13:08 +0200)
committerKornel Dulęba <kd@FreeBSD.org>
Fri, 2 Sep 2022 11:10:32 +0000 (13:10 +0200)
commit66c73af7ea59382ce5ca7cfb2eedb0491790276c
tree05c118cc143e1758de75c9b7fc16f5f74a35a574
parente23ad9c4ba2d2fd235fc3dc988ca422ef4e7ca3b
stand: Parse BIOS revision from SMBIOS

Add a smbios.bios.revision kenv, which contains the system BIOS revision
as defined in SMBIOS specification, section 3.3.1.
Since the revision is stored in two separate byte fields,
the smbios_setenv helper can't be used.
Read and construct the kenv manually instead.

Approved by: mw(mentor)
Sponsored by: Stormshield
Obtained from: Semihalf
Differential Revision: https://reviews.freebsd.org/D36413
stand/libsa/smbios.c