Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci virtio(4): Move comment for virtio_vq_intr.
details: https://anonhg.NetBSD.org/src/rev/0edf6851155f
branches: trunk
changeset: 368872:0edf6851155f
user: riastradh <riastradh%NetBSD.org@localhost>
date: Tue Aug 09 12:42:05 2022 +0000
description:
virtio(4): Move comment for virtio_vq_intr.
No functional change intended.
diffstat:
sys/dev/pci/virtio.c | 17 ++++++++---------
1 files changed, 8 insertions(+), 9 deletions(-)
diffs (45 lines):
diff -r 79745f70b6d9 -r 0edf6851155f sys/dev/pci/virtio.c
--- a/sys/dev/pci/virtio.c Tue Aug 09 08:14:03 2022 +0000
+++ b/sys/dev/pci/virtio.c Tue Aug 09 12:42:05 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: virtio.c,v 1.55 2022/06/18 22:11:01 andvar Exp $ */
+/* $NetBSD: virtio.c,v 1.56 2022/08/09 12:42:05 riastradh Exp $ */
/*
* Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: virtio.c,v 1.55 2022/06/18 22:11:01 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: virtio.c,v 1.56 2022/08/09 12:42:05 riastradh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -465,13 +465,6 @@
ops);
}
-/*
- * Can be used as sc_intrhand.
- */
-/*
- * Scan vq, bus_dmamap_sync for the vqs (not for the payload),
- * and calls (*vq_done)() if some entries are consumed.
- */
bool
virtio_vq_is_enqueued(struct virtio_softc *sc, struct virtqueue *vq)
{
@@ -486,6 +479,12 @@
return (vq->vq_used_idx != virtio_rw16(sc, vq->vq_used->idx)) ? 1 : 0;
}
+/*
+ * Scan vq, bus_dmamap_sync for the vqs (not for the payload),
+ * and calls (*vq_done)() if some entries are consumed.
+ *
+ * Can be used as sc_intrhand.
+ */
int
virtio_vq_intr(struct virtio_softc *sc)
{
Home |
Main Index |
Thread Index |
Old Index