virtio: Introduce dedicated attach args
authorsf <sf@openbsd.org>
Mon, 26 Aug 2024 19:37:54 +0000 (19:37 +0000)
committersf <sf@openbsd.org>
Mon, 26 Aug 2024 19:37:54 +0000 (19:37 +0000)
commitdc275227176c1aad7ca774d4d07f055bf683ffb0
tree65204e7d81e050e67ac45b003a8549a804ef8142
parent310c43a68b96daf4a131370c91fb1fec0e33da68
virtio: Introduce dedicated attach args

Instead of abusing virtio_softc as attach args, create a separate
struct. Use it to pass the number of available interrupts. This will be
useful for vio(4) multi-queue support.

ok jan@
sys/dev/fdt/virtio_mmio.c
sys/dev/pci/virtio_pci.c
sys/dev/pv/if_vio.c
sys/dev/pv/vioblk.c
sys/dev/pv/viocon.c
sys/dev/pv/viogpu.c
sys/dev/pv/viomb.c
sys/dev/pv/viornd.c
sys/dev/pv/vioscsi.c
sys/dev/pv/virtiovar.h
sys/dev/pv/vmmci.c