summary refs log tree commit diff stats
path: root/hw/net/igb_common.h
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki@daynix.com>2023-05-23 11:43:16 +0900
committerJason Wang <jasowang@redhat.com>2023-05-23 15:20:15 +0800
commitff2b24c86258c6257bdb27bb16fefb11aea5ea57 (patch)
treebac2ff98b826b80fc8f570f2d632ee2bdb685e82 /hw/net/igb_common.h
parent4847dabf6743477dd29da9962466403dfcf625f3 (diff)
downloadfocaccia-qemu-ff2b24c86258c6257bdb27bb16fefb11aea5ea57.tar.gz
focaccia-qemu-ff2b24c86258c6257bdb27bb16fefb11aea5ea57.zip
igb: Share common VF constants
The constants need to be consistent between the PF and VF.

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Sriram Yagnaraman <sriram.yagnaraman@est.tech>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'hw/net/igb_common.h')
-rw-r--r--hw/net/igb_common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/hw/net/igb_common.h b/hw/net/igb_common.h
index 69ac490f75..f2a9065791 100644
--- a/hw/net/igb_common.h
+++ b/hw/net/igb_common.h
@@ -28,6 +28,14 @@
 
 #include "igb_regs.h"
 
+#define TYPE_IGBVF "igbvf"
+
+#define IGBVF_MMIO_BAR_IDX  (0)
+#define IGBVF_MSIX_BAR_IDX  (3)
+
+#define IGBVF_MMIO_SIZE     (16 * 1024)
+#define IGBVF_MSIX_SIZE     (16 * 1024)
+
 #define defreg(x) x = (E1000_##x >> 2)
 #define defreg_indexed(x, i) x##i = (E1000_##x(i) >> 2)
 #define defreg_indexeda(x, i) x##i##_A = (E1000_##x##_A(i) >> 2)