mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-07 01:10:28 +08:00
if_ffec: Reduce buffer size
Typical embedded systems don't have that much memory. Reduce the buffer size to something more sensible for the usual type of application.
This commit is contained in:
parent
ed25b390fc
commit
2a6a230e65
@ -139,9 +139,17 @@ static struct ofw_compat_data compat_data[] = {
|
|||||||
/*
|
/*
|
||||||
* Driver data and defines. The descriptor counts must be a power of two.
|
* Driver data and defines. The descriptor counts must be a power of two.
|
||||||
*/
|
*/
|
||||||
|
#ifndef __rtems__
|
||||||
#define RX_DESC_COUNT 512
|
#define RX_DESC_COUNT 512
|
||||||
|
#else /* __rtems__ */
|
||||||
|
#define RX_DESC_COUNT 64
|
||||||
|
#endif /* __rtems__ */
|
||||||
#define RX_DESC_SIZE (sizeof(struct ffec_hwdesc) * RX_DESC_COUNT)
|
#define RX_DESC_SIZE (sizeof(struct ffec_hwdesc) * RX_DESC_COUNT)
|
||||||
|
#ifndef __rtems__
|
||||||
#define TX_DESC_COUNT 512
|
#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_DESC_SIZE (sizeof(struct ffec_hwdesc) * TX_DESC_COUNT)
|
||||||
#define TX_MAX_DMA_SEGS 8
|
#define TX_MAX_DMA_SEGS 8
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user