[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] single XIF handling multiple interfaces



Hello!

do we have source code of a XIF driver that would create and handle
several interfaces at once? Imagine that you have installed several
network cards of the same type using the same interrupt - can single XIF
handle them all? How to program it?

Yes, no problem. You register each interface in driver_init with if_register (you ned to allocate a struct netif for each interface). You can also attach extra data to the netif (there is a reserved pointer for the xif).

The same mechanism as for device drivers.


Regards,
Frank

--
ATARI FALCON 060 // MILAN 060
-----------------------------------------
http://www.cs.uni-magdeburg.de/~fnaumann/
e-Mail: fnaumann@freemint.de