]> git.ipfire.org Git - thirdparty/u-boot.git/blame - board/ge/common/vpd_reader.h
SPDX: Convert all of our single license tags to Linux Kernel style
[thirdparty/u-boot.git] / board / ge / common / vpd_reader.h
CommitLineData
83d290c5 1/* SPDX-License-Identifier: GPL-2.0+ */
be2808c3
IR
2/*
3 * Copyright 2016 General Electric Company
be2808c3
IR
4 */
5
6#include "common.h"
7
8/*
9 * Read VPD from given data, verify content, and call callback
10 * for each vital product data block.
11 *
12 * Returns Non-zero on error. Negative numbers encode errno.
13 */
b418dfe1
MW
14int vpd_reader(size_t size, u8 *data, void *userdata,
15 int (*fn)(void *userdata, u8 id, u8 version, u8 type,
16 size_t size, u8 const *data));