Module Name: src Committed By: riastradh Date: Tue Aug 9 12:42:05 UTC 2022
Modified Files: src/sys/dev/pci: virtio.c Log Message: virtio(4): Move comment for virtio_vq_intr. No functional change intended. To generate a diff of this commit: cvs rdiff -u -r1.55 -r1.56 src/sys/dev/pci/virtio.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/virtio.c diff -u src/sys/dev/pci/virtio.c:1.55 src/sys/dev/pci/virtio.c:1.56 --- src/sys/dev/pci/virtio.c:1.55 Sat Jun 18 22:11:01 2022 +++ src/sys/dev/pci/virtio.c Tue Aug 9 12:42:05 2022 @@ -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 @@ vq_sync_indirect(struct virtio_softc *sc 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 @@ virtio_vq_is_enqueued(struct virtio_soft 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) {