hw/net/xilinx_ethlite: Introduce txbuf_ptr() helper
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 11 Nov 2024 17:49:56 +0000 (18:49 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 13 Jan 2025 16:16:03 +0000 (17:16 +0100)
commit8d956610f5e79bcc53a9f296ebecd53ee7c449ca
treefc39ac8c55fde2dcb06f2e4df1a6986acecd28ea
parentfa3ca9aa1ceb9b762f4c7a51245226f247e35560
hw/net/xilinx_ethlite: Introduce txbuf_ptr() helper

For a particular physical address within the EthLite MMIO range,
addr_to_port_index() returns which port is accessed.

txbuf_ptr() points to the beginning of a (RAM) TX buffer
within the device state.

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