<div dir="ltr"><div>Hello Chris,<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 29, 2021 at 5:41 AM Chris Johns <<a href="mailto:chrisj@rtems.org" target="_blank">chrisj@rtems.org</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 28/7/21 9:56 pm, Husni Faiz wrote:<br>
> Signed-off-by: Husni Faiz <<a href="mailto:ahamedhusni73@gmail.com" target="_blank">ahamedhusni73@gmail.com</a>><br>
> ---<br>
>  rtemsbsd/include/machine/rtems-bsd-kernel-namespace.h | 5 +++++<br>
>  1 file changed, 5 insertions(+)<br>
> <br>
> diff --git a/rtemsbsd/include/machine/rtems-bsd-kernel-namespace.h b/rtemsbsd/include/machine/rtems-bsd-kernel-namespace.h<br>
> index 97cdb625..ae56ad9c 100644<br>
> --- a/rtemsbsd/include/machine/rtems-bsd-kernel-namespace.h<br>
> +++ b/rtemsbsd/include/machine/rtems-bsd-kernel-namespace.h<br>
> @@ -5279,6 +5279,7 @@<br>
>  #define      usbd_do_request_proc _bsd_usbd_do_request_proc<br>
>  #define      usbd_dummy_timeout _bsd_usbd_dummy_timeout<br>
>  #define      usb_debug _bsd_usb_debug<br>
> +#define      usb_decode_str_desc _bsd_usb_decode_str_desc<br>
>  #define      usbd_enum_is_locked _bsd_usbd_enum_is_locked<br>
>  #define      usbd_enum_lock _bsd_usbd_enum_lock<br>
>  #define      usbd_enum_lock_sig _bsd_usbd_enum_lock_sig<br>
> @@ -5515,8 +5516,12 @@<br>
>  #define      usb_suspend_resume _bsd_usb_suspend_resume<br>
>  #define      usb_temp_get_desc_p _bsd_usb_temp_get_desc_p<br>
>  #define      usb_template _bsd_usb_template<br>
> +#define      usb_template_cdce _bsd_usb_template_cdce<br>
> +#define      usb_temp_setup _bsd_usb_temp_setup<br>
>  #define      usb_temp_setup_by_index_p _bsd_usb_temp_setup_by_index_p<br>
> +#define      usb_temp_sysctl _bsd_usb_temp_sysctl<br>
>  #define      usb_temp_unload _bsd_usb_temp_unload<br>
> +#define      usb_temp_unsetup _bsd_usb_temp_unsetup<br>
>  #define      usb_temp_unsetup_p _bsd_usb_temp_unsetup_p<br>
>  #define      usb_test_quirk _bsd_usb_test_quirk<br>
>  #define      usb_test_quirk_p _bsd_usb_test_quirk_p<br>
<br>
How were these additions done? </blockquote><div> </div><div>I used the create-kernel-namespace.sh script which auto genarates these definitions.</div><div>That generated more definitions than I have added here. I only filtered out the <br></div><div>definitions for the codes I imported.</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">
<br>
I ask because I see these externs in the template code ... <br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
extern struct usb_temp_device_desc usb_template_audio;<br>
extern struct usb_temp_device_desc usb_template_cdce;<br>
extern struct usb_temp_device_desc usb_template_kbd;<br>
extern struct usb_temp_device_desc usb_template_modem;<br>
extern struct usb_temp_device_desc usb_template_mouse;<br>
extern struct usb_temp_device_desc usb_template_msc;<br>
extern struct usb_temp_device_desc usb_template_mtp;<br>
extern struct usb_temp_device_desc usb_template_phone;<br>
extern struct usb_temp_device_desc usb_template_serialnet;<br>
extern struct usb_temp_device_desc usb_template_midi;<br>
extern struct usb_temp_device_desc usb_template_multi;<br>
extern struct usb_temp_device_desc usb_template_cdceem;<br></blockquote><div><br></div><div>These externs are for all the usb templates supported by freebsd.</div><div>I only have imported the usb_template_cdce. Other templates are <br></div><div>not imported yet. Shall I exclude them?</div><div><br></div><div>Regards,<br></div><div>Husni.<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Chris<br>
</blockquote></div></div>