blob: 22e4104bc54d1c0305c2332b080573a32b452987 [file] [log] [blame]
Kory Maincent7444a7d2021-05-04 19:31:22 +02001/* 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
Tom Rinidec7ea02024-05-20 13:35:03 -060010#include <linux/list.h>
11
Kory Maincent7444a7d2021-05-04 19:31:22 +020012struct extension {
13 struct list_head list;
14 char name[32];
15 char owner[32];
16 char version[32];
Daniel Schultzd74d6a12024-05-22 00:21:00 -070017 char overlay[64];
Kory Maincent7444a7d2021-05-04 19:31:22 +020018 char other[32];
19};
20
21/**
22 * extension_board_scan - Add system-specific function to scan extension board.
23 * @param extension_list List of extension board information to update.
Heinrich Schuchardt47b4c022022-01-19 18:05:50 +010024 * Return: the number of extension.
Kory Maincent7444a7d2021-05-04 19:31:22 +020025 *
26 * This function is called if CONFIG_CMD_EXTENSION is defined.
27 * Needs to fill the list extension_list with elements.
28 * Each element need to be allocated to an extension structure.
29 *
30 */
31int extension_board_scan(struct list_head *extension_list);
32
33#endif /* __EXTENSION_SUPPORT_H */