diff options
author | Ge Song <ge.song@hxt-semitech.com> | 2018-08-02 17:29:39 +0000 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2018-08-07 11:30:36 +1000 |
commit | ec2b01710f0dbc4002b677693695214cbf7c54a8 (patch) | |
tree | 327a9fd860b91c866dd021e08890757258f18033 /discover/platform.h | |
parent | ca9ddb09f42fdc66c080afff8c113bb263f51aeb (diff) | |
download | talos-petitboot-ec2b01710f0dbc4002b677693695214cbf7c54a8.tar.gz talos-petitboot-ec2b01710f0dbc4002b677693695214cbf7c54a8.zip |
discover: Move generic config routines to platform
Move the generic config routines from platform-powerpc to platform.
Also, for clarity, add a config_ prefix to the names.
Signed-off-by: Ge Song <ge.song@hxt-semitech.com>
[Split from a larger patch and cleaned up]
Signed-off-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'discover/platform.h')
-rw-r--r-- | discover/platform.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/discover/platform.h b/discover/platform.h index 5aa8e3f..a9ea79b 100644 --- a/discover/platform.h +++ b/discover/platform.h @@ -2,6 +2,7 @@ #define PLATFORM_H #include <types/types.h> +#include <param_list/param_list.h> struct platform { const char *name; @@ -24,10 +25,9 @@ void platform_pre_boot(void); /* configuration interface */ const struct config *config_get(void); int config_set(struct config *config); -void config_set_autoboot(bool autoboot_enabled); - -/* for use by the platform-specific storage code */ void config_set_defaults(struct config *config); +void config_set_autoboot(bool autoboot_enabled); +void config_populate_all(struct config *config, const struct param_list *pl); #define __platform_ptrname(_n) __platform_ ## _n #define _platform_ptrname(_n) __platform_ptrname(_n) |