mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-16 13:48:14 +01:00
When bringing in the series 'arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"' I failed to notice that b4 noticed it was based on next and so took that as the base commit and merged that part of next to master. This reverts commit c8ffd1356d42223cbb8c86280a083cc3c93e6426, reversing changes made to 2ee6f3a5f7550de3599faef9704e166e5dcace35. Reported-by: Jonas Karlman <jonas@kwiboo.se> Signed-off-by: Tom Rini <trini@konsulko.com>
38 lines
1.1 KiB
C
38 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright 2016 General Electric Company
|
|
*/
|
|
|
|
#include "common.h"
|
|
|
|
struct vpd_cache;
|
|
|
|
/*
|
|
* Read VPD from given data, verify content, call callback for each vital
|
|
* product data block.
|
|
*
|
|
* cache: structure used by process block to store VPD information
|
|
* process_block: callback called for each VPD data block
|
|
*
|
|
* Returns Non-zero on error. Negative numbers encode errno.
|
|
*/
|
|
int read_i2c_vpd(struct vpd_cache *cache,
|
|
int (*process_block)(struct vpd_cache *, u8 id, u8 version,
|
|
u8 type, size_t size, u8 const *data));
|
|
|
|
/*
|
|
* Read VPD from given data, verify content, call callback for each vital
|
|
* product data block.
|
|
*
|
|
* size: size of the raw VPD data in bytes
|
|
* data: raw VPD data read from device
|
|
* cache: structure used by process block to store VPD information
|
|
* process_block: callback called for each VPD data block
|
|
*
|
|
* Returns Non-zero on error. Negative numbers encode errno.
|
|
*/
|
|
|
|
int vpd_reader(size_t size, u8 *data, struct vpd_cache *cache,
|
|
int (*process_block)(struct vpd_cache *, u8 id, u8 version, u8 type,
|
|
size_t size, u8 const *data));
|