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
35 #if defined(__i386__) || defined(__alpha__)
38 #include <sys/ioctl.h>
42 #include <sys/types.h>
46 typedef uint8_t uint8;
47 typedef uint16_t uint16;
58 #define PSPLASH_FIFO "psplash_fifo"
60 #define CLAMP(x, low, high) \
61 (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x)))
66 #define DBG(x, a...) \
67 { printf ( __FILE__ ":%d,%s() " x "\n", __LINE__, __func__, ##a); }
69 #define DBG(x, a...) do {} while (0)
72 typedef struct PSplashFont
74 char *name; /* Font name. */
75 int height; /* Height in pixels. */
76 int index_mask; /* ((1 << N) - 1). */
77 int *offset; /* (1 << N) offsets into index. */
84 #include "psplash-fb.h"
85 #include "psplash-console.h"