Re: [PATCH] bsps/shared/ofw: Implement RTEMS OFW interface

2020-08-18 Thread Gedare Bloom
On Tue, Aug 18, 2020 at 12:07 PM Christian Mauderer wrote: > > On 18/08/2020 19:01, Niteesh G. S. wrote: > > > > > > On Tue, Aug 18, 2020 at 8:26 PM Christian Mauderer > > wrote: > > > > On 18/08/2020 11:25, Niteesh G. S. wrote: > > > How can we make this API Fr

Re: [PATCH] bsps/shared/ofw: Implement RTEMS OFW interface

2020-08-18 Thread Christian Mauderer
On 18/08/2020 19:01, Niteesh G. S. wrote: > > > On Tue, Aug 18, 2020 at 8:26 PM Christian Mauderer > wrote: > > On 18/08/2020 11:25, Niteesh G. S. wrote: > > How can we make this API FreeBSD compatible? We have to declare > > defines for the OFW functions

Re: [PATCH] bsps/shared/ofw: Implement RTEMS OFW interface

2020-08-18 Thread Niteesh G. S.
On Tue, Aug 18, 2020 at 8:26 PM Christian Mauderer wrote: > On 18/08/2020 11:25, Niteesh G. S. wrote: > > How can we make this API FreeBSD compatible? We have to declare > > defines for the OFW functions > > Eg. #define OF_finddevice rtems_ofw_find_device > > I think that was the plan, wasn't it?

Re: [PATCH] bsps/shared/ofw: Implement RTEMS OFW interface

2020-08-18 Thread Christian Mauderer
On 18/08/2020 11:25, Niteesh G. S. wrote: > How can we make this API FreeBSD compatible? We have to declare > defines for the OFW functions > Eg. #define OF_finddevice rtems_ofw_find_device I think that was the plan, wasn't it? > > Should I change the openfirm.h in libBSD to this use these defin

Re: [PATCH] bsps/shared/ofw: Implement RTEMS OFW interface

2020-08-18 Thread Niteesh G. S.
How can we make this API FreeBSD compatible? We have to declare defines for the OFW functions Eg. #define OF_finddevice rtems_ofw_find_device Should I change the openfirm.h in libBSD to this use these defines instead of calling the functions in openfirm.c? Though there are some functions which for

Re: [PATCH] bsps/shared/ofw: Implement RTEMS OFW interface

2020-08-17 Thread Chris Johns
On 17/8/20 2:57 pm, Niteesh G. S. wrote: > On Mon, Aug 17, 2020 at 3:49 AM Chris Johns > wrote: > > On 16/8/20 11:19 pm, Niteesh G. S. wrote: > > > > On Sun, Aug 16, 2020 at 2:25 PM Chris Johns > >

Re: [PATCH] bsps/shared/ofw: Implement RTEMS OFW interface

2020-08-16 Thread Niteesh G. S.
On Mon, Aug 17, 2020 at 3:49 AM Chris Johns wrote: > On 16/8/20 11:19 pm, Niteesh G. S. wrote: > > > > On Sun, Aug 16, 2020 at 2:25 PM Chris Johns > > wrote: > > > > On 16/8/20 4:49 am, G S Niteesh Babu wrote: > > > --- > > > > > + > > > +#ifdef HAVE_CONF

Re: [PATCH] bsps/shared/ofw: Implement RTEMS OFW interface

2020-08-16 Thread Chris Johns
On 16/8/20 11:19 pm, Niteesh G. S. wrote: > > On Sun, Aug 16, 2020 at 2:25 PM Chris Johns > wrote: > > On 16/8/20 4:49 am, G S Niteesh Babu wrote: > > --- > > > + > > +#ifdef HAVE_CONFIG_H > > +#include "config.h" > > +#endif > > + > > +#

Re: [PATCH] bsps/shared/ofw: Implement RTEMS OFW interface

2020-08-16 Thread Niteesh G. S.
On Sun, Aug 16, 2020 at 2:25 PM Chris Johns wrote: > On 16/8/20 4:49 am, G S Niteesh Babu wrote: > > --- > > > + > > +#ifdef HAVE_CONFIG_H > > +#include "config.h" > > +#endif > > + > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > + > > +const void *fd

Re: [PATCH] bsps/shared/ofw: Implement RTEMS OFW interface

2020-08-16 Thread Chris Johns
On 16/8/20 4:49 am, G S Niteesh Babu wrote: > --- > bsps/include/ofw/ofw.h | 534 > bsps/shared/ofw/ofw.c | 654 > spec/build/bsps/obj.yml | 4 + > 3 files changed, 1192 insertions(+) > create mode 100644 bsps/include/

Re: [PATCH] bsps/shared/ofw: Implement RTEMS OFW interface

2020-08-15 Thread Niteesh G. S.
Hello, This patch adds the FDT implementation of the OpenFirmWare interface to RTEMS. This patch is compilable and has been tested on real hardware using the following test. https://github.com/gs-niteesh/rtems/commit/163160bae483d2e12bb7ab9208228989adf01e66 Sorry for sending in a large patch. Thes