diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2012-02-29 15:37:43 +0100 |
---|---|---|
committer | Jan Kiszka <jan.kiszka@siemens.com> | 2012-04-16 15:41:28 +0200 |
commit | ef45c9147f534531ef5d8a20315089d43ea4ddef (patch) | |
tree | ef65aa0c6947c47e3c08ef6f8d2e0991e0a9a262 /hw/pcnet.h | |
parent | 6655124ddd6442b19a4b43b27e7d5a3846c4e6a8 (diff) | |
download | qemu-ef45c9147f534531ef5d8a20315089d43ea4ddef.zip qemu-ef45c9147f534531ef5d8a20315089d43ea4ddef.tar.gz qemu-ef45c9147f534531ef5d8a20315089d43ea4ddef.tar.bz2 |
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) |