hw/net/lan9118: Replace magic '2048' value by MIL_TXFIFO_SIZE definition
commita45223467e4e185fff1c76a6483784fa379ded77
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 8 Apr 2024 10:44:22 +0000 (8 12:44 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 10 Apr 2024 07:09:34 +0000 (10 09:09 +0200)
tree6eeb0c415e5e9702d1f188055cb2ff1b51999911
parenteaf2bd29538d039df80bb4b1584de33a61312bc6
hw/net/lan9118: Replace magic '2048' value by MIL_TXFIFO_SIZE definition

The magic 2048 is explained in the LAN9211 datasheet (DS00002414A)
in chapter 1.4, "10/100 Ethernet MAC":

  The MAC Interface Layer (MIL), within the MAC, contains a
  2K Byte transmit and a 128 Byte receive FIFO which is separate
  from the TX and RX FIFOs. [...]

Note, the use of the constant in lan9118_receive() reveals that
our implementation is using the same buffer for both tx and rx.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20240409133801.23503-2-philmd@linaro.org>
hw/net/lan9118.c