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