]> git.proxmox.com Git - mirror_edk2.git/commit
MdePkg: Move SMBIOS data into the IndustryStandard header.
authorMarvin Häuser <Marvin.Haeuser@outlook.com>
Tue, 22 Mar 2016 14:53:08 +0000 (14:53 +0000)
committerStar Zeng <star.zeng@intel.com>
Thu, 24 Mar 2016 02:30:43 +0000 (10:30 +0800)
commitbb7051eba96f87bbb6544cad9cd7390207b4dcc0
treeea3465f2839da6c105af535adf40f9a475b3b9aa
parentee60bd2b6aa473fdff6af3bfc62203ed8ca5c52a
MdePkg: Move SMBIOS data into the IndustryStandard header.

As the SMBIOS table types belong to the SMBIOS standard, they were
moved from the SMBIOS Protocol header into the SMBIOS
IndustryStandard header without the EFI_-prefix. Defines with the
EFI_-prefix have been kept in the Protocol header for
backwards-compatibility, resolving to the IndustryStandard defines.
The same has been done with the C types.

The SMBIOS table header structure had been duplicated -
SMBIOS_STRUCTURE in the IndustryStandard header and
EFI_SMBIOS_TABLE_HEADER in the Protocol file - and thus the
Protocol type was replaced with a typedef to the InudstryStandard's.
This doesn't only make it easier to maintain, but it also prevents
potential future issues as the Protocol type has been aligned, while
the standard and the IndustryStandard header declare it as
byte-packed.
This has worked well till now only because the members of the
structure do not require alignment yet.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Marvin Haeuser <Marvin.Haeuser@outlook.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
MdePkg/Include/IndustryStandard/SmBios.h
MdePkg/Include/Protocol/Smbios.h