move amd K8/Fam10 "bus detection" function prototypes to a common place.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5370 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Stefan Reinauer 2010-04-07 15:30:11 +00:00 committed by Stefan Reinauer
parent 135a966d34
commit e9de1e2609
109 changed files with 111 additions and 108 deletions

View File

@ -70,4 +70,6 @@ struct amdfam10_sysconf_t {
extern struct amdfam10_sysconf_t sysconf;
void get_sblk_pci1234(void);
void get_bus_conf(void);
#endif

View File

@ -25,4 +25,6 @@ struct amdk8_sysconf_t {
extern struct amdk8_sysconf_t sysconf;
void get_sblk_pci1234(void);
void get_bus_conf(void);
#endif

View File

@ -92,7 +92,7 @@ unsigned long acpi_fill_madt(unsigned long current)
return current;
}
extern void get_bus_conf(void);
static void update_ssdtx(void *ssdtx, int i)
{

View File

@ -59,7 +59,7 @@ u32 bus_type[256];
u32 sbdn_rs690;
u32 sbdn_sb600;
extern void get_sblk_pci1234(void);
static u32 get_bus_conf_done = 0;

View File

@ -31,7 +31,7 @@
#include <cpu/amd/amdk8_sysconf.h>
extern void get_bus_conf(void);
static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
u8 link0, u16 bitmap0, u8 link1, u16 bitmap1,

View File

@ -36,7 +36,7 @@ extern u32 bus_type[256];
extern u32 sbdn_rs690;
extern u32 sbdn_sb600;
extern void get_bus_conf(void);
static void *smp_write_config_table(void *v)
{

View File

@ -99,7 +99,7 @@ unsigned long acpi_fill_madt(unsigned long current)
return current;
}
extern void get_bus_conf(void);
#if CONFIG_ACPI_SSDTX_NUM >= 1
static void update_ssdtx(void *ssdtx, int i)

View File

@ -59,7 +59,7 @@ u32 bus_type[256];
u32 sbdn_rs780;
u32 sbdn_sb700;
extern void get_sblk_pci1234(void);
static u32 get_bus_conf_done = 0;

View File

@ -31,7 +31,7 @@
#include <cpu/amd/amdk8_sysconf.h>
extern void get_bus_conf(void);
static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
u8 link0, u16 bitmap0, u8 link1, u16 bitmap1,

View File

@ -37,7 +37,7 @@ extern u32 bus_type[256];
extern u32 sbdn_rs780;
extern u32 sbdn_sb700;
extern void get_bus_conf(void);
static void *smp_write_config_table(void *v)
{

View File

@ -89,7 +89,7 @@ unsigned long acpi_fill_madt(unsigned long current)
return current;
}
extern void get_bus_conf(void);
extern void update_ssdt(void *ssdt);
/* not tested yet. */

View File

@ -25,7 +25,7 @@
#include <cpu/amd/amdfam10_sysconf.h>
extern void get_bus_conf(void);
static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
u8 link0, u16 bitmap0, u8 link1, u16 bitmap1,

View File

@ -37,7 +37,7 @@ extern u32 bus_type[256];
extern u32 sbdn_rs780;
extern u32 sbdn_sb700;
extern void get_bus_conf(void);
static void *smp_write_config_table(void *v)
{

View File

@ -92,7 +92,7 @@ unsigned long acpi_fill_madt(unsigned long current)
return current;
}
extern void get_bus_conf(void);
static void update_ssdtx(void *ssdtx, int i)
{

View File

@ -59,7 +59,7 @@ u32 bus_type[256];
u32 sbdn_rs690;
u32 sbdn_sb600;
extern void get_sblk_pci1234(void);
static u32 get_bus_conf_done = 0;

View File

@ -31,7 +31,7 @@
#include <cpu/amd/amdk8_sysconf.h>
extern void get_bus_conf(void);
static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
u8 link0, u16 bitmap0, u8 link1, u16 bitmap1,

View File

@ -36,7 +36,7 @@ extern u32 bus_type[256];
extern u32 sbdn_rs690;
extern u32 sbdn_sb600;
extern void get_bus_conf(void);
static void *smp_write_config_table(void *v)
{

View File

@ -150,7 +150,7 @@ unsigned long acpi_fill_madt(unsigned long current)
return current;
}
extern void get_bus_conf(void);
static void update_ssdtx(void *ssdtx, int i)
{

View File

@ -39,7 +39,7 @@ static unsigned hcdnx[] =
// 0x20202020,
};
extern void get_sblk_pci1234(void);
static unsigned get_bus_conf_done = 0;

View File

@ -34,7 +34,7 @@ static void write_pirq_info(struct irq_info *pirq_info, uint8_t bus, uint8_t dev
}
extern void get_bus_conf(void);
unsigned long write_pirq_routing_table(unsigned long addr)
{

View File

@ -10,7 +10,7 @@
#include <cpu/amd/amdk8_sysconf.h>
#include "mb_sysconf.h"
extern void get_bus_conf(void);
static void *smp_write_config_table(void *v)
{

View File

@ -160,7 +160,7 @@ unsigned long acpi_fill_madt(unsigned long current)
return current;
}
extern void get_bus_conf(void);
extern void update_ssdt(void *ssdt);
static void update_ssdtx(void *ssdtx, int i)

View File

@ -46,7 +46,7 @@ static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn, u8 lin
}
extern void get_bus_conf(void);
unsigned long write_pirq_routing_table(unsigned long addr)
{

View File

@ -29,7 +29,7 @@
#include <cpu/amd/amdfam10_sysconf.h>
#include "mb_sysconf.h"
extern void get_bus_conf(void);
static void *smp_write_config_table(void *v)
{

View File

@ -99,7 +99,7 @@ unsigned long acpi_fill_madt(unsigned long current)
return current;
}
extern void get_bus_conf(void);
#if CONFIG_ACPI_SSDTX_NUM >= 1
static void update_ssdtx(void *ssdtx, int i)

View File

@ -59,7 +59,7 @@ u32 bus_type[256];
u32 sbdn_rs780;
u32 sbdn_sb700;
extern void get_sblk_pci1234(void);
static u32 get_bus_conf_done = 0;

View File

@ -31,7 +31,7 @@
#include <cpu/amd/amdk8_sysconf.h>
extern void get_bus_conf(void);
static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
u8 link0, u16 bitmap0, u8 link1, u16 bitmap1,

View File

@ -37,7 +37,7 @@ extern u32 bus_type[256];
extern u32 sbdn_rs780;
extern u32 sbdn_sb700;
extern void get_bus_conf(void);
static void *smp_write_config_table(void *v)
{

View File

@ -61,7 +61,7 @@ unsigned hcdnx[] = {
unsigned bus_type[256];
extern void get_sblk_pci1234(void);
static unsigned get_bus_conf_done = 0;

View File

@ -30,7 +30,7 @@
extern unsigned char bus_isa;
extern unsigned char bus_ck804[6];
extern void get_bus_conf(void);
/**
* Add one line to IRQ table.

View File

@ -32,7 +32,7 @@ extern unsigned char bus_isa;
extern unsigned char bus_ck804[6];
extern unsigned apicid_ck804;
extern unsigned bus_type[256];
extern void get_bus_conf(void);
static void *smp_write_config_table(void *v)
{

View File

@ -46,7 +46,7 @@ unsigned hcdnx[] =
};
unsigned sbdn2;
extern void get_sblk_pci1234(void);
static unsigned get_bus_conf_done = 0;

View File

@ -40,7 +40,7 @@ extern unsigned apicid_bcm5785[3];
extern unsigned sbdn2;
extern void get_bus_conf(void);
unsigned long write_pirq_routing_table(unsigned long addr)
{

View File

@ -19,7 +19,7 @@ extern unsigned apicid_bcm5785[3];
extern unsigned sbdn2;
extern void get_bus_conf(void);
static void *smp_write_config_table(void *v)
{

View File

@ -66,7 +66,7 @@ unsigned hcdnx[] =
};
unsigned bus_type[256];
extern void get_sblk_pci1234(void);
static unsigned get_bus_conf_done = 0;

View File

@ -55,7 +55,7 @@ static void write_pirq_info(struct irq_info *pirq_info, uint8_t bus, uint8_t dev
extern unsigned char bus_isa;
extern unsigned char bus_sis966[8]; //1
extern void get_bus_conf(void);
unsigned long write_pirq_routing_table(unsigned long addr)
{
@ -133,7 +133,6 @@ unsigned long write_pirq_routing_table(unsigned long addr)
PINTH = IRQ7
*/
int i;
uint8_t reg[8]={0x41,0x42,0x43,0x44,0x60,0x61,0x62,0x63};
uint8_t irq[8]={0x0A,0X0B,0X0,0X0a,0X0B,0X05,0X0,0X07};

View File

@ -47,7 +47,7 @@ unsigned long acpi_fill_madt(unsigned long current)
unsigned int gsi_base = 0x18;
extern unsigned char bus_mcp55[8];
extern unsigned apicid_mcp55;
extern void get_bus_conf(void);
unsigned sbdn;
struct resource *res;
device_t dev;

View File

@ -64,7 +64,7 @@ unsigned hcdnx[] =
};
unsigned bus_type[256];
extern void get_sblk_pci1234(void);
static unsigned get_bus_conf_done = 0;

View File

@ -53,7 +53,7 @@ static void write_pirq_info(struct irq_info *pirq_info, uint8_t bus, uint8_t dev
extern unsigned char bus_isa;
extern unsigned char bus_mcp55[8]; //1
extern void get_bus_conf(void);
unsigned long write_pirq_routing_table(unsigned long addr)
{

View File

@ -34,7 +34,7 @@ extern unsigned apicid_mcp55;
extern unsigned bus_type[256];
extern void get_bus_conf(void);
static void *smp_write_config_table(void *v)
{

View File

@ -61,7 +61,7 @@ static unsigned hcdnx[] =
// 0x20202020,
};
extern void get_sblk_pci1234(void);
static unsigned get_bus_conf_done = 0;

View File

@ -41,7 +41,7 @@
#include "mb_sysconf.h"
extern void get_bus_conf(void);
static void *smp_write_config_table(void *v)
{

View File

@ -157,7 +157,7 @@ unsigned long acpi_fill_madt(unsigned long current)
return current;
}
extern void get_bus_conf(void);
static void update_ssdtx(void *ssdtx, int i)
{

View File

@ -39,7 +39,7 @@ static unsigned hcdnx[] =
// 0x20202020,
};
extern void get_sblk_pci1234(void);
static unsigned get_bus_conf_done = 0;

View File

@ -34,7 +34,7 @@ static void write_pirq_info(struct irq_info *pirq_info, uint8_t bus, uint8_t dev
}
extern void get_bus_conf(void);
unsigned long write_pirq_routing_table(unsigned long addr)
{

View File

@ -10,7 +10,7 @@
#include <cpu/amd/amdk8_sysconf.h>
#include "mb_sysconf.h"
extern void get_bus_conf(void);
static void *smp_write_config_table(void *v)
{

View File

@ -92,7 +92,7 @@ unsigned long acpi_fill_madt(unsigned long current)
return current;
}
extern void get_bus_conf(void);
static void update_ssdtx(void *ssdtx, int i)
{

View File

@ -59,7 +59,7 @@ u32 bus_type[256];
u32 sbdn_rs690;
u32 sbdn_sb600;
extern void get_sblk_pci1234(void);
static u32 get_bus_conf_done = 0;

View File

@ -31,7 +31,7 @@
#include <cpu/amd/amdk8_sysconf.h>
extern void get_bus_conf(void);
static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
u8 link0, u16 bitmap0, u8 link1, u16 bitmap1,

View File

@ -36,7 +36,7 @@ extern u32 bus_type[256];
extern u32 sbdn_rs690;
extern u32 sbdn_sb600;
extern void get_bus_conf(void);
static void *smp_write_config_table(void *v)
{

View File

@ -51,7 +51,7 @@ unsigned hcdnx[] = { //HT Chain device num, actually it is unit id base of ever
};
unsigned bus_type[256];
extern void get_sblk_pci1234(void);
static unsigned get_bus_conf_done = 0;

View File

@ -37,7 +37,7 @@
extern unsigned char bus_isa;
extern unsigned char bus_ck804[6];
extern void get_bus_conf(void);
/**
* Add one line to IRQ table.

View File

@ -36,7 +36,7 @@ extern unsigned apicid_ck804;
extern unsigned bus_type[256];
extern void get_bus_conf(void);
static void *smp_write_config_table(void *v)
{

View File

@ -67,7 +67,7 @@ unsigned hcdnx[] = {
unsigned bus_type[256];
extern void get_sblk_pci1234(void);
static unsigned get_bus_conf_done = 0;

View File

@ -49,7 +49,7 @@ static void write_pirq_info(struct irq_info *pirq_info, uint8_t bus,
extern unsigned char bus_isa;
extern unsigned char bus_mcp55[8]; // 1
extern void get_bus_conf(void);
unsigned long write_pirq_routing_table(unsigned long addr)
{

View File

@ -31,7 +31,7 @@ extern unsigned char bus_mcp55[8]; // 1
extern unsigned apicid_mcp55;
extern unsigned bus_type[256];
extern void get_bus_conf(void);
static void *smp_write_config_table(void *v)
{

View File

@ -62,7 +62,7 @@ static unsigned hcdnx[] =
// 0x20202020,
};
extern void get_sblk_pci1234(void);
static unsigned get_bus_conf_done = 0;

View File

@ -58,7 +58,7 @@ static void write_pirq_info(struct irq_info *pirq_info, uint8_t bus, uint8_t dev
pirq_info->rfu = rfu;
}
extern void get_bus_conf(void);
unsigned long write_pirq_routing_table(unsigned long addr)
{

View File

@ -38,7 +38,7 @@
#include "mb_sysconf.h"
extern void get_bus_conf(void);
static void *smp_write_config_table(void *v)
{

View File

@ -64,7 +64,7 @@ unsigned hcdnx[] =
};
extern void get_sblk_pci1234(void);
static unsigned get_bus_conf_done = 0;

View File

@ -55,7 +55,7 @@ static void write_pirq_info(struct irq_info *pirq_info, uint8_t bus, uint8_t dev
pirq_info->rfu = rfu;
}
extern void get_bus_conf(void);
unsigned long write_pirq_routing_table(unsigned long addr)
{

View File

@ -32,7 +32,7 @@
#include "mb_sysconf.h"
extern void get_bus_conf(void);
static void *smp_write_config_table(void *v)
{

View File

@ -49,7 +49,7 @@ unsigned long acpi_fill_madt(unsigned long current)
struct mb_sysconf_t *m;
//extern unsigned char bus_mcp55[8];
//extern unsigned apicid_mcp55;
extern void get_bus_conf(void);
unsigned sbdn;
struct resource *res;
device_t dev;

View File

@ -52,7 +52,7 @@ static void write_pirq_info(struct irq_info *pirq_info, uint8_t bus, uint8_t dev
pirq_info->rfu = rfu;
}
extern void get_bus_conf(void);
unsigned long write_pirq_routing_table(unsigned long addr)
{

View File

@ -29,7 +29,7 @@
#include "mb_sysconf.h"
extern void get_bus_conf(void);
static void *smp_write_config_table(void *v)
{

View File

@ -61,7 +61,7 @@ unsigned hcdnx[] =
};
extern void get_sblk_pci1234(void);
static unsigned get_bus_conf_done = 0;

View File

@ -52,7 +52,7 @@ static void write_pirq_info(struct irq_info *pirq_info, uint8_t bus, uint8_t dev
pirq_info->rfu = rfu;
}
extern void get_bus_conf(void);
unsigned long write_pirq_routing_table(unsigned long addr)
{

View File

@ -29,7 +29,7 @@
#include "mb_sysconf.h"
extern void get_bus_conf(void);
static void *smp_write_config_table(void *v)
{

View File

@ -61,7 +61,7 @@ unsigned hcdn[] =
unsigned sbdn3;
unsigned sbdnb;
extern void get_sblk_pci1234(void);
static unsigned get_bus_conf_done = 0;

View File

@ -51,7 +51,7 @@ extern unsigned hcdn[];
extern unsigned sbdn3;
extern unsigned sbdnb;
extern void get_bus_conf(void);
unsigned long write_pirq_routing_table(unsigned long addr)
{

View File

@ -32,7 +32,7 @@ extern unsigned hcdn[];
extern unsigned sbdn3;
extern unsigned sbdnb;
extern void get_bus_conf(void);
static void *smp_write_config_table(void *v)
{

View File

@ -65,7 +65,7 @@ unsigned hcdnx[] =
};
unsigned sbdnb;
extern void get_sblk_pci1234(void);
static unsigned get_bus_conf_done = 0;

View File

@ -53,7 +53,7 @@ static void write_pirq_info(struct irq_info *pirq_info, uint8_t bus, uint8_t dev
extern unsigned char bus_isa;
extern unsigned char bus_mcp55[8]; //1
extern void get_bus_conf(void);
unsigned long write_pirq_routing_table(unsigned long addr)
{

View File

@ -33,7 +33,7 @@ extern unsigned apicid_mcp55;
extern unsigned char bus_pcix[3]; // under bus_mcp55_2
extern void get_bus_conf(void);
static void *smp_write_config_table(void *v)
{

View File

@ -65,7 +65,7 @@ unsigned hcdnx[] =
};
unsigned sbdnb;
extern void get_sblk_pci1234(void);
static unsigned get_bus_conf_done = 0;

View File

@ -53,7 +53,7 @@ static void write_pirq_info(struct irq_info *pirq_info, uint8_t bus, uint8_t dev
extern unsigned char bus_isa;
extern unsigned char bus_mcp55[8]; //1
extern void get_bus_conf(void);
unsigned long write_pirq_routing_table(unsigned long addr)
{

View File

@ -33,7 +33,7 @@ extern unsigned apicid_mcp55;
extern unsigned char bus_pcix[3]; // under bus_mcp55_2
extern void get_bus_conf(void);
static void *smp_write_config_table(void *v)
{

View File

@ -52,7 +52,7 @@ static void write_pirq_info(struct irq_info *pirq_info, uint8_t bus, uint8_t dev
pirq_info->rfu = rfu;
}
extern void get_bus_conf(void);
unsigned long write_pirq_routing_table(unsigned long addr)
{

View File

@ -29,7 +29,7 @@
#include "mb_sysconf.h"
extern void get_bus_conf(void);
static void *smp_write_config_table(void *v)
{

View File

@ -52,7 +52,7 @@ static void write_pirq_info(struct irq_info *pirq_info, uint8_t bus, uint8_t dev
pirq_info->rfu = rfu;
}
extern void get_bus_conf(void);
unsigned long write_pirq_routing_table(unsigned long addr)
{

View File

@ -29,7 +29,7 @@
#include "mb_sysconf.h"
extern void get_bus_conf(void);
extern unsigned sbdn3;
static void *smp_write_config_table(void *v)

View File

@ -92,7 +92,7 @@ unsigned long acpi_fill_madt(unsigned long current)
return current;
}
extern void get_bus_conf(void);
static void update_ssdtx(void *ssdtx, int i)
{

View File

@ -59,7 +59,7 @@ u32 bus_type[256];
u32 sbdn_rs690;
u32 sbdn_sb600;
extern void get_sblk_pci1234(void);
static u32 get_bus_conf_done = 0;

View File

@ -31,7 +31,7 @@
#include <cpu/amd/amdk8_sysconf.h>
extern void get_bus_conf(void);
static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
u8 link0, u16 bitmap0, u8 link1, u16 bitmap1,

View File

@ -36,7 +36,7 @@ extern u32 bus_type[256];
extern u32 sbdn_rs690;
extern u32 sbdn_sb600;
extern void get_bus_conf(void);
static void *smp_write_config_table(void *v)
{

View File

@ -92,7 +92,7 @@ unsigned long acpi_fill_madt(unsigned long current)
return current;
}
extern void get_bus_conf(void);
static void update_ssdtx(void *ssdtx, int i)
{

View File

@ -59,7 +59,7 @@ u32 bus_type[256];
u32 sbdn_rs690;
u32 sbdn_sb600;
extern void get_sblk_pci1234(void);
static u32 get_bus_conf_done = 0;

View File

@ -31,7 +31,7 @@
#include <cpu/amd/amdk8_sysconf.h>
extern void get_bus_conf(void);
static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
u8 link0, u16 bitmap0, u8 link1, u16 bitmap1,

View File

@ -36,7 +36,7 @@ extern u32 bus_type[256];
extern u32 sbdn_rs690;
extern u32 sbdn_sb600;
extern void get_bus_conf(void);
static void *smp_write_config_table(void *v)
{

View File

@ -48,7 +48,7 @@ unsigned hcdnx[] =
};
unsigned sbdn3;
extern void get_sblk_pci1234(void);
static unsigned get_bus_conf_done = 0;

View File

@ -38,7 +38,7 @@ extern unsigned char bus_8111_1;
extern unsigned sbdn3;
extern void get_bus_conf(void);
unsigned long write_pirq_routing_table(unsigned long addr)
{

View File

@ -18,7 +18,7 @@ extern unsigned apicid_8131_2;
extern unsigned sbdn3;
extern void get_bus_conf(void);
static void *smp_write_config_table(void *v)
{

View File

@ -50,7 +50,7 @@ unsigned hcdnx[] =
unsigned sbdn3;
unsigned sbdn5;
extern void get_sblk_pci1234(void);
static unsigned get_bus_conf_done = 0;

View File

@ -41,7 +41,7 @@ extern unsigned char bus_8151_1;
extern unsigned sbdn3;
extern unsigned sbdn5;
extern void get_bus_conf(void);
unsigned long write_pirq_routing_table(unsigned long addr)
{

View File

@ -21,7 +21,7 @@ extern unsigned apicid_8131_2;
extern unsigned sbdn3;
extern unsigned sbdn5;
extern void get_bus_conf(void);
static void *smp_write_config_table(void *v)

View File

@ -55,7 +55,7 @@ unsigned hcdnx[] =
unsigned sbdn3;
unsigned coprocdn;
extern void get_sblk_pci1234(void);
static unsigned get_bus_conf_done = 0;

View File

@ -45,7 +45,7 @@ extern unsigned char bus_coproc_0;
extern unsigned sbdn3;
extern unsigned coprocdn;
extern void get_bus_conf(void);
unsigned long write_pirq_routing_table(unsigned long addr)
{

View File

@ -22,7 +22,7 @@ extern unsigned apicid_8131_2;
extern unsigned sbdn3;
extern void get_bus_conf(void);
static void *smp_write_config_table(void *v)
{

View File

@ -52,7 +52,7 @@ unsigned hcdnx[] =
unsigned sbdn3;
extern void get_sblk_pci1234(void);
static unsigned get_bus_conf_done = 0;

View File

@ -43,7 +43,7 @@ extern unsigned char bus_8131_2; //9
extern unsigned sbdn3;
extern void get_bus_conf(void);
unsigned long write_pirq_routing_table(unsigned long addr)
{

Some files were not shown because too many files have changed in this diff Show More