Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
21 years ago

Modifying Nios II Device Drivers lan91c111?

Hello all...

I would like to create a new dm9000 device driver instead of lan91c111. What I need to know is how to go about creating it and getting it to link correctly thru Quartus II and the Nios II IDE.

Any ideas?

Thanks in advance...

4 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hello maoguohua2002,

    As I wrote in the topic http://www.niosforum.com/forum/index.php?a...ct=st&f=2&t=421 (http://www.niosforum.com/forum/index.php?act=st&f=2&t=421) I’m writing a HAL device driver for the DM9000 from Davicom. The driver will be supported from the stand alone lwip in 16-bit mode. No support for MicroC/OS-II RTOS!

    I started to edit some files of the LAN91c111 component in the directory “niosII/components/ altera_avalon_lan91c111”. That’s a good starting point. When it is working correctly I will share my stuff in the forum. But now I don’t have a lot of time to make this thing doing! Perhaps someone could handle the low level routines. The other things are done.

    Bye,

    niosIIuser
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by maoguohua2002@Sep 24 2004, 04:01 AM

    hello all...

    i would like to create a new dm9000 device driver instead of lan91c111. what i need to know is how to go about creating it and getting it to link correctly thru quartus ii and the nios ii ide.

    any ideas?

    thanks in advance...

    --- Quote End ---

    There's a section in the manual on how to write ethernet device drivers Chapter 5 page 12 is the start of the appropriate section though you should probably read the whole chapter.

    Hope that helps.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    The manual I was referring to was the Nios II Software Developer's Handbook. This can be found in the documents directory and is called n2sw_nii5v2.pdf