summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mainboard/advansus/a785e-i/get_bus_conf.c13
-rw-r--r--src/mainboard/advansus/a785e-i/mb_sysconf.h1
-rw-r--r--src/mainboard/advansus/a785e-i/mptable.c1
-rw-r--r--src/mainboard/amd/bimini_fam10/get_bus_conf.c15
-rw-r--r--src/mainboard/amd/bimini_fam10/mb_sysconf.h1
-rw-r--r--src/mainboard/amd/bimini_fam10/mptable.c1
-rw-r--r--src/mainboard/amd/dinar/get_bus_conf.c13
-rw-r--r--src/mainboard/amd/dinar/mptable.c1
-rw-r--r--src/mainboard/amd/inagua/get_bus_conf.c13
-rw-r--r--src/mainboard/amd/inagua/mptable.c1
-rw-r--r--src/mainboard/amd/mahogany_fam10/mb_sysconf.h1
-rw-r--r--src/mainboard/amd/olivehill/get_bus_conf.c12
-rw-r--r--src/mainboard/amd/olivehill/mptable.c1
-rw-r--r--src/mainboard/amd/parmer/get_bus_conf.c11
-rw-r--r--src/mainboard/amd/parmer/mptable.c1
-rw-r--r--src/mainboard/amd/persimmon/get_bus_conf.c14
-rw-r--r--src/mainboard/amd/persimmon/mptable.c1
-rw-r--r--src/mainboard/amd/south_station/get_bus_conf.c13
-rw-r--r--src/mainboard/amd/south_station/mptable.c1
-rw-r--r--src/mainboard/amd/thatcher/get_bus_conf.c12
-rw-r--r--src/mainboard/amd/thatcher/mptable.c1
-rw-r--r--src/mainboard/amd/tilapia_fam10/mb_sysconf.h1
-rw-r--r--src/mainboard/amd/torpedo/get_bus_conf.c12
-rw-r--r--src/mainboard/amd/torpedo/mptable.c1
-rw-r--r--src/mainboard/amd/union_station/get_bus_conf.c11
-rw-r--r--src/mainboard/amd/union_station/mptable.c1
-rw-r--r--src/mainboard/asrock/e350m1/get_bus_conf.c16
-rw-r--r--src/mainboard/asrock/e350m1/mptable.c1
-rw-r--r--src/mainboard/asrock/imb-a180/get_bus_conf.c12
-rw-r--r--src/mainboard/asrock/imb-a180/mptable.c1
-rw-r--r--src/mainboard/asus/f2a85-m/get_bus_conf.c11
-rw-r--r--src/mainboard/asus/f2a85-m/mptable.c1
-rw-r--r--src/mainboard/asus/m4a78-em/mb_sysconf.h1
-rw-r--r--src/mainboard/asus/m4a785-m/mb_sysconf.h1
-rw-r--r--src/mainboard/asus/m5a88-v/get_bus_conf.c14
-rw-r--r--src/mainboard/asus/m5a88-v/mb_sysconf.h1
-rw-r--r--src/mainboard/asus/m5a88-v/mptable.c1
-rw-r--r--src/mainboard/avalue/eax-785e/get_bus_conf.c14
-rw-r--r--src/mainboard/avalue/eax-785e/mb_sysconf.h1
-rw-r--r--src/mainboard/avalue/eax-785e/mptable.c1
-rw-r--r--src/mainboard/gigabyte/ma785gm/mb_sysconf.h1
-rwxr-xr-xsrc/mainboard/gizmosphere/gizmo/get_bus_conf.c13
-rwxr-xr-xsrc/mainboard/gizmosphere/gizmo/mptable.c1
-rw-r--r--src/mainboard/hp/pavilion_m6_1035dx/get_bus_conf.c13
-rw-r--r--src/mainboard/hp/pavilion_m6_1035dx/mptable.c1
-rw-r--r--src/mainboard/iei/kino-780am2-fam10/mb_sysconf.h1
-rw-r--r--src/mainboard/jetway/nf81-t56n-lf/get_bus_conf.c15
-rw-r--r--src/mainboard/jetway/nf81-t56n-lf/mptable.c1
-rw-r--r--src/mainboard/lippert/frontrunner-af/get_bus_conf.c14
-rw-r--r--src/mainboard/lippert/frontrunner-af/mptable.c1
-rw-r--r--src/mainboard/lippert/toucan-af/get_bus_conf.c15
-rw-r--r--src/mainboard/lippert/toucan-af/mptable.c1
-rw-r--r--src/mainboard/supermicro/h8qgi/get_bus_conf.c13
-rw-r--r--src/mainboard/supermicro/h8qgi/mptable.c1
-rw-r--r--src/mainboard/supermicro/h8scm/get_bus_conf.c13
-rw-r--r--src/mainboard/supermicro/h8scm/mptable.c1
-rw-r--r--src/mainboard/supermicro/h8scm_fam10/get_bus_conf.c12
-rw-r--r--src/mainboard/supermicro/h8scm_fam10/mb_sysconf.h1
-rw-r--r--src/mainboard/tyan/s8226/get_bus_conf.c13
-rw-r--r--src/mainboard/tyan/s8226/mptable.c1
60 files changed, 25 insertions, 337 deletions
diff --git a/src/mainboard/advansus/a785e-i/get_bus_conf.c b/src/mainboard/advansus/a785e-i/get_bus_conf.c
index 0feeed51c1..80e1d3ebe6 100644
--- a/src/mainboard/advansus/a785e-i/get_bus_conf.c
+++ b/src/mainboard/advansus/a785e-i/get_bus_conf.c
@@ -56,7 +56,6 @@ u32 hcdnx[] = {
0x20202020,
};
-u32 bus_type[256];
u32 sbdn_rs780;
u32 sbdn_sb800;
@@ -69,7 +68,7 @@ void get_bus_conf(void)
{
u32 apicid_base;
device_t dev;
- int i, j;
+ int i;
if (get_bus_conf_done == 1)
return; /* do it only once */
@@ -92,16 +91,11 @@ void get_bus_conf(void)
bus_rs780[i] = 0;
}
- for (i = 0; i < 256; i++) {
- bus_type[i] = 0; /* default ISA bus. */
- }
- bus_type[0] = 1; /* pci */
bus_rs780[0] = (sysconf.pci1234[0] >> 16) & 0xff;
bus_sb800[0] = bus_rs780[0];
- bus_type[bus_rs780[0]] = 1;
/* sb800 */
dev = dev_find_slot(bus_sb800[0], PCI_DEVFN(sbdn_sb800 + 0x14, 4));
@@ -109,8 +103,6 @@ void get_bus_conf(void)
bus_sb800[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
bus_isa++;
- for (j = bus_sb800[1]; j < bus_isa; j++)
- bus_type[j] = 1;
}
for (i = 0; i < 4; i++) {
@@ -121,8 +113,6 @@ void get_bus_conf(void)
bus_isa++;
}
}
- for (j = bus_sb800[2]; j < bus_isa; j++)
- bus_type[j] = 1;
/* rs780 */
for (i = 1; i < ARRAY_SIZE(bus_rs780); i++) {
@@ -132,7 +122,6 @@ void get_bus_conf(void)
if(255 != bus_rs780[i]) {
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
bus_isa++;
- bus_type[bus_rs780[i]] = 1; /* PCI bus. */
}
}
}
diff --git a/src/mainboard/advansus/a785e-i/mb_sysconf.h b/src/mainboard/advansus/a785e-i/mb_sysconf.h
index 289b094de8..8a693fd089 100644
--- a/src/mainboard/advansus/a785e-i/mb_sysconf.h
+++ b/src/mainboard/advansus/a785e-i/mb_sysconf.h
@@ -37,7 +37,6 @@ struct mb_sysconf_t {
u32 sbdn3;
u32 sbdn3a[31];
u32 sbdn5[31];
- u32 bus_type[256];
};
#endif
diff --git a/src/mainboard/advansus/a785e-i/mptable.c b/src/mainboard/advansus/a785e-i/mptable.c
index 73ada4dcce..f60b6b00b1 100644
--- a/src/mainboard/advansus/a785e-i/mptable.c
+++ b/src/mainboard/advansus/a785e-i/mptable.c
@@ -30,7 +30,6 @@ extern int bus_isa;
extern u8 bus_rs780[11];
extern u8 bus_sb800[6];
extern u32 apicid_sb800;
-extern u32 bus_type[256];
extern u32 sbdn_rs780;
extern u32 sbdn_sb800;
diff --git a/src/mainboard/amd/bimini_fam10/get_bus_conf.c b/src/mainboard/amd/bimini_fam10/get_bus_conf.c
index c4924d4c58..f7c551431d 100644
--- a/src/mainboard/amd/bimini_fam10/get_bus_conf.c
+++ b/src/mainboard/amd/bimini_fam10/get_bus_conf.c
@@ -53,7 +53,6 @@ u32 hcdnx[] = {
0x20202020,
};
-u32 bus_type[256];
u32 sbdn_rs780;
u32 sbdn_sb800;
@@ -66,7 +65,7 @@ void get_bus_conf(void)
{
u32 apicid_base;
device_t dev;
- int i, j;
+ int i;
if (get_bus_conf_done == 1)
return; /* do it only once */
@@ -90,25 +89,16 @@ void get_bus_conf(void)
bus_rs780[i] = 0;
}
- for (i = 0; i < 256; i++) {
- bus_type[i] = 0; /* default ISA bus. */
- }
-
- bus_type[0] = 1; /* pci */
bus_rs780[0] = (sysconf.pci1234[0] >> 16) & 0xff;
bus_sb800[0] = bus_rs780[0];
- bus_type[bus_rs780[0]] = 1;
-
/* sb800 */
dev = dev_find_slot(bus_sb800[0], PCI_DEVFN(sbdn_sb800 + 0x14, 4));
if (dev) {
bus_sb800[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
bus_isa++;
- for (j = bus_sb800[1]; j < bus_isa; j++)
- bus_type[j] = 1;
}
for (i = 0; i < 4; i++) {
@@ -119,8 +109,6 @@ void get_bus_conf(void)
bus_isa++;
}
}
- for (j = bus_sb800[2]; j < bus_isa; j++)
- bus_type[j] = 1;
/* rs780 */
for (i = 1; i < ARRAY_SIZE(bus_rs780); i++) {
@@ -130,7 +118,6 @@ void get_bus_conf(void)
if(255 != bus_rs780[i]) {
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
bus_isa++;
- bus_type[bus_rs780[i]] = 1; /* PCI bus. */
}
}
}
diff --git a/src/mainboard/amd/bimini_fam10/mb_sysconf.h b/src/mainboard/amd/bimini_fam10/mb_sysconf.h
index ed04de663e..8148093f0f 100644
--- a/src/mainboard/amd/bimini_fam10/mb_sysconf.h
+++ b/src/mainboard/amd/bimini_fam10/mb_sysconf.h
@@ -37,7 +37,6 @@ struct mb_sysconf_t {
u32 sbdn3;
u32 sbdn3a[31];
u32 sbdn5[31];
- u32 bus_type[256];
};
#endif
diff --git a/src/mainboard/amd/bimini_fam10/mptable.c b/src/mainboard/amd/bimini_fam10/mptable.c
index 792fa41ffe..bbdb95d177 100644
--- a/src/mainboard/amd/bimini_fam10/mptable.c
+++ b/src/mainboard/amd/bimini_fam10/mptable.c
@@ -30,7 +30,6 @@ extern int bus_isa;
extern u8 bus_rs780[11];
extern u8 bus_sb800[6];
extern u32 apicid_sb800;
-extern u32 bus_type[256];
extern u32 sbdn_rs780;
extern u32 sbdn_sb800;
diff --git a/src/mainboard/amd/dinar/get_bus_conf.c b/src/mainboard/amd/dinar/get_bus_conf.c
index d62e111d6c..fcd4684c5d 100644
--- a/src/mainboard/amd/dinar/get_bus_conf.c
+++ b/src/mainboard/amd/dinar/get_bus_conf.c
@@ -51,15 +51,13 @@ u32 hcdnx[] = {
0x20202020,
};
-u32 bus_type[256];
-
u32 sbdn_sb700;
u32 sbdn_rd890;
void get_bus_conf(void)
{
device_t dev;
- int i, j;
+ int i;
printk(BIOS_DEBUG, "Mainboard - Get_bus_conf.c - get_bus_conf - Start.\n");
@@ -72,12 +70,6 @@ void get_bus_conf(void)
bus_rd890[i] = 0;
}
- for (i = 0; i < 256; i++) {
- bus_type[i] = 0; /* default ISA bus. */
- }
-
-
- bus_type[0] = 1; /* pci */
bus_rd890[0] = (pci1234x[0] >> 16) & 0xff;
bus_sb700[0] = bus_rd890[0];
@@ -92,8 +84,6 @@ void get_bus_conf(void)
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
bus_isa++;
- for (j = bus_sb700[1]; j < bus_isa; j++)
- bus_type[j] = 1;
}
/* rd890 */
@@ -104,7 +94,6 @@ void get_bus_conf(void)
if(255 != bus_rd890[i]) {
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
bus_isa++;
- bus_type[bus_rd890[i]] = 1; /* PCI bus. */
}
}
}
diff --git a/src/mainboard/amd/dinar/mptable.c b/src/mainboard/amd/dinar/mptable.c
index 65304e132d..671cd37da3 100644
--- a/src/mainboard/amd/dinar/mptable.c
+++ b/src/mainboard/amd/dinar/mptable.c
@@ -30,7 +30,6 @@
extern u8 bus_rd890[14];
extern u8 bus_sb700[2];
-extern u32 bus_type[256];
extern u32 sbdn_rd890;
extern u32 sbdn_sb700;
diff --git a/src/mainboard/amd/inagua/get_bus_conf.c b/src/mainboard/amd/inagua/get_bus_conf.c
index be113b37f5..2c38bdd2f3 100644
--- a/src/mainboard/amd/inagua/get_bus_conf.c
+++ b/src/mainboard/amd/inagua/get_bus_conf.c
@@ -43,7 +43,6 @@ u32 pci1234x[] = {
0x0000ff0,
};
-u32 bus_type[256];
u32 sbdn_sb800;
void get_bus_conf(void)
@@ -51,18 +50,13 @@ void get_bus_conf(void)
u32 apicid_base;
device_t dev;
- int i, j;
+ int i;
sbdn_sb800 = 0;
memset(bus_sb800, 0, sizeof(bus_sb800));
- for (i = 0; i < 256; i++) {
- bus_type[i] = 0; /* default ISA bus. */
- }
-
- bus_type[0] = 1; /* pci */
// bus_sb800[0] = (sysconf.pci1234[0] >> 16) & 0xff;
bus_sb800[0] = (pci1234x[0] >> 16) & 0xff;
@@ -75,8 +69,6 @@ void get_bus_conf(void)
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
bus_isa++;
- for (j = bus_sb800[1]; j < bus_isa; j++)
- bus_type[j] = 1;
}
for (i = 0; i < 4; i++) {
@@ -88,9 +80,6 @@ void get_bus_conf(void)
}
}
- for (j = bus_sb800[2]; j < bus_isa; j++)
- bus_type[j] = 1;
-
/* I/O APICs: APIC ID Version State Address */
bus_isa = 10;
apicid_base = CONFIG_MAX_CPUS;
diff --git a/src/mainboard/amd/inagua/mptable.c b/src/mainboard/amd/inagua/mptable.c
index d2f850665c..898b5971a3 100644
--- a/src/mainboard/amd/inagua/mptable.c
+++ b/src/mainboard/amd/inagua/mptable.c
@@ -31,7 +31,6 @@ extern u8 bus_sb800[6];
extern u32 apicid_sb800;
-extern u32 bus_type[256];
extern u32 sbdn_sb800;
u8 intr_data[] = {
diff --git a/src/mainboard/amd/mahogany_fam10/mb_sysconf.h b/src/mainboard/amd/mahogany_fam10/mb_sysconf.h
index 768ffd1b30..25d63d5ffa 100644
--- a/src/mainboard/amd/mahogany_fam10/mb_sysconf.h
+++ b/src/mainboard/amd/mahogany_fam10/mb_sysconf.h
@@ -38,7 +38,6 @@ struct mb_sysconf_t {
u32 sbdn3;
u32 sbdn3a[31];
u32 sbdn5[31];
- u32 bus_type[256];
};
#endif
diff --git a/src/mainboard/amd/olivehill/get_bus_conf.c b/src/mainboard/amd/olivehill/get_bus_conf.c
index f1643a43a7..3aeeb90d8c 100644
--- a/src/mainboard/amd/olivehill/get_bus_conf.c
+++ b/src/mainboard/amd/olivehill/get_bus_conf.c
@@ -45,7 +45,6 @@ u32 pci1234x[] = {
0x0000ff0,
};
-u32 bus_type[256];
u32 sbdn_yangtze;
@@ -55,7 +54,7 @@ void get_bus_conf(void)
u32 value;
device_t dev;
- int i, j;
+ int i;
dev = dev_find_slot(0, PCI_DEVFN(0, 0)); /* clear IoapicSbFeatureEn */
@@ -72,11 +71,6 @@ void get_bus_conf(void)
memset(bus_yangtze, 0, sizeof(bus_yangtze));
- for (i = 0; i < 256; i++) {
- bus_type[i] = 0; /* default ISA bus. */
- }
-
- bus_type[0] = 1; /* pci */
// bus_yangtze[0] = (sysconf.pci1234[0] >> 16) & 0xff;
bus_yangtze[0] = (pci1234x[0] >> 16) & 0xff;
@@ -89,8 +83,6 @@ void get_bus_conf(void)
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
bus_isa++;
- for (j = bus_yangtze[1]; j < bus_isa; j++)
- bus_type[j] = 1;
}
for (i = 0; i < 4; i++) {
@@ -101,8 +93,6 @@ void get_bus_conf(void)
bus_isa++;
}
}
- for (j = bus_yangtze[2]; j < bus_isa; j++)
- bus_type[j] = 1;
/* I/O APICs: APIC ID Version State Address */
bus_isa = 10;
diff --git a/src/mainboard/amd/olivehill/mptable.c b/src/mainboard/amd/olivehill/mptable.c
index 3ccb9100c9..79750e9f6b 100644
--- a/src/mainboard/amd/olivehill/mptable.c
+++ b/src/mainboard/amd/olivehill/mptable.c
@@ -31,7 +31,6 @@
#define IO_APIC_ID CONFIG_MAX_CPUS
extern u8 bus_yangtze[6];
-extern u32 bus_type[256];
extern u32 sbdn_yangtze;
extern u32 apicid_yangtze;
diff --git a/src/mainboard/amd/parmer/get_bus_conf.c b/src/mainboard/amd/parmer/get_bus_conf.c
index 4c4777f0dc..c792887dff 100644
--- a/src/mainboard/amd/parmer/get_bus_conf.c
+++ b/src/mainboard/amd/parmer/get_bus_conf.c
@@ -45,7 +45,6 @@ u32 pci1234x[] = {
0x0000ff0,
};
-u32 bus_type[256];
u32 sbdn_hudson;
@@ -54,7 +53,7 @@ void get_bus_conf(void)
u32 apicid_base;
device_t dev;
- int i, j;
+ int i;
@@ -62,11 +61,7 @@ void get_bus_conf(void)
memset(bus_hudson, 0, sizeof(bus_hudson));
- for (i = 0; i < 256; i++) {
- bus_type[i] = 0; /* default ISA bus. */
- }
- bus_type[0] = 1; /* pci */
bus_hudson[0] = (pci1234x[0] >> 16) & 0xff;
@@ -78,8 +73,6 @@ void get_bus_conf(void)
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
bus_isa++;
- for (j = bus_hudson[1]; j < bus_isa; j++)
- bus_type[j] = 1;
}
for (i = 0; i < 4; i++) {
@@ -90,8 +83,6 @@ void get_bus_conf(void)
bus_isa++;
}
}
- for (j = bus_hudson[2]; j < bus_isa; j++)
- bus_type[j] = 1;
/* I/O APICs: APIC ID Version State Address */
bus_isa = 10;
diff --git a/src/mainboard/amd/parmer/mptable.c b/src/mainboard/amd/parmer/mptable.c
index 0980063727..b66cb572ec 100644
--- a/src/mainboard/amd/parmer/mptable.c
+++ b/src/mainboard/amd/parmer/mptable.c
@@ -31,7 +31,6 @@
#define IO_APIC_ID CONFIG_MAX_CPUS
extern u8 bus_hudson[6];
-extern u32 bus_type[256];
extern u32 sbdn_hudson;
extern u32 apicid_hudson;
diff --git a/src/mainboard/amd/persimmon/get_bus_conf.c b/src/mainboard/amd/persimmon/get_bus_conf.c
index b31f687671..995cb4254c 100644
--- a/src/mainboard/amd/persimmon/get_bus_conf.c
+++ b/src/mainboard/amd/persimmon/get_bus_conf.c
@@ -45,7 +45,6 @@ u32 pci1234x[] = {
0x0000ff0,
};
-u32 bus_type[256];
u32 sbdn_sb800;
void get_bus_conf(void)
@@ -53,19 +52,13 @@ void get_bus_conf(void)
u32 apicid_base;
device_t dev;
- int i, j;
+ int i;
sbdn_sb800 = 0;
memset(bus_sb800, 0, sizeof(bus_sb800));
- for (i = 0; i < 256; i++) {
- bus_type[i] = 0; /* default ISA bus. */
- }
-
- bus_type[0] = 1; /* pci */
-
// bus_sb800[0] = (sysconf.pci1234[0] >> 16) & 0xff;
bus_sb800[0] = (pci1234x[0] >> 16) & 0xff;
@@ -77,8 +70,6 @@ void get_bus_conf(void)
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
bus_isa++;
- for (j = bus_sb800[1]; j < bus_isa; j++)
- bus_type[j] = 1;
}
for (i = 0; i < 4; i++) {
@@ -90,9 +81,6 @@ void get_bus_conf(void)
}
}
- for (j = bus_sb800[2]; j < bus_isa; j++)
- bus_type[j] = 1;
-
/* I/O APICs: APIC ID Version State Address */
bus_isa = 10;
diff --git a/src/mainboard/amd/persimmon/mptable.c b/src/mainboard/amd/persimmon/mptable.c
index 780bb2c905..e9e208e9a4 100644
--- a/src/mainboard/amd/persimmon/mptable.c
+++ b/src/mainboard/amd/persimmon/mptable.c
@@ -35,7 +35,6 @@ extern u8 bus_sb800[6];
extern u32 apicid_sb800;
extern u32 apicver_sb800;
-extern u32 bus_type[256];
extern u32 sbdn_sb800;
static void *smp_write_config_table(void *v)
diff --git a/src/mainboard/amd/south_station/get_bus_conf.c b/src/mainboard/amd/south_station/get_bus_conf.c
index 99b38807b5..b95ef1c8e2 100644
--- a/src/mainboard/amd/south_station/get_bus_conf.c
+++ b/src/mainboard/amd/south_station/get_bus_conf.c
@@ -43,7 +43,6 @@ u32 pci1234x[] = {
0x0000ff0,
};
-u32 bus_type[256];
u32 sbdn_sb800;
void get_bus_conf(void)
@@ -51,19 +50,13 @@ void get_bus_conf(void)
u32 apicid_base;
device_t dev;
- int i, j;
+ int i;
sbdn_sb800 = 0;
memset(bus_sb800, 0, sizeof(bus_sb800));
- for (i = 0; i < 256; i++) {
- bus_type[i] = 0; /* default ISA bus. */
- }
-
-
- bus_type[0] = 1; /* pci */
// bus_sb800[0] = (sysconf.pci1234[0] >> 16) & 0xff;
bus_sb800[0] = (pci1234x[0] >> 16) & 0xff;
@@ -78,8 +71,6 @@ void get_bus_conf(void)
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
bus_isa++;
- for (j = bus_sb800[1]; j < bus_isa; j++)
- bus_type[j] = 1;
}
for (i = 0; i < 4; i++) {
@@ -90,8 +81,6 @@ void get_bus_conf(void)
bus_isa++;
}
}
- for (j = bus_sb800[2]; j < bus_isa; j++)
- bus_type[j] = 1;
/* I/O APICs: APIC ID Version State Address */
diff --git a/src/mainboard/amd/south_station/mptable.c b/src/mainboard/amd/south_station/mptable.c
index f266b4fcd7..591ece523e 100644
--- a/src/mainboard/amd/south_station/mptable.c
+++ b/src/mainboard/amd/south_station/mptable.c
@@ -31,7 +31,6 @@ extern u8 bus_sb800[6];
extern u32 apicid_sb800;
-extern u32 bus_type[256];
extern u32 sbdn_sb800;
u8 intr_data[] = {
diff --git a/src/mainboard/amd/thatcher/get_bus_conf.c b/src/mainboard/amd/thatcher/get_bus_conf.c
index d4a565480c..577ec9fd7e 100644
--- a/src/mainboard/amd/thatcher/get_bus_conf.c
+++ b/src/mainboard/amd/thatcher/get_bus_conf.c
@@ -45,7 +45,6 @@ u32 pci1234x[] = {
0x0000ff0,
};
-u32 bus_type[256];
u32 sbdn_hudson;
@@ -54,17 +53,12 @@ void get_bus_conf(void)
u32 apicid_base;
device_t dev;
- int i, j;
+ int i;
sbdn_hudson = 0;
memset(bus_hudson, 0, sizeof(bus_hudson));
- for (i = 0; i < 256; i++) {
- bus_type[i] = 0; /* default ISA bus. */
- }
-
- bus_type[0] = 1; /* pci */
bus_hudson[0] = (pci1234x[0] >> 16) & 0xff;
@@ -76,8 +70,6 @@ void get_bus_conf(void)
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
bus_isa++;
- for (j = bus_hudson[1]; j < bus_isa; j++)
- bus_type[j] = 1;
}
for (i = 0; i < 4; i++) {
@@ -88,8 +80,6 @@ void get_bus_conf(void)
bus_isa++;
}
}
- for (j = bus_hudson[2]; j < bus_isa; j++)
- bus_type[j] = 1;
/* I/O APICs: APIC ID Version State Address */
bus_isa = 10;
diff --git a/src/mainboard/amd/thatcher/mptable.c b/src/mainboard/amd/thatcher/mptable.c
index 3269089edc..dfb3b4f0bf 100644
--- a/src/mainboard/amd/thatcher/mptable.c
+++ b/src/mainboard/amd/thatcher/mptable.c
@@ -31,7 +31,6 @@
#define IO_APIC_ID CONFIG_MAX_CPUS
extern u8 bus_hudson[6];
-extern u32 bus_type[256];
extern u32 sbdn_hudson;
extern u32 apicid_hudson;
diff --git a/src/mainboard/amd/tilapia_fam10/mb_sysconf.h b/src/mainboard/amd/tilapia_fam10/mb_sysconf.h
index 768ffd1b30..25d63d5ffa 100644
--- a/src/mainboard/amd/tilapia_fam10/mb_sysconf.h
+++ b/src/mainboard/amd/tilapia_fam10/mb_sysconf.h
@@ -38,7 +38,6 @@ struct mb_sysconf_t {
u32 sbdn3;
u32 sbdn3a[31];
u32 sbdn5[31];
- u32 bus_type[256];
};
#endif
diff --git a/src/mainboard/amd/torpedo/get_bus_conf.c b/src/mainboard/amd/torpedo/get_bus_conf.c
index b7895e4915..1e962e83e8 100644
--- a/src/mainboard/amd/torpedo/get_bus_conf.c
+++ b/src/mainboard/amd/torpedo/get_bus_conf.c
@@ -49,14 +49,13 @@ u32 hcdnx[] = {
0x20202020,
};
-u32 bus_type[256];
u32 sbdn_sb900;
void get_bus_conf(void)
{
device_t dev;
- int i, j;
+ int i;
printk(BIOS_DEBUG, "Mainboard - %s - %s - Start.\n", __FILE__, __func__);
@@ -64,11 +63,6 @@ void get_bus_conf(void)
memset(bus_sb900, 0, sizeof(bus_sb900));
- for (i = 0; i < 256; i++) {
- bus_type[i] = 0; /* default ISA bus. */
- }
-
- bus_type[0] = 1; /* pci */
bus_sb900[0] = (pci1234x[0] >> 16) & 0xff;
@@ -79,8 +73,6 @@ void get_bus_conf(void)
bus_sb900[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
bus_isa++;
- for (j = bus_sb900[1]; j < bus_isa; j++)
- bus_type[j] = 1;
}
for (i = 0; i < 4; i++) {
@@ -93,8 +85,6 @@ void get_bus_conf(void)
bus_isa++;
}
}
- for (j = bus_sb900[2]; j < bus_isa; j++)
- bus_type[j] = 1;
/* I/O APICs: APIC ID Version State Address */
bus_isa = 10;
diff --git a/src/mainboard/amd/torpedo/mptable.c b/src/mainboard/amd/torpedo/mptable.c
index ae00cf76fd..6bc1cb3b8b 100644
--- a/src/mainboard/amd/torpedo/mptable.c
+++ b/src/mainboard/amd/torpedo/mptable.c
@@ -33,7 +33,6 @@
extern u8 bus_sb900[6];
-extern u32 bus_type[256];
extern u32 sbdn_sb900;
u32 apicid_sb900;
diff --git a/src/mainboard/amd/union_station/get_bus_conf.c b/src/mainboard/amd/union_station/get_bus_conf.c
index 99b38807b5..632fedef8d 100644
--- a/src/mainboard/amd/union_station/get_bus_conf.c
+++ b/src/mainboard/amd/union_station/get_bus_conf.c
@@ -43,7 +43,6 @@ u32 pci1234x[] = {
0x0000ff0,
};
-u32 bus_type[256];
u32 sbdn_sb800;
void get_bus_conf(void)
@@ -51,19 +50,15 @@ void get_bus_conf(void)
u32 apicid_base;
device_t dev;
- int i, j;
+ int i;
sbdn_sb800 = 0;
memset(bus_sb800, 0, sizeof(bus_sb800));
- for (i = 0; i < 256; i++) {
- bus_type[i] = 0; /* default ISA bus. */
- }
- bus_type[0] = 1; /* pci */
// bus_sb800[0] = (sysconf.pci1234[0] >> 16) & 0xff;
bus_sb800[0] = (pci1234x[0] >> 16) & 0xff;
@@ -78,8 +73,6 @@ void get_bus_conf(void)
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
bus_isa++;
- for (j = bus_sb800[1]; j < bus_isa; j++)
- bus_type[j] = 1;
}
for (i = 0; i < 4; i++) {
@@ -90,8 +83,6 @@ void get_bus_conf(void)
bus_isa++;
}
}
- for (j = bus_sb800[2]; j < bus_isa; j++)
- bus_type[j] = 1;
/* I/O APICs: APIC ID Version State Address */
diff --git a/src/mainboard/amd/union_station/mptable.c b/src/mainboard/amd/union_station/mptable.c
index f266b4fcd7..591ece523e 100644
--- a/src/mainboard/amd/union_station/mptable.c
+++ b/src/mainboard/amd/union_station/mptable.c
@@ -31,7 +31,6 @@ extern u8 bus_sb800[6];
extern u32 apicid_sb800;
-extern u32 bus_type[256];
extern u32 sbdn_sb800;
u8 intr_data[] = {
diff --git a/src/mainboard/asrock/e350m1/get_bus_conf.c b/src/mainboard/asrock/e350m1/get_bus_conf.c
index 99b38807b5..d3c2b125be 100644
--- a/src/mainboard/asrock/e350m1/get_bus_conf.c
+++ b/src/mainboard/asrock/e350m1/get_bus_conf.c
@@ -43,7 +43,6 @@ u32 pci1234x[] = {
0x0000ff0,
};
-u32 bus_type[256];
u32 sbdn_sb800;
void get_bus_conf(void)
@@ -51,35 +50,24 @@ void get_bus_conf(void)
u32 apicid_base;
device_t dev;
- int i, j;
+ int i;
sbdn_sb800 = 0;
memset(bus_sb800, 0, sizeof(bus_sb800));
- for (i = 0; i < 256; i++) {
- bus_type[i] = 0; /* default ISA bus. */
- }
-
-
- bus_type[0] = 1; /* pci */
-
// bus_sb800[0] = (sysconf.pci1234[0] >> 16) & 0xff;
bus_sb800[0] = (pci1234x[0] >> 16) & 0xff;
/* sb800 */
dev = dev_find_slot(bus_sb800[0], PCI_DEVFN(sbdn_sb800 + 0x14, 4));
-
-
if (dev) {
bus_sb800[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
bus_isa++;
- for (j = bus_sb800[1]; j < bus_isa; j++)
- bus_type[j] = 1;
}
for (i = 0; i < 4; i++) {
@@ -90,8 +78,6 @@ void get_bus_conf(void)
bus_isa++;
}
}
- for (j = bus_sb800[2]; j < bus_isa; j++)
- bus_type[j] = 1;
/* I/O APICs: APIC ID Version State Address */
diff --git a/src/mainboard/asrock/e350m1/mptable.c b/src/mainboard/asrock/e350m1/mptable.c
index 3402da1b15..689b2b91ed 100644
--- a/src/mainboard/asrock/e350m1/mptable.c
+++ b/src/mainboard/asrock/e350m1/mptable.c
@@ -32,7 +32,6 @@ extern u8 bus_sb800[6];
extern u32 apicid_sb800;
-extern u32 bus_type[256];
extern u32 sbdn_sb800;
u8 intr_data[] = {
diff --git a/src/mainboard/asrock/imb-a180/get_bus_conf.c b/src/mainboard/asrock/imb-a180/get_bus_conf.c
index eecffb59c7..bc93c546c7 100644
--- a/src/mainboard/asrock/imb-a180/get_bus_conf.c
+++ b/src/mainboard/asrock/imb-a180/get_bus_conf.c
@@ -42,7 +42,6 @@ u32 pci1234x[] = {
0x0000ff0,
};
-u32 bus_type[256];
u32 sbdn_yangtze;
void get_bus_conf(void)
@@ -51,7 +50,7 @@ void get_bus_conf(void)
u32 value;
device_t dev;
- int i, j;
+ int i;
dev = dev_find_slot(0, PCI_DEVFN(0, 0)); /* clear IoapicSbFeatureEn */
pci_write_config32(dev, 0xF8, 0);
@@ -67,11 +66,6 @@ void get_bus_conf(void)
memset(bus_yangtze, 0, sizeof(bus_yangtze));
- for (i = 0; i < 256; i++) {
- bus_type[i] = 0; /* default ISA bus. */
- }
-
- bus_type[0] = 1; /* pci */
// bus_yangtze[0] = (sysconf.pci1234[0] >> 16) & 0xff;
bus_yangtze[0] = (pci1234x[0] >> 16) & 0xff;
@@ -84,8 +78,6 @@ void get_bus_conf(void)
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
bus_isa++;
- for (j = bus_yangtze[1]; j < bus_isa; j++)
- bus_type[j] = 1;
}
for (i = 0; i < 4; i++) {
@@ -96,8 +88,6 @@ void get_bus_conf(void)
bus_isa++;
}
}
- for (j = bus_yangtze[2]; j < bus_isa; j++)
- bus_type[j] = 1;
/* I/O APICs: APIC ID Version State Address */
bus_isa = 10;
diff --git a/src/mainboard/asrock/imb-a180/mptable.c b/src/mainboard/asrock/imb-a180/mptable.c
index bfad50d631..5d91524e66 100644
--- a/src/mainboard/asrock/imb-a180/mptable.c
+++ b/src/mainboard/asrock/imb-a180/mptable.c
@@ -31,7 +31,6 @@
#define IO_APIC_ID CONFIG_MAX_CPUS
extern u8 bus_yangtze[6];
-extern u32 bus_type[256];
extern u32 sbdn_yangtze;
extern u32 apicid_yangtze;
diff --git a/src/mainboard/asus/f2a85-m/get_bus_conf.c b/src/mainboard/asus/f2a85-m/get_bus_conf.c
index 08e5795a0c..e6f79da495 100644
--- a/src/mainboard/asus/f2a85-m/get_bus_conf.c
+++ b/src/mainboard/asus/f2a85-m/get_bus_conf.c
@@ -43,7 +43,6 @@ u32 pci1234x[] = {
0x0000ff0,
};
-u32 bus_type[256];
u32 sbdn_hudson;
void get_bus_conf(void)
@@ -51,17 +50,13 @@ void get_bus_conf(void)
u32 apicid_base;
device_t dev;
- int i, j;
+ int i;
sbdn_hudson = 0;
memset(bus_hudson, 0, sizeof(bus_hudson));
- for (i = 0; i < 256; i++) {
- bus_type[i] = 0; /* default ISA bus. */
- }
- bus_type[0] = 1; /* pci */
bus_hudson[0] = (pci1234x[0] >> 16) & 0xff;
@@ -73,8 +68,6 @@ void get_bus_conf(void)
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
bus_isa++;
- for (j = bus_hudson[1]; j < bus_isa; j++)
- bus_type[j] = 1;
}
for (i = 0; i < 4; i++) {
@@ -85,8 +78,6 @@ void get_bus_conf(void)
bus_isa++;
}
}
- for (j = bus_hudson[2]; j < bus_isa; j++)
- bus_type[j] = 1;
/* I/O APICs: APIC ID Version State Address */
bus_isa = 10;
diff --git a/src/mainboard/asus/f2a85-m/mptable.c b/src/mainboard/asus/f2a85-m/mptable.c
index 25778ca72a..d0fd124559 100644
--- a/src/mainboard/asus/f2a85-m/mptable.c
+++ b/src/mainboard/asus/f2a85-m/mptable.c
@@ -30,7 +30,6 @@
#define IO_APIC_ID CONFIG_MAX_CPUS
extern u8 bus_hudson[6];
-extern u32 bus_type[256];
extern u32 sbdn_hudson;
extern u32 apicid_hudson;
diff --git a/src/mainboard/asus/m4a78-em/mb_sysconf.h b/src/mainboard/asus/m4a78-em/mb_sysconf.h
index 768ffd1b30..25d63d5ffa 100644
--- a/src/mainboard/asus/m4a78-em/mb_sysconf.h
+++ b/src/mainboard/asus/m4a78-em/mb_sysconf.h
@@ -38,7 +38,6 @@ struct mb_sysconf_t {
u32 sbdn3;
u32 sbdn3a[31];
u32 sbdn5[31];
- u32 bus_type[256];
};
#endif
diff --git a/src/mainboard/asus/m4a785-m/mb_sysconf.h b/src/mainboard/asus/m4a785-m/mb_sysconf.h
index 768ffd1b30..25d63d5ffa 100644
--- a/src/mainboard/asus/m4a785-m/mb_sysconf.h
+++ b/src/mainboard/asus/m4a785-m/mb_sysconf.h
@@ -38,7 +38,6 @@ struct mb_sysconf_t {
u32 sbdn3;
u32 sbdn3a[31];
u32 sbdn5[31];
- u32 bus_type[256];
};
#endif
diff --git a/src/mainboard/asus/m5a88-v/get_bus_conf.c b/src/mainboard/asus/m5a88-v/get_bus_conf.c
index b312ec1b6c..3a9133ce18 100644
--- a/src/mainboard/asus/m5a88-v/get_bus_conf.c
+++ b/src/mainboard/asus/m5a88-v/get_bus_conf.c
@@ -53,7 +53,6 @@ u32 hcdnx[] = {
0x20202020,
};
-u32 bus_type[256];
u32 sbdn_rs780;
u32 sbdn_sb800;
@@ -66,7 +65,7 @@ void get_bus_conf(void)
{
u32 apicid_base;
device_t dev;
- int i, j;
+ int i;
if (get_bus_conf_done == 1)
return; /* do it only once */
@@ -90,16 +89,10 @@ void get_bus_conf(void)
bus_rs780[i] = 0;
}
- for (i = 0; i < 256; i++) {
- bus_type[i] = 0; /* default ISA bus. */
- }
-
- bus_type[0] = 1; /* pci */
bus_rs780[0] = (sysconf.pci1234[0] >> 16) & 0xff;
bus_sb800[0] = bus_rs780[0];
- bus_type[bus_rs780[0]] = 1;
/* sb800 */
dev = dev_find_slot(bus_sb800[0], PCI_DEVFN(sbdn_sb800 + 0x14, 4));
@@ -107,8 +100,6 @@ void get_bus_conf(void)
bus_sb800[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
bus_isa++;
- for (j = bus_sb800[1]; j < bus_isa; j++)
- bus_type[j] = 1;
}
for (i = 0; i < 4; i++) {
@@ -119,8 +110,6 @@ void get_bus_conf(void)
bus_isa++;
}
}
- for (j = bus_sb800[2]; j < bus_isa; j++)
- bus_type[j] = 1;
/* rs780 */
for (i = 1; i < ARRAY_SIZE(bus_rs780); i++) {
@@ -130,7 +119,6 @@ void get_bus_conf(void)
if(255 != bus_rs780[i]) {
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
bus_isa++;
- bus_type[bus_rs780[i]] = 1; /* PCI bus. */
}
}
}
diff --git a/src/mainboard/asus/m5a88-v/mb_sysconf.h b/src/mainboard/asus/m5a88-v/mb_sysconf.h
index 289b094de8..8a693fd089 100644
--- a/src/mainboard/asus/m5a88-v/mb_sysconf.h
+++ b/src/mainboard/asus/m5a88-v/mb_sysconf.h
@@ -37,7 +37,6 @@ struct mb_sysconf_t {
u32 sbdn3;
u32 sbdn3a[31];
u32 sbdn5[31];
- u32 bus_type[256];
};
#endif
diff --git a/src/mainboard/asus/m5a88-v/mptable.c b/src/mainboard/asus/m5a88-v/mptable.c
index cb7aeee202..8d04a0cfd0 100644
--- a/src/mainboard/asus/m5a88-v/mptable.c
+++ b/src/mainboard/asus/m5a88-v/mptable.c
@@ -30,7 +30,6 @@ extern int bus_isa;
extern u8 bus_rs780[11];
extern u8 bus_sb800[6];
extern u32 apicid_sb800;
-extern u32 bus_type[256];
extern u32 sbdn_rs780;
extern u32 sbdn_sb800;
diff --git a/src/mainboard/avalue/eax-785e/get_bus_conf.c b/src/mainboard/avalue/eax-785e/get_bus_conf.c
index 9bb26e6d76..f90c6b887a 100644
--- a/src/mainboard/avalue/eax-785e/get_bus_conf.c
+++ b/src/mainboard/avalue/eax-785e/get_bus_conf.c
@@ -56,7 +56,6 @@ u32 hcdnx[] = {
0x20202020,
};
-u32 bus_type[256];
u32 sbdn_rs780;
u32 sbdn_sb800;
@@ -69,7 +68,7 @@ void get_bus_conf(void)
{
u32 apicid_base;
device_t dev;
- int i, j;
+ int i;
if (get_bus_conf_done == 1)
return; /* do it only once */
@@ -93,16 +92,10 @@ void get_bus_conf(void)
bus_rs780[i] = 0;
}
- for (i = 0; i < 256; i++) {
- bus_type[i] = 0; /* default ISA bus. */
- }
-
- bus_type[0] = 1; /* pci */
bus_rs780[0] = (sysconf.pci1234[0] >> 16) & 0xff;
bus_sb800[0] = bus_rs780[0];
- bus_type[bus_rs780[0]] = 1;
/* sb800 */
dev = dev_find_slot(bus_sb800[0], PCI_DEVFN(sbdn_sb800 + 0x14, 4));
@@ -110,8 +103,6 @@ void get_bus_conf(void)
bus_sb800[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
bus_isa++;
- for (j = bus_sb800[1]; j < bus_isa; j++)
- bus_type[j] = 1;
}
for (i = 0; i < 4; i++) {
@@ -122,8 +113,6 @@ void get_bus_conf(void)
bus_isa++;
}
}
- for (j = bus_sb800[2]; j < bus_isa; j++)
- bus_type[j] = 1;
/* rs780 */
for (i = 1; i < ARRAY_SIZE(bus_rs780); i++) {
@@ -133,7 +122,6 @@ void get_bus_conf(void)
if(255 != bus_rs780[i]) {
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
bus_isa++;
- bus_type[bus_rs780[i]] = 1; /* PCI bus. */
}
}
}
diff --git a/src/mainboard/avalue/eax-785e/mb_sysconf.h b/src/mainboard/avalue/eax-785e/mb_sysconf.h
index 289b094de8..8a693fd089 100644
--- a/src/mainboard/avalue/eax-785e/mb_sysconf.h
+++ b/src/mainboard/avalue/eax-785e/mb_sysconf.h
@@ -37,7 +37,6 @@ struct mb_sysconf_t {
u32 sbdn3;
u32 sbdn3a[31];
u32 sbdn5[31];
- u32 bus_type[256];
};
#endif
diff --git a/src/mainboard/avalue/eax-785e/mptable.c b/src/mainboard/avalue/eax-785e/mptable.c
index 1889e0268d..eb76d5ed39 100644
--- a/src/mainboard/avalue/eax-785e/mptable.c
+++ b/src/mainboard/avalue/eax-785e/mptable.c
@@ -30,7 +30,6 @@ extern int bus_isa;
extern u8 bus_rs780[11];
extern u8 bus_sb800[6];
extern u32 apicid_sb800;
-extern u32 bus_type[256];
extern u32 sbdn_rs780;
extern u32 sbdn_sb800;
diff --git a/src/mainboard/gigabyte/ma785gm/mb_sysconf.h b/src/mainboard/gigabyte/ma785gm/mb_sysconf.h
index 768ffd1b30..25d63d5ffa 100644
--- a/src/mainboard/gigabyte/ma785gm/mb_sysconf.h
+++ b/src/mainboard/gigabyte/ma785gm/mb_sysconf.h
@@ -38,7 +38,6 @@ struct mb_sysconf_t {
u32 sbdn3;
u32 sbdn3a[31];
u32 sbdn5[31];
- u32 bus_type[256];
};
#endif
diff --git a/src/mainboard/gizmosphere/gizmo/get_bus_conf.c b/src/mainboard/gizmosphere/gizmo/get_bus_conf.c
index 44d0b0f69a..dd9d28c7eb 100755
--- a/src/mainboard/gizmosphere/gizmo/get_bus_conf.c
+++ b/src/mainboard/gizmosphere/gizmo/get_bus_conf.c
@@ -44,7 +44,6 @@ u32 pci1234x[] = {
0x0000ff0,
};
-u32 bus_type[256];
u32 sbdn_sb800;
@@ -53,17 +52,13 @@ void get_bus_conf(void)
u32 apicid_base;
device_t dev;
- int i, j;
+ int i;
sbdn_sb800 = 0;
memset(bus_sb800, 0, sizeof(bus_sb800));
- for (i = 0; i < 256; i++) {
- bus_type[i] = 0; /* default ISA bus. */
- }
- bus_type[0] = 1; /* pci */
// bus_sb800[0] = (sysconf.pci1234[0] >> 16) & 0xff;
bus_sb800[0] = (pci1234x[0] >> 16) & 0xff;
@@ -76,8 +71,6 @@ void get_bus_conf(void)
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
bus_isa++;
- for (j = bus_sb800[1]; j < bus_isa; j++)
- bus_type[j] = 1;
}
for (i = 0; i < 4; i++) {
@@ -89,10 +82,6 @@ void get_bus_conf(void)
}
}
- for (j = bus_sb800[2]; j < bus_isa; j++)
- bus_type[j] = 1;
-
-
/* I/O APICs: APIC ID Version State Address */
bus_isa = 10;
apicid_base = CONFIG_MAX_CPUS;
diff --git a/src/mainboard/gizmosphere/gizmo/mptable.c b/src/mainboard/gizmosphere/gizmo/mptable.c
index c56060e5fd..4cdb1312e0 100755
--- a/src/mainboard/gizmosphere/gizmo/mptable.c
+++ b/src/mainboard/gizmosphere/gizmo/mptable.c
@@ -32,7 +32,6 @@ extern u8 bus_sb800[6];
extern u32 apicid_sb800;
-extern u32 bus_type[256];
extern u32 sbdn_sb800;
u8 intr_data[] = {
diff --git a/src/mainboard/hp/pavilion_m6_1035dx/get_bus_conf.c b/src/mainboard/hp/pavilion_m6_1035dx/get_bus_conf.c
index 78193ebede..57ece7cee7 100644
--- a/src/mainboard/hp/pavilion_m6_1035dx/get_bus_conf.c
+++ b/src/mainboard/hp/pavilion_m6_1035dx/get_bus_conf.c
@@ -44,7 +44,6 @@ u32 pci1234x[] = {
0x0000ff0,
};
-u32 bus_type[256];
u32 sbdn_hudson;
@@ -53,18 +52,12 @@ void get_bus_conf(void)
u32 apicid_base;
device_t dev;
- int i, j;
+ int i;
sbdn_hudson = 0;
memset(bus_hudson, 0, sizeof(bus_hudson));
- for (i = 0; i < 256; i++) {
- bus_type[i] = 0; /* default ISA bus. */
- }
-
- bus_type[0] = 1; /* pci */
-
bus_hudson[0] = (pci1234x[0] >> 16) & 0xff;
/* Hudson */
@@ -75,8 +68,6 @@ void get_bus_conf(void)
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
bus_isa++;
- for (j = bus_hudson[1]; j < bus_isa; j++)
- bus_type[j] = 1;
}
for (i = 0; i < 4; i++) {
@@ -87,8 +78,6 @@ void get_bus_conf(void)
bus_isa++;
}
}
- for (j = bus_hudson[2]; j < bus_isa; j++)
- bus_type[j] = 1;
/* I/O APICs: APIC ID Version State Address */
bus_isa = 10;
diff --git a/src/mainboard/hp/pavilion_m6_1035dx/mptable.c b/src/mainboard/hp/pavilion_m6_1035dx/mptable.c
index d90a453f1c..ff40bf7799 100644
--- a/src/mainboard/hp/pavilion_m6_1035dx/mptable.c
+++ b/src/mainboard/hp/pavilion_m6_1035dx/mptable.c
@@ -31,7 +31,6 @@
#define IO_APIC_ID CONFIG_MAX_CPUS
extern u8 bus_hudson[6];
-extern u32 bus_type[256];
extern u32 sbdn_hudson;
extern u32 apicid_hudson;
diff --git a/src/mainboard/iei/kino-780am2-fam10/mb_sysconf.h b/src/mainboard/iei/kino-780am2-fam10/mb_sysconf.h
index 768ffd1b30..25d63d5ffa 100644
--- a/src/mainboard/iei/kino-780am2-fam10/mb_sysconf.h
+++ b/src/mainboard/iei/kino-780am2-fam10/mb_sysconf.h
@@ -38,7 +38,6 @@ struct mb_sysconf_t {
u32 sbdn3;
u32 sbdn3a[31];
u32 sbdn5[31];
- u32 bus_type[256];
};
#endif
diff --git a/src/mainboard/jetway/nf81-t56n-lf/get_bus_conf.c b/src/mainboard/jetway/nf81-t56n-lf/get_bus_conf.c
index 3992cb7aaf..e91072eea7 100644
--- a/src/mainboard/jetway/nf81-t56n-lf/get_bus_conf.c
+++ b/src/mainboard/jetway/nf81-t56n-lf/get_bus_conf.c
@@ -46,7 +46,6 @@ u32 pci1234x[] = {
0x0000ff0,
};
-u32 bus_type[256];
u32 sbdn_sb800;
@@ -55,18 +54,12 @@ void get_bus_conf(void)
u32 apicid_base;
device_t dev;
- int i, j;
+ int i;
sbdn_sb800 = 0;
memset(bus_sb800, 0, sizeof(bus_sb800));
- for (i = 0; i < 256; i++) {
- bus_type[i] = 0; /* default ISA bus. */
- }
-
- bus_type[0] = 1; /* pci */
-
// bus_sb800[0] = (sysconf.pci1234[0] >> 16) & 0xff;
bus_sb800[0] = (pci1234x[0] >> 16) & 0xff;
@@ -78,8 +71,6 @@ void get_bus_conf(void)
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
bus_isa++;
- for (j = bus_sb800[1]; j < bus_isa; j++)
- bus_type[j] = 1;
}
for (i = 0; i < 4; i++) {
@@ -91,10 +82,6 @@ void get_bus_conf(void)
}
}
- for (j = bus_sb800[2]; j < bus_isa; j++)
- bus_type[j] = 1;
-
-
/* I/O APICs: APIC ID Version State Address */
bus_isa = 10;
apicid_base = CONFIG_MAX_CPUS;
diff --git a/src/mainboard/jetway/nf81-t56n-lf/mptable.c b/src/mainboard/jetway/nf81-t56n-lf/mptable.c
index 92fc3b07a5..cc9afbd4d4 100644
--- a/src/mainboard/jetway/nf81-t56n-lf/mptable.c
+++ b/src/mainboard/jetway/nf81-t56n-lf/mptable.c
@@ -37,7 +37,6 @@ extern u8 bus_sb800[6];
extern u32 apicid_sb800;
extern u32 apicver_sb800;
-extern u32 bus_type[256];
extern u32 sbdn_sb800;
static void *smp_write_config_table(void *v)
diff --git a/src/mainboard/lippert/frontrunner-af/get_bus_conf.c b/src/mainboard/lippert/frontrunner-af/get_bus_conf.c
index c1a3fc2501..dfece88355 100644
--- a/src/mainboard/lippert/frontrunner-af/get_bus_conf.c
+++ b/src/mainboard/lippert/frontrunner-af/get_bus_conf.c
@@ -43,7 +43,6 @@ u32 pci1234x[] = {
0x0000ff0,
};
-u32 bus_type[256];
u32 sbdn_sb800;
@@ -52,17 +51,12 @@ void get_bus_conf(void)
u32 apicid_base;
device_t dev;
- int i, j;
+ int i;
sbdn_sb800 = 0;
memset(bus_sb800, 0, sizeof(bus_sb800));
- for (i = 0; i < 256; i++) {
- bus_type[i] = 0; /* default ISA bus. */
- }
-
- bus_type[0] = 1; /* pci */
// bus_sb800[0] = (sysconf.pci1234[0] >> 16) & 0xff;
bus_sb800[0] = (pci1234x[0] >> 16) & 0xff;
@@ -75,8 +69,6 @@ void get_bus_conf(void)
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
bus_isa++;
- for (j = bus_sb800[1]; j < bus_isa; j++)
- bus_type[j] = 1;
}
for (i = 0; i < 4; i++) {
@@ -88,10 +80,6 @@ void get_bus_conf(void)
}
}
- for (j = bus_sb800[2]; j < bus_isa; j++)
- bus_type[j] = 1;
-
-
/* I/O APICs: APIC ID Version State Address */
bus_isa = 10;
apicid_base = CONFIG_MAX_CPUS;
diff --git a/src/mainboard/lippert/frontrunner-af/mptable.c b/src/mainboard/lippert/frontrunner-af/mptable.c
index 498ae58230..d794e567be 100644
--- a/src/mainboard/lippert/frontrunner-af/mptable.c
+++ b/src/mainboard/lippert/frontrunner-af/mptable.c
@@ -31,7 +31,6 @@ extern u8 bus_sb800[6];
extern u32 apicid_sb800;
-extern u32 bus_type[256];
extern u32 sbdn_sb800;
u8 intr_data[] = {
diff --git a/src/mainboard/lippert/toucan-af/get_bus_conf.c b/src/mainboard/lippert/toucan-af/get_bus_conf.c
index c49fff1bc8..eddd6459d7 100644
--- a/src/mainboard/lippert/toucan-af/get_bus_conf.c
+++ b/src/mainboard/lippert/toucan-af/get_bus_conf.c
@@ -43,7 +43,6 @@ u32 pci1234x[] = {
0x0000ff0,
};
-u32 bus_type[256];
u32 sbdn_sb800;
void get_bus_conf(void)
@@ -51,18 +50,12 @@ void get_bus_conf(void)
u32 apicid_base;
device_t dev;
- int i, j;
+ int i;
sbdn_sb800 = 0;
memset(bus_sb800, 0, sizeof(bus_sb800));
- for (i = 0; i < 256; i++) {
- bus_type[i] = 0; /* default ISA bus. */
- }
-
- bus_type[0] = 1; /* pci */
-
// bus_sb800[0] = (sysconf.pci1234[0] >> 16) & 0xff;
bus_sb800[0] = (pci1234x[0] >> 16) & 0xff;
@@ -74,8 +67,6 @@ void get_bus_conf(void)
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
bus_isa++;
- for (j = bus_sb800[1]; j < bus_isa; j++)
- bus_type[j] = 1;
}
for (i = 0; i < 4; i++) {
@@ -87,10 +78,6 @@ void get_bus_conf(void)
}
}
- for (j = bus_sb800[2]; j < bus_isa; j++)
- bus_type[j] = 1;
-
-
/* I/O APICs: APIC ID Version State Address */
bus_isa = 10;
apicid_base = CONFIG_MAX_CPUS;
diff --git a/src/mainboard/lippert/toucan-af/mptable.c b/src/mainboard/lippert/toucan-af/mptable.c
index 498ae58230..d794e567be 100644
--- a/src/mainboard/lippert/toucan-af/mptable.c
+++ b/src/mainboard/lippert/toucan-af/mptable.c
@@ -31,7 +31,6 @@ extern u8 bus_sb800[6];
extern u32 apicid_sb800;
-extern u32 bus_type[256];
extern u32 sbdn_sb800;
u8 intr_data[] = {
diff --git a/src/mainboard/supermicro/h8qgi/get_bus_conf.c b/src/mainboard/supermicro/h8qgi/get_bus_conf.c
index bce973758e..d084e4896b 100644
--- a/src/mainboard/supermicro/h8qgi/get_bus_conf.c
+++ b/src/mainboard/supermicro/h8qgi/get_bus_conf.c
@@ -35,7 +35,6 @@ u8 bus_sp5100[2];
u8 bus_sr5650[14];
-u32 bus_type[256];
u32 sbdn_sr5650;
u32 sbdn_sp5100;
@@ -43,7 +42,7 @@ u32 sbdn_sp5100;
void get_bus_conf(void)
{
device_t dev;
- int i, j;
+ int i;
sbdn_sp5100 = 0;
@@ -54,11 +53,6 @@ void get_bus_conf(void)
bus_sr5650[i] = 0;
}
- for (i = 0; i < 256; i++) {
- bus_type[i] = 0; /* default ISA bus. */
- }
-
- bus_type[0] = 1; /* pci */
bus_sr5650[0] = 0;
bus_sp5100[0] = bus_sr5650[0];
@@ -71,8 +65,6 @@ void get_bus_conf(void)
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
bus_isa++;
- for (j = bus_sp5100[1]; j < bus_isa; j++)
- bus_type[j] = 1;
}
/* sr5650 */
@@ -83,7 +75,6 @@ void get_bus_conf(void)
if(255 != bus_sr5650[i]) {
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
bus_isa++;
- bus_type[bus_sr5650[i]] = 1; /* PCI bus. */
}
}
}
@@ -97,8 +88,6 @@ void get_bus_conf(void)
bus_isa++;
}
}
- for (j = bus_sp5100[2]; j < bus_isa; j++)
- bus_type[j] = 1;
*/
diff --git a/src/mainboard/supermicro/h8qgi/mptable.c b/src/mainboard/supermicro/h8qgi/mptable.c
index 2206b584d8..8b36bc79fb 100644
--- a/src/mainboard/supermicro/h8qgi/mptable.c
+++ b/src/mainboard/supermicro/h8qgi/mptable.c
@@ -30,7 +30,6 @@
extern u8 bus_sr5650[14];
extern u8 bus_sp5100[2];
-extern u32 bus_type[256];
extern u32 sbdn_sr5650;
extern u32 sbdn_sp5100;
extern int bus_isa;
diff --git a/src/mainboard/supermicro/h8scm/get_bus_conf.c b/src/mainboard/supermicro/h8scm/get_bus_conf.c
index 9a70fcab7a..db2ca624ff 100644
--- a/src/mainboard/supermicro/h8scm/get_bus_conf.c
+++ b/src/mainboard/supermicro/h8scm/get_bus_conf.c
@@ -35,7 +35,6 @@ u8 bus_sp5100[2];
u8 bus_sr5650[14];
-u32 bus_type[256];
u32 sbdn_sr5650;
u32 sbdn_sp5100;
@@ -43,7 +42,7 @@ u32 sbdn_sp5100;
void get_bus_conf(void)
{
device_t dev;
- int i, j;
+ int i;
sbdn_sp5100 = 0;
@@ -54,11 +53,6 @@ void get_bus_conf(void)
bus_sr5650[i] = 0;
}
- for (i = 0; i < 256; i++) {
- bus_type[i] = 0; /* default ISA bus. */
- }
-
- bus_type[0] = 1; /* pci */
bus_sr5650[0] = 0;
bus_sp5100[0] = bus_sr5650[0];
@@ -71,8 +65,6 @@ void get_bus_conf(void)
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
bus_isa++;
- for (j = bus_sp5100[1]; j < bus_isa; j++)
- bus_type[j] = 1;
}
/* sr5650 */
@@ -83,7 +75,6 @@ void get_bus_conf(void)
if(255 != bus_sr5650[i]) {
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
bus_isa++;
- bus_type[bus_sr5650[i]] = 1; /* PCI bus. */
}
}
}
@@ -97,8 +88,6 @@ void get_bus_conf(void)
bus_isa++;
}
}
- for (j = bus_sp5100[2]; j < bus_isa; j++)
- bus_type[j] = 1;
*/
diff --git a/src/mainboard/supermicro/h8scm/mptable.c b/src/mainboard/supermicro/h8scm/mptable.c
index 2206b584d8..8b36bc79fb 100644
--- a/src/mainboard/supermicro/h8scm/mptable.c
+++ b/src/mainboard/supermicro/h8scm/mptable.c
@@ -30,7 +30,6 @@
extern u8 bus_sr5650[14];
extern u8 bus_sp5100[2];
-extern u32 bus_type[256];
extern u32 sbdn_sr5650;
extern u32 sbdn_sp5100;
extern int bus_isa;
diff --git a/src/mainboard/supermicro/h8scm_fam10/get_bus_conf.c b/src/mainboard/supermicro/h8scm_fam10/get_bus_conf.c
index 142c9e6982..0560180f36 100644
--- a/src/mainboard/supermicro/h8scm_fam10/get_bus_conf.c
+++ b/src/mainboard/supermicro/h8scm_fam10/get_bus_conf.c
@@ -54,7 +54,6 @@ u32 hcdnx[] = {
0x20202020,
};
-u32 bus_type[256];
u32 sbdn_sr5650;
u32 sbdn_sp5100;
@@ -67,7 +66,7 @@ void get_bus_conf(void)
{
u32 apicid_base;
device_t dev;
- int i, j;
+ int i;
if (get_bus_conf_done == 1)
return; /* do it only once */
@@ -92,16 +91,10 @@ void get_bus_conf(void)
bus_sr5650[i] = 0;
}
- for (i = 0; i < 256; i++) {
- bus_type[i] = 0; /* default ISA bus. */
- }
-
- bus_type[0] = 1; /* pci */
bus_sr5650[0] = (sysconf.pci1234[0] >> 16) & 0xff;
bus_sp5100[0] = bus_sr5650[0];
- bus_type[bus_sr5650[0]] = 1;
/* sp5100 */
dev = dev_find_slot(bus_sp5100[0], PCI_DEVFN(sbdn_sp5100 + 0x14, 4));
@@ -109,8 +102,6 @@ void get_bus_conf(void)
bus_sp5100[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
bus_isa++;
- for (j = bus_sp5100[1]; j < bus_isa; j++)
- bus_type[j] = 1;
}
/* sr5650 */
@@ -121,7 +112,6 @@ void get_bus_conf(void)
if(255 != bus_sr5650[i]) {
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
bus_isa++;
- bus_type[bus_sr5650[i]] = 1; /* PCI bus. */
}
}
}
diff --git a/src/mainboard/supermicro/h8scm_fam10/mb_sysconf.h b/src/mainboard/supermicro/h8scm_fam10/mb_sysconf.h
index 768ffd1b30..25d63d5ffa 100644
--- a/src/mainboard/supermicro/h8scm_fam10/mb_sysconf.h
+++ b/src/mainboard/supermicro/h8scm_fam10/mb_sysconf.h
@@ -38,7 +38,6 @@ struct mb_sysconf_t {
u32 sbdn3;
u32 sbdn3a[31];
u32 sbdn5[31];
- u32 bus_type[256];
};
#endif
diff --git a/src/mainboard/tyan/s8226/get_bus_conf.c b/src/mainboard/tyan/s8226/get_bus_conf.c
index e7529c3574..ea06499f34 100644
--- a/src/mainboard/tyan/s8226/get_bus_conf.c
+++ b/src/mainboard/tyan/s8226/get_bus_conf.c
@@ -34,7 +34,6 @@ u8 bus_sp5100[2];
u8 bus_sr5650[14];
-u32 bus_type[256];
u32 sbdn_sr5650;
u32 sbdn_sp5100;
@@ -44,7 +43,7 @@ void get_bus_conf(void);
void get_bus_conf(void)
{
device_t dev;
- int i, j;
+ int i;
sbdn_sp5100 = 0;
@@ -55,11 +54,6 @@ void get_bus_conf(void)
bus_sr5650[i] = 0;
}
- for (i = 0; i < 256; i++) {
- bus_type[i] = 0; /* default ISA bus. */
- }
-
- bus_type[0] = 1; /* pci */
bus_sr5650[0] = 0;
bus_sp5100[0] = bus_sr5650[0];
@@ -72,8 +66,6 @@ void get_bus_conf(void)
bus_isa = (int)pci_read_config8(dev, PCI_SUBORDINATE_BUS);
bus_isa++;
- for (j = bus_sp5100[1]; j < bus_isa; j++)
- bus_type[j] = 1;
}
/* sr5650 */
@@ -84,7 +76,6 @@ void get_bus_conf(void)
if(255 != bus_sr5650[i]) {
bus_isa = (int)pci_read_config8(dev, PCI_SUBORDINATE_BUS);
bus_isa++;
- bus_type[bus_sr5650[i]] = 1; /* PCI bus. */
}
}
}
@@ -98,8 +89,6 @@ void get_bus_conf(void)
bus_isa++;
}
}
- for (j = bus_sp5100[2]; j < bus_isa; j++)
- bus_type[j] = 1;
*/
diff --git a/src/mainboard/tyan/s8226/mptable.c b/src/mainboard/tyan/s8226/mptable.c
index 2206b584d8..8b36bc79fb 100644
--- a/src/mainboard/tyan/s8226/mptable.c
+++ b/src/mainboard/tyan/s8226/mptable.c
@@ -30,7 +30,6 @@
extern u8 bus_sr5650[14];
extern u8 bus_sp5100[2];
-extern u32 bus_type[256];
extern u32 sbdn_sr5650;
extern u32 sbdn_sp5100;
extern int bus_isa;