Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Use the PCI_MAPREG_TYPE macro. No binary change.



details:   https://anonhg.NetBSD.org/src/rev/dae6602dae3f
branches:  trunk
changeset: 1018990:dae6602dae3f
user:      skrll <skrll%NetBSD.org@localhost>
date:      Tue Feb 23 07:15:30 2021 +0000

description:
Use the PCI_MAPREG_TYPE macro.  No binary change.

diffstat:

 sys/dev/pci/mpii.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 0a3531a89725 -r dae6602dae3f sys/dev/pci/mpii.c
--- a/sys/dev/pci/mpii.c        Tue Feb 23 07:13:51 2021 +0000
+++ b/sys/dev/pci/mpii.c        Tue Feb 23 07:15:30 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mpii.c,v 1.25 2020/08/08 19:39:28 jnemeth Exp $ */
+/* $NetBSD: mpii.c,v 1.26 2021/02/23 07:15:30 skrll Exp $ */
 /*     $OpenBSD: mpii.c,v 1.115 2018/08/14 05:22:21 jmatthew Exp $     */
 /*
  * Copyright (c) 2010, 2012 Mike Belopuhov
@@ -20,7 +20,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mpii.c,v 1.25 2020/08/08 19:39:28 jnemeth Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mpii.c,v 1.26 2021/02/23 07:15:30 skrll Exp $");
 
 #include "bio.h"
 
@@ -479,7 +479,7 @@
        /* find the appropriate memory base */
        for (r = PCI_MAPREG_START; r < PCI_MAPREG_END; r += sizeof(memtype)) {
                memtype = pci_mapreg_type(sc->sc_pc, sc->sc_tag, r);
-               if ((memtype & PCI_MAPREG_TYPE_MASK) == PCI_MAPREG_TYPE_MEM)
+               if (PCI_MAPREG_TYPE(memtype) == PCI_MAPREG_TYPE_MEM)
                        break;
        }
        if (r >= PCI_MAPREG_END) {



Home | Main Index | Thread Index | Old Index