amdfam10 boards: Drop extern on bus_rs780 and sbdn_rs780

Change-Id: I7dc943f3376e9b706d3d486231525df85f806858
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/30631
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Kyösti Mälkki 2019-01-03 11:38:40 +02:00
parent c0b1be0ba1
commit 0571afe5d2
38 changed files with 26 additions and 64 deletions

View File

@ -23,7 +23,7 @@
/* Global variables for MB layouts and these will be shared by irqtable mptable
* and acpi_tables busnum is default.
*/
u8 bus_rs780[11];
static u8 bus_rs780[11];
u8 bus_sb800[6];
u32 apicid_sb800;
@ -45,7 +45,7 @@ u32 hcdnx[] = {
};
u32 sbdn_rs780;
static u32 sbdn_rs780;
u32 sbdn_sb800;
void get_bus_conf(void)

View File

@ -39,7 +39,6 @@ static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
pirq_info->rfu = rfu;
}
extern u8 bus_rs780[8];
extern u8 bus_sb800[6];
extern unsigned long sbdn_sb800;

View File

@ -20,10 +20,8 @@
#include <stdint.h>
#include <cpu/amd/amdfam10_sysconf.h>
extern u8 bus_rs780[11];
extern u8 bus_sb800[6];
extern u32 apicid_sb800;
extern u32 sbdn_rs780;
extern u32 sbdn_sb800;
u8 intr_data[] = {

View File

@ -23,7 +23,7 @@
/* Global variables for MB layouts and these will be shared by irqtable mptable
* and acpi_tables busnum is default.
*/
u8 bus_rs780[11];
static u8 bus_rs780[11];
u8 bus_sb800[6];
u32 apicid_sb800;
@ -45,7 +45,7 @@ u32 hcdnx[] = {
};
u32 sbdn_rs780;
static u32 sbdn_rs780;
u32 sbdn_sb800;
void get_bus_conf(void)

View File

@ -39,7 +39,6 @@ static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
pirq_info->rfu = rfu;
}
extern u8 bus_rs780[8];
extern u8 bus_sb800[6];
extern unsigned long sbdn_sb800;

View File

@ -21,10 +21,8 @@
#include <southbridge/amd/sb800/sb800.h>
#include <cpu/amd/amdfam10_sysconf.h>
extern u8 bus_rs780[11];
extern u8 bus_sb800[6];
extern u32 apicid_sb800;
extern u32 sbdn_rs780;
extern u32 sbdn_sb800;
u8 intr_data[] = {

View File

@ -24,7 +24,7 @@
/* Global variables for MB layouts and these will be shared by irqtable mptable
* and acpi_tables busnum is default.
*/
u8 bus_rs780[11];
static u8 bus_rs780[11];
u8 bus_sb700[2];
u32 apicid_sb700;
@ -45,7 +45,7 @@ u32 hcdnx[] = {
0x20202020,
};
u32 sbdn_rs780;
static u32 sbdn_rs780;
u32 sbdn_sb700;
void get_bus_conf(void)

View File

@ -40,7 +40,6 @@ static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
pirq_info->rfu = rfu;
}
extern u8 bus_rs780[8];
extern u8 bus_sb700[2];
extern unsigned long sbdn_sb700;

View File

@ -20,12 +20,10 @@
#include <stdint.h>
#include <cpu/amd/amdfam10_sysconf.h>
extern u8 bus_rs780[11];
extern u8 bus_sb700[2];
extern u32 apicid_sb700;
extern u32 sbdn_rs780;
extern u32 sbdn_sb700;
static void *smp_write_config_table(void *v)

View File

@ -24,7 +24,7 @@
/* Global variables for MB layouts and these will be shared by irqtable mptable
* and acpi_tables busnum is default.
*/
u8 bus_rs780[11];
static u8 bus_rs780[11];
u8 bus_sb700[2];
u32 apicid_sb700;
@ -45,7 +45,7 @@ u32 hcdnx[] = {
0x20202020,
};
u32 sbdn_rs780;
static u32 sbdn_rs780;
u32 sbdn_sb700;
void get_bus_conf(void)

View File

@ -40,7 +40,6 @@ static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
pirq_info->rfu = rfu;
}
extern u8 bus_rs780[8];
extern u8 bus_sb700[2];
extern unsigned long sbdn_sb700;

View File

@ -20,12 +20,10 @@
#include <stdint.h>
#include <cpu/amd/amdfam10_sysconf.h>
extern u8 bus_rs780[11];
extern u8 bus_sb700[2];
extern u32 apicid_sb700;
extern u32 sbdn_rs780;
extern u32 sbdn_sb700;
static void *smp_write_config_table(void *v)

View File

@ -24,7 +24,7 @@
/* Global variables for MB layouts and these will be shared by irqtable mptable
* and acpi_tables busnum is default.
*/
u8 bus_rs780[11];
static u8 bus_rs780[11];
u8 bus_sb700[2];
u32 apicid_sb700;
@ -45,7 +45,7 @@ u32 hcdnx[] = {
0x20202020,
};
u32 sbdn_rs780;
static u32 sbdn_rs780;
u32 sbdn_sb700;
void get_bus_conf(void)

View File

@ -20,12 +20,10 @@
#include <stdint.h>
#include <cpu/amd/amdfam10_sysconf.h>
extern u8 bus_rs780[11];
extern u8 bus_sb700[2];
extern u32 apicid_sb700;
extern u32 sbdn_rs780;
extern u32 sbdn_sb700;
static void *smp_write_config_table(void *v)

View File

@ -24,7 +24,7 @@
/* Global variables for MB layouts and these will be shared by irqtable mptable
* and acpi_tables busnum is default.
*/
u8 bus_rs780[11];
static u8 bus_rs780[11];
u8 bus_sb700[2];
u32 apicid_sb700;
@ -45,7 +45,7 @@ u32 hcdnx[] = {
0x20202020,
};
u32 sbdn_rs780;
static u32 sbdn_rs780;
u32 sbdn_sb700;
void get_bus_conf(void)

View File

@ -20,12 +20,10 @@
#include <stdint.h>
#include <cpu/amd/amdfam10_sysconf.h>
extern u8 bus_rs780[11];
extern u8 bus_sb700[2];
extern u32 apicid_sb700;
extern u32 sbdn_rs780;
extern u32 sbdn_sb700;
static void *smp_write_config_table(void *v)

View File

@ -23,7 +23,7 @@
/* Global variables for MB layouts and these will be shared by irqtable mptable
* and acpi_tables busnum is default.
*/
u8 bus_rs780[11];
static u8 bus_rs780[11];
u8 bus_sb800[6];
u32 apicid_sb800;
@ -45,7 +45,7 @@ u32 hcdnx[] = {
};
u32 sbdn_rs780;
static u32 sbdn_rs780;
u32 sbdn_sb800;
void get_bus_conf(void)

View File

@ -39,7 +39,6 @@ static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
pirq_info->rfu = rfu;
}
extern u8 bus_rs780[8];
extern u8 bus_sb800[6];
extern unsigned long sbdn_sb800;

View File

@ -20,10 +20,8 @@
#include <stdint.h>
#include <cpu/amd/amdfam10_sysconf.h>
extern u8 bus_rs780[11];
extern u8 bus_sb800[6];
extern u32 apicid_sb800;
extern u32 sbdn_rs780;
extern u32 sbdn_sb800;
u8 intr_data[] = {

View File

@ -23,7 +23,7 @@
/* Global variables for MB layouts and these will be shared by irqtable mptable
* and acpi_tables busnum is default.
*/
u8 bus_rs780[11];
static u8 bus_rs780[11];
u8 bus_sb800[6];
u32 apicid_sb800;
@ -45,7 +45,7 @@ u32 hcdnx[] = {
};
u32 sbdn_rs780;
static u32 sbdn_rs780;
u32 sbdn_sb800;
void get_bus_conf(void)

View File

@ -39,7 +39,6 @@ static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
pirq_info->rfu = rfu;
}
extern u8 bus_rs780[8];
extern u8 bus_sb800[6];
extern unsigned long sbdn_sb800;

View File

@ -20,10 +20,8 @@
#include <stdint.h>
#include <cpu/amd/amdfam10_sysconf.h>
extern u8 bus_rs780[11];
extern u8 bus_sb800[6];
extern u32 apicid_sb800;
extern u32 sbdn_rs780;
extern u32 sbdn_sb800;
u8 intr_data[] = {

View File

@ -24,7 +24,7 @@
/* Global variables for MB layouts and these will be shared by irqtable mptable
* and acpi_tables busnum is default.
*/
u8 bus_rs780[11];
static u8 bus_rs780[11];
u8 bus_sb700[2];
u32 apicid_sb700;
@ -45,7 +45,7 @@ u32 hcdnx[] = {
0x20202020,
};
u32 sbdn_rs780;
static u32 sbdn_rs780;
u32 sbdn_sb700;
void get_bus_conf(void)

View File

@ -40,7 +40,6 @@ static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
pirq_info->rfu = rfu;
}
extern u8 bus_rs780[8];
extern u8 bus_sb700[2];
extern unsigned long sbdn_sb700;

View File

@ -20,12 +20,10 @@
#include <stdint.h>
#include <cpu/amd/amdfam10_sysconf.h>
extern u8 bus_rs780[11];
extern u8 bus_sb700[2];
extern u32 apicid_sb700;
extern u32 sbdn_rs780;
extern u32 sbdn_sb700;
static void *smp_write_config_table(void *v)

View File

@ -24,7 +24,7 @@
/* Global variables for MB layouts and these will be shared by irqtable mptable
* and acpi_tables busnum is default.
*/
u8 bus_rs780[11];
static u8 bus_rs780[11];
u8 bus_sb700[2];
u32 apicid_sb700;
@ -45,7 +45,7 @@ u32 hcdnx[] = {
0x20202020,
};
u32 sbdn_rs780;
static u32 sbdn_rs780;
u32 sbdn_sb700;
void get_bus_conf(void)

View File

@ -40,7 +40,6 @@ static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
pirq_info->rfu = rfu;
}
extern u8 bus_rs780[8];
extern u8 bus_sb700[2];
extern unsigned long sbdn_sb700;

View File

@ -20,12 +20,10 @@
#include <stdint.h>
#include <cpu/amd/amdfam10_sysconf.h>
extern u8 bus_rs780[11];
extern u8 bus_sb700[2];
extern u32 apicid_sb700;
extern u32 sbdn_rs780;
extern u32 sbdn_sb700;
static void *smp_write_config_table(void *v)

View File

@ -24,7 +24,7 @@
/* Global variables for MB layouts and these will be shared by irqtable mptable
* and acpi_tables busnum is default.
*/
u8 bus_rs780[11];
static u8 bus_rs780[11];
u8 bus_sb700[2];
u32 apicid_sb700;
@ -45,7 +45,7 @@ u32 hcdnx[] = {
0x20202020,
};
u32 sbdn_rs780;
static u32 sbdn_rs780;
u32 sbdn_sb700;
void get_bus_conf(void)

View File

@ -40,7 +40,6 @@ static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
pirq_info->rfu = rfu;
}
extern u8 bus_rs780[8];
extern u8 bus_sb700[2];
extern unsigned long sbdn_sb700;

View File

@ -20,12 +20,10 @@
#include <stdint.h>
#include <cpu/amd/amdfam10_sysconf.h>
extern u8 bus_rs780[11];
extern u8 bus_sb700[2];
extern u32 apicid_sb700;
extern u32 sbdn_rs780;
extern u32 sbdn_sb700;
static void *smp_write_config_table(void *v)

View File

@ -24,7 +24,7 @@
/* Global variables for MB layouts and these will be shared by irqtable mptable
* and acpi_tables busnum is default.
*/
u8 bus_rs780[11];
static u8 bus_rs780[11];
u8 bus_sb700[2];
u32 apicid_sb700;
@ -45,7 +45,7 @@ u32 hcdnx[] = {
0x20202020,
};
u32 sbdn_rs780;
static u32 sbdn_rs780;
u32 sbdn_sb700;
void get_bus_conf(void)

View File

@ -40,7 +40,6 @@ static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
pirq_info->rfu = rfu;
}
extern u8 bus_rs780[8];
extern u8 bus_sb700[2];
extern unsigned long sbdn_sb700;

View File

@ -20,12 +20,10 @@
#include <stdint.h>
#include <cpu/amd/amdfam10_sysconf.h>
extern u8 bus_rs780[11];
extern u8 bus_sb700[2];
extern u32 apicid_sb700;
extern u32 sbdn_rs780;
extern u32 sbdn_sb700;
static void *smp_write_config_table(void *v)

View File

@ -24,7 +24,7 @@
/* Global variables for MB layouts and these will be shared by irqtable mptable
* and acpi_tables busnum is default.
*/
u8 bus_rs780[11];
static u8 bus_rs780[11];
u8 bus_sb700[2];
u32 apicid_sb700;
@ -45,7 +45,7 @@ u32 hcdnx[] = {
0x20202020,
};
u32 sbdn_rs780;
static u32 sbdn_rs780;
u32 sbdn_sb700;
void get_bus_conf(void)

View File

@ -40,7 +40,6 @@ static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
pirq_info->rfu = rfu;
}
extern u8 bus_rs780[8];
extern u8 bus_sb700[2];
extern unsigned long sbdn_sb700;

View File

@ -21,12 +21,10 @@
#include <stdint.h>
#include <cpu/amd/amdfam10_sysconf.h>
extern u8 bus_rs780[11];
extern u8 bus_sb700[2];
extern u32 apicid_sb700;
extern u32 sbdn_rs780;
extern u32 sbdn_sb700;
static void *smp_write_config_table(void *v)

View File

@ -40,7 +40,6 @@ static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
pirq_info->rfu = rfu;
}
extern u8 bus_rs780[8];
extern u8 bus_sp5100[2];
extern unsigned long sbdn_sp5100;