[OpenBIOS] [PATCH] drivers/pci: Recognise RTL8139 network card and enable bus mastering

Mark Cave-Ayland mark.cave-ayland at ilande.co.uk
Wed Jun 25 23:58:58 CEST 2014


On 25/06/14 22:16, Alexander Graf wrote:

> On 03.06.14 01:34, BALATON Zoltan wrote:
>> Apart from the older NE2000 card also recognise RTL8139 and set bus
>> master bit for it. This makes it work in MorphOS which uses it in a
>> different (DMA) mode than the Linux driver.
>>
>> Signed-off-by: BALATON Zoltan <balaton at eik.bme.hu>
>
> Please create a helper that tells you whether it's safe to enable bus
> mastering (why doesn't MorphOS do this itself?) on a particular harware
> platform. Check for that every time you want to enable bus mastering.
>
> static bool should_enable_bus_mastering(void)
> {
> #ifdef IS_QEMU_ON_PPC
>      return true;
> #else
>      return false;
> #endif
> }

Yeah. We're definitely overdue a CONFIG_QEMU or similar option across 
all architectures into which we can hide the sins of emulation ;)


ATB,

Mark.




More information about the OpenBIOS mailing list