summaryrefslogtreecommitdiffstats
path: root/bsps/include/grlib/greth.h
diff options
context:
space:
mode:
authorDaniel Hellstrom <daniel@gaisler.com>2019-04-26 15:18:11 +0200
committerDaniel Hellstrom <daniel@gaisler.com>2021-03-07 16:08:25 +0100
commitc13205f6916544c6f8bb2ade7ed5f2959ae6f173 (patch)
tree99cdd69b874307d62dd9b4d750c912d285bd673e /bsps/include/grlib/greth.h
parentleon,grcan: split out GRCAN non-FD specific support in separate file (diff)
downloadrtems-c13205f6916544c6f8bb2ade7ed5f2959ae6f173.tar.bz2
leon,greth: added support for variable sized descriptor table sizes
The descriptor table size is equal to its alignment and set when configuring the HW IP through VHDL generics. This SW patch simply probes the HW how large the RX/TX descriptor tables are and adjusts accordingly. The number of descriptors actual used are controlled by other settings (rxDescs and txDescs) controlled by the user. Update #4308.
Diffstat (limited to 'bsps/include/grlib/greth.h')
-rw-r--r--bsps/include/grlib/greth.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/bsps/include/grlib/greth.h b/bsps/include/grlib/greth.h
index 1c42c99ddc..e7970a79f7 100644
--- a/bsps/include/grlib/greth.h
+++ b/bsps/include/grlib/greth.h
@@ -100,6 +100,7 @@ typedef struct _greth_regs {
#define GRETH_STATUS_TXIRQ 0x00000008 /* Transmit Error IRQ */
#define GRETH_STATUS_RXAHBERR 0x00000010 /* Receiver AHB Error */
#define GRETH_STATUS_TXAHBERR 0x00000020 /* Transmitter AHB Error */
+#define GRETH_STATUS_NRD 0x0f000000 /* Number of descriptors */
/* MDIO Control */
#define GRETH_MDIO_WRITE 0x00000001 /* MDIO Write */