1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright 2016 General Electric Company
11 * Read VPD from given data, verify content, call callback for each vital
14 * cache: structure used by process block to store VPD information
15 * process_block: callback called for each VPD data block
17 * Returns Non-zero on error. Negative numbers encode errno.
19 int read_vpd(struct vpd_cache *cache,
20 int (*process_block)(struct vpd_cache *,
21 u8 id, u8 version, u8 type,
22 size_t size, u8 const *data));