On Mon, May 23, 2022 at 6:21 AM Christian Mauderer <christian.maude...@embedded-brains.de> wrote: > > Typical embedded systems don't have that much memory. Reduce the buffer > size to something more sensible for the usual type of application. > --- > freebsd/sys/dev/ffec/if_ffec.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/freebsd/sys/dev/ffec/if_ffec.c b/freebsd/sys/dev/ffec/if_ffec.c > index 47c0f770..4c1e147b 100644 > --- a/freebsd/sys/dev/ffec/if_ffec.c > +++ b/freebsd/sys/dev/ffec/if_ffec.c > @@ -139,9 +139,17 @@ static struct ofw_compat_data compat_data[] = { > /* > * Driver data and defines. The descriptor counts must be a power of two. > */ > +#ifndef __rtems__ > #define RX_DESC_COUNT 512 > +#else /* __rtems__ */ > +#define RX_DESC_COUNT 64 > +#endif /* __rtems__ */
Do we need some way to control this parameter? Or, how will this appear if it breaks something? > #define RX_DESC_SIZE (sizeof(struct ffec_hwdesc) * RX_DESC_COUNT) > +#ifndef __rtems__ > #define TX_DESC_COUNT 512 > +#else /* __rtems__ */ > +#define TX_DESC_COUNT 64 > +#endif /* __rtems__ */ > #define TX_DESC_SIZE (sizeof(struct ffec_hwdesc) * TX_DESC_COUNT) > #define TX_MAX_DMA_SEGS 8 > > -- > 2.35.3 > > _______________________________________________ > devel mailing list > devel@rtems.org > http://lists.rtems.org/mailman/listinfo/devel _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel