diff options
Diffstat (limited to 'board/ge/common/vpd_reader.h')
-rw-r--r-- | board/ge/common/vpd_reader.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/board/ge/common/vpd_reader.h b/board/ge/common/vpd_reader.h new file mode 100644 index 0000000000..4abba8f5de --- /dev/null +++ b/board/ge/common/vpd_reader.h @@ -0,0 +1,17 @@ +/* + * Copyright 2016 General Electric Company + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#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)); |