Author: uwe Date: 2008-04-11 22:16:24 +0200 (Fri, 11 Apr 2008) New Revision: 3237
Modified: trunk/payloads/libpayload/curses/local.h trunk/payloads/libpayload/drivers/keyboard.c trunk/payloads/libpayload/drivers/serial.c trunk/payloads/libpayload/drivers/video/geode.c trunk/payloads/libpayload/i386/coreboot.c trunk/payloads/libpayload/i386/sysinfo.c trunk/payloads/libpayload/include/libpayload.h trunk/payloads/libpayload/libc/printf.c Log: Drop unneeded #includes, add EXIT_SUCCESS/EXIT_FAILURE (trivial).
Signed-off-by: Uwe Hermann uwe@hermann-uwe.de Acked-by: Uwe Hermann uwe@hermann-uwe.de
Modified: trunk/payloads/libpayload/curses/local.h =================================================================== --- trunk/payloads/libpayload/curses/local.h 2008-04-11 19:43:55 UTC (rev 3236) +++ trunk/payloads/libpayload/curses/local.h 2008-04-11 20:16:24 UTC (rev 3237) @@ -59,8 +59,6 @@ #undef USE_TERMLIB
#include <libpayload.h> -#include <arch/types.h> -#include <arch/io.h> #include <curses.h> #include <curses.priv.h>
@@ -86,9 +84,4 @@ /* Share the color table for easy lookup */ extern unsigned char color_pairs[256];
-/* speaker.c */ -void speaker_enable(u16 freq); -void speaker_disable(void); -void speaker_tone(u16 freq, unsigned int duration); - #endif
Modified: trunk/payloads/libpayload/drivers/keyboard.c =================================================================== --- trunk/payloads/libpayload/drivers/keyboard.c 2008-04-11 19:43:55 UTC (rev 3236) +++ trunk/payloads/libpayload/drivers/keyboard.c 2008-04-11 20:16:24 UTC (rev 3237) @@ -27,7 +27,6 @@ * SUCH DAMAGE. */
-#include <arch/io.h> #include <libpayload.h>
unsigned char map[2][0x57] = {
Modified: trunk/payloads/libpayload/drivers/serial.c =================================================================== --- trunk/payloads/libpayload/drivers/serial.c 2008-04-11 19:43:55 UTC (rev 3236) +++ trunk/payloads/libpayload/drivers/serial.c 2008-04-11 20:16:24 UTC (rev 3237) @@ -28,7 +28,6 @@ */
#include <libpayload.h> -#include <sysinfo.h>
#define IOBASE lib_sysinfo.ser_ioport
Modified: trunk/payloads/libpayload/drivers/video/geode.c =================================================================== --- trunk/payloads/libpayload/drivers/video/geode.c 2008-04-11 19:43:55 UTC (rev 3236) +++ trunk/payloads/libpayload/drivers/video/geode.c 2008-04-11 20:16:24 UTC (rev 3237) @@ -30,9 +30,7 @@ #include <libpayload.h> #include <pci.h> #include <video_console.h> -#include <arch/io.h> #include <arch/msr.h> - #include "font8x16.h"
/* This is the video mode that we're going to use for our VGA screen */
Modified: trunk/payloads/libpayload/i386/coreboot.c =================================================================== --- trunk/payloads/libpayload/i386/coreboot.c 2008-04-11 19:43:55 UTC (rev 3236) +++ trunk/payloads/libpayload/i386/coreboot.c 2008-04-11 20:16:24 UTC (rev 3237) @@ -28,7 +28,6 @@ */
#include <libpayload.h> -#include <sysinfo.h> #include <coreboot_tables.h>
/*
Modified: trunk/payloads/libpayload/i386/sysinfo.c =================================================================== --- trunk/payloads/libpayload/i386/sysinfo.c 2008-04-11 19:43:55 UTC (rev 3236) +++ trunk/payloads/libpayload/i386/sysinfo.c 2008-04-11 20:16:24 UTC (rev 3237) @@ -28,7 +28,6 @@ */
#include <libpayload.h> -#include <sysinfo.h>
/** * This is a global structure that is used through the library - we set it
Modified: trunk/payloads/libpayload/include/libpayload.h =================================================================== --- trunk/payloads/libpayload/include/libpayload.h 2008-04-11 19:43:55 UTC (rev 3236) +++ trunk/payloads/libpayload/include/libpayload.h 2008-04-11 20:16:24 UTC (rev 3237) @@ -49,6 +49,9 @@ #define BYTE_ORDER BIG_ENDIAN #endif
+#define EXIT_SUCCESS 0 +#define EXIT_FAILURE 1 + #define RAND_MAX 0x7fffffff
/* Some NVRAM byte definitions */
Modified: trunk/payloads/libpayload/libc/printf.c =================================================================== --- trunk/payloads/libpayload/libc/printf.c 2008-04-11 19:43:55 UTC (rev 3236) +++ trunk/payloads/libpayload/libc/printf.c 2008-04-11 20:16:24 UTC (rev 3237) @@ -34,7 +34,6 @@ */
#include <libpayload.h> -#include <stdarg.h>
/** Structure for specifying output methods for different printf clones. */ struct printf_spec {