2 * pslash - a lightweight framebuffer splashscreen for embedded devices.
4 * Copyright (c) 2006 Matthew Allum <mallum@o-hand.com>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
18 #ifndef _HAVE_PSPLASH_H
19 #define _HAVE_PSPLASH_H
34 #if defined(__i386__) || defined(__alpha__)
37 #include <sys/ioctl.h>
41 #include <sys/types.h>
45 typedef unsigned char uint8;
46 typedef unsigned short uint16;
57 #define PSPLASH_FIFO "psplash_fifo"
59 #define CLAMP(x, low, high) \
60 (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x)))
65 #define DBG(x, a...) \
66 { printf ( __FILE__ ":%d,%s() " x "\n", __LINE__, __func__, ##a); }
68 #define DBG(x, a...) do {} while (0)
71 typedef struct PSplashFont
73 char *name; /* Font name. */
74 int height; /* Height in pixels. */
75 int index_mask; /* ((1 << N) - 1). */
76 int *offset; /* (1 << N) offsets into index. */
83 #include "psplash-fb.h"
84 #include "psplash-console.h"