[PATCH rtems-libbsd] rtemsbsd: Use a separate header for test devices

Chris Johns chrisj at rtems.org
Wed Jul 7 01:57:12 UTC 2021


On 7/7/21 11:05 am, Kinsey Moore wrote:
> The need for the difference on ZynqMP is that there are 4 different CGEM
> interfaces of which dev boards primarily make use of CGEM3. 

RTEMS_BSD_DRIVER_XILINX_ZYNQMP_CGEM0(ZYNQMP_IRQ_ETHERNET_0);
RTEMS_BSD_DRIVER_XILINX_ZYNQMP_CGEM1(ZYNQMP_IRQ_ETHERNET_1);
RTEMS_BSD_DRIVER_XILINX_ZYNQMP_CGEM2(ZYNQMP_IRQ_ETHERNET_2);
RTEMS_BSD_DRIVER_XILINX_ZYNQMP_CGEM3(ZYNQMP_IRQ_ETHERNET_3);

?

> I have a custom
> board in hand that uses CGEM2 which I can't run the network tests on without
> modifying nexus-devices.h manually.

NET_CFG_INTERFACE_0 "cgem2"

> Zynq7000 boards that use CGEM1 instead of
> CGEM0 could make use of the same mechanism for testing.

NET_CFG_INTERFACE_0 "cgem1"

FYI I am not sure how I will solve testing the MRMAC on the Versal chip. It may
require something extra and new to be done. What that is I do not know as the
MRMAC and the Versal presents a new level of complication.

Chris


More information about the devel mailing list