[Prex-devel] ne2000 ethernet driver
Status: Beta
Brought to you by:
kohtani
|
From: bifferos <bif...@ya...> - 2011-01-10 11:17:35
|
Hi all, I just thought I'd mention I have ne2000 support added to my own small IP stack in another project and thought it might be useful for Prex. I remember some time in a post long ago someone mentioning they'd be prepared to port an IP stack to Prex so long as someone else wrote a driver. I started looking at which was the simplest driver in Linux (ne2k), then removed all the parts that aren't needed for the Qemu emulated version by inspecting the Qemu sources, also removed interrupt support so you have to poll it. All I've tested is that I can use the driver to do DHCP query and get an IP address back from Qemu, there could be plenty of bugs, but it's certainly helping me with my work, so thought I'd share it here. The driver is C++ but in a C style, see attachment at the bottom of the page: http://sites.google.com/site/bifferboard/Home/rtos/grub-configuration-on-floppy-disk Hopefully it's a trivial job to convert to C. best regards, Biff. PS: Consider the code to be in the public domain! |