]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/net/lan9118: Signal TSFL_INT flag when TX FIFO reaches specified level
authorLucas Dietrich <ld.adecy@gmail.com>
Mon, 29 Aug 2022 20:00:46 +0000 (22:00 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 22 Sep 2022 15:38:28 +0000 (16:38 +0100)
commit895a803ce91704f28c9b49621a4f589273289f1e
tree681ed1ca1a7f1ba7de45de326ad1e60b26cfa4d9
parentd4424bebceaa8ffbc23060ce45e52a9bb817e3c9
hw/net/lan9118: Signal TSFL_INT flag when TX FIFO reaches specified level

The LAN9118 allows the guest to specify a level for both the TX and
RX FIFOs at which an interrupt will be generated.  We implement the
RSFL_INT interrupt for the RX FIFO but are missing the handling of
the equivalent TSFL_INT for the TX FIFO.  Add the missing test to set
the interrupt if the TX FIFO has exceeded the guest-specified level.

This flag is required for Micrium lan911x ethernet driver to work.

Signed-off-by: Lucas Dietrich <ld.adecy@gmail.com>
[PMM: Tweaked commit message and comment]
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/net/lan9118.c