Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Move definition of NMAPREG to the start
details: https://anonhg.NetBSD.org/src/rev/9736d5b357c7
branches: trunk
changeset: 950298:9736d5b357c7
user: reinoud <reinoud%NetBSD.org@localhost>
date: Sun Jan 24 14:33:49 2021 +0000
description:
Move definition of NMAPREG to the start
diffstat:
sys/dev/pci/virtio_pci.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (37 lines):
diff -r 22f1b3a2eb07 -r 9736d5b357c7 sys/dev/pci/virtio_pci.c
--- a/sys/dev/pci/virtio_pci.c Sun Jan 24 14:17:10 2021 +0000
+++ b/sys/dev/pci/virtio_pci.c Sun Jan 24 14:33:49 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: virtio_pci.c,v 1.21 2021/01/24 14:12:36 reinoud Exp $ */
+/* $NetBSD: virtio_pci.c,v 1.22 2021/01/24 14:33:49 reinoud Exp $ */
/*
* Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: virtio_pci.c,v 1.21 2021/01/24 14:12:36 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: virtio_pci.c,v 1.22 2021/01/24 14:33:49 reinoud Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -55,6 +55,9 @@
static int virtio_pci_rescan(device_t, const char *, const int *);
static int virtio_pci_detach(device_t, int);
+
+#define NMAPREG ((PCI_MAPREG_END - PCI_MAPREG_START) / \
+ sizeof(pcireg_t))
struct virtio_pci_softc {
struct virtio_softc sc_sc;
@@ -426,8 +429,6 @@
}
-#define NMAPREG ((PCI_MAPREG_END - PCI_MAPREG_START) / \
- sizeof(pcireg_t))
static int
virtio_pci_attach_10(device_t self, void *aux)
{
Home |
Main Index |
Thread Index |
Old Index