1
0
Fork 0
qemu/roms/skiboot/hdata/vpd-common.c
Daniel Baumann ea34ddeea6
Adding upstream version 1:10.0.2+ds.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-22 14:27:05 +02:00

25 lines
684 B
C

// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
/* Copyright 2013-2017 IBM Corp. */
#include <skiboot.h>
#include <vpd.h>
#include <string.h>
#include <device.h>
static const struct machine_info machine_table[] = {
{"8247-21L", "IBM Power System S812L"},
{"8247-22L", "IBM Power System S822L"},
{"8247-24L", "IBM Power System S824L"},
{"8286-41A", "IBM Power System S814"},
{"8286-22A", "IBM Power System S822"},
{"8286-42A", "IBM Power System S824"},
};
const struct machine_info *machine_info_lookup(const char *mtm)
{
int i;
for(i = 0; i < ARRAY_SIZE(machine_table); i++)
if (!strcmp(machine_table[i].mtm, mtm))
return &machine_table[i];
return NULL;
}