1 /* SPDX-License-Identifier: BSD-3-Clause */
6 #include "vpd_tables.h"
8 #define VPD_KEY_SYSTEM_SERIAL "serial_number"
9 #define VPD_KEY_MAINBOARD_SERIAL "mlb_serial_number"
10 #define VPD_SERIAL_LEN 64
12 const char *smbios_system_serial_number(void)
14 static char serial
[VPD_SERIAL_LEN
];
15 if (vpd_gets(VPD_KEY_SYSTEM_SERIAL
, serial
, VPD_SERIAL_LEN
, VPD_RO
))
20 const char *smbios_mainboard_serial_number(void)
22 static char serial
[VPD_SERIAL_LEN
];
23 if (vpd_gets(VPD_KEY_MAINBOARD_SERIAL
, serial
, VPD_SERIAL_LEN
, VPD_RO
))