X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Fsplash.h;h=136eac7402465e34488687ccaa9d6d1bbb1b75b6;hb=b7b8410a8fee9eda7b062a86a07dda0b97c49f8a;hp=89ee7b22ec2b324f4c29f37018242a91a42259a7;hpb=2f4998ab4429af4b805f8566268c3b761aa4babd;p=oweals%2Fu-boot.git diff --git a/include/splash.h b/include/splash.h index 89ee7b22ec..136eac7402 100644 --- a/include/splash.h +++ b/include/splash.h @@ -22,6 +22,40 @@ #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, + 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 */ + 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); @@ -31,6 +65,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