extension_board.h 803 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2021
  4. * Köry Maincent, Bootlin, <kory.maincent@bootlin.com>
  5. */
  6. #ifndef __EXTENSION_SUPPORT_H
  7. #define __EXTENSION_SUPPORT_H
  8. struct extension {
  9. struct list_head list;
  10. char name[32];
  11. char owner[32];
  12. char version[32];
  13. char overlay[32];
  14. char other[32];
  15. };
  16. /**
  17. * extension_board_scan - Add system-specific function to scan extension board.
  18. * @param extension_list List of extension board information to update.
  19. * @return the number of extension.
  20. *
  21. * This function is called if CONFIG_CMD_EXTENSION is defined.
  22. * Needs to fill the list extension_list with elements.
  23. * Each element need to be allocated to an extension structure.
  24. *
  25. */
  26. int extension_board_scan(struct list_head *extension_list);
  27. #endif /* __EXTENSION_SUPPORT_H */