mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
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>
This commit is contained in:
parent
4847dabf67
commit
ff2b24c862
3 changed files with 13 additions and 12 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue