aboutsummaryrefslogtreecommitdiff
path: root/src/hw/virtio-ring.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2015-06-25 09:36:16 +0200
committerGerd Hoffmann <kraxel@redhat.com>2015-07-01 09:37:29 +0200
commitdaf5cc9b55bd34efc6e26ab65387ce106b2c8e1e (patch)
tree4f2550b08b61686d62ca11f42ed220519164b73a /src/hw/virtio-ring.c
parent1d9e87b937d646be1950695f9ead35100d5ebbe6 (diff)
downloadseabios-hppa-daf5cc9b55bd34efc6e26ab65387ce106b2c8e1e.zip
seabios-hppa-daf5cc9b55bd34efc6e26ab65387ce106b2c8e1e.tar.gz
seabios-hppa-daf5cc9b55bd34efc6e26ab65387ce106b2c8e1e.tar.bz2
virtio: add struct vp_device
For virtio 1.0 support we will need more state than just the (legacy mode) ioaddr for each virtio-pci device. Prepare for that by adding a new struct for it. For now it carries the ioaddr only. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'src/hw/virtio-ring.c')
-rw-r--r--src/hw/virtio-ring.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hw/virtio-ring.c b/src/hw/virtio-ring.c
index 97e0b34..5c6a32e 100644
--- a/src/hw/virtio-ring.c
+++ b/src/hw/virtio-ring.c
@@ -136,7 +136,7 @@ void vring_add_buf(struct vring_virtqueue *vq,
SET_LOWFLAT(avail->ring[av], head);
}
-void vring_kick(unsigned int ioaddr, struct vring_virtqueue *vq, int num_added)
+void vring_kick(struct vp_device *vp, struct vring_virtqueue *vq, int num_added)
{
struct vring *vr = &vq->vring;
struct vring_avail *avail = GET_LOWFLAT(vr->avail);
@@ -145,5 +145,5 @@ void vring_kick(unsigned int ioaddr, struct vring_virtqueue *vq, int num_added)
smp_wmb();
SET_LOWFLAT(avail->idx, GET_LOWFLAT(avail->idx) + num_added);
- vp_notify(ioaddr, GET_LOWFLAT(vq->queue_index));
+ vp_notify(vp, GET_LOWFLAT(vq->queue_index));
}