forked from Imagelibrary/rtems
The descriptor table size is equal to its alignment and set when configuring the HW IP through VHDL generics. This SW patch simply probes the HW how large the RX/TX descriptor tables are and adjusts accordingly. The number of descriptors actual used are controlled by other settings (rxDescs and txDescs) controlled by the user. Update #4308.
A non Driver Manager GRETH driver is located in libchip/network/greth.c. This version requires the driver manager. network_interface_add is used to assign IP/NETMASK and MAC address to GRETH interfaces dynamically according to in which order devices are registered. The function takes the settings from the user defined interface_configs[] array, defined in the project configuration.