mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-18 16:08:53 +09:00
![Martyn Welch](/assets/img/avatar_default.png)
The VPD data is used on a number of GE products. Move the parsing code to a common location so that we can share this code. Signed-off-by: Martyn Welch <martyn.welch@collabora.co.uk> Acked-by: Stefano Babic <sbabic@denx.de>
18 lines
436 B
C
18 lines
436 B
C
/*
|
|
* 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));
|