Page 1 of 1

Simple NE2000 Compatible Driver

Posted: Sat Oct 19, 2013 4:25 pm
by Mohsen35
Hey guys I am new to OS development, I created a simple kernel with keyboard input I am looking to write a driver for the network card I am testing my work on vmware, and I want the driver to compatible with NE2000 standard, The driver must be as simple as possible I just want to know how to reset the network controller and how to send data (not frames) and receive data, I am not currently concerned with the protocols just the bare basics please, thanks in advance.

Re: Simple NE2000 Compatible Driver

Posted: Sat Oct 19, 2013 5:32 pm
by Wildwest

Re: Simple NE2000 Compatible Driver

Posted: Sat Oct 19, 2013 6:33 pm
by hidnplayr
The driver in kolibrios for ne2000 is implemented in rtl8029.asm
For more info about ne2k itself, please see http://wiki.osdev.org/Ne2000 (and the pdf's on this page: http://wiki.osdev.org/DP8390)
As for the protocols: I recommend you read the 'TCP/IP illustrated' books.

Re: Simple NE2000 Compatible Driver

Posted: Sat Oct 19, 2013 9:20 pm
by Mohsen35
excuse me but what is the syntax of these assembly files?

Re: Simple NE2000 Compatible Driver

Posted: Sat Oct 19, 2013 9:53 pm
by hidnplayr
the assembler used is flat assembler (http://www.flatassembler.net)

Re: Simple NE2000 Compatible Driver

Posted: Sun Oct 20, 2013 2:15 pm
by Mohsen35
Tanks for your time I have one more question please. What do I need to get my network controller driver up and running? Do I need to do something about DMA controller PCI bus or other things? Because I want to get it running as quickly as possible.

Re: Simple NE2000 Compatible Driver

Posted: Sun Oct 20, 2013 2:24 pm
by hidnplayr
Mohsen35 wrote:Tanks for your time I have one more question please. What do I need to get my network controller driver up and running? Do I need to do something about DMA controller PCI bus or other things? Because I want to get it running as quickly as possible.
What you need to do is read the documentation, sorry, there is no quicker way.
(unless you want somebody else to do it for you, which is probably not an option ;) )

Re: Simple NE2000 Compatible Driver

Posted: Sun Oct 20, 2013 4:41 pm
by Mohsen35
well really thank you for your time, of course I don't want some body to do it for me. I am a student at the last year of university so I don't think I will have so much time to work on this but I will try to do my best.
Will you help if I needed some help in my work? :)

Re: Simple NE2000 Compatible Driver

Posted: Sun Oct 20, 2013 5:25 pm
by hidnplayr
Mohsen35 wrote:well really thank you for your time, of course I don't want some body to do it for me. I am a student at the last year of university so I don't think I will have so much time to work on this but I will try to do my best.
Will you help if I needed some help in my work? :)
Altough this is not the purpose of this forum, If I see you're serious about this, and ask 'smart questions', I'll try to help when I can.