OSDN Git Service

hw/net/stellaris_enet: Rewrite tx fifo handling code
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 13 May 2014 15:09:36 +0000 (16:09 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 13 May 2014 15:09:36 +0000 (16:09 +0100)
commitc6fa443b3dab9f49fb157b0164f5852fde68ed3b
treea22a1c4604024fe90560296de97ab0dfa833bcf4
parent7fd5f064d1c1a827a95ffe678418b3d5b8d2f108
hw/net/stellaris_enet: Rewrite tx fifo handling code

The datasheet is clear that the frame length written to the DATA
register is actually stored in the TX FIFO; this means we don't
need to keep both tx_frame_len and tx_fifo_len state separately.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
hw/net/stellaris_enet.c