summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-03-27 11:14:22 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-04-01 09:15:29 +0200
commit8f12e89b1fc6e32e5899fa6fcb2eca3fb096de5a (patch)
tree84b5a83310eadf5b4ad6710cbc35985cfb14c960
parentc94bb491a0b693d095c1dbe979f1302ab02c13c4 (diff)
downloadrtems-libbsd-8f12e89b1fc6e32e5899fa6fcb2eca3fb096de5a.tar.bz2
if_dwc: Reduce DMA descriptor count
-rw-r--r--freebsd/sys/dev/dwc/if_dwc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/freebsd/sys/dev/dwc/if_dwc.c b/freebsd/sys/dev/dwc/if_dwc.c
index bb92b9fc..02f75a36 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)
/*