[PPC] Make mac-io ata interrupts depend on local, not global index

In commit r680 I incorrectly made the interrupt number of the mac-io ata
device depend on its global index. Of course the interrupt only depends on
its index inside the mac-io chip.

So let's fix that up and make Qemu's oldworld emulation work again!

Signed-off-by: Alexander Graf <agraf@suse.de>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@721 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Alexander Graf
2010-04-01 23:40:21 +00:00
parent d4451ae216
commit 41dd5272ca

View File

@@ -1582,16 +1582,16 @@ int macio_ide_init(const char *path, uint32_t addr, int nb_channels)
/* The first interrupt entry is the ide interrupt, the second
the dbdma interrupt */
switch (current_channel) {
case 1:
switch (i) {
case 0:
props[0] = 0x0000000d;
props[2] = 0x00000002;
break;
case 2:
case 1:
props[0] = 0x0000000e;
props[2] = 0x00000003;
break;
case 3:
case 2:
props[0] = 0x0000000f;
props[2] = 0x00000004;
break;