linux_logo.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef _LINUX_LINUX_LOGO_H
  2. #define _LINUX_LINUX_LOGO_H
  3. /*
  4. * Linux logo to be displayed on boot
  5. *
  6. * Copyright (C) 1996 Larry Ewing (lewing@isc.tamu.edu)
  7. * Copyright (C) 1996,1998 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
  8. * Copyright (C) 2001 Greg Banks <gnb@alphalink.com.au>
  9. * Copyright (C) 2001 Jan-Benedict Glaw <jbglaw@lug-owl.de>
  10. * Copyright (C) 2003 Geert Uytterhoeven <geert@linux-m68k.org>
  11. *
  12. * Serial_console ascii image can be any size,
  13. * but should contain %s to display the version
  14. */
  15. #include <linux/init.h>
  16. #define LINUX_LOGO_MONO 1 /* monochrome black/white */
  17. #define LINUX_LOGO_VGA16 2 /* 16 colors VGA text palette */
  18. #define LINUX_LOGO_CLUT224 3 /* 224 colors */
  19. #define LINUX_LOGO_GRAY256 4 /* 256 levels grayscale */
  20. struct linux_logo {
  21. int type; /* one of LINUX_LOGO_* */
  22. unsigned int width;
  23. unsigned int height;
  24. unsigned int clutsize; /* LINUX_LOGO_CLUT224 only */
  25. const unsigned char *clut; /* LINUX_LOGO_CLUT224 only */
  26. const unsigned char *data;
  27. };
  28. extern const struct linux_logo *fb_find_logo(int depth);
  29. #ifdef CONFIG_FB_LOGO_EXTRA
  30. extern void fb_append_extra_logo(const struct linux_logo *logo,
  31. unsigned int n);
  32. #else
  33. static inline void fb_append_extra_logo(const struct linux_logo *logo,
  34. unsigned int n)
  35. {}
  36. #endif
  37. #endif /* _LINUX_LINUX_LOGO_H */