> -----Ursprüngliche Nachricht----- > Von: users [mailto:users-boun...@rtems.org] Im Auftrag von Sebastian Huber > Gesendet: Mittwoch, 11. März 2020 09:17 > An: mojtaba nadi; users@rtems.org > Betreff: Re: write a network driver > > 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 >
Our library also had the book "FreeBSD device drivers : a guide for the intrepid" (ISBN 978-1593272043) available as E-Book. It was a nice read to understand how the FreeBSD driver stack works in general and also covers to some limited extend network drivers. Maybe you have access to a good library as well. > _______________________________________________ > users mailing list > users@rtems.org > http://lists.rtems.org/mailman/listinfo/users _______________________________________________ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users