<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 16, 2021 at 1:25 AM Christian Mauderer <<a href="mailto:oss@c-mauderer.de">oss@c-mauderer.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 06/07/2021 19:00, Husni Faiz wrote:<br>
> Configure bus for CDC Ethernet<br>
> Include CDC Ethernet in Beagle BSP<br>
> <br>
> Signed-off-by: Husni Faiz <<a href="mailto:ahamedhusni73@gmail.com" target="_blank">ahamedhusni73@gmail.com</a>><br>
> ---<br>
>   rtemsbsd/include/bsp/nexus-devices.h           |  5 +++++<br>
>   rtemsbsd/include/machine/rtems-bsd-nexus-bus.h | 17 +++++++++++++++++<br>
>   2 files changed, 22 insertions(+)<br>
> <br>
> diff --git a/rtemsbsd/include/bsp/nexus-devices.h b/rtemsbsd/include/bsp/nexus-devices.h<br>
> index e6487470..6a35632e 100644<br>
> --- a/rtemsbsd/include/bsp/nexus-devices.h<br>
> +++ b/rtemsbsd/include/bsp/nexus-devices.h<br>
> @@ -83,6 +83,11 @@ SYSINIT_REFERENCE(rtwn_rtl8188eufw);<br>
>   RTEMS_BSD_DRIVER_USB;<br>
>   RTEMS_BSD_DRIVER_USB_MASS;<br>
>   <br>
> +#ifdef RTEMS_BSD_MODULE_DEV_USB_TEMPLATE<br>
> +RTEMS_BSD_DRIVER_USB_TEMPLATE;<br>
> +RTEMS_BSD_DRIVER_CDCE;<br>
> +#endif<br>
> +<br>
<br>
Same like in patch 2: Shouldn't there be an include for <br>
rtems/bsd/modules.h somewhere?<br>
<br></blockquote><div>I checked the nexus-devices.h and it already has the modules.h included.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
>   #elif defined(LIBBSP_ARM_LPC32XX_BSP_H)<br>
>   <br>
>   #include <bsp/irq.h><br>
> diff --git a/rtemsbsd/include/machine/rtems-bsd-nexus-bus.h b/rtemsbsd/include/machine/rtems-bsd-nexus-bus.h<br>
> index 50a43873..84f561f5 100644<br>
> --- a/rtemsbsd/include/machine/rtems-bsd-nexus-bus.h<br>
> +++ b/rtemsbsd/include/machine/rtems-bsd-nexus-bus.h<br>
> @@ -282,6 +282,15 @@ extern "C" {<br>
>       SYSINIT_DRIVER_REFERENCE(umass, uhub)<br>
>   #endif /* RTEMS_BSD_DRIVER_USB_MASS */<br>
>   <br>
> +/*<br>
> + * USB Template base driver.<br>
> + */<br>
> +#if !defined(RTEMS_BSD_DRIVER_USB_TEMPLATE)<br>
> +  #define RTEMS_BSD_DRIVER_USB_TEMPLATE           \<br>
> +    SYSINIT_REFERENCE(usb_temp_init);             \<br>
> +    SYSINIT_DRIVER_REFERENCE(usb_template, usb)<br>
> +#endif /* RTEMS_BSD_DRIVER_USB_TEMPLATE */<br>
> +<br>
>   /*<br>
>    * USB SAF1761 host controller driver.<br>
>    */<br>
> @@ -490,6 +499,14 @@ extern "C" {<br>
>       SYSINIT_DRIVER_REFERENCE(re, pci);<br>
>   #endif /* RTEMS_BSD_DRIVER_PCI_RE */<br>
>   <br>
> +/*<br>
> + * CDC Ethernet Driver.<br>
> + */<br>
> +#if !defined(RTEMS_BSD_DRIVER_CDCE)<br>
> +  #define RTEMS_BSD_DRIVER_CDCE                   \<br>
> +    SYSINIT_DRIVER_REFERENCE(cdce, uhub);<br>
> +#endif /* RTEMS_BSD_DRIVER_FEC */<br>
> +<br>
>   /**<br>
>    ** MMI Physical Layer Support.<br>
>    **/<br>
> <br>
</blockquote></div></div>