Drop unneeded #includes, add EXIT_SUCCESS/EXIT_FAILURE (trivial).
authorUwe Hermann <uwe@hermann-uwe.de>
Fri, 11 Apr 2008 20:16:24 +0000 (20:16 +0000)
committerUwe Hermann <uwe@hermann-uwe.de>
Fri, 11 Apr 2008 20:16:24 +0000 (20:16 +0000)
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3237 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

payloads/libpayload/curses/local.h
payloads/libpayload/drivers/keyboard.c
payloads/libpayload/drivers/serial.c
payloads/libpayload/drivers/video/geode.c
payloads/libpayload/i386/coreboot.c
payloads/libpayload/i386/sysinfo.c
payloads/libpayload/include/libpayload.h
payloads/libpayload/libc/printf.c

index 0a861ceed86085b4d2de60168e9d5035339c9cdf..001edab4efc04a355c4f38094d8f02eab58c2571 100644 (file)
@@ -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 @@ extern int curses_flags;
 /* 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
index 9a3e4b8d19ed1b48b8a0157b49d8c2e9c85dcde7..1049b9ccec909dba82ee73bf21100ed67b0a3515 100644 (file)
@@ -27,7 +27,6 @@
  * SUCH DAMAGE.
  */
 
-#include <arch/io.h>
 #include <libpayload.h>
 
 unsigned char map[2][0x57] = {
index b3179c756d5438fc335efd29d9fa4933952d42ba..a97e7dd8087677dd29a2f18f75acbdfe7b7e04f5 100644 (file)
@@ -28,7 +28,6 @@
  */
 
 #include <libpayload.h>
-#include <sysinfo.h>
 
 #define IOBASE lib_sysinfo.ser_ioport
 
index 230926c99a0401a95bc6217f0f82fdbaabdf093d..b0631c55b36c446428aeb88de69286e771f62cc8 100644 (file)
@@ -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 */
index e9bc40fc414e03779f01a32db198972b977f640b..9cbd4ef84a93d4c81412bcf561a9b25d2017ec06 100644 (file)
@@ -28,7 +28,6 @@
  */
 
 #include <libpayload.h>
-#include <sysinfo.h>
 #include <coreboot_tables.h>
 
 /*
index cb149ead3ae8be2d44a941d03346c574df8985ff..7b1f785219e471a431bf19f3edfbbab73de91f2f 100644 (file)
@@ -28,7 +28,6 @@
  */
 
 #include <libpayload.h>
-#include <sysinfo.h>
 
 /**
  * This is a global structure that is used through the library - we set it
index 27668e168e3778f70ac00b18ef151d362700a529..611f65e43238f1513c54987bf7a60b30a596d936 100644 (file)
@@ -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 */
index 062879c523954421b608a2a87593d8911337d4cb..2f1ca8bda6b31bc24c1b4f9c7a3b4487f9e1a198 100644 (file)
@@ -34,7 +34,6 @@
  */
 
 #include <libpayload.h>
-#include <stdarg.h>
 
 /** Structure for specifying output methods for different printf clones. */
 struct printf_spec {