summaryrefslogtreecommitdiffstats
path: root/include/hw/net
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2018-06-25 14:42:26 +0200
committerPaolo Bonzini2018-07-02 15:41:16 +0200
commit872a2b7c4dcad2d4fa2bd34747c37a28a76cec2b (patch)
treed4b75bd1e12d98a74b0740be36f561c5833dec1b /include/hw/net
parenthw/i386: Use the IEC binary prefix definitions (diff)
downloadqemu-872a2b7c4dcad2d4fa2bd34747c37a28a76cec2b.tar.gz
qemu-872a2b7c4dcad2d4fa2bd34747c37a28a76cec2b.tar.xz
qemu-872a2b7c4dcad2d4fa2bd34747c37a28a76cec2b.zip
hw/net: Use the IEC binary prefix definitions
It eases code review, unit is explicit. Patch generated using: $ git grep -E '(1024|2048|4096|8192|(<<|>>).?(10|20|30))' hw/ include/hw/ and modified manually. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Stefan Weil <sw@weilnetz.de> Message-Id: <20180625124238.25339-35-f4bug@amsat.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/hw/net')
-rw-r--r--include/hw/net/allwinner_emac.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/hw/net/allwinner_emac.h b/include/hw/net/allwinner_emac.h
index 4cc8aab7ec..905a43deb4 100644
--- a/include/hw/net/allwinner_emac.h
+++ b/include/hw/net/allwinner_emac.h
@@ -23,6 +23,7 @@
#ifndef ALLWINNER_EMAC_H
#define ALLWINNER_EMAC_H
+#include "qemu/units.h"
#include "net/net.h"
#include "qemu/fifo8.h"
#include "hw/net/mii.h"
@@ -125,8 +126,8 @@
#define EMAC_INT_RX (1 << 8)
/* Due to lack of specifications, size of fifos is chosen arbitrarily */
-#define TX_FIFO_SIZE (4 * 1024)
-#define RX_FIFO_SIZE (32 * 1024)
+#define TX_FIFO_SIZE (4 * KiB)
+#define RX_FIFO_SIZE (32 * KiB)
#define NUM_TX_FIFOS 2
#define RX_HDR_SIZE 8