From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.581.1592454179741505835 for ; Wed, 17 Jun 2020 21:23:00 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: samer.el-haj-mahmoud@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9F1E631B; Wed, 17 Jun 2020 21:22:58 -0700 (PDT) Received: from localhost.localdomain (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5D5673F71F; Wed, 17 Jun 2020 21:22:58 -0700 (PDT) From: "Samer El-Haj-Mahmoud" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Leif Lindholm , Andrei Warkentin , Pete Batard Subject: [edk2-platform][PATCH v1 1/1] Platforms/RaspberryPi: Add SMBIOS Type 11 Date: Thu, 18 Jun 2020 00:22:57 -0400 Message-Id: <20200618042257.16093-1-Samer.El-Haj-Mahmoud@arm.com> X-Mailer: git-send-email 2.17.1 SMBIOS Type 11 (OEM Strings) is recommended in SBBR 1.2. Add a simlpe implementation to the RPi. Cc: Ard Biesheuvel Cc: Leif Lindholm Cc: Andrei Warkentin Cc: Pete Batard Signed-off-by: Samer El-Haj-Mahmoud --- Platform/RaspberryPi/Drivers/PlatformSmbiosDxe/PlatformSmbiosDxe.c | 27 ++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/Platform/RaspberryPi/Drivers/PlatformSmbiosDxe/PlatformSmbiosDxe.c b/Platform/RaspberryPi/Drivers/PlatformSmbiosDxe/PlatformSmbiosDxe.c index 7b86e76a1248..f336084520a9 100644 --- a/Platform/RaspberryPi/Drivers/PlatformSmbiosDxe/PlatformSmbiosDxe.c +++ b/Platform/RaspberryPi/Drivers/PlatformSmbiosDxe/PlatformSmbiosDxe.c @@ -389,6 +389,20 @@ CHAR8 *mSysSlotInfoType9Strings[] = { NULL }; + +/*********************************************************************** + SMBIOS data definition TYPE 11 OEM Strings +************************************************************************/ + +SMBIOS_TABLE_TYPE11 mOemStringsType11 = { + { EFI_SMBIOS_TYPE_OEM_STRINGS, sizeof (SMBIOS_TABLE_TYPE11), SMBIOS_HANDLE_PI_RESERVED }, + 1 // StringCount +}; +CHAR8 *mOemStringsType11Strings[] = { + "https://github/tianocore/edk2-platforms/Platform/RaspberryPi/", + NULL +}; + /*********************************************************************** SMBIOS data definition TYPE16 Physical Memory ArrayInformation ************************************************************************/ @@ -854,6 +868,17 @@ SysSlotInfoUpdateSmbiosType9 ( LogSmbiosData ((EFI_SMBIOS_TABLE_HEADER*)&mSysSlotInfoType9, mSysSlotInfoType9Strings, NULL); } +/*********************************************************************** + SMBIOS data update TYPE11 OEM Strings +************************************************************************/ +VOID +OemStringsUpdateSmbiosType11 ( + VOID + ) +{ + LogSmbiosData ((EFI_SMBIOS_TABLE_HEADER*)&mOemStringsType11, mOemStringsType11Strings, NULL); +} + /*********************************************************************** SMBIOS data update TYPE16 Physical Memory Array Information ************************************************************************/ @@ -961,6 +986,8 @@ PlatformSmbiosDriverEntryPoint ( SysSlotInfoUpdateSmbiosType9 (); + OemStringsUpdateSmbiosType11 (); + PhyMemArrayInfoUpdateSmbiosType16 (); MemDevInfoUpdateSmbiosType17 (); -- 2.17.1