mb/mainboard/amd/serengeti_cheetah_fam10: Use PCI_DEVFN()
Change-Id: Ica2ea269152c30ded7c865adc2454bccc4f986ec Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/30787 Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
d21495549b
commit
285ae69e51
|
@ -101,7 +101,7 @@ unsigned long write_pirq_routing_table(unsigned long addr)
|
||||||
u32 busn = (sysconf.pci1234[i] >> 12) & 0xff;
|
u32 busn = (sysconf.pci1234[i] >> 12) & 0xff;
|
||||||
u32 devn = sysconf.hcdn[i] & 0xff;
|
u32 devn = sysconf.hcdn[i] & 0xff;
|
||||||
|
|
||||||
write_pirq_info(pirq_info, busn, (devn << 3) | 0, 0x1, 0xdef8,
|
write_pirq_info(pirq_info, busn, PCI_DEVFN(devn, 0), 0x1, 0xdef8,
|
||||||
0x2, 0xdef8, 0x3, 0xdef8, 0x4, 0xdef8, 0, 0);
|
0x2, 0xdef8, 0x3, 0xdef8, 0x4, 0xdef8, 0, 0);
|
||||||
pirq_info++;
|
pirq_info++;
|
||||||
slot_num++;
|
slot_num++;
|
||||||
|
@ -110,12 +110,12 @@ unsigned long write_pirq_routing_table(unsigned long addr)
|
||||||
}
|
}
|
||||||
|
|
||||||
#if CONFIG_CBB
|
#if CONFIG_CBB
|
||||||
write_pirq_info(pirq_info, CONFIG_CBB, (0 << 3) | 0, 0x1, 0xdef8, 0x2,
|
write_pirq_info(pirq_info, CONFIG_CBB, PCI_DEVFN(0, 0), 0x1, 0xdef8, 0x2,
|
||||||
0xdef8, 0x3, 0xdef8, 0x4, 0xdef8, 0, 0);
|
0xdef8, 0x3, 0xdef8, 0x4, 0xdef8, 0, 0);
|
||||||
pirq_info++;
|
pirq_info++;
|
||||||
slot_num++;
|
slot_num++;
|
||||||
if (sysconf.nodes > 32) {
|
if (sysconf.nodes > 32) {
|
||||||
write_pirq_info(pirq_info, CONFIG_CBB - 1, (0 << 3) | 0, 0x1,
|
write_pirq_info(pirq_info, CONFIG_CBB - 1, PCI_DEVFN(0, 0), 0x1,
|
||||||
0xdef8, 0x2, 0xdef8, 0x3, 0xdef8, 0x4, 0xdef8,
|
0xdef8, 0x2, 0xdef8, 0x3, 0xdef8, 0x4, 0xdef8,
|
||||||
0, 0);
|
0, 0);
|
||||||
pirq_info++;
|
pirq_info++;
|
||||||
|
|
Loading…
Reference in New Issue