/* * pslash - a lightweight framebuffer splashscreen for embedded devices. * * Copyright (c) 2006 Matthew Allum * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * */ #ifndef _HAVE_PSPLASH_H #define _HAVE_PSPLASH_H #define _GNU_SOURCE 1 #include #include #include #include #include #include #include #include #include #include #include #include #include #if defined(__i386__) || defined(__alpha__) #include #endif #include #include #include #include #include #include #include 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 0 #if DEBUG #define DBG(x, a...) \ { printf ( __FILE__ ":%d,%s() " x "\n", __LINE__, __func__, ##a); } #else #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