nvidia-oem: Add USBVendorIdProductId command
This command is used by BIOS before creating SMBIOS record
type 42. BIOS gets USBDescription information from BMC.
Note:
The implementation is for USBVendorIdProductId. The subsequent
patches will be implemented for USBDescription.
Design Document for RHI:
[1] https://gerrit.openbmc.org/c/openbmc/docs/+/79327
Redfish Host Interface specification:
[2] https://www.dmtf.org/sites/default/files/standards/documents/DSP0270_1.3.0.pdf
Tested:
Tested on gb200nvl-obmc platform
root@gb200nvl-obmc:~# ipmitool raw 0x3c 0x30 0x01
25 05
root@gb200nvl-obmc:~# ipmitool raw 0x3c 0x30 0x02
a2 a4
root@gb200nvl-obmc:~#
Change-Id: I6a325ca3410e2ac2ab0b8c3776944d31f3cac582
Signed-off-by: Prithvi Pai <ppai@nvidia.com>
diff --git a/oem/nvidia/oemcommands.hpp b/oem/nvidia/oemcommands.hpp
index 2aa67ee..d305973 100644
--- a/oem/nvidia/oemcommands.hpp
+++ b/oem/nvidia/oemcommands.hpp
@@ -1,3 +1,9 @@
+/*
+ * SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION &
+ * AFFILIATES. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
#pragma once
#include <cstdint>
@@ -7,6 +13,11 @@
using Group = uint8_t;
constexpr Group groupNvidia = 0x3C;
+namespace bootstrap_credentials_oem
+{
+constexpr auto cmdGetUsbVendorIdProductId = 0x30;
+} // namespace bootstrap_credentials_oem
+
namespace bios_password
{
constexpr auto cmdSetBiosPassword = 0x36;