AGESA boards: Drop global bus_isa
Only ever used as lvalue (except when incrementing) so this global is unused. Change-Id: I616721f937eb0bfdb28f356284efd70f99ccd2dd Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/6330 Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
This commit is contained in:
parent
da6d8b1048
commit
99c636f858
|
@ -30,7 +30,6 @@
|
||||||
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
||||||
* and acpi_tables busnum is default.
|
* and acpi_tables busnum is default.
|
||||||
*/
|
*/
|
||||||
u8 bus_isa;
|
|
||||||
u8 bus_sb700[2];
|
u8 bus_sb700[2];
|
||||||
u8 bus_rd890[14];
|
u8 bus_rd890[14];
|
||||||
|
|
||||||
|
@ -81,9 +80,6 @@ void get_bus_conf(void)
|
||||||
|
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_sb700[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_sb700[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
|
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* rd890 */
|
/* rd890 */
|
||||||
|
@ -91,16 +87,8 @@ void get_bus_conf(void)
|
||||||
dev = dev_find_slot(bus_rd890[0], PCI_DEVFN(sbdn_rd890 + i, 0));
|
dev = dev_find_slot(bus_rd890[0], PCI_DEVFN(sbdn_rd890 + i, 0));
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_rd890[i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_rd890[i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
if(255 != bus_rd890[i]) {
|
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* I/O APICs: APIC ID Version State Address */
|
|
||||||
bus_isa = 10;
|
|
||||||
|
|
||||||
printk(BIOS_DEBUG, "Mainboard - Get_bus_conf.c - get_bus_conf - End.\n");
|
printk(BIOS_DEBUG, "Mainboard - Get_bus_conf.c - get_bus_conf - End.\n");
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,6 @@ static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
|
||||||
pirq_info->slot = slot;
|
pirq_info->slot = slot;
|
||||||
pirq_info->rfu = rfu;
|
pirq_info->rfu = rfu;
|
||||||
}
|
}
|
||||||
extern u8 bus_isa;
|
|
||||||
extern u8 bus_sb700[2];
|
extern u8 bus_sb700[2];
|
||||||
extern unsigned long sbdn_sb700;
|
extern unsigned long sbdn_sb700;
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,6 @@
|
||||||
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
||||||
* and acpi_tables busnum is default.
|
* and acpi_tables busnum is default.
|
||||||
*/
|
*/
|
||||||
u8 bus_isa;
|
|
||||||
u8 bus_sb800[6];
|
u8 bus_sb800[6];
|
||||||
u32 apicid_sb800;
|
u32 apicid_sb800;
|
||||||
|
|
||||||
|
@ -66,22 +65,16 @@ void get_bus_conf(void)
|
||||||
|
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_sb800[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_sb800[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
|
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < 4; i++) {
|
for (i = 0; i < 4; i++) {
|
||||||
dev = dev_find_slot(bus_sb800[0], PCI_DEVFN(sbdn_sb800 + 0x14, i));
|
dev = dev_find_slot(bus_sb800[0], PCI_DEVFN(sbdn_sb800 + 0x14, i));
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_sb800[2 + i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_sb800[2 + i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* I/O APICs: APIC ID Version State Address */
|
/* I/O APICs: APIC ID Version State Address */
|
||||||
bus_isa = 10;
|
|
||||||
apicid_base = CONFIG_MAX_CPUS;
|
apicid_base = CONFIG_MAX_CPUS;
|
||||||
apicid_sb800 = apicid_base;
|
apicid_sb800 = apicid_base;
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,6 @@ static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
|
||||||
pirq_info->slot = slot;
|
pirq_info->slot = slot;
|
||||||
pirq_info->rfu = rfu;
|
pirq_info->rfu = rfu;
|
||||||
}
|
}
|
||||||
extern u8 bus_isa;
|
|
||||||
extern u8 bus_sb800[6];
|
extern u8 bus_sb800[6];
|
||||||
extern unsigned long sbdn_sb800;
|
extern unsigned long sbdn_sb800;
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,6 @@
|
||||||
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
||||||
* and acpi_tables busnum is default.
|
* and acpi_tables busnum is default.
|
||||||
*/
|
*/
|
||||||
u8 bus_isa;
|
|
||||||
u8 bus_yangtze[6];
|
u8 bus_yangtze[6];
|
||||||
u32 apicid_yangtze;
|
u32 apicid_yangtze;
|
||||||
|
|
||||||
|
@ -80,22 +79,16 @@ void get_bus_conf(void)
|
||||||
|
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_yangtze[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_yangtze[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
|
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < 4; i++) {
|
for (i = 0; i < 4; i++) {
|
||||||
dev = dev_find_slot(bus_yangtze[0], PCI_DEVFN(sbdn_yangtze + 0x14, i));
|
dev = dev_find_slot(bus_yangtze[0], PCI_DEVFN(sbdn_yangtze + 0x14, i));
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_yangtze[2 + i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_yangtze[2 + i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* I/O APICs: APIC ID Version State Address */
|
/* I/O APICs: APIC ID Version State Address */
|
||||||
bus_isa = 10;
|
|
||||||
apicid_base = CONFIG_MAX_CPUS;
|
apicid_base = CONFIG_MAX_CPUS;
|
||||||
apicid_yangtze = apicid_base;
|
apicid_yangtze = apicid_base;
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,6 @@ static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
|
||||||
pirq_info->rfu = rfu;
|
pirq_info->rfu = rfu;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern u8 bus_isa;
|
|
||||||
extern u8 bus_yangtze[6];
|
extern u8 bus_yangtze[6];
|
||||||
extern unsigned long sbdn_yangtze;
|
extern unsigned long sbdn_yangtze;
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,6 @@
|
||||||
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
||||||
* and acpi_tables busnum is default.
|
* and acpi_tables busnum is default.
|
||||||
*/
|
*/
|
||||||
u8 bus_isa;
|
|
||||||
u8 bus_hudson[6];
|
u8 bus_hudson[6];
|
||||||
u32 apicid_hudson;
|
u32 apicid_hudson;
|
||||||
|
|
||||||
|
@ -70,22 +69,16 @@ void get_bus_conf(void)
|
||||||
|
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_hudson[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_hudson[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
|
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < 4; i++) {
|
for (i = 0; i < 4; i++) {
|
||||||
dev = dev_find_slot(bus_hudson[0], PCI_DEVFN(sbdn_hudson + 0x14, i));
|
dev = dev_find_slot(bus_hudson[0], PCI_DEVFN(sbdn_hudson + 0x14, i));
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_hudson[2 + i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_hudson[2 + i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* I/O APICs: APIC ID Version State Address */
|
/* I/O APICs: APIC ID Version State Address */
|
||||||
bus_isa = 10;
|
|
||||||
apicid_base = CONFIG_MAX_CPUS;
|
apicid_base = CONFIG_MAX_CPUS;
|
||||||
apicid_hudson = apicid_base;
|
apicid_hudson = apicid_base;
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,6 @@ static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
|
||||||
pirq_info->rfu = rfu;
|
pirq_info->rfu = rfu;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern u8 bus_isa;
|
|
||||||
extern u8 bus_hudson[6];
|
extern u8 bus_hudson[6];
|
||||||
extern unsigned long sbdn_hudson;
|
extern unsigned long sbdn_hudson;
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,6 @@
|
||||||
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
||||||
* and acpi_tables busnum is default.
|
* and acpi_tables busnum is default.
|
||||||
*/
|
*/
|
||||||
u8 bus_isa;
|
|
||||||
u8 bus_sb800[6];
|
u8 bus_sb800[6];
|
||||||
u32 apicid_sb800;
|
u32 apicid_sb800;
|
||||||
u32 apicver_sb800;
|
u32 apicver_sb800;
|
||||||
|
@ -67,23 +66,17 @@ void get_bus_conf(void)
|
||||||
|
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_sb800[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_sb800[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
|
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < 4; i++) {
|
for (i = 0; i < 4; i++) {
|
||||||
dev = dev_find_slot(bus_sb800[0], PCI_DEVFN(sbdn_sb800 + 0x14, i));
|
dev = dev_find_slot(bus_sb800[0], PCI_DEVFN(sbdn_sb800 + 0x14, i));
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_sb800[2 + i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_sb800[2 + i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* I/O APICs: APIC ID Version State Address */
|
/* I/O APICs: APIC ID Version State Address */
|
||||||
bus_isa = 10;
|
|
||||||
apicid_base = CONFIG_MAX_CPUS;
|
apicid_base = CONFIG_MAX_CPUS;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -44,7 +44,6 @@ static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
|
||||||
pirq_info->slot = slot;
|
pirq_info->slot = slot;
|
||||||
pirq_info->rfu = rfu;
|
pirq_info->rfu = rfu;
|
||||||
}
|
}
|
||||||
extern u8 bus_isa;
|
|
||||||
extern u8 bus_sb800[6];
|
extern u8 bus_sb800[6];
|
||||||
extern unsigned long sbdn_sb800;
|
extern unsigned long sbdn_sb800;
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,6 @@
|
||||||
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
||||||
* and acpi_tables busnum is default.
|
* and acpi_tables busnum is default.
|
||||||
*/
|
*/
|
||||||
u8 bus_isa;
|
|
||||||
u8 bus_sb800[6];
|
u8 bus_sb800[6];
|
||||||
u32 apicid_sb800;
|
u32 apicid_sb800;
|
||||||
|
|
||||||
|
@ -68,23 +67,17 @@ void get_bus_conf(void)
|
||||||
|
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_sb800[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_sb800[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
|
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < 4; i++) {
|
for (i = 0; i < 4; i++) {
|
||||||
dev = dev_find_slot(bus_sb800[0], PCI_DEVFN(sbdn_sb800 + 0x14, i));
|
dev = dev_find_slot(bus_sb800[0], PCI_DEVFN(sbdn_sb800 + 0x14, i));
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_sb800[2 + i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_sb800[2 + i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* I/O APICs: APIC ID Version State Address */
|
/* I/O APICs: APIC ID Version State Address */
|
||||||
bus_isa = 10;
|
|
||||||
apicid_base = CONFIG_MAX_CPUS;
|
apicid_base = CONFIG_MAX_CPUS;
|
||||||
apicid_sb800 = apicid_base;
|
apicid_sb800 = apicid_base;
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,6 @@ static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
|
||||||
pirq_info->slot = slot;
|
pirq_info->slot = slot;
|
||||||
pirq_info->rfu = rfu;
|
pirq_info->rfu = rfu;
|
||||||
}
|
}
|
||||||
extern u8 bus_isa;
|
|
||||||
extern u8 bus_sb800[6];
|
extern u8 bus_sb800[6];
|
||||||
extern unsigned long sbdn_sb800;
|
extern unsigned long sbdn_sb800;
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,6 @@
|
||||||
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
||||||
* and acpi_tables busnum is default.
|
* and acpi_tables busnum is default.
|
||||||
*/
|
*/
|
||||||
u8 bus_isa;
|
|
||||||
u8 bus_hudson[6];
|
u8 bus_hudson[6];
|
||||||
u32 apicid_hudson;
|
u32 apicid_hudson;
|
||||||
|
|
||||||
|
@ -67,22 +66,16 @@ void get_bus_conf(void)
|
||||||
|
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_hudson[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_hudson[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
|
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < 4; i++) {
|
for (i = 0; i < 4; i++) {
|
||||||
dev = dev_find_slot(bus_hudson[0], PCI_DEVFN(sbdn_hudson + 0x14, i));
|
dev = dev_find_slot(bus_hudson[0], PCI_DEVFN(sbdn_hudson + 0x14, i));
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_hudson[2 + i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_hudson[2 + i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* I/O APICs: APIC ID Version State Address */
|
/* I/O APICs: APIC ID Version State Address */
|
||||||
bus_isa = 10;
|
|
||||||
apicid_base = CONFIG_MAX_CPUS;
|
apicid_base = CONFIG_MAX_CPUS;
|
||||||
apicid_hudson = apicid_base;
|
apicid_hudson = apicid_base;
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,6 @@ static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
|
||||||
pirq_info->rfu = rfu;
|
pirq_info->rfu = rfu;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern u8 bus_isa;
|
|
||||||
extern u8 bus_hudson[6];
|
extern u8 bus_hudson[6];
|
||||||
extern unsigned long sbdn_hudson;
|
extern unsigned long sbdn_hudson;
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,6 @@
|
||||||
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
||||||
* and acpi_tables busnum is default.
|
* and acpi_tables busnum is default.
|
||||||
*/
|
*/
|
||||||
u8 bus_isa;
|
|
||||||
u8 bus_sb900[6];
|
u8 bus_sb900[6];
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -71,8 +70,6 @@ void get_bus_conf(void)
|
||||||
|
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_sb900[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_sb900[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < 4; i++) {
|
for (i = 0; i < 4; i++) {
|
||||||
|
@ -81,13 +78,8 @@ void get_bus_conf(void)
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_sb900[2 + i] =
|
bus_sb900[2 + i] =
|
||||||
pci_read_config8(dev, PCI_SECONDARY_BUS);
|
pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* I/O APICs: APIC ID Version State Address */
|
|
||||||
bus_isa = 10;
|
|
||||||
|
|
||||||
printk(BIOS_DEBUG, "Mainboard - %s - %s - End.\n", __FILE__, __func__);
|
printk(BIOS_DEBUG, "Mainboard - %s - %s - End.\n", __FILE__, __func__);
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,7 +45,6 @@ static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
|
||||||
pirq_info->slot = slot;
|
pirq_info->slot = slot;
|
||||||
pirq_info->rfu = rfu;
|
pirq_info->rfu = rfu;
|
||||||
}
|
}
|
||||||
extern u8 bus_isa;
|
|
||||||
extern u8 bus_sb900[6];
|
extern u8 bus_sb900[6];
|
||||||
extern unsigned long sbdn_sb900;
|
extern unsigned long sbdn_sb900;
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,6 @@
|
||||||
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
||||||
* and acpi_tables busnum is default.
|
* and acpi_tables busnum is default.
|
||||||
*/
|
*/
|
||||||
u8 bus_isa;
|
|
||||||
u8 bus_sb800[6];
|
u8 bus_sb800[6];
|
||||||
u32 apicid_sb800;
|
u32 apicid_sb800;
|
||||||
|
|
||||||
|
@ -70,23 +69,17 @@ void get_bus_conf(void)
|
||||||
|
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_sb800[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_sb800[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
|
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < 4; i++) {
|
for (i = 0; i < 4; i++) {
|
||||||
dev = dev_find_slot(bus_sb800[0], PCI_DEVFN(sbdn_sb800 + 0x14, i));
|
dev = dev_find_slot(bus_sb800[0], PCI_DEVFN(sbdn_sb800 + 0x14, i));
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_sb800[2 + i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_sb800[2 + i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* I/O APICs: APIC ID Version State Address */
|
/* I/O APICs: APIC ID Version State Address */
|
||||||
bus_isa = 10;
|
|
||||||
apicid_base = CONFIG_MAX_CPUS;
|
apicid_base = CONFIG_MAX_CPUS;
|
||||||
apicid_sb800 = apicid_base;
|
apicid_sb800 = apicid_base;
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,6 @@ static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
|
||||||
pirq_info->slot = slot;
|
pirq_info->slot = slot;
|
||||||
pirq_info->rfu = rfu;
|
pirq_info->rfu = rfu;
|
||||||
}
|
}
|
||||||
extern u8 bus_isa;
|
|
||||||
extern u8 bus_sb800[6];
|
extern u8 bus_sb800[6];
|
||||||
extern unsigned long sbdn_sb800;
|
extern unsigned long sbdn_sb800;
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,6 @@
|
||||||
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
||||||
* and acpi_tables busnum is default.
|
* and acpi_tables busnum is default.
|
||||||
*/
|
*/
|
||||||
u8 bus_isa;
|
|
||||||
u8 bus_sb800[6];
|
u8 bus_sb800[6];
|
||||||
u32 apicid_sb800;
|
u32 apicid_sb800;
|
||||||
|
|
||||||
|
@ -65,23 +64,17 @@ void get_bus_conf(void)
|
||||||
|
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_sb800[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_sb800[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
|
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < 4; i++) {
|
for (i = 0; i < 4; i++) {
|
||||||
dev = dev_find_slot(bus_sb800[0], PCI_DEVFN(sbdn_sb800 + 0x14, i));
|
dev = dev_find_slot(bus_sb800[0], PCI_DEVFN(sbdn_sb800 + 0x14, i));
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_sb800[2 + i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_sb800[2 + i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* I/O APICs: APIC ID Version State Address */
|
/* I/O APICs: APIC ID Version State Address */
|
||||||
bus_isa = 10;
|
|
||||||
apicid_base = CONFIG_MAX_CPUS;
|
apicid_base = CONFIG_MAX_CPUS;
|
||||||
apicid_sb800 = apicid_base;
|
apicid_sb800 = apicid_base;
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,6 @@ static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
|
||||||
pirq_info->slot = slot;
|
pirq_info->slot = slot;
|
||||||
pirq_info->rfu = rfu;
|
pirq_info->rfu = rfu;
|
||||||
}
|
}
|
||||||
extern u8 bus_isa;
|
|
||||||
extern u8 bus_sb800[6];
|
extern u8 bus_sb800[6];
|
||||||
extern unsigned long sbdn_sb800;
|
extern unsigned long sbdn_sb800;
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,6 @@
|
||||||
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
||||||
* and acpi_tables busnum is default.
|
* and acpi_tables busnum is default.
|
||||||
*/
|
*/
|
||||||
u8 bus_isa;
|
|
||||||
u8 bus_yangtze[6];
|
u8 bus_yangtze[6];
|
||||||
u32 apicid_yangtze;
|
u32 apicid_yangtze;
|
||||||
|
|
||||||
|
@ -75,22 +74,16 @@ void get_bus_conf(void)
|
||||||
|
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_yangtze[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_yangtze[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
|
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < 4; i++) {
|
for (i = 0; i < 4; i++) {
|
||||||
dev = dev_find_slot(bus_yangtze[0], PCI_DEVFN(sbdn_yangtze + 0x14, i));
|
dev = dev_find_slot(bus_yangtze[0], PCI_DEVFN(sbdn_yangtze + 0x14, i));
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_yangtze[2 + i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_yangtze[2 + i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* I/O APICs: APIC ID Version State Address */
|
/* I/O APICs: APIC ID Version State Address */
|
||||||
bus_isa = 10;
|
|
||||||
apicid_base = CONFIG_MAX_CPUS;
|
apicid_base = CONFIG_MAX_CPUS;
|
||||||
apicid_yangtze = apicid_base;
|
apicid_yangtze = apicid_base;
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,6 @@ static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
|
||||||
pirq_info->rfu = rfu;
|
pirq_info->rfu = rfu;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern u8 bus_isa;
|
|
||||||
extern u8 bus_yangtze[6];
|
extern u8 bus_yangtze[6];
|
||||||
extern unsigned long sbdn_yangtze;
|
extern unsigned long sbdn_yangtze;
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,6 @@
|
||||||
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
||||||
* and acpi_tables busnum is default.
|
* and acpi_tables busnum is default.
|
||||||
*/
|
*/
|
||||||
u8 bus_isa;
|
|
||||||
u8 bus_hudson[6];
|
u8 bus_hudson[6];
|
||||||
u32 apicid_hudson;
|
u32 apicid_hudson;
|
||||||
|
|
||||||
|
@ -65,22 +64,16 @@ void get_bus_conf(void)
|
||||||
|
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_hudson[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_hudson[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
|
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < 4; i++) {
|
for (i = 0; i < 4; i++) {
|
||||||
dev = dev_find_slot(bus_hudson[0], PCI_DEVFN(sbdn_hudson + 0x14, i));
|
dev = dev_find_slot(bus_hudson[0], PCI_DEVFN(sbdn_hudson + 0x14, i));
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_hudson[2 + i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_hudson[2 + i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* I/O APICs: APIC ID Version State Address */
|
/* I/O APICs: APIC ID Version State Address */
|
||||||
bus_isa = 10;
|
|
||||||
apicid_base = CONFIG_MAX_CPUS;
|
apicid_base = CONFIG_MAX_CPUS;
|
||||||
apicid_hudson = apicid_base;
|
apicid_hudson = apicid_base;
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,6 @@ static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
|
||||||
pirq_info->rfu = rfu;
|
pirq_info->rfu = rfu;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern u8 bus_isa;
|
|
||||||
extern u8 bus_hudson[6];
|
extern u8 bus_hudson[6];
|
||||||
extern unsigned long sbdn_hudson;
|
extern unsigned long sbdn_hudson;
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,6 @@
|
||||||
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
||||||
* and acpi_tables busnum is default.
|
* and acpi_tables busnum is default.
|
||||||
*/
|
*/
|
||||||
u8 bus_isa;
|
|
||||||
u8 bus_sb800[6];
|
u8 bus_sb800[6];
|
||||||
u32 apicid_sb800;
|
u32 apicid_sb800;
|
||||||
|
|
||||||
|
@ -68,22 +67,16 @@ void get_bus_conf(void)
|
||||||
|
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_sb800[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_sb800[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
|
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < 4; i++) {
|
for (i = 0; i < 4; i++) {
|
||||||
dev = dev_find_slot(bus_sb800[0], PCI_DEVFN(sbdn_sb800 + 0x14, i));
|
dev = dev_find_slot(bus_sb800[0], PCI_DEVFN(sbdn_sb800 + 0x14, i));
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_sb800[2 + i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_sb800[2 + i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* I/O APICs: APIC ID Version State Address */
|
/* I/O APICs: APIC ID Version State Address */
|
||||||
bus_isa = 10;
|
|
||||||
apicid_base = CONFIG_MAX_CPUS;
|
apicid_base = CONFIG_MAX_CPUS;
|
||||||
apicid_sb800 = apicid_base;
|
apicid_sb800 = apicid_base;
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,6 @@ static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
|
||||||
pirq_info->slot = slot;
|
pirq_info->slot = slot;
|
||||||
pirq_info->rfu = rfu;
|
pirq_info->rfu = rfu;
|
||||||
}
|
}
|
||||||
extern u8 bus_isa;
|
|
||||||
extern u8 bus_sb800[6];
|
extern u8 bus_sb800[6];
|
||||||
extern unsigned long sbdn_sb800;
|
extern unsigned long sbdn_sb800;
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,6 @@
|
||||||
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
||||||
* and acpi_tables busnum is default.
|
* and acpi_tables busnum is default.
|
||||||
*/
|
*/
|
||||||
u8 bus_isa;
|
|
||||||
u8 bus_hudson[6];
|
u8 bus_hudson[6];
|
||||||
u32 apicid_hudson;
|
u32 apicid_hudson;
|
||||||
|
|
||||||
|
@ -65,22 +64,16 @@ void get_bus_conf(void)
|
||||||
|
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_hudson[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_hudson[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
|
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < 4; i++) {
|
for (i = 0; i < 4; i++) {
|
||||||
dev = dev_find_slot(bus_hudson[0], PCI_DEVFN(sbdn_hudson + 0x14, i));
|
dev = dev_find_slot(bus_hudson[0], PCI_DEVFN(sbdn_hudson + 0x14, i));
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_hudson[2 + i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_hudson[2 + i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* I/O APICs: APIC ID Version State Address */
|
/* I/O APICs: APIC ID Version State Address */
|
||||||
bus_isa = 10;
|
|
||||||
apicid_base = CONFIG_MAX_CPUS;
|
apicid_base = CONFIG_MAX_CPUS;
|
||||||
apicid_hudson = apicid_base;
|
apicid_hudson = apicid_base;
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,6 @@ static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
|
||||||
pirq_info->rfu = rfu;
|
pirq_info->rfu = rfu;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern u8 bus_isa;
|
|
||||||
extern u8 bus_hudson[6];
|
extern u8 bus_hudson[6];
|
||||||
extern unsigned long sbdn_hudson;
|
extern unsigned long sbdn_hudson;
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,6 @@
|
||||||
* Global variables for mainboard layouts. These are shared by irqtable,
|
* Global variables for mainboard layouts. These are shared by irqtable,
|
||||||
* mptable and acpi_tables where busnum is default.
|
* mptable and acpi_tables where busnum is default.
|
||||||
*/
|
*/
|
||||||
u8 bus_isa;
|
|
||||||
u8 bus_sb800[6];
|
u8 bus_sb800[6];
|
||||||
u32 apicid_sb800;
|
u32 apicid_sb800;
|
||||||
u32 apicver_sb800;
|
u32 apicver_sb800;
|
||||||
|
@ -68,22 +67,16 @@ void get_bus_conf(void)
|
||||||
|
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_sb800[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_sb800[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
|
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < 4; i++) {
|
for (i = 0; i < 4; i++) {
|
||||||
dev = dev_find_slot(bus_sb800[0], PCI_DEVFN(sbdn_sb800 + 0x14, i));
|
dev = dev_find_slot(bus_sb800[0], PCI_DEVFN(sbdn_sb800 + 0x14, i));
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_sb800[2 + i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_sb800[2 + i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* I/O APICs: APIC ID Version State Address */
|
/* I/O APICs: APIC ID Version State Address */
|
||||||
bus_isa = 10;
|
|
||||||
apicid_base = CONFIG_MAX_CPUS;
|
apicid_base = CONFIG_MAX_CPUS;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -43,7 +43,6 @@ static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
|
||||||
pirq_info->slot = slot;
|
pirq_info->slot = slot;
|
||||||
pirq_info->rfu = rfu;
|
pirq_info->rfu = rfu;
|
||||||
}
|
}
|
||||||
extern u8 bus_isa;
|
|
||||||
extern u8 bus_sb800[6];
|
extern u8 bus_sb800[6];
|
||||||
extern unsigned long sbdn_sb800;
|
extern unsigned long sbdn_sb800;
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,6 @@
|
||||||
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
||||||
* and acpi_tables busnum is default.
|
* and acpi_tables busnum is default.
|
||||||
*/
|
*/
|
||||||
u8 bus_isa;
|
|
||||||
u8 bus_sb800[6];
|
u8 bus_sb800[6];
|
||||||
u32 apicid_sb800;
|
u32 apicid_sb800;
|
||||||
|
|
||||||
|
@ -66,22 +65,16 @@ void get_bus_conf(void)
|
||||||
|
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_sb800[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_sb800[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
|
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < 4; i++) {
|
for (i = 0; i < 4; i++) {
|
||||||
dev = dev_find_slot(bus_sb800[0], PCI_DEVFN(sbdn_sb800 + 0x14, i));
|
dev = dev_find_slot(bus_sb800[0], PCI_DEVFN(sbdn_sb800 + 0x14, i));
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_sb800[2 + i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_sb800[2 + i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* I/O APICs: APIC ID Version State Address */
|
/* I/O APICs: APIC ID Version State Address */
|
||||||
bus_isa = 10;
|
|
||||||
apicid_base = CONFIG_MAX_CPUS;
|
apicid_base = CONFIG_MAX_CPUS;
|
||||||
apicid_sb800 = apicid_base;
|
apicid_sb800 = apicid_base;
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,6 @@ static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
|
||||||
pirq_info->slot = slot;
|
pirq_info->slot = slot;
|
||||||
pirq_info->rfu = rfu;
|
pirq_info->rfu = rfu;
|
||||||
}
|
}
|
||||||
extern u8 bus_isa;
|
|
||||||
extern u8 bus_sb800[6];
|
extern u8 bus_sb800[6];
|
||||||
extern unsigned long sbdn_sb800;
|
extern unsigned long sbdn_sb800;
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,6 @@
|
||||||
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
||||||
* and acpi_tables busnum is default.
|
* and acpi_tables busnum is default.
|
||||||
*/
|
*/
|
||||||
u8 bus_isa;
|
|
||||||
u8 bus_sb800[6];
|
u8 bus_sb800[6];
|
||||||
u32 apicid_sb800;
|
u32 apicid_sb800;
|
||||||
|
|
||||||
|
@ -64,22 +63,16 @@ void get_bus_conf(void)
|
||||||
|
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_sb800[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_sb800[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
|
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < 4; i++) {
|
for (i = 0; i < 4; i++) {
|
||||||
dev = dev_find_slot(bus_sb800[0], PCI_DEVFN(sbdn_sb800 + 0x14, i));
|
dev = dev_find_slot(bus_sb800[0], PCI_DEVFN(sbdn_sb800 + 0x14, i));
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_sb800[2 + i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_sb800[2 + i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* I/O APICs: APIC ID Version State Address */
|
/* I/O APICs: APIC ID Version State Address */
|
||||||
bus_isa = 10;
|
|
||||||
apicid_base = CONFIG_MAX_CPUS;
|
apicid_base = CONFIG_MAX_CPUS;
|
||||||
apicid_sb800 = apicid_base;
|
apicid_sb800 = apicid_base;
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,6 @@ static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
|
||||||
pirq_info->slot = slot;
|
pirq_info->slot = slot;
|
||||||
pirq_info->rfu = rfu;
|
pirq_info->rfu = rfu;
|
||||||
}
|
}
|
||||||
extern u8 bus_isa;
|
|
||||||
extern u8 bus_sb800[6];
|
extern u8 bus_sb800[6];
|
||||||
extern unsigned long sbdn_sb800;
|
extern unsigned long sbdn_sb800;
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,6 @@
|
||||||
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
||||||
* and acpi_tables busnum is default.
|
* and acpi_tables busnum is default.
|
||||||
*/
|
*/
|
||||||
u8 bus_isa;
|
|
||||||
u8 bus_sp5100[2];
|
u8 bus_sp5100[2];
|
||||||
u8 bus_sr5650[14];
|
u8 bus_sr5650[14];
|
||||||
|
|
||||||
|
@ -62,9 +61,6 @@ void get_bus_conf(void)
|
||||||
|
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_sp5100[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_sp5100[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
|
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* sr5650 */
|
/* sr5650 */
|
||||||
|
@ -72,10 +68,6 @@ void get_bus_conf(void)
|
||||||
dev = dev_find_slot(bus_sr5650[0], PCI_DEVFN(sbdn_sr5650 + i, 0));
|
dev = dev_find_slot(bus_sr5650[0], PCI_DEVFN(sbdn_sr5650 + i, 0));
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_sr5650[i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_sr5650[i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
if(255 != bus_sr5650[i]) {
|
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,14 +76,11 @@ void get_bus_conf(void)
|
||||||
dev = dev_find_slot(bus_sp5100[0], PCI_DEVFN(sbdn_sp5100 + 0x14, i));
|
dev = dev_find_slot(bus_sp5100[0], PCI_DEVFN(sbdn_sp5100 + 0x14, i));
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_sp5100[2 + i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_sp5100[2 + i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/* I/O APICs: APIC ID Version State Address */
|
/* I/O APICs: APIC ID Version State Address */
|
||||||
bus_isa = 10;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,7 +44,6 @@ static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
|
||||||
pirq_info->slot = slot;
|
pirq_info->slot = slot;
|
||||||
pirq_info->rfu = rfu;
|
pirq_info->rfu = rfu;
|
||||||
}
|
}
|
||||||
extern u8 bus_isa;
|
|
||||||
extern u8 bus_sp5100[2];
|
extern u8 bus_sp5100[2];
|
||||||
extern unsigned long sbdn_sp5100;
|
extern unsigned long sbdn_sp5100;
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,6 @@
|
||||||
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
||||||
* and acpi_tables busnum is default.
|
* and acpi_tables busnum is default.
|
||||||
*/
|
*/
|
||||||
u8 bus_isa;
|
|
||||||
u8 bus_sp5100[2];
|
u8 bus_sp5100[2];
|
||||||
u8 bus_sr5650[14];
|
u8 bus_sr5650[14];
|
||||||
|
|
||||||
|
@ -62,9 +61,6 @@ void get_bus_conf(void)
|
||||||
|
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_sp5100[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_sp5100[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
|
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* sr5650 */
|
/* sr5650 */
|
||||||
|
@ -72,10 +68,6 @@ void get_bus_conf(void)
|
||||||
dev = dev_find_slot(bus_sr5650[0], PCI_DEVFN(sbdn_sr5650 + i, 0));
|
dev = dev_find_slot(bus_sr5650[0], PCI_DEVFN(sbdn_sr5650 + i, 0));
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_sr5650[i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_sr5650[i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
if(255 != bus_sr5650[i]) {
|
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,14 +76,11 @@ void get_bus_conf(void)
|
||||||
dev = dev_find_slot(bus_sp5100[0], PCI_DEVFN(sbdn_sp5100 + 0x14, i));
|
dev = dev_find_slot(bus_sp5100[0], PCI_DEVFN(sbdn_sp5100 + 0x14, i));
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_sp5100[2 + i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_sp5100[2 + i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/* I/O APICs: APIC ID Version State Address */
|
/* I/O APICs: APIC ID Version State Address */
|
||||||
bus_isa = 10;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,7 +44,6 @@ static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
|
||||||
pirq_info->slot = slot;
|
pirq_info->slot = slot;
|
||||||
pirq_info->rfu = rfu;
|
pirq_info->rfu = rfu;
|
||||||
}
|
}
|
||||||
extern u8 bus_isa;
|
|
||||||
extern u8 bus_sp5100[2];
|
extern u8 bus_sp5100[2];
|
||||||
extern unsigned long sbdn_sp5100;
|
extern unsigned long sbdn_sp5100;
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,6 @@
|
||||||
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
||||||
* and acpi_tables busnum is default.
|
* and acpi_tables busnum is default.
|
||||||
*/
|
*/
|
||||||
int bus_isa;
|
|
||||||
u8 bus_sp5100[2];
|
u8 bus_sp5100[2];
|
||||||
u8 bus_sr5650[14];
|
u8 bus_sr5650[14];
|
||||||
|
|
||||||
|
@ -63,9 +62,6 @@ void get_bus_conf(void)
|
||||||
|
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_sp5100[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_sp5100[1] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
|
|
||||||
bus_isa = (int)pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* sr5650 */
|
/* sr5650 */
|
||||||
|
@ -73,10 +69,6 @@ void get_bus_conf(void)
|
||||||
dev = dev_find_slot(bus_sr5650[0], PCI_DEVFN(sbdn_sr5650 + i, 0));
|
dev = dev_find_slot(bus_sr5650[0], PCI_DEVFN(sbdn_sr5650 + i, 0));
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_sr5650[i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_sr5650[i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
if(255 != bus_sr5650[i]) {
|
|
||||||
bus_isa = (int)pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,14 +77,9 @@ void get_bus_conf(void)
|
||||||
dev = dev_find_slot(bus_sp5100[0], PCI_DEVFN(sbdn_sp5100 + 0x14, i));
|
dev = dev_find_slot(bus_sp5100[0], PCI_DEVFN(sbdn_sp5100 + 0x14, i));
|
||||||
if (dev) {
|
if (dev) {
|
||||||
bus_sp5100[2 + i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
bus_sp5100[2 + i] = pci_read_config8(dev, PCI_SECONDARY_BUS);
|
||||||
bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS);
|
|
||||||
bus_isa++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/* I/O APICs: APIC ID Version State Address */
|
|
||||||
bus_isa = 10;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,7 +44,6 @@ static void write_pirq_info(struct irq_info *pirq_info, u8 bus, u8 devfn,
|
||||||
pirq_info->slot = slot;
|
pirq_info->slot = slot;
|
||||||
pirq_info->rfu = rfu;
|
pirq_info->rfu = rfu;
|
||||||
}
|
}
|
||||||
extern u8 bus_isa;
|
|
||||||
extern u8 bus_sp5100[2];
|
extern u8 bus_sp5100[2];
|
||||||
extern unsigned long sbdn_sp5100;
|
extern unsigned long sbdn_sp5100;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue