write a network driver

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Mar 11 08:16:58 UTC 2020


Hello Mojtaba,

On 11/03/2020 06:44, mojtaba nadi wrote:
> hello,
> I'm going to write a network driver for my mac ip core that I made in 
> vivado for zedboard.
> I can write and read from it with using registers but now I want to 
> use socket programming to access the mac. I understand the first step 
> is adding a ifconfig name for my mac but I couldn't do this with using 
> libbsd.
> Am I doing something wrong?
> How can I write a network driver for my mac?

the libbsd is a port of the network stack from FreeBSD to RTEMS. You can 
use all the documentation which is available for FreeBSD. I would start 
with looking at an example network interface driver, e.g.

freebsd/sys/dev/cadence/if_cgem.c



More information about the users mailing list