diff options
author | Cédric Le Goater <clg@redhat.com> | 2023-10-23 17:45:06 +0200 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2023-11-13 15:33:37 +0800 |
commit | fe73674af1e80ad7375e627563042395a1a746b6 (patch) | |
tree | 990cef48cb12eb9cb63f047729a12f658600712a /hw/net/igb_common.h | |
parent | 69680740eafa1838527c90155a7432d51b8ff203 (diff) | |
download | qemu-fe73674af1e80ad7375e627563042395a1a746b6.zip qemu-fe73674af1e80ad7375e627563042395a1a746b6.tar.gz qemu-fe73674af1e80ad7375e627563042395a1a746b6.tar.bz2 |
igb: Add a VF reset handler
Export the igb_vf_reset() helper routine from the PF model to let the
IGBVF model implement its own device reset.
Cc: Akihiko Odaki <akihiko.odaki@daynix.com>
Suggested-by: Sriram Yagnaraman <sriram.yagnaraman@est.tech>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'hw/net/igb_common.h')
-rw-r--r-- | hw/net/igb_common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/net/igb_common.h b/hw/net/igb_common.h index 5c261ba..b316a5b 100644 --- a/hw/net/igb_common.h +++ b/hw/net/igb_common.h @@ -152,5 +152,6 @@ enum { uint64_t igb_mmio_read(void *opaque, hwaddr addr, unsigned size); void igb_mmio_write(void *opaque, hwaddr addr, uint64_t val, unsigned size); +void igb_vf_reset(void *opaque, uint16_t vfn); #endif |