Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci aprint_verbose the DMA range used.



details:   https://anonhg.NetBSD.org/src/rev/e3eba728bba5
branches:  trunk
changeset: 1029062:e3eba728bba5
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Dec 20 13:19:09 2021 +0000

description:
aprint_verbose the DMA range used.

diffstat:

 sys/dev/pci/if_wm.c |  11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r 02d21e15fc6a -r e3eba728bba5 sys/dev/pci/if_wm.c
--- a/sys/dev/pci/if_wm.c       Mon Dec 20 12:56:25 2021 +0000
+++ b/sys/dev/pci/if_wm.c       Mon Dec 20 13:19:09 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_wm.c,v 1.723 2021/12/20 12:56:25 skrll Exp $        */
+/*     $NetBSD: if_wm.c,v 1.724 2021/12/20 13:19:09 skrll Exp $        */
 
 /*
  * Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc.
@@ -82,7 +82,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.723 2021/12/20 12:56:25 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.724 2021/12/20 13:19:09 skrll Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_net_mpsafe.h"
@@ -1929,10 +1929,13 @@
        sc->sc_pc = pa->pa_pc;
        sc->sc_pcitag = pa->pa_tag;
 
-       if (pci_dma64_available(pa))
+       if (pci_dma64_available(pa)) {
+               aprint_verbose(", 64-bit DMA");
                sc->sc_dmat = pa->pa_dmat64;
-       else
+       } else {
+               aprint_verbose(", 32-bit DMA");
                sc->sc_dmat = pa->pa_dmat;
+       }
 
        sc->sc_pcidevid = PCI_PRODUCT(pa->pa_id);
        sc->sc_rev = PCI_REVISION(pci_conf_read(pc, pa->pa_tag,PCI_CLASS_REG));



Home | Main Index | Thread Index | Old Index