amdfam10 boards: Use PCI_DEVFN()
Change-Id: I301ed4024f1dd6fb2009d59b2992830d4f17ee2f Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/30639 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:
parent
651f4d231c
commit
6bc6c5548e
|
@ -65,7 +65,7 @@ unsigned long write_pirq_routing_table(unsigned long addr)
|
|||
pirq->version = PIRQ_VERSION;
|
||||
|
||||
pirq->rtr_bus = bus_sb800[0];
|
||||
pirq->rtr_devfn = (0x14 << 3) | 4;
|
||||
pirq->rtr_devfn = PCI_DEVFN(0x14, 4);
|
||||
|
||||
pirq->exclusive_irqs = 0;
|
||||
|
||||
|
@ -80,7 +80,7 @@ unsigned long write_pirq_routing_table(unsigned long addr)
|
|||
slot_num = 0;
|
||||
|
||||
/* pci bridge */
|
||||
write_pirq_info(pirq_info, bus_sb800[0], (0x14 << 3) | 4,
|
||||
write_pirq_info(pirq_info, bus_sb800[0], PCI_DEVFN(0x14, 4),
|
||||
0x1, 0xdef8, 0x2, 0xdef8, 0x3, 0xdef8, 0x4, 0xdef8, 0,
|
||||
0);
|
||||
pirq_info++;
|
||||
|
|
|
@ -65,7 +65,7 @@ unsigned long write_pirq_routing_table(unsigned long addr)
|
|||
pirq->version = PIRQ_VERSION;
|
||||
|
||||
pirq->rtr_bus = bus_sb800[0];
|
||||
pirq->rtr_devfn = (0x14 << 3) | 4;
|
||||
pirq->rtr_devfn = PCI_DEVFN(0x14, 4);
|
||||
|
||||
pirq->exclusive_irqs = 0;
|
||||
|
||||
|
@ -80,7 +80,7 @@ unsigned long write_pirq_routing_table(unsigned long addr)
|
|||
slot_num = 0;
|
||||
|
||||
/* pci bridge */
|
||||
write_pirq_info(pirq_info, bus_sb800[0], (0x14 << 3) | 4,
|
||||
write_pirq_info(pirq_info, bus_sb800[0], PCI_DEVFN(0x14, 4),
|
||||
0x1, 0xdef8, 0x2, 0xdef8, 0x3, 0xdef8, 0x4, 0xdef8, 0,
|
||||
0);
|
||||
pirq_info++;
|
||||
|
|
|
@ -66,7 +66,7 @@ unsigned long write_pirq_routing_table(unsigned long addr)
|
|||
pirq->version = PIRQ_VERSION;
|
||||
|
||||
pirq->rtr_bus = bus_sb700[0];
|
||||
pirq->rtr_devfn = (0x14 << 3) | 4;
|
||||
pirq->rtr_devfn = PCI_DEVFN(0x14, 4);
|
||||
|
||||
pirq->exclusive_irqs = 0;
|
||||
|
||||
|
@ -81,7 +81,7 @@ unsigned long write_pirq_routing_table(unsigned long addr)
|
|||
slot_num = 0;
|
||||
|
||||
/* pci bridge */
|
||||
write_pirq_info(pirq_info, bus_sb700[0], (0x14 << 3) | 4,
|
||||
write_pirq_info(pirq_info, bus_sb700[0], PCI_DEVFN(0x14, 4),
|
||||
0x1, 0xdef8, 0x2, 0xdef8, 0x3, 0xdef8, 0x4, 0xdef8, 0,
|
||||
0);
|
||||
pirq_info++;
|
||||
|
|
|
@ -66,7 +66,7 @@ unsigned long write_pirq_routing_table(unsigned long addr)
|
|||
pirq->version = PIRQ_VERSION;
|
||||
|
||||
pirq->rtr_bus = bus_sb700[0];
|
||||
pirq->rtr_devfn = (0x14 << 3) | 4;
|
||||
pirq->rtr_devfn = PCI_DEVFN(0x14, 4);
|
||||
|
||||
pirq->exclusive_irqs = 0;
|
||||
|
||||
|
@ -81,7 +81,7 @@ unsigned long write_pirq_routing_table(unsigned long addr)
|
|||
slot_num = 0;
|
||||
|
||||
/* pci bridge */
|
||||
write_pirq_info(pirq_info, bus_sb700[0], (0x14 << 3) | 4,
|
||||
write_pirq_info(pirq_info, bus_sb700[0], PCI_DEVFN(0x14, 4),
|
||||
0x1, 0xdef8, 0x2, 0xdef8, 0x3, 0xdef8, 0x4, 0xdef8, 0,
|
||||
0);
|
||||
pirq_info++;
|
||||
|
|
|
@ -103,7 +103,7 @@ unsigned long write_pirq_routing_table(unsigned long addr)
|
|||
|
||||
/* pci bridge */
|
||||
write_pirq_info(pirq_info, bus_sp5100[0],
|
||||
(0x14 << 3) | 4, LNKA, IRQBM, LNKB,
|
||||
PCI_DEVFN(0x14, 4), LNKA, IRQBM, LNKB,
|
||||
IRQBM, LNKC, IRQBM, LNKD, IRQBM, 0, 0);
|
||||
pirq_info++;
|
||||
slot_num++;
|
||||
|
|
|
@ -103,7 +103,7 @@ unsigned long write_pirq_routing_table(unsigned long addr)
|
|||
|
||||
/* pci bridge */
|
||||
write_pirq_info(pirq_info, bus_sp5100[0],
|
||||
(0x14 << 3) | 4, LNKA, IRQBM, LNKB,
|
||||
PCI_DEVFN(0x14, 4), LNKA, IRQBM, LNKB,
|
||||
IRQBM, LNKC, IRQBM, LNKD, IRQBM, 0, 0);
|
||||
pirq_info++;
|
||||
slot_num++;
|
||||
|
|
|
@ -65,7 +65,7 @@ unsigned long write_pirq_routing_table(unsigned long addr)
|
|||
pirq->version = PIRQ_VERSION;
|
||||
|
||||
pirq->rtr_bus = bus_sb800[0];
|
||||
pirq->rtr_devfn = (0x14 << 3) | 4;
|
||||
pirq->rtr_devfn = PCI_DEVFN(0x14, 4);
|
||||
|
||||
pirq->exclusive_irqs = 0;
|
||||
|
||||
|
@ -80,7 +80,7 @@ unsigned long write_pirq_routing_table(unsigned long addr)
|
|||
slot_num = 0;
|
||||
|
||||
/* pci bridge */
|
||||
write_pirq_info(pirq_info, bus_sb800[0], (0x14 << 3) | 4,
|
||||
write_pirq_info(pirq_info, bus_sb800[0], PCI_DEVFN(0x14, 4),
|
||||
0x1, 0xdef8, 0x2, 0xdef8, 0x3, 0xdef8, 0x4, 0xdef8, 0,
|
||||
0);
|
||||
pirq_info++;
|
||||
|
|
|
@ -65,7 +65,7 @@ unsigned long write_pirq_routing_table(unsigned long addr)
|
|||
pirq->version = PIRQ_VERSION;
|
||||
|
||||
pirq->rtr_bus = bus_sb800[0];
|
||||
pirq->rtr_devfn = (0x14 << 3) | 4;
|
||||
pirq->rtr_devfn = PCI_DEVFN(0x14, 4);
|
||||
|
||||
pirq->exclusive_irqs = 0;
|
||||
|
||||
|
@ -80,7 +80,7 @@ unsigned long write_pirq_routing_table(unsigned long addr)
|
|||
slot_num = 0;
|
||||
|
||||
/* pci bridge */
|
||||
write_pirq_info(pirq_info, bus_sb800[0], (0x14 << 3) | 4,
|
||||
write_pirq_info(pirq_info, bus_sb800[0], PCI_DEVFN(0x14, 4),
|
||||
0x1, 0xdef8, 0x2, 0xdef8, 0x3, 0xdef8, 0x4, 0xdef8, 0,
|
||||
0);
|
||||
pirq_info++;
|
||||
|
|
|
@ -66,7 +66,7 @@ unsigned long write_pirq_routing_table(unsigned long addr)
|
|||
pirq->version = PIRQ_VERSION;
|
||||
|
||||
pirq->rtr_bus = bus_sb700[0];
|
||||
pirq->rtr_devfn = (0x14 << 3) | 4;
|
||||
pirq->rtr_devfn = PCI_DEVFN(0x14, 4);
|
||||
|
||||
pirq->exclusive_irqs = 0;
|
||||
|
||||
|
@ -81,7 +81,7 @@ unsigned long write_pirq_routing_table(unsigned long addr)
|
|||
slot_num = 0;
|
||||
|
||||
/* pci bridge */
|
||||
write_pirq_info(pirq_info, bus_sb700[0], (0x14 << 3) | 4,
|
||||
write_pirq_info(pirq_info, bus_sb700[0], PCI_DEVFN(0x14, 4),
|
||||
0x1, 0xdef8, 0x2, 0xdef8, 0x3, 0xdef8, 0x4, 0xdef8, 0,
|
||||
0);
|
||||
pirq_info++;
|
||||
|
|
|
@ -66,7 +66,7 @@ unsigned long write_pirq_routing_table(unsigned long addr)
|
|||
pirq->version = PIRQ_VERSION;
|
||||
|
||||
pirq->rtr_bus = bus_sb700[0];
|
||||
pirq->rtr_devfn = (0x14 << 3) | 4;
|
||||
pirq->rtr_devfn = PCI_DEVFN(0x14, 4);
|
||||
|
||||
pirq->exclusive_irqs = 0;
|
||||
|
||||
|
@ -81,7 +81,7 @@ unsigned long write_pirq_routing_table(unsigned long addr)
|
|||
slot_num = 0;
|
||||
|
||||
/* pci bridge */
|
||||
write_pirq_info(pirq_info, bus_sb700[0], (0x14 << 3) | 4,
|
||||
write_pirq_info(pirq_info, bus_sb700[0], PCI_DEVFN(0x14, 4),
|
||||
0x1, 0xdef8, 0x2, 0xdef8, 0x3, 0xdef8, 0x4, 0xdef8, 0,
|
||||
0);
|
||||
pirq_info++;
|
||||
|
|
|
@ -66,7 +66,7 @@ unsigned long write_pirq_routing_table(unsigned long addr)
|
|||
pirq->version = PIRQ_VERSION;
|
||||
|
||||
pirq->rtr_bus = bus_sb700[0];
|
||||
pirq->rtr_devfn = (0x14 << 3) | 4;
|
||||
pirq->rtr_devfn = PCI_DEVFN(0x14, 4);
|
||||
|
||||
pirq->exclusive_irqs = 0;
|
||||
|
||||
|
@ -81,7 +81,7 @@ unsigned long write_pirq_routing_table(unsigned long addr)
|
|||
slot_num = 0;
|
||||
|
||||
/* pci bridge */
|
||||
write_pirq_info(pirq_info, bus_sb700[0], (0x14 << 3) | 4,
|
||||
write_pirq_info(pirq_info, bus_sb700[0], PCI_DEVFN(0x14, 4),
|
||||
0x1, 0xdef8, 0x2, 0xdef8, 0x3, 0xdef8, 0x4, 0xdef8, 0,
|
||||
0);
|
||||
pirq_info++;
|
||||
|
|
|
@ -66,7 +66,7 @@ unsigned long write_pirq_routing_table(unsigned long addr)
|
|||
pirq->version = PIRQ_VERSION;
|
||||
|
||||
pirq->rtr_bus = bus_sb700[0];
|
||||
pirq->rtr_devfn = (0x14 << 3) | 4;
|
||||
pirq->rtr_devfn = PCI_DEVFN(0x14, 4);
|
||||
|
||||
pirq->exclusive_irqs = 0;
|
||||
|
||||
|
@ -81,7 +81,7 @@ unsigned long write_pirq_routing_table(unsigned long addr)
|
|||
slot_num = 0;
|
||||
|
||||
/* pci bridge */
|
||||
write_pirq_info(pirq_info, bus_sb700[0], (0x14 << 3) | 4,
|
||||
write_pirq_info(pirq_info, bus_sb700[0], PCI_DEVFN(0x14, 4),
|
||||
0x1, 0xdef8, 0x2, 0xdef8, 0x3, 0xdef8, 0x4, 0xdef8, 0,
|
||||
0);
|
||||
pirq_info++;
|
||||
|
|
|
@ -66,7 +66,7 @@ unsigned long write_pirq_routing_table(unsigned long addr)
|
|||
pirq->version = PIRQ_VERSION;
|
||||
|
||||
pirq->rtr_bus = bus_sb700[0];
|
||||
pirq->rtr_devfn = (0x14 << 3) | 4;
|
||||
pirq->rtr_devfn = PCI_DEVFN(0x14, 4);
|
||||
|
||||
pirq->exclusive_irqs = 0;
|
||||
|
||||
|
@ -81,7 +81,7 @@ unsigned long write_pirq_routing_table(unsigned long addr)
|
|||
slot_num = 0;
|
||||
|
||||
/* pci bridge */
|
||||
write_pirq_info(pirq_info, bus_sb700[0], (0x14 << 3) | 4,
|
||||
write_pirq_info(pirq_info, bus_sb700[0], PCI_DEVFN(0x14, 4),
|
||||
0x1, 0xdef8, 0x2, 0xdef8, 0x3, 0xdef8, 0x4, 0xdef8, 0,
|
||||
0);
|
||||
pirq_info++;
|
||||
|
|
|
@ -66,7 +66,7 @@ unsigned long write_pirq_routing_table(unsigned long addr)
|
|||
pirq->version = PIRQ_VERSION;
|
||||
|
||||
pirq->rtr_bus = bus_sp5100[0];
|
||||
pirq->rtr_devfn = (0x14 << 3) | 4;
|
||||
pirq->rtr_devfn = PCI_DEVFN(0x14, 4);
|
||||
|
||||
pirq->exclusive_irqs = 0;
|
||||
|
||||
|
@ -82,7 +82,7 @@ unsigned long write_pirq_routing_table(unsigned long addr)
|
|||
|
||||
/* pci bridge */
|
||||
write_pirq_info(pirq_info, bus_sp5100[0],
|
||||
(0x14 << 3) | 4, 0x1, 0xdef8, 0x2,
|
||||
PCI_DEVFN(0x14, 4), 0x1, 0xdef8, 0x2,
|
||||
0xdef8, 0x3, 0xdef8, 0x4, 0xdef8, 0, 0);
|
||||
pirq_info++;
|
||||
slot_num++;
|
||||
|
|
Loading…
Reference in New Issue