can: mcp251xfd: update macros describing ring, FIFO and RAM layout
authorMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 25 Oct 2021 09:34:32 +0000 (11:34 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Sun, 13 Mar 2022 08:45:35 +0000 (09:45 +0100)
commitc9e6b80dfd48d1229348ac278da2a5cb79024b32
tree54affc9ec0863bf20eccbe18be2cf340fe214738
parent0a1f2e6502a1ea55db78ae1baaba4b6f0c0c3b53
can: mcp251xfd: update macros describing ring, FIFO and RAM layout

So far the configuration of the hardware FIFOs is hard coded and
depend only on the selected CAN mode (CAN-2.0 or CAN-FD).

This patch updates the macros describing the ring, FIFO and RAM layout
to prepare for the next patches that add support for runtime
configurable ring parameters via ethtool.

Link: https://lore.kernel.org/20220313083640.501791-7-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/spi/mcp251xfd/mcp251xfd-ring.c
drivers/net/can/spi/mcp251xfd/mcp251xfd.h