lazybios 3.0.0
Lightweight SMBIOS/DMI parsing library
Loading...
Searching...
No Matches
type5.h
Go to the documentation of this file.
1/*
2 * SPDX-License-Identifier: LGPL-2.1-or-later
3 *
4 * This file is part of lazybios.
5 *
6 * lazybios is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation, either version 2.1 of the License, or
9 * (at your option) any later version.
10 *
11 * lazybios is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with lazybios. If not, see <https://www.gnu.org/licenses/>.
18 */
19/**
20 * @file type5.h
21 * @brief Public API for obsolete SMBIOS Type 5 Memory Controller Information.
22 * @author LazySeldi
23 */
24
25#ifndef LAZYBIOS_TYPE5_H
26#define LAZYBIOS_TYPE5_H
27
28#ifndef LAZYBIOS_SHARED_API_H
29#define LAZYBIOS_TYPE_HEADER_ONLY
30#include "lazybios/lazybios.h"
31#undef LAZYBIOS_TYPE_HEADER_ONLY
32#endif
33
34#ifdef __cplusplus
35extern "C" {
36#endif
37
38/** @brief Availability metadata for SMBIOS Type 5 fields. */
52
53/**
54 * @brief Decoded forms of the Type 5 encoded fields.
55 *
56 * Each member holds the decoded form of the raw field it is named for.
57 * Consult the matching `field_status` member before using one.
58 */
69
70/**
71 * @brief Parsed obsolete SMBIOS Type 5 Memory Controller Information.
72 * @ingroup api_type5
73 */
91
92/**
93 * @brief A parsed set of SMBIOS Type 5 structures.
94 * @ingroup api_type5
95 */
100
101/** @addtogroup api_type5
102 * @{
103 */
104
105/**
106 * @brief Parses all SMBIOS Type 5 structures.
107 * @param DMIData Raw DMI table container to parse.
108 * @return Newly allocated set, empty when the table holds no Type 5 structure,
109 * or NULL when the arguments are unusable or an allocation fails.
110 */
112
113/**
114 * @brief Releases a parsed set of SMBIOS Type 5 structures.
115 * @param Type5 Set to release; may be NULL.
116 */
118
119/** @} */
120
121#ifdef __cplusplus
122}
123#endif
124
125#endif
void lazybiosFreeType5(lazybiosType5Array_t *Type5)
Releases a parsed set of SMBIOS Type 5 structures.
LAZYBIOS_WARN_UNUSED lazybiosType5Array_t * lazybiosGetType5(const lazybiosDMI_t *DMIData)
Parses all SMBIOS Type 5 structures.
Public API for lazybios. Include this and nothing else.
uint8_t lazybiosFieldStatus_t
Storage for one field's availability.
Definition lazybios.h:115
#define LAZYBIOS_WARN_UNUSED
Expands to nothing on compilers without a return-value check.
Definition lazybios.h:150
Owns raw DMI table data and its parsed SMBIOS entry point.
Definition lazybios.h:218
A parsed set of SMBIOS Type 5 structures.
Definition type5.h:96
lazybiosType5_t * entries
Definition type5.h:97
Decoded forms of the Type 5 encoded fields.
Definition type5.h:59
char * memory_module_voltage
Definition type5.h:67
const char * current_interleave
Definition type5.h:60
char * enabled_error_correcting_capabilities
Definition type5.h:64
char * error_correcting_capability
Definition type5.h:63
const char * supported_interleave
Definition type5.h:62
char * supported_memory_types
Definition type5.h:66
char * supported_speeds
Definition type5.h:65
const char * error_detecting_method
Definition type5.h:61
Availability metadata for SMBIOS Type 5 fields.
Definition type5.h:39
lazybiosFieldStatus_t memory_module_voltage
Definition type5.h:47
lazybiosFieldStatus_t supported_interleave
Definition type5.h:42
lazybiosFieldStatus_t current_interleave
Definition type5.h:43
lazybiosFieldStatus_t maximum_memory_module_size
Definition type5.h:44
lazybiosFieldStatus_t supported_speeds
Definition type5.h:45
lazybiosFieldStatus_t enabled_error_correcting_capabilities
Definition type5.h:50
lazybiosFieldStatus_t number_of_associated_memory_slots
Definition type5.h:48
lazybiosFieldStatus_t memory_module_configuration_handles
Definition type5.h:49
lazybiosFieldStatus_t error_correcting_capability
Definition type5.h:41
lazybiosFieldStatus_t error_detecting_method
Definition type5.h:40
lazybiosFieldStatus_t supported_memory_types
Definition type5.h:46
Parsed obsolete SMBIOS Type 5 Memory Controller Information.
Definition type5.h:74
uint8_t memory_module_voltage
Definition type5.h:84
lazybiosType5FieldStatus_t field_status
Definition type5.h:89
lazybiosType5Decoded_t decoded
Definition type5.h:88
uint8_t error_correcting_capability
Definition type5.h:78
uint16_t * memory_module_configuration_handles
Definition type5.h:86
uint8_t maximum_memory_module_size
Definition type5.h:81
uint8_t current_interleave
Definition type5.h:80
uint16_t handle
Definition type5.h:75
uint8_t supported_interleave
Definition type5.h:79
uint8_t error_detecting_method
Definition type5.h:77
uint16_t supported_memory_types
Definition type5.h:83
uint8_t number_of_associated_memory_slots
Definition type5.h:85
uint8_t length
Definition type5.h:76
uint8_t enabled_error_correcting_capabilities
Definition type5.h:87
uint16_t supported_speeds
Definition type5.h:82