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