Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm Use PRIxBUSADDR



details:   https://anonhg.NetBSD.org/src/rev/67056cb0362c
branches:  trunk
changeset: 1004109:67056cb0362c
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Oct 13 05:57:14 2019 +0000

description:
Use PRIxBUSADDR

diffstat:

 sys/arch/arm/nvidia/tegra124_car.c     |   6 +++---
 sys/arch/arm/nvidia/tegra124_xusbpad.c |   6 +++---
 sys/arch/arm/nvidia/tegra210_car.c     |   7 +++----
 sys/arch/arm/nvidia/tegra210_xusbpad.c |   7 +++----
 sys/arch/arm/nvidia/tegra_apbdma.c     |   7 +++----
 sys/arch/arm/nvidia/tegra_cec.c        |   7 +++----
 sys/arch/arm/nvidia/tegra_com.c        |   7 +++----
 sys/arch/arm/nvidia/tegra_fuse.c       |   7 +++----
 sys/arch/arm/nvidia/tegra_gpio.c       |   7 +++----
 sys/arch/arm/nvidia/tegra_hdaudio.c    |   7 +++----
 sys/arch/arm/nvidia/tegra_mc.c         |   7 +++----
 sys/arch/arm/nvidia/tegra_pinmux.c     |   7 +++----
 sys/arch/arm/nvidia/tegra_pmc.c        |   7 +++----
 sys/arch/arm/nvidia/tegra_rtc.c        |   7 +++----
 sys/arch/arm/nvidia/tegra_sdhc.c       |   7 +++----
 sys/arch/arm/nvidia/tegra_soctherm.c   |   7 +++----
 sys/arch/arm/nvidia/tegra_timer.c      |   7 +++----
 sys/arch/arm/nvidia/tegra_usbphy.c     |   7 +++----
 sys/arch/arm/nvidia/tegra_xusb.c       |  19 ++++++++-----------
 sys/arch/arm/sunxi/sunxi_pwm.c         |   8 ++++----
 20 files changed, 66 insertions(+), 85 deletions(-)

diffs (truncated from 591 to 300 lines):

diff -r 210f32ca414a -r 67056cb0362c sys/arch/arm/nvidia/tegra124_car.c
--- a/sys/arch/arm/nvidia/tegra124_car.c        Sun Oct 13 05:56:52 2019 +0000
+++ b/sys/arch/arm/nvidia/tegra124_car.c        Sun Oct 13 05:57:14 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra124_car.c,v 1.17 2019/03/09 19:41:26 jakllsch Exp $ */
+/* $NetBSD: tegra124_car.c,v 1.18 2019/10/13 05:57:14 skrll Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tegra124_car.c,v 1.17 2019/03/09 19:41:26 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tegra124_car.c,v 1.18 2019/10/13 05:57:14 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -758,7 +758,7 @@
        sc->sc_bst = faa->faa_bst;
        error = bus_space_map(sc->sc_bst, addr, size, 0, &sc->sc_bsh);
        if (error) {
-               aprint_error(": couldn't map %#llx: %d", (uint64_t)addr, error);
+               aprint_error(": couldn't map %" PRIxBUSADDR ": %d", addr, error);
                return;
        }
        if (of_getprop_uint32(phandle, "#clock-cells", &sc->sc_clock_cells))
diff -r 210f32ca414a -r 67056cb0362c sys/arch/arm/nvidia/tegra124_xusbpad.c
--- a/sys/arch/arm/nvidia/tegra124_xusbpad.c    Sun Oct 13 05:56:52 2019 +0000
+++ b/sys/arch/arm/nvidia/tegra124_xusbpad.c    Sun Oct 13 05:57:14 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra124_xusbpad.c,v 1.2 2017/09/22 20:25:51 jakllsch Exp $ */
+/* $NetBSD: tegra124_xusbpad.c,v 1.3 2019/10/13 05:57:14 skrll Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
 #include "opt_tegra.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tegra124_xusbpad.c,v 1.2 2017/09/22 20:25:51 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tegra124_xusbpad.c,v 1.3 2019/10/13 05:57:14 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -98,7 +98,7 @@
        sc->sc_bst = faa->faa_bst;
        error = bus_space_map(sc->sc_bst, addr, size, 0, &sc->sc_bsh);
        if (error) {
-               aprint_error(": couldn't map %#llx: %d", (uint64_t)addr, error);
+               aprint_error(": couldn't map %" PRIxBUSADDR ": %d", addr, error);
                return;
        }
 
diff -r 210f32ca414a -r 67056cb0362c sys/arch/arm/nvidia/tegra210_car.c
--- a/sys/arch/arm/nvidia/tegra210_car.c        Sun Oct 13 05:56:52 2019 +0000
+++ b/sys/arch/arm/nvidia/tegra210_car.c        Sun Oct 13 05:57:14 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra210_car.c,v 1.23 2018/12/14 12:29:22 skrll Exp $ */
+/* $NetBSD: tegra210_car.c,v 1.24 2019/10/13 05:57:14 skrll Exp $ */
 
 /*-
  * Copyright (c) 2015-2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tegra210_car.c,v 1.23 2018/12/14 12:29:22 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tegra210_car.c,v 1.24 2019/10/13 05:57:14 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -773,8 +773,7 @@
        sc->sc_bst = faa->faa_bst;
        error = bus_space_map(sc->sc_bst, addr, size, 0, &sc->sc_bsh);
        if (error) {
-               aprint_error(": couldn't map %#" PRIx64 ": %d",
-                   (uint64_t)addr, error);
+               aprint_error(": couldn't map %" PRIxBUSADDR ": %d", addr, error);
                return;
        }
        if (of_getprop_uint32(phandle, "#clock-cells", &sc->sc_clock_cells))
diff -r 210f32ca414a -r 67056cb0362c sys/arch/arm/nvidia/tegra210_xusbpad.c
--- a/sys/arch/arm/nvidia/tegra210_xusbpad.c    Sun Oct 13 05:56:52 2019 +0000
+++ b/sys/arch/arm/nvidia/tegra210_xusbpad.c    Sun Oct 13 05:57:14 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra210_xusbpad.c,v 1.11 2018/12/14 12:29:22 skrll Exp $ */
+/* $NetBSD: tegra210_xusbpad.c,v 1.12 2019/10/13 05:57:14 skrll Exp $ */
 
 /*-
  * Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tegra210_xusbpad.c,v 1.11 2018/12/14 12:29:22 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tegra210_xusbpad.c,v 1.12 2019/10/13 05:57:14 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -1000,8 +1000,7 @@
        sc->sc_bst = faa->faa_bst;
        error = bus_space_map(sc->sc_bst, addr, size, 0, &sc->sc_bsh);
        if (error) {
-               aprint_error(": couldn't map %#" PRIx64 ": %d",
-                   (uint64_t)addr, error);
+               aprint_error(": couldn't map %" PRIxBUSADDR ": %d", addr, error);
                return;
        }
 
diff -r 210f32ca414a -r 67056cb0362c sys/arch/arm/nvidia/tegra_apbdma.c
--- a/sys/arch/arm/nvidia/tegra_apbdma.c        Sun Oct 13 05:56:52 2019 +0000
+++ b/sys/arch/arm/nvidia/tegra_apbdma.c        Sun Oct 13 05:57:14 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra_apbdma.c,v 1.5 2018/07/16 23:11:47 christos Exp $ */
+/* $NetBSD: tegra_apbdma.c,v 1.6 2019/10/13 05:57:14 skrll Exp $ */
 
 /*-
  * Copyright (c) 2017 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tegra_apbdma.c,v 1.5 2018/07/16 23:11:47 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tegra_apbdma.c,v 1.6 2019/10/13 05:57:14 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -146,8 +146,7 @@
        sc->sc_phandle = phandle;
        error = bus_space_map(sc->sc_bst, addr, size, 0, &sc->sc_bsh);
        if (error) {
-               aprint_error(": couldn't map %#" PRIx64 ": %d",
-                   (uint64_t)addr, error);
+               aprint_error(": couldn't map %" PRIxBUSADDR ": %d", addr, error);
                return;
        }
        for (n = 0; n < TEGRA_APBDMA_NCHAN; n++) {
diff -r 210f32ca414a -r 67056cb0362c sys/arch/arm/nvidia/tegra_cec.c
--- a/sys/arch/arm/nvidia/tegra_cec.c   Sun Oct 13 05:56:52 2019 +0000
+++ b/sys/arch/arm/nvidia/tegra_cec.c   Sun Oct 13 05:57:14 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra_cec.c,v 1.4 2018/07/16 23:11:47 christos Exp $ */
+/* $NetBSD: tegra_cec.c,v 1.5 2019/10/13 05:57:14 skrll Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tegra_cec.c,v 1.4 2018/07/16 23:11:47 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tegra_cec.c,v 1.5 2019/10/13 05:57:14 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -151,8 +151,7 @@
        sc->sc_bst = faa->faa_bst;
        error = bus_space_map(sc->sc_bst, addr, size, 0, &sc->sc_bsh);
        if (error) {
-               aprint_error(": couldn't map %#" PRIx64 ": %d",
-                   (uint64_t)addr, error);
+               aprint_error(": couldn't map %" PRIxBUSADDR ": %d", addr, error);
                return;
        }
        mutex_init(&sc->sc_lock, MUTEX_DEFAULT, IPL_VM);
diff -r 210f32ca414a -r 67056cb0362c sys/arch/arm/nvidia/tegra_com.c
--- a/sys/arch/arm/nvidia/tegra_com.c   Sun Oct 13 05:56:52 2019 +0000
+++ b/sys/arch/arm/nvidia/tegra_com.c   Sun Oct 13 05:57:14 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra_com.c,v 1.10 2018/12/08 17:46:09 thorpej Exp $ */
+/* $NetBSD: tegra_com.c,v 1.11 2019/10/13 05:57:14 skrll Exp $ */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(1, "$NetBSD: tegra_com.c,v 1.10 2018/12/08 17:46:09 thorpej Exp $");
+__KERNEL_RCSID(1, "$NetBSD: tegra_com.c,v 1.11 2019/10/13 05:57:14 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -126,8 +126,7 @@
 
        error = bus_space_map(bst, addr, size, 0, &bsh);
        if (error) {
-               aprint_error(": couldn't map %#" PRIx64 ": %d",
-                   (uint64_t)addr, error);
+               aprint_error(": couldn't map %" PRIxBUSADDR ": %d", addr, error);
                return;
        }
 
diff -r 210f32ca414a -r 67056cb0362c sys/arch/arm/nvidia/tegra_fuse.c
--- a/sys/arch/arm/nvidia/tegra_fuse.c  Sun Oct 13 05:56:52 2019 +0000
+++ b/sys/arch/arm/nvidia/tegra_fuse.c  Sun Oct 13 05:57:14 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra_fuse.c,v 1.6 2018/07/16 23:11:47 christos Exp $ */
+/* $NetBSD: tegra_fuse.c,v 1.7 2019/10/13 05:57:14 skrll Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tegra_fuse.c,v 1.6 2018/07/16 23:11:47 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tegra_fuse.c,v 1.7 2019/10/13 05:57:14 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -99,8 +99,7 @@
        sc->sc_bst = faa->faa_bst;
        error = bus_space_map(sc->sc_bst, addr, size, 0, &sc->sc_bsh);
        if (error) {
-               aprint_error(": couldn't map %#" PRIx64 ": %d",
-                   (uint64_t)addr, error);
+               aprint_error(": couldn't map %" PRIxBUSADDR ": %d", addr, error);
                return;
        }
 
diff -r 210f32ca414a -r 67056cb0362c sys/arch/arm/nvidia/tegra_gpio.c
--- a/sys/arch/arm/nvidia/tegra_gpio.c  Sun Oct 13 05:56:52 2019 +0000
+++ b/sys/arch/arm/nvidia/tegra_gpio.c  Sun Oct 13 05:57:14 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra_gpio.c,v 1.9 2018/07/16 23:11:47 christos Exp $ */
+/* $NetBSD: tegra_gpio.c,v 1.10 2019/10/13 05:57:14 skrll Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tegra_gpio.c,v 1.9 2018/07/16 23:11:47 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tegra_gpio.c,v 1.10 2019/10/13 05:57:14 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -178,8 +178,7 @@
        sc->sc_bst = faa->faa_bst;
        error = bus_space_map(sc->sc_bst, addr, size, 0, &sc->sc_bsh);
        if (error) {
-               aprint_error(": couldn't map %#" PRIx64 ": %d",
-                   (uint64_t)addr, error);
+               aprint_error(": couldn't map %" PRIxBUSADDR ": %d", addr, error);
                return;
        }
 
diff -r 210f32ca414a -r 67056cb0362c sys/arch/arm/nvidia/tegra_hdaudio.c
--- a/sys/arch/arm/nvidia/tegra_hdaudio.c       Sun Oct 13 05:56:52 2019 +0000
+++ b/sys/arch/arm/nvidia/tegra_hdaudio.c       Sun Oct 13 05:57:14 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra_hdaudio.c,v 1.11 2019/07/25 00:30:45 jmcneill Exp $ */
+/* $NetBSD: tegra_hdaudio.c,v 1.12 2019/10/13 05:57:14 skrll Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tegra_hdaudio.c,v 1.11 2019/07/25 00:30:45 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tegra_hdaudio.c,v 1.12 2019/10/13 05:57:14 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -145,8 +145,7 @@
        sc->sc_bst = faa->faa_bst;
        error = bus_space_map(sc->sc_bst, addr, size, 0, &sc->sc_bsh);
        if (error) {
-               aprint_error(": couldn't map %#" PRIx64 ": %d",
-                   (uint64_t)addr, error);
+               aprint_error(": couldn't map %" PRIxBUSADDR ": %d", addr, error);
                return;
        }
 
diff -r 210f32ca414a -r 67056cb0362c sys/arch/arm/nvidia/tegra_mc.c
--- a/sys/arch/arm/nvidia/tegra_mc.c    Sun Oct 13 05:56:52 2019 +0000
+++ b/sys/arch/arm/nvidia/tegra_mc.c    Sun Oct 13 05:57:14 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra_mc.c,v 1.8 2018/07/16 23:11:47 christos Exp $ */
+/* $NetBSD: tegra_mc.c,v 1.9 2019/10/13 05:57:14 skrll Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
 #include "locators.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tegra_mc.c,v 1.8 2018/07/16 23:11:47 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tegra_mc.c,v 1.9 2019/10/13 05:57:14 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -96,8 +96,7 @@
        sc->sc_bst = faa->faa_bst;
        error = bus_space_map(sc->sc_bst, addr, size, 0, &sc->sc_bsh);
        if (error) {



Home | Main Index | Thread Index | Old Index