]> www.infradead.org Git - users/dwmw2/qemu.git/commit
hw/net/xilinx_ethlite: Access TX_CTRL register for each port
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Sat, 9 Nov 2024 18:51:55 +0000 (19:51 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 13 Jan 2025 16:16:04 +0000 (17:16 +0100)
commita37506699109d2dbf86ec5c02734eee35d065d94
treed56607d11663faf567e169ff71c4eb052ab0fa19
parentc629791859d5d1777d8471f260f418e76078e97e
hw/net/xilinx_ethlite: Access TX_CTRL register for each port

Rather than accessing the registers within the mixed RAM/MMIO
region as indexed register, declare a per-port TX_CTRL. This
will help to map the RAM as RAM (keeping MMIO as MMIO) in few
commits.

Previous s->regs[R_TX_CTRL0] and s->regs[R_TX_CTRL1] are now
unused. Not a concern, this array will soon disappear.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@amd.com>
Message-Id: <20241112181044.92193-15-philmd@linaro.org>
hw/net/xilinx_ethlite.c