dm: core: Add safe device iteration macros
[oweals/u-boot.git] / include / splash.h
index 4dbf754ace94052e4540692e78ee676d95c77531..f0755ca695f83f643e9aa06b3619096fd4159544 100644 (file)
 
 #ifndef _SPLASH_H_
 #define _SPLASH_H_
+
 #include <errno.h>
 
+enum splash_storage {
+       SPLASH_STORAGE_NAND,
+       SPLASH_STORAGE_SF,
+       SPLASH_STORAGE_MMC,
+       SPLASH_STORAGE_USB,
+       SPLASH_STORAGE_SATA,
+};
+
+enum splash_flags {
+       SPLASH_STORAGE_RAW,
+       SPLASH_STORAGE_FS,
+};
+
+struct splash_location {
+       char *name;
+       enum splash_storage storage;
+       enum splash_flags flags;
+       u32 offset;     /* offset from start of storage */
+       char *devpart;  /* Use the load command dev:part conventions */
+};
+
+int splash_source_load(struct splash_location *locations, uint size);
 int splash_screen_prepare(void);
 
 #ifdef CONFIG_SPLASH_SCREEN_ALIGN