#include <signal.h>
#include <stdarg.h>
#include <stdio.h>
+#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#if defined(__i386__) || defined(__alpha__)
#include <termios.h>
#include <unistd.h>
-typedef unsigned char uint8;
-typedef unsigned short uint16;
+typedef uint8_t uint8;
+typedef uint16_t uint16;
+typedef int bool;
+
+#ifndef FALSE
+#define FALSE 0
+#endif
+
+#ifndef TRUE
+#define TRUE 1
+#endif
#define PSPLASH_FIFO "psplash_fifo"
#define CLAMP(x, low, high) \
(((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x)))
-#define DEBUG 1
+#define DEBUG 0
#if DEBUG
#define DBG(x, a...) \
#define DBG(x, a...) do {} while (0)
#endif
+typedef struct PSplashFont
+{
+ char *name; /* Font name. */
+ int height; /* Height in pixels. */
+ int index_mask; /* ((1 << N) - 1). */
+ int *offset; /* (1 << N) offsets into index. */
+ int *index;
+ u_int32_t *content;
+}
+PSplashFont;
+
+
#include "psplash-fb.h"
#include "psplash-console.h"
+#include "psplash-colors.h"
#endif