pdr.c (fae3641d95371a4cb089b413ef87708afffbdbac) pdr.c (e7f55113922cbde6fea1cc8b0b1548e55b0982d9)
1/* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */
2#include "msgbuf.h"
3#include <libpldm/pdr.h>
4#include <libpldm/platform.h>
5
6#include <assert.h>
7#include <endian.h>
8#include <stdlib.h>

--- 269 unchanged lines hidden (view full) ---

278bool pldm_pdr_record_is_remote(const pldm_pdr_record *record)
279{
280 assert(record != NULL);
281
282 return record->is_remote;
283}
284
285LIBPLDM_ABI_STABLE
1/* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */
2#include "msgbuf.h"
3#include <libpldm/pdr.h>
4#include <libpldm/platform.h>
5
6#include <assert.h>
7#include <endian.h>
8#include <stdlib.h>

--- 269 unchanged lines hidden (view full) ---

278bool pldm_pdr_record_is_remote(const pldm_pdr_record *record)
279{
280 assert(record != NULL);
281
282 return record->is_remote;
283}
284
285LIBPLDM_ABI_STABLE
286int pldm_pdr_add_fru_record_set_check(pldm_pdr *repo, uint16_t terminus_handle,
287 uint16_t fru_rsi, uint16_t entity_type,
288 uint16_t entity_instance_num,
289 uint16_t container_id,
290 uint32_t *bmc_record_handle)
286int pldm_pdr_add_fru_record_set(pldm_pdr *repo, uint16_t terminus_handle,
287 uint16_t fru_rsi, uint16_t entity_type,
288 uint16_t entity_instance_num,
289 uint16_t container_id,
290 uint32_t *bmc_record_handle)
291{
292 if (!repo || !bmc_record_handle) {
293 return -EINVAL;
294 }
295
296 uint32_t size = sizeof(struct pldm_pdr_hdr) +
297 sizeof(struct pldm_pdr_fru_record_set);
298 uint8_t data[size];

--- 1375 unchanged lines hidden ---
291{
292 if (!repo || !bmc_record_handle) {
293 return -EINVAL;
294 }
295
296 uint32_t size = sizeof(struct pldm_pdr_hdr) +
297 sizeof(struct pldm_pdr_fru_record_set);
298 uint8_t data[size];

--- 1375 unchanged lines hidden ---