bios_table.h (07fdf2d86963c2a613000408a6cbadd6f320a8e9) | bios_table.h (03aa3d6cdd60790700294feca54ced81fc3c2ff9) |
---|---|
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 --- 238 unchanged lines hidden (view full) --- 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 */ 253int pldm_bios_table_attr_entry_enum_decode_pv_num( 254 const struct pldm_bios_attr_table_entry *entry, uint8_t *pv_num); | 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 --- 238 unchanged lines hidden (view full) --- 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 */ 253int pldm_bios_table_attr_entry_enum_decode_pv_num( 254 const struct pldm_bios_attr_table_entry *entry, uint8_t *pv_num); |
255int pldm_bios_table_attr_entry_enum_decode_pv_num_check( 256 const struct pldm_bios_attr_table_entry *entry, uint8_t *pv_num); | |
257 258/** @brief Get the total number of default values for the entry and check the 259 * validity of the parameters 260 * @param[in] entry - Pointer to bios attribute table entry 261 * @param[out] def_num - Pointer to total number of default values 262 * @return PLDM_SUCCESS on success, otherwise PLDM_ERROR_INVALID_DATA if entry or def_num are NULL, 263 * or entry is not of type PLDM_BIOS_ENUMERATION. 264 */ --- 4 unchanged lines hidden (view full) --- 269 * parameters 270 * @param[in] entry - Pointer to bios attribute table entry 271 * @param[out] pv_hdls - Pointer to a buffer to store 272 * PossibleValuesStringHandles 273 * @param[in] pv_num - Number of PossibleValuesStringHandles the buffer can 274 * store 275 * @return PLDM_SUCCESS on success, otherwise PLDM_ERROR_INVALID_DATA if entry or pv_hdls are NULL, 276 * or entry is not of type PLDM_BIOS_ENUMERATION. An appropriate value for pv_num can be | 255 256/** @brief Get the total number of default values for the entry and check the 257 * validity of the parameters 258 * @param[in] entry - Pointer to bios attribute table entry 259 * @param[out] def_num - Pointer to total number of default values 260 * @return PLDM_SUCCESS on success, otherwise PLDM_ERROR_INVALID_DATA if entry or def_num are NULL, 261 * or entry is not of type PLDM_BIOS_ENUMERATION. 262 */ --- 4 unchanged lines hidden (view full) --- 267 * parameters 268 * @param[in] entry - Pointer to bios attribute table entry 269 * @param[out] pv_hdls - Pointer to a buffer to store 270 * PossibleValuesStringHandles 271 * @param[in] pv_num - Number of PossibleValuesStringHandles the buffer can 272 * store 273 * @return PLDM_SUCCESS on success, otherwise PLDM_ERROR_INVALID_DATA if entry or pv_hdls are NULL, 274 * or entry is not of type PLDM_BIOS_ENUMERATION. An appropriate value for pv_num can be |
277 * determined using @ref pldm_bios_table_attr_entry_enum_decode_pv_num_check. pv_num may be | 275 * determined using @ref pldm_bios_table_attr_entry_enum_decode_pv_num. pv_num may be |
278 * less than the value provided by @ref | 276 * less than the value provided by @ref |
279 * pldm_bios_table_attr_entry_enum_decode_pv_num_check, in which case only the first pv_num | 277 * pldm_bios_table_attr_entry_enum_decode_pv_num, in which case only the first pv_num |
280 * handles will be decoded. 281 */ 282int pldm_bios_table_attr_entry_enum_decode_pv_hdls( 283 const struct pldm_bios_attr_table_entry *entry, uint16_t *pv_hdls, 284 uint8_t pv_num); 285 286/** @brief Get Indices of default values 287 * @param[in] entry - Pointer to bios attribute table entry --- 382 unchanged lines hidden --- | 278 * handles will be decoded. 279 */ 280int pldm_bios_table_attr_entry_enum_decode_pv_hdls( 281 const struct pldm_bios_attr_table_entry *entry, uint16_t *pv_hdls, 282 uint8_t pv_num); 283 284/** @brief Get Indices of default values 285 * @param[in] entry - Pointer to bios attribute table entry --- 382 unchanged lines hidden --- |