vpd_reader.h 436 B

12345678910111213141516
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright 2016 General Electric Company
  4. */
  5. #include "common.h"
  6. /*
  7. * Read VPD from given data, verify content, and call callback
  8. * for each vital product data block.
  9. *
  10. * Returns Non-zero on error. Negative numbers encode errno.
  11. */
  12. int vpd_reader(size_t size, u8 *data, void *userdata,
  13. int (*fn)(void *userdata, u8 id, u8 version, u8 type,
  14. size_t size, u8 const *data));