Only post_code.h should have the prototype for post_code() from

post_code.c (thus drop it from console.h).

Instead, have console.h #include post_code.h and drop other
explicit #includes of post_code.h in the code; console.h is already
included in pretty much every file.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@513 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
Uwe Hermann 2007-11-20 19:06:03 +00:00
parent fe31d1970c
commit e28f0155f6
12 changed files with 5 additions and 11 deletions

View file

@ -26,7 +26,6 @@
#include <tables.h>
#include <lib.h>
#include <mc146818rtc.h>
#include <post_code.h>
/* ah, well, what a mess! This is a hard code. FIX ME but how?
* By getting rid of ELF ...

View file

@ -19,6 +19,7 @@
#include <types.h>
#include <shared.h> /* We share symbols from stage 0 */
#include <post_code.h>
#define BIOS_EMERG 0 /* system is unusable */
#define BIOS_ALERT 1 /* action must be taken immediately */
@ -35,7 +36,6 @@ void console_tx_byte(unsigned char byte, void *arg);
void console_tx_flush(void);
unsigned char console_rx_byte(void);
int console_tst_byte(void);
void post_code(u8 value);
void die(const char *msg);
struct console_driver {

View file

@ -18,9 +18,13 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef POST_CODE_H
#define POST_CODE_H
#include <shared.h>
SHARED(post_code, void, u8 value);
#define POST_START_OF_MAIN 0x01
#endif /* POST_CODE_H */

View file

@ -21,7 +21,6 @@
#include <types.h>
#include <lib.h>
#include <console.h>
#include <post_code.h>
#include <device/device.h>
#include <device/pci.h>
#include <io.h>

View file

@ -21,7 +21,6 @@
#include <types.h>
#include <lib.h>
#include <console.h>
#include <post_code.h>
#include <device/device.h>
#include <device/pci.h>
#include <io.h>

View file

@ -21,7 +21,6 @@
#include <types.h>
#include <lib.h>
#include <console.h>
#include <post_code.h>
#include <device/device.h>
#include <device/pci.h>
#include <string.h>

View file

@ -21,7 +21,6 @@
#include <types.h>
#include <lib.h>
#include <console.h>
#include <post_code.h>
#include <device/device.h>
#include <device/pci.h>
#include <string.h>

View file

@ -21,7 +21,6 @@
#include <types.h>
#include <lib.h>
#include <console.h>
#include <post_code.h>
#include <device/device.h>
#include <device/pci.h>
#include <string.h>

View file

@ -21,7 +21,6 @@
#include <types.h>
#include <lib.h>
#include <console.h>
#include <post_code.h>
#include <device/device.h>
#include <device/pci.h>
#include <string.h>

View file

@ -20,7 +20,6 @@
#include <types.h>
#include <console.h>
#include <post_code.h>
#include <msr.h>
#include <cpu.h>
#include <amd_geodelx.h>

View file

@ -21,7 +21,6 @@
#include <types.h>
#include <lib.h>
#include <console.h>
#include <post_code.h>
#include <msr.h>
#include <spd.h>
#include <io.h>

View file

@ -20,7 +20,6 @@
#include <types.h>
#include <lib.h>
#include <console.h>
#include <post_code.h>
#include <device/pci.h>
#include <msr.h>
#include <amd_geodelx.h>