X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=include%2Fsplash.h;h=228aff441b87f46c3747d5376773b559898ebea5;hb=3707c6ee0d1f939130a62c945b56045d9a83fafc;hp=a60e89542343532b2356d86f0215f30d53e228c6;hpb=f82eb2fa5df86b7180ea355a3cb98482f7c27269;p=people%2Fms%2Fu-boot.git diff --git a/include/splash.h b/include/splash.h index a60e895423..228aff441b 100644 --- a/include/splash.h +++ b/include/splash.h @@ -22,18 +22,42 @@ #ifndef _SPLASH_H_ #define _SPLASH_H_ +#include + enum splash_storage { SPLASH_STORAGE_NAND, SPLASH_STORAGE_SF, + SPLASH_STORAGE_MMC, + SPLASH_STORAGE_USB, + SPLASH_STORAGE_SATA, +}; + +enum splash_flags { + SPLASH_STORAGE_RAW, /* Stored in raw memory */ + SPLASH_STORAGE_FS, /* Stored within a file system */ + SPLASH_STORAGE_FIT, /* Stored inside a FIT image */ }; 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 */ + char *mtdpart; /* MTD partition for ubi part */ + char *ubivol; /* UBI volume-name for ubifsmount */ }; +#ifdef CONFIG_SPLASH_SOURCE int splash_source_load(struct splash_location *locations, uint size); +#else +static inline int splash_source_load(struct splash_location *locations, + uint size) +{ + return 0; +} +#endif + int splash_screen_prepare(void); #ifdef CONFIG_SPLASH_SCREEN_ALIGN @@ -42,6 +66,15 @@ void splash_get_pos(int *x, int *y); static inline void splash_get_pos(int *x, int *y) { } #endif +#if defined(CONFIG_SPLASH_SCREEN) && defined(CONFIG_LCD) +int lcd_splash(ulong addr); +#else +static inline int lcd_splash(ulong addr) +{ + return -ENOSYS; +} +#endif + #define BMP_ALIGN_CENTER 0x7FFF #endif