xref: /openbmc/u-boot/include/splash.h (revision ff8fb56b6f7edafc1bcba8ef008b3f368cabe60d)
1dd4425e8SRobert Winkler /*
2dd4425e8SRobert Winkler  * Copyright (C) 2013, Boundary Devices <info@boundarydevices.com>
3dd4425e8SRobert Winkler  *
4dd4425e8SRobert Winkler  * See file CREDITS for list of people who contributed to this
5dd4425e8SRobert Winkler  * project.
6dd4425e8SRobert Winkler  *
7dd4425e8SRobert Winkler  * This program is free software; you can redistribute it and/or
8dd4425e8SRobert Winkler  * modify it under the terms of the GNU General Public License as
9dd4425e8SRobert Winkler  * published by the Free Software Foundation; either version 2 of
10dd4425e8SRobert Winkler  * the License, or (at your option) any later version.
11dd4425e8SRobert Winkler  *
12dd4425e8SRobert Winkler  * This program is distributed in the hope that it will be useful,
13dd4425e8SRobert Winkler  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14dd4425e8SRobert Winkler  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
15dd4425e8SRobert Winkler  * GNU General Public License for more details.
16dd4425e8SRobert Winkler  *
17dd4425e8SRobert Winkler  * You should have received a copy of the GNU General Public License
18dd4425e8SRobert Winkler  * along with this program; if not, write to the Free Software
19dd4425e8SRobert Winkler  * Foundation, Inc., http://www.fsf.org/about/contact/
20dd4425e8SRobert Winkler  */
21dd4425e8SRobert Winkler 
22dd4425e8SRobert Winkler #ifndef _SPLASH_H_
23dd4425e8SRobert Winkler #define _SPLASH_H_
24dd4425e8SRobert Winkler 
25dd4425e8SRobert Winkler 
26dd4425e8SRobert Winkler int splash_screen_prepare(void);
27dd4425e8SRobert Winkler 
28*ff8fb56bSAnatolij Gustschin #ifdef CONFIG_SPLASH_SCREEN_ALIGN
29*ff8fb56bSAnatolij Gustschin void splash_get_pos(int *x, int *y);
30*ff8fb56bSAnatolij Gustschin #else
31*ff8fb56bSAnatolij Gustschin static inline void splash_get_pos(int *x, int *y) { }
32*ff8fb56bSAnatolij Gustschin #endif
33*ff8fb56bSAnatolij Gustschin 
34*ff8fb56bSAnatolij Gustschin #define BMP_ALIGN_CENTER	0x7FFF
35dd4425e8SRobert Winkler 
36dd4425e8SRobert Winkler #endif
37