Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Explicitly cast a __MASK(40) to bus_addr_t (for ...



details:   https://anonhg.NetBSD.org/src/rev/3c62de39ccfb
branches:  trunk
changeset: 359790:3c62de39ccfb
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Jan 22 19:07:25 2022 +0000

description:
Explicitly cast a __MASK(40) to bus_addr_t (for 32bit bus_addr_t archs)

diffstat:

 sys/dev/pci/if_nfe.c  |  6 +++---
 sys/dev/pci/if_stge.c |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 8604c8751993 -r 3c62de39ccfb sys/dev/pci/if_nfe.c
--- a/sys/dev/pci/if_nfe.c      Sat Jan 22 19:01:56 2022 +0000
+++ b/sys/dev/pci/if_nfe.c      Sat Jan 22 19:07:25 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_nfe.c,v 1.79 2022/01/22 15:10:32 skrll Exp $        */
+/*     $NetBSD: if_nfe.c,v 1.80 2022/01/22 19:07:25 martin Exp $       */
 /*     $OpenBSD: if_nfe.c,v 1.77 2008/02/05 16:52:50 brad Exp $        */
 
 /*-
@@ -21,7 +21,7 @@
 /* Driver for NVIDIA nForce MCP Fast Ethernet and Gigabit Ethernet */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_nfe.c,v 1.79 2022/01/22 15:10:32 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_nfe.c,v 1.80 2022/01/22 19:07:25 martin Exp $");
 
 #include "opt_inet.h"
 #include "vlan.h"
@@ -324,7 +324,7 @@
        if (pci_dma64_available(pa) && (sc->sc_flags & NFE_40BIT_ADDR) != 0) {
                if (bus_dmatag_subregion(pa->pa_dmat64,
                                         0,
-                                        __MASK(40),
+                                        (bus_addr_t)__MASK(40),
                                         &sc->sc_dmat,
                                         BUS_DMA_WAITOK) != 0) {
                        aprint_error_dev(self,
diff -r 8604c8751993 -r 3c62de39ccfb sys/dev/pci/if_stge.c
--- a/sys/dev/pci/if_stge.c     Sat Jan 22 19:01:56 2022 +0000
+++ b/sys/dev/pci/if_stge.c     Sat Jan 22 19:07:25 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_stge.c,v 1.88 2022/01/22 15:10:32 skrll Exp $       */
+/*     $NetBSD: if_stge.c,v 1.89 2022/01/22 19:08:33 martin Exp $      */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_stge.c,v 1.88 2022/01/22 15:10:32 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_stge.c,v 1.89 2022/01/22 19:08:33 martin Exp $");
 
 
 #include <sys/param.h>
@@ -450,7 +450,7 @@
        if (pci_dma64_available(pa)) {
                if (bus_dmatag_subregion(pa->pa_dmat64,
                                         0,
-                                        FRAG_ADDR_MASK,
+                                        (bus_addr_t)FRAG_ADDR_MASK,
                                         &sc->sc_dmat,
                                         BUS_DMA_WAITOK) != 0) {
                        aprint_error_dev(self,



Home | Main Index | Thread Index | Old Index