aboutsummaryrefslogtreecommitdiff
path: root/hw/pcnet.h
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2012-02-29 15:37:43 +0100
committerJan Kiszka <jan.kiszka@siemens.com>2012-04-16 15:41:28 +0200
commitef45c9147f534531ef5d8a20315089d43ea4ddef (patch)
treeef65aa0c6947c47e3c08ef6f8d2e0991e0a9a262 /hw/pcnet.h
parent6655124ddd6442b19a4b43b27e7d5a3846c4e6a8 (diff)
pcnet: Properly handle TX requests during Link Fail
As long as we have no link and we aren't in internal loopback mode, no packet must be sent. Instead, LCAR needs to be set in any active TX descriptor and also CERR in CSR0. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Diffstat (limited to 'hw/pcnet.h')
-rw-r--r--hw/pcnet.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/pcnet.h b/hw/pcnet.h
index edc81c90ac..803a2cc1ec 100644
--- a/hw/pcnet.h
+++ b/hw/pcnet.h
@@ -20,6 +20,7 @@
#define BCR_SWS 20
#define BCR_PLAT 22
+#define BCR_TMAULOOP(S) !!((S)->bcr[BCR_MC ] & 0x4000)
#define BCR_APROMWE(S) !!((S)->bcr[BCR_MC ] & 0x0100)
#define BCR_DWIO(S) !!((S)->bcr[BCR_BSBC] & 0x0080)
#define BCR_SSIZE32(S) !!((S)->bcr[BCR_SWS ] & 0x0100)