Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _LINUX_LINUX_LOGO_H
0003 #define _LINUX_LINUX_LOGO_H
0004 
0005 /*
0006  *  Linux logo to be displayed on boot
0007  *
0008  *  Copyright (C) 1996 Larry Ewing (lewing@isc.tamu.edu)
0009  *  Copyright (C) 1996,1998 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
0010  *  Copyright (C) 2001 Greg Banks <gnb@alphalink.com.au>
0011  *  Copyright (C) 2001 Jan-Benedict Glaw <jbglaw@lug-owl.de>
0012  *  Copyright (C) 2003 Geert Uytterhoeven <geert@linux-m68k.org>
0013  *
0014  *  Serial_console ascii image can be any size,
0015  *  but should contain %s to display the version
0016  */
0017 
0018 #include <linux/init.h>
0019 
0020 
0021 #define LINUX_LOGO_MONO     1   /* monochrome black/white */
0022 #define LINUX_LOGO_VGA16    2   /* 16 colors VGA text palette */
0023 #define LINUX_LOGO_CLUT224  3   /* 224 colors */
0024 #define LINUX_LOGO_GRAY256  4   /* 256 levels grayscale */
0025 
0026 
0027 struct linux_logo {
0028     int type;           /* one of LINUX_LOGO_* */
0029     unsigned int width;
0030     unsigned int height;
0031     unsigned int clutsize;      /* LINUX_LOGO_CLUT224 only */
0032     const unsigned char *clut;  /* LINUX_LOGO_CLUT224 only */
0033     const unsigned char *data;
0034 };
0035 
0036 extern const struct linux_logo logo_linux_mono;
0037 extern const struct linux_logo logo_linux_vga16;
0038 extern const struct linux_logo logo_linux_clut224;
0039 extern const struct linux_logo logo_dec_clut224;
0040 extern const struct linux_logo logo_mac_clut224;
0041 extern const struct linux_logo logo_parisc_clut224;
0042 extern const struct linux_logo logo_sgi_clut224;
0043 extern const struct linux_logo logo_sun_clut224;
0044 extern const struct linux_logo logo_superh_mono;
0045 extern const struct linux_logo logo_superh_vga16;
0046 extern const struct linux_logo logo_superh_clut224;
0047 extern const struct linux_logo logo_spe_clut224;
0048 
0049 extern const struct linux_logo *fb_find_logo(int depth);
0050 #ifdef CONFIG_FB_LOGO_EXTRA
0051 extern void fb_append_extra_logo(const struct linux_logo *logo,
0052                  unsigned int n);
0053 #else
0054 static inline void fb_append_extra_logo(const struct linux_logo *logo,
0055                     unsigned int n)
0056 {}
0057 #endif
0058 
0059 #endif /* _LINUX_LINUX_LOGO_H */