diff options
author | Stefan Fritsch <sf@cvs.openbsd.org> | 2016-07-14 12:42:01 +0000 |
---|---|---|
committer | Stefan Fritsch <sf@cvs.openbsd.org> | 2016-07-14 12:42:01 +0000 |
commit | a18979ab65170a9e4459b52db1249570c75cb174 (patch) | |
tree | 74be996f1ee34e2e198a62e4e9129c1d44e75353 /sys/dev/pci/virtiovar.h | |
parent | e9a2c7b9ac6379ec27b261e387547e1208abd90d (diff) |
virtio: Move interrupt handler into transport specific code
For MSI-X (and also possibly for other transports), the interrupt
handler must do different things. Move it out of virtio.c and into
virtio_pci.
ARM part tested by patrick@
Diffstat (limited to 'sys/dev/pci/virtiovar.h')
-rw-r--r-- | sys/dev/pci/virtiovar.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/pci/virtiovar.h b/sys/dev/pci/virtiovar.h index c41c263b4be..4a817bc2b23 100644 --- a/sys/dev/pci/virtiovar.h +++ b/sys/dev/pci/virtiovar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: virtiovar.h,v 1.6 2015/12/05 19:40:34 sf Exp $ */ +/* $OpenBSD: virtiovar.h,v 1.7 2016/07/14 12:42:00 sf Exp $ */ /* $NetBSD: virtiovar.h,v 1.1 2011/10/30 12:12:21 hannken Exp $ */ /* @@ -172,8 +172,6 @@ struct virtio_softc { */ int (*sc_config_change)(struct virtio_softc*); /* set by child */ - int (*sc_intrhand)(struct virtio_softc*); - /* set by child */ }; /* public interface */ @@ -210,7 +208,7 @@ int virtio_dequeue(struct virtio_softc*, struct virtqueue*, int *, int *); int virtio_dequeue_commit(struct virtqueue*, int); int virtio_intr(void *arg); -int virtio_vq_intr(struct virtio_softc *); +int virtio_check_vqs(struct virtio_softc *); void virtio_stop_vq_intr(struct virtio_softc *, struct virtqueue *); int virtio_start_vq_intr(struct virtio_softc *, struct virtqueue *); |