Fix a LOT of implicit function declarations before they become errors.
Signed-off-by: Corey Osgood <corey.osgood@gmail.com> Acked-by: Myles Watson <mylesgw@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3822 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
716e5670fe
commit
e562f7258e
|
@ -8,6 +8,7 @@
|
|||
#include <cpu/x86/msr.h>
|
||||
#include <cpu/x86/lapic.h>
|
||||
#include <cpu/intel/microcode.h>
|
||||
#include <cpu/intel/hyperthreading.h>
|
||||
#include <cpu/x86/cache.h>
|
||||
#include <cpu/x86/mtrr.h>
|
||||
|
||||
|
|
|
@ -6,5 +6,6 @@ struct pc_keyboard {
|
|||
};
|
||||
|
||||
void init_pc_keyboard(unsigned port0, unsigned port1, struct pc_keyboard *kbd);
|
||||
void set_kbc_ps2_mode(void);
|
||||
|
||||
#endif /* PC80_KEYBOARD_H */
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include <arch/acpi.h>
|
||||
#include <arch/io.h>
|
||||
|
||||
extern void pm_iowrite(u8 reg, u8 value);
|
||||
/*extern*/ u16 pm_base = 0x800;
|
||||
/* pm_base should be set in sb acpi */
|
||||
/* pm_base should be got from bar2 of rs690. Here I compact ACPI
|
||||
|
|
|
@ -37,6 +37,9 @@ extern void pm2_iowrite(u8 reg, u8 value);
|
|||
extern int do_smbus_read_byte(u32 smbus_io_base, u32 device, u32 address);
|
||||
extern int do_smbus_write_byte(u32 smbus_io_base, u32 device, u32 address,
|
||||
u8 val);
|
||||
extern void lb_add_memory_range(struct lb_memory *mem, uint32_t type,
|
||||
uint64_t start, uint64_t size);
|
||||
|
||||
#define ADT7475_read_byte(address) \
|
||||
do_smbus_read_byte(SMBUS_IO_BASE, ADT7475_ADDRESS, address)
|
||||
#define ADT7475_write_byte(address, val) \
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#include <arch/io.h>
|
||||
#include <device/pci.h>
|
||||
#include <device/pci_def.h>
|
||||
#include <device/pci_ids.h>
|
||||
#ifndef __ROMCC__
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
#include <string.h>
|
||||
#include <bitops.h>
|
||||
#include <cpu/cpu.h>
|
||||
#include <cpu/amd/model_fxx_rev.h>
|
||||
|
||||
#include <cpu/x86/lapic.h>
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
#include "northbridge.h"
|
||||
#include <cpu/amd/gx1def.h>
|
||||
#include <cpu/x86/cache.h>
|
||||
#include <cpu/cpu.h>
|
||||
|
||||
#define NORTHBRIDGE_FILE "northbridge.c"
|
||||
/*
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include <cpu/x86/cache.h>
|
||||
#include "../../../southbridge/amd/cs5536/cs5536.h"
|
||||
|
||||
|
||||
extern int sizeram(void);
|
||||
/* the structs in this file only set msr.lo. But ... that may not always be true */
|
||||
|
||||
struct msrinit {
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
#include <cpu/x86/msr.h>
|
||||
#include <cpu/x86/cache.h>
|
||||
#include <cpu/amd/vr.h>
|
||||
#include <cpu/cpu.h>
|
||||
#include "../../../southbridge/amd/cs5536/cs5536.h"
|
||||
#define VIDEO_MB 8
|
||||
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
#include <cpu/x86/msr.h>
|
||||
#include <cpu/x86/cache.h>
|
||||
#include <cpu/amd/vr.h>
|
||||
#include <cpu/cpu.h>
|
||||
#include "chip.h"
|
||||
#include "northbridge.h"
|
||||
#include "../../../southbridge/amd/cs5536/cs5536.h"
|
||||
|
|
|
@ -7,6 +7,8 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <bitops.h>
|
||||
#include <cpu/cpu.h>
|
||||
#include <pc80/keyboard.h>
|
||||
#include "chip.h"
|
||||
#include "northbridge.h"
|
||||
#include "i440bx.h"
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
#include <stdint.h>
|
||||
#include <device/device.h>
|
||||
#include <device/pci.h>
|
||||
#include <device/pci_ids.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <bitops.h>
|
||||
|
@ -13,7 +14,6 @@
|
|||
static void pci_domain_read_resources(device_t dev)
|
||||
{
|
||||
struct resource *resource;
|
||||
unsigned reg;
|
||||
|
||||
/* Initialize the system wide io space constraints */
|
||||
resource = new_resource(dev, IOINDEX_SUBTRACTIVE(0, 0));
|
||||
|
|
|
@ -35,4 +35,8 @@
|
|||
/* the FB size in MB (min is 8MB max is 512MB) */
|
||||
#define K8M890_FBSIZEMB 64
|
||||
|
||||
#include <device/device.h>
|
||||
extern void writeback(struct device *dev, u16 where, u8 what);
|
||||
extern void dump_south(device_t dev);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#include <device/pci.h>
|
||||
#include <device/pci_ids.h>
|
||||
#include <console/console.h>
|
||||
#include "k8t890.h"
|
||||
|
||||
static void bridge_enable(struct device *dev)
|
||||
{
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include <device/pci_ops.h>
|
||||
#include <device/pci_ids.h>
|
||||
#include <console/console.h>
|
||||
#include "k8t890.h"
|
||||
|
||||
/* this may be later merged */
|
||||
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include <device/pci.h>
|
||||
#include <device/pciexp.h>
|
||||
#include <device/pci_ids.h>
|
||||
#include "k8t890.h"
|
||||
|
||||
static void peg_init(struct device *dev)
|
||||
{
|
||||
|
|
|
@ -23,6 +23,8 @@
|
|||
#include <console/console.h>
|
||||
#include "k8t890.h"
|
||||
|
||||
extern unsigned long log2(unsigned long x);
|
||||
|
||||
static void mmconfig_set_resources(device_t dev)
|
||||
{
|
||||
struct resource *resource;
|
||||
|
|
Loading…
Reference in New Issue