openwrt/target/linux/realtek
Markus Stockhausen f617d3e594 realtek: eth: define interrupt status/mask base
Regardless of the number of receive queues (8 or 32) the interrupt
status and mask registers are built up bitwise in the same way:

- 8/32 rx run out interrupts
- 8/32 rx done interrupts
- 2 tx tone interrupts
- 2 tx all done interrupts
- 3 L2 notify interrupts (only RTL839x)

So one can always derive the bit position of those fields by using
the device specific rx_rings configuration setting. To simplify the
code these registers will be handled by central helpers in the future.
In a first step provide a interrupt base register definition that
points to the first interrupt type - aka the rx run out interrupts.

To not overcomplicate things simply reuse the existing DMA_IF_INTR_MSK
and DMA_IF_INTR_STS naming convention. Until all gets fixed the
runout registers on RTL93xx will be accessible by that name.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/21893
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2026-02-13 23:28:54 +01:00
..
base-files realtek: switch HPE 1920 series to NVMEM 2026-02-13 12:06:20 +01:00
dts realtek: switch HPE 1920 series to NVMEM 2026-02-13 12:06:20 +01:00
files-6.12 realtek: eth: define interrupt status/mask base 2026-02-13 23:28:54 +01:00
image realtek: rt-loader: fix RTL839x/RTL93xx version detection 2026-02-13 12:43:43 +01:00
patches-6.12 realtek: phy: rename and relocate module 2026-02-09 09:59:25 +01:00
profiles target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
rtl838x realtek: phy: rename and relocate module 2026-02-09 09:59:25 +01:00
rtl839x realtek: phy: rename and relocate module 2026-02-09 09:59:25 +01:00
rtl930x realtek: phy: rename and relocate module 2026-02-09 09:59:25 +01:00
rtl930x_nand realtek: phy: rename and relocate module 2026-02-09 09:59:25 +01:00
rtl931x realtek: phy: rename and relocate module 2026-02-09 09:59:25 +01:00
rtl931x_nand realtek: phy: rename and relocate module 2026-02-09 09:59:25 +01:00
Makefile realtek: add NAND targets for RTL93xx 2025-08-10 11:46:52 +02:00