bios_table.h (03aa3d6cdd60790700294feca54ced81fc3c2ff9) | bios_table.h (83a208af9c06886f390975b8b9c16026252ebcaa) |
---|---|
1/* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */ 2#ifndef LIBPLDM_BIOS_TABLE_H 3#define LIBPLDM_BIOS_TABLE_H 4 5#ifdef __cplusplus 6extern "C" { 7#endif 8 --- 191 unchanged lines hidden (view full) --- 200 */ 201const struct pldm_bios_attr_table_entry * 202pldm_bios_table_attr_find_by_string_handle(const void *table, size_t length, 203 uint16_t handle); 204 205/** @struct pldm_bios_table_attr_entry_enum_info 206 * 207 * An auxiliary structure for passing parameters to @ref | 1/* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */ 2#ifndef LIBPLDM_BIOS_TABLE_H 3#define LIBPLDM_BIOS_TABLE_H 4 5#ifdef __cplusplus 6extern "C" { 7#endif 8 --- 191 unchanged lines hidden (view full) --- 200 */ 201const struct pldm_bios_attr_table_entry * 202pldm_bios_table_attr_find_by_string_handle(const void *table, size_t length, 203 uint16_t handle); 204 205/** @struct pldm_bios_table_attr_entry_enum_info 206 * 207 * An auxiliary structure for passing parameters to @ref |
208 * pldm_bios_table_attr_entry_enum_encode_check | 208 * pldm_bios_table_attr_entry_enum_encode |
209 * 210 */ 211struct pldm_bios_table_attr_entry_enum_info { 212 uint16_t name_handle; //!< attribute name handle 213 bool read_only; //!< indicate whether the attribute is read-only 214 uint8_t pv_num; //!< number of possible values 215 const uint16_t *pv_handle; //!< handles of possible values 216 uint8_t def_num; //!< number of default values --- 17 unchanged lines hidden (view full) --- 234 * @return PLDM_SUCCESS on success, otherwise PLDM_ERROR_INVALID_DATA if entry or info are NULL, or 235 * PLDM_ERROR_INVALID_LENGTH if entry_length is insufficient to encode info. An appropriate 236 * value for entry_length can be determined using @ref 237 * pldm_bios_table_attr_entry_enum_encode_length. 238 */ 239int pldm_bios_table_attr_entry_enum_encode( 240 void *entry, size_t entry_length, 241 const struct pldm_bios_table_attr_entry_enum_info *info); | 209 * 210 */ 211struct pldm_bios_table_attr_entry_enum_info { 212 uint16_t name_handle; //!< attribute name handle 213 bool read_only; //!< indicate whether the attribute is read-only 214 uint8_t pv_num; //!< number of possible values 215 const uint16_t *pv_handle; //!< handles of possible values 216 uint8_t def_num; //!< number of default values --- 17 unchanged lines hidden (view full) --- 234 * @return PLDM_SUCCESS on success, otherwise PLDM_ERROR_INVALID_DATA if entry or info are NULL, or 235 * PLDM_ERROR_INVALID_LENGTH if entry_length is insufficient to encode info. An appropriate 236 * value for entry_length can be determined using @ref 237 * pldm_bios_table_attr_entry_enum_encode_length. 238 */ 239int pldm_bios_table_attr_entry_enum_encode( 240 void *entry, size_t entry_length, 241 const struct pldm_bios_table_attr_entry_enum_info *info); |
242int pldm_bios_table_attr_entry_enum_encode_check( 243 void *entry, size_t entry_length, 244 const struct pldm_bios_table_attr_entry_enum_info *info); | |
245 246/** @brief Get the total number of possible values for the entry and check the 247 * validity of the parameters 248 * @param[in] entry - Pointer to bios attribute table entry 249 * @param[out] pv_num - Pointer to total number of possible values 250 * @return PLDM_SUCCESS on success, PLDM_ERROR_INVALID_DATA if entry or pv_num are NULL, or 251 * PLDM_ERROR_INVALID_DATA if entry is not a valid PLDM_BIOS_ENUMERATION 252 */ --- 415 unchanged lines hidden --- | 242 243/** @brief Get the total number of possible values for the entry and check the 244 * validity of the parameters 245 * @param[in] entry - Pointer to bios attribute table entry 246 * @param[out] pv_num - Pointer to total number of possible values 247 * @return PLDM_SUCCESS on success, PLDM_ERROR_INVALID_DATA if entry or pv_num are NULL, or 248 * PLDM_ERROR_INVALID_DATA if entry is not a valid PLDM_BIOS_ENUMERATION 249 */ --- 415 unchanged lines hidden --- |