diff options
Diffstat (limited to 'roms/skiboot/hdata/vpd-common.c')
-rw-r--r-- | roms/skiboot/hdata/vpd-common.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/roms/skiboot/hdata/vpd-common.c b/roms/skiboot/hdata/vpd-common.c new file mode 100644 index 000000000..c91fccaa2 --- /dev/null +++ b/roms/skiboot/hdata/vpd-common.c @@ -0,0 +1,25 @@ +// 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; +} |