12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- #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;
- char *devpart;
- char *mtdpart;
- char *ubivol;
- };
- #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
- void splash_get_pos(int *x, int *y);
- #else
- 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
|