diff options
| author | Jörg Frings-Fürst <debian@jff.email> | 2026-03-10 09:31:17 +0100 |
|---|---|---|
| committer | Jörg Frings-Fürst <debian@jff.email> | 2026-03-10 09:31:17 +0100 |
| commit | 22f77b46ab555f57523990094a3e40a55f2c492a (patch) | |
| tree | 0b2dad175ecf9514c5c9d8fb9473010c2337a3b3 /dmidecode.h | |
| parent | c9aac994d65f7bcc3659e3219d6729a24c803fcf (diff) | |
New upstream version 3.7upstream/3.7upstream
Diffstat (limited to 'dmidecode.h')
| -rw-r--r-- | dmidecode.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/dmidecode.h b/dmidecode.h index e03c957..40f8a62 100644 --- a/dmidecode.h +++ b/dmidecode.h @@ -1,7 +1,7 @@ /* * This file is part of the dmidecode project. * - * Copyright (C) 2005-2023 Jean Delvare <jdelvare@suse.de> + * Copyright (C) 2005-2025 Jean Delvare <jdelvare@suse.de> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -23,6 +23,8 @@ #include "types.h" +#define out_of_spec "<OUT OF SPEC>" + struct dmi_header { u8 type; @@ -47,8 +49,14 @@ extern enum cpuid_type cpuid_type; int is_printable(const u8 *data, int len); const char *dmi_string(const struct dmi_header *dm, u8 s); -void dmi_print_memory_size(const char *addr, u64 code, int shift); +void dmi_print_memory_size(void (*print_cb)(const char *name, const char *format, ...), + const char *attr, u64 code, int shift); +void dmi_print_storage_size(const char *attr, u64 code, unsigned int shift); void dmi_print_cpuid(void (*print_cb)(const char *name, const char *format, ...), const char *label, enum cpuid_type sig, const u8 *p); +void dmi_memory_manufacturer_id(const char *attr, u16 code); +void dmi_memory_product_id(const char *attr, u16 code); +void dmi_system_uuid(void (*print_cb)(const char *name, const char *format, ...), + const char *attr, const u8 *p, u16 ver); #endif |
