lazybios 3.0.0
Lightweight SMBIOS/DMI parsing library
Loading...
Searching...
No Matches
dell_type218.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 dell_type218.h
21 * @brief Public API for Dell Token Interface (Dell OEM SMBIOS Type 218).
22 * @author LazySeldi
23 */
24
25#ifndef LAZYBIOS_OEM_DELL_TYPE218_H
26#define LAZYBIOS_OEM_DELL_TYPE218_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
39
40/** @brief Availability metadata for DELL OEM SMBIOS Type 218 fields. */
47
48typedef struct {
49 uint16_t token_id;
50 uint16_t location;
51 uint16_t value;
53
54/**
55 * @brief Parsed Dell Token Interface information.
56 * @ingroup api_dell_type218
57 */
68
69/**
70 * @brief A parsed set of Dell OEM Type 218 structures.
71 * @ingroup api_dell_type218
72 */
77
78/** @addtogroup api_dell_type218
79 * @{
80 */
81
82/**
83 * @brief Parses all Dell OEM SMBIOS Type 218 structures.
84 * @param DMIData Raw DMI table container to parse.
85 * @return Newly allocated set, empty when the table holds no such structure,
86 * or NULL when the arguments are unusable or an allocation fails.
87 */
89
90/**
91 * @brief Releases a parsed set of Dell OEM Type 218 structures.
92 * @param DellType218 Set to release; may be NULL.
93 */
95
96/** @} */
97
98#ifdef __cplusplus
99}
100#endif
101
102#endif
LAZYBIOS_WARN_UNUSED lazybiosOemDellType218Array_t * lazybiosGetOemDellType218(const lazybiosDMI_t *DMIData)
Parses all Dell OEM SMBIOS Type 218 structures.
void lazybiosFreeOemDellType218(lazybiosOemDellType218Array_t *DellType218)
Releases a parsed set of Dell OEM Type 218 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 Dell OEM Type 218 structures.
lazybiosOemDellType218_t * entries
Availability metadata for DELL OEM SMBIOS Type 218 fields.
lazybiosFieldStatus_t supported_command_classes_bitmap
lazybiosFieldStatus_t command_io_code
lazybiosFieldStatus_t command_io_address
Parsed Dell Token Interface information.
lazybiosOemDellType218Token_t * tokens
uint32_t supported_command_classes_bitmap
lazybiosOemDellType218FieldStatus_t field_status