With the previous commit, assuming an rtl8139 network card is placed in PCI slots 0-2 on an Apple PPC machine then this will cause rtl8139_config_cb() to enable bus mastering on this particular network card.
Signed-off-by: Mark Cave-Ayland mark.cave-ayland@ilande.co.uk --- openbios-devel/arch/ppc/qemu/init.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/openbios-devel/arch/ppc/qemu/init.c b/openbios-devel/arch/ppc/qemu/init.c index 2b5b8e1..a8fe63b 100644 --- a/openbios-devel/arch/ppc/qemu/init.c +++ b/openbios-devel/arch/ppc/qemu/init.c @@ -124,7 +124,8 @@ static const pci_arch_t known_arch[] = { .io_len = 0x00800000, .rbase = 0x00000000, .rlen = 0x01000000, - .irqs = { 0x1b, 0x1c, 0x1d, 0x1e } + .irqs = { 0x1b, 0x1c, 0x1d, 0x1e }, + .bus_master_capable = { 0x7 } }, [ARCH_MAC99_U3] = { .name = "MAC99_U3", @@ -141,7 +142,8 @@ static const pci_arch_t known_arch[] = { .io_len = 0x00800000, .rbase = 0x00000000, .rlen = 0x01000000, - .irqs = { 0x1b, 0x1c, 0x1d, 0x1e } + .irqs = { 0x1b, 0x1c, 0x1d, 0x1e }, + .bus_master_capable = { 0x7 } }, [ARCH_HEATHROW] = { .name = "HEATHROW", @@ -158,7 +160,8 @@ static const pci_arch_t known_arch[] = { .io_len = 0x00800000, .rbase = 0xfd000000, .rlen = 0x01000000, - .irqs = { 21, 22, 23, 24 } + .irqs = { 21, 22, 23, 24 }, + .bus_master_capable = { 0x7 } }, }; unsigned long isa_io_base;