summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2020-04-24 01:16:42 +0200
committerJason Wang <jasowang@redhat.com>2020-06-18 21:05:51 +0800
commit171ce2e27906a59e243baf8c67ad1c1193cec4be (patch)
treed43e88c5de6f946f4be85f393c36c6ac520afcc2
parentd9b69640391618045949f7c500b87fc129f862ed (diff)
downloadfocaccia-qemu-171ce2e27906a59e243baf8c67ad1c1193cec4be.tar.gz
focaccia-qemu-171ce2e27906a59e243baf8c67ad1c1193cec4be.zip
hw/net/tulip: Fix 'Descriptor Error' definition
Bit #14 is "DE" for 'Descriptor Error':

  When set, indicates a frame truncation caused by a frame
  that does not fit within the current descriptor buffers,
  and that the 21143 does not own the next descriptor.

  [Table 4-1. RDES0 Bit Fields Description]

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Jason Wang <jasowang@redhat.com>
-rw-r--r--hw/net/tulip.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/net/tulip.h b/hw/net/tulip.h
index 97521b21db..5271aad8d5 100644
--- a/hw/net/tulip.h
+++ b/hw/net/tulip.h
@@ -211,7 +211,7 @@
 #define RDES0_RF         BIT(11)
 #define RDES0_DT_SHIFT   12
 #define RDES0_DT_MASK    3
-#define RDES0_LE         BIT(14)
+#define RDES0_DE         BIT(14)
 #define RDES0_ES         BIT(15)
 #define RDES0_FL_SHIFT   16
 #define RDES0_FL_MASK    0x3fff