blob: e60acf3d07d40e990db29117226c25e72a99835e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* Copyright 2016 General Electric Company
*/
#include "common.h"
/*
* Read VPD from given data, verify content, and call callback
* for each vital product data block.
*
* Returns Non-zero on error. Negative numbers encode errno.
*/
int vpd_reader(size_t size, u8 *data, void *userdata,
int (*fn)(void *userdata, u8 id, u8 version, u8 type,
size_t size, u8 const *data));
|