This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RealTek 8139 on Advantech PCM-5820


Chris@nimseus.com wrote:
Hi,

I am currently testing Erics RTL 8139 driver on my Advantech PCM-5820 platform. Using the driver (revision 1, 01 Aug) it was no problem running Redboot. As I have learned Redboot uses its own TCP/IP stack and runs the driver in polling mode. Trying to set-up a standard environment (i386) using the net package was another story. The net package utilize the interrupt functionality of the driver and this would not run.

I have managed to track down a few of the reasons why this is happening. I have modified the driver so it is now up and running. My questions is though: How do I communicate my changes?

I have NOT attached the if_8139.h and if_8139.c files where the modifications have been made as I am not sure where these should be published. I would appreciate if anyone could tell me this. Any crucial modifications are indicated by "//////****** Chg ->" as beginning and "//////****** Chg <-
" as ending.

I'd send them to ecos-patches.


I have read the discussion regarding sharing of interrupts for this driver. My modification has most likely disabled the sharing feature as the code has removed the hardware mask and unmask of interrupts.

I'd guess that the problem on the i386 PC target is that you have to acknowledge the interrupt on the PIC. Maybe it would be enough to add a cyg_interrupt_acknowledge(vector) at the end of the ISR, without messing with the interrupt masking (I really do prefer the interrupt masking, though maybe this could/should be made into a configuration option).

Looking forward to any response.

And I'm looking forward to seeing the changes you made =8^). -- -------------------------------------------------------------------- | Eric Doenges | DynaPel Laboratories GmbH | | Tel: +49 89 962428 23 | Fraunhoferstrasse 9/2 | | Fax: +49 89 962428 90 | D - 85737 Ismaning, Germany | --------------------------------------------------------------------


-- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]