[rtems-libbsd commit] if_dwc: Reduce DMA descriptor count
Sebastian Huber
sebh at rtems.org
Wed Apr 1 07:16:38 UTC 2015
Module: rtems-libbsd
Branch: master
Commit: 8f12e89b1fc6e32e5899fa6fcb2eca3fb096de5a
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=8f12e89b1fc6e32e5899fa6fcb2eca3fb096de5a
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Mar 27 11:14:22 2015 +0100
if_dwc: Reduce DMA descriptor count
---
freebsd/sys/dev/dwc/if_dwc.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/freebsd/sys/dev/dwc/if_dwc.c b/freebsd/sys/dev/dwc/if_dwc.c
index bb92b9f..02f75a3 100644
--- a/freebsd/sys/dev/dwc/if_dwc.c
+++ b/freebsd/sys/dev/dwc/if_dwc.c
@@ -135,9 +135,17 @@ struct dwc_hwdesc
/*
* Driver data and defines.
*/
+#ifndef __rtems__
#define RX_DESC_COUNT 1024
+#else /* __rtems__ */
+#define RX_DESC_COUNT 64
+#endif /* __rtems__ */
#define RX_DESC_SIZE (sizeof(struct dwc_hwdesc) * RX_DESC_COUNT)
+#ifndef __rtems__
#define TX_DESC_COUNT 1024
+#else /* __rtems__ */
+#define TX_DESC_COUNT 64
+#endif /* __rtems__ */
#define TX_DESC_SIZE (sizeof(struct dwc_hwdesc) * TX_DESC_COUNT)
/*
More information about the vc
mailing list