lazybios 3.0.0
Lightweight SMBIOS/DMI parsing library
Loading...
Searching...
No Matches
type43.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 type43.h
21 * @brief Public API for SMBIOS Type 43 TPM Device.
22 * @author LazySeldi
23 */
24
25#ifndef LAZYBIOS_TYPE43_H
26#define LAZYBIOS_TYPE43_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 43 fields. */
49
50/**
51 * @brief Decoded forms of the Type 43 encoded fields.
52 */
57
58/**
59 * @brief Parsed SMBIOS Type 43 TPM Device information.
60 * @ingroup api_type43
61 */
76
77/**
78 * @brief A parsed set of SMBIOS Type 43 structures.
79 * @ingroup api_type43
80 */
85
86/** @addtogroup api_type43
87 * @{
88 */
89
90/**
91 * @brief Parses all SMBIOS Type 43 structures.
92 * @param DMIData Raw DMI table container to parse.
93 * @return Newly allocated set, empty when the table holds no Type 43 structure,
94 * or NULL when the arguments are unusable or an allocation fails.
95 */
97
98/**
99 * @brief Releases a parsed set of SMBIOS Type 43 structures.
100 * @param Type43 Set to release; may be NULL.
101 */
103
104/** @} */
105
106#ifdef __cplusplus
107}
108#endif
109
110#endif
void lazybiosFreeType43(lazybiosType43Array_t *Type43)
Releases a parsed set of SMBIOS Type 43 structures.
LAZYBIOS_WARN_UNUSED lazybiosType43Array_t * lazybiosGetType43(const lazybiosDMI_t *DMIData)
Parses all SMBIOS Type 43 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 43 structures.
Definition type43.h:81
lazybiosType43_t * entries
Definition type43.h:82
Decoded forms of the Type 43 encoded fields.
Definition type43.h:53
char * major_spec_version
Definition type43.h:54
Availability metadata for SMBIOS Type 43 fields.
Definition type43.h:39
lazybiosFieldStatus_t description
Definition type43.h:45
lazybiosFieldStatus_t major_spec_version
Definition type43.h:41
lazybiosFieldStatus_t firmware_version_2
Definition type43.h:44
lazybiosFieldStatus_t oem_defined
Definition type43.h:47
lazybiosFieldStatus_t vendor_id
Definition type43.h:40
lazybiosFieldStatus_t characteristics
Definition type43.h:46
lazybiosFieldStatus_t minor_spec_version
Definition type43.h:42
lazybiosFieldStatus_t firmware_version_1
Definition type43.h:43
Parsed SMBIOS Type 43 TPM Device information.
Definition type43.h:62
uint32_t firmware_version_1
Definition type43.h:68
const char * description
Definition type43.h:70
char vendor_id[5]
Definition type43.h:65
uint16_t handle
Definition type43.h:63
lazybiosType43FieldStatus_t field_status
Definition type43.h:74
uint64_t characteristics
Definition type43.h:71
uint8_t major_spec_version
Definition type43.h:66
uint8_t minor_spec_version
Definition type43.h:67
uint32_t oem_defined
Definition type43.h:72
lazybiosType43Decoded_t decoded
Definition type43.h:73
uint8_t length
Definition type43.h:64
uint32_t firmware_version_2
Definition type43.h:69