Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Provide and use a evbarm/fdt/machdep.h
details: https://anonhg.NetBSD.org/src/rev/8fa4b8a1dc20
branches: trunk
changeset: 991872:8fa4b8a1dc20
user: skrll <skrll%NetBSD.org@localhost>
date: Fri Aug 03 13:48:24 2018 +0000
description:
Provide and use a evbarm/fdt/machdep.h
diffstat:
sys/arch/arm/broadcom/bcm283x_platform.c | 9 ++---
sys/arch/evbarm/fdt/fdt_machdep.c | 11 ++-----
sys/arch/evbarm/fdt/machdep.h | 43 ++++++++++++++++++++++++++++++++
3 files changed, 50 insertions(+), 13 deletions(-)
diffs (118 lines):
diff -r ac3935111799 -r 8fa4b8a1dc20 sys/arch/arm/broadcom/bcm283x_platform.c
--- a/sys/arch/arm/broadcom/bcm283x_platform.c Fri Aug 03 13:19:33 2018 +0000
+++ b/sys/arch/arm/broadcom/bcm283x_platform.c Fri Aug 03 13:48:24 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bcm283x_platform.c,v 1.8 2018/07/16 23:11:47 christos Exp $ */
+/* $NetBSD: bcm283x_platform.c,v 1.9 2018/08/03 13:48:24 skrll Exp $ */
/*-
* Copyright (c) 2017 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bcm283x_platform.c,v 1.8 2018/07/16 23:11:47 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bcm283x_platform.c,v 1.9 2018/08/03 13:48:24 skrll Exp $");
#include "opt_arm_debug.h"
#include "opt_bcm283x.h"
@@ -64,9 +64,7 @@
#include <uvm/uvm_extern.h>
#include <machine/bootconfig.h>
-#ifdef __aarch64__
-#include <aarch64/machdep.h>
-#endif
+
#include <arm/armreg.h>
#include <arm/cpufunc.h>
@@ -81,6 +79,7 @@
#include <evbarm/dev/plcomreg.h>
#include <evbarm/dev/plcomvar.h>
+#include <evbarm/fdt/machdep.h>
#include <dev/ic/ns16550reg.h>
#include <dev/ic/comreg.h>
diff -r ac3935111799 -r 8fa4b8a1dc20 sys/arch/evbarm/fdt/fdt_machdep.c
--- a/sys/arch/evbarm/fdt/fdt_machdep.c Fri Aug 03 13:19:33 2018 +0000
+++ b/sys/arch/evbarm/fdt/fdt_machdep.c Fri Aug 03 13:48:24 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fdt_machdep.c,v 1.29 2018/08/03 12:48:33 skrll Exp $ */
+/* $NetBSD: fdt_machdep.c,v 1.30 2018/08/03 13:48:24 skrll Exp $ */
/*-
* Copyright (c) 2015-2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fdt_machdep.c,v 1.29 2018/08/03 12:48:33 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fdt_machdep.c,v 1.30 2018/08/03 13:48:24 skrll Exp $");
#include "opt_machdep.h"
#include "opt_bootconfig.h"
@@ -68,14 +68,9 @@
#include <arm/armreg.h>
#include <arm/cpufunc.h>
-#ifdef __aarch64__
-#include <aarch64/machdep.h>
-#else
-#include <arm/arm32/machdep.h>
-#endif
-
#include <evbarm/include/autoconf.h>
+#include <evbarm/fdt/machdep.h>
#include <evbarm/fdt/platform.h>
#include <arm/fdt/arm_fdtvar.h>
diff -r ac3935111799 -r 8fa4b8a1dc20 sys/arch/evbarm/fdt/machdep.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/evbarm/fdt/machdep.h Fri Aug 03 13:48:24 2018 +0000
@@ -0,0 +1,43 @@
+/* $NetBSD: machdep.h,v 1.1 2018/08/03 13:48:24 skrll Exp $ */
+
+/*-
+ * Copyright (c) 2018 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by Nick Hudson
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef _EVBARM_FDT_MACHDEP_H
+#define _EVBARM_FDT_MACHDEP_H
+
+#ifdef __aarch64__
+#include <aarch64/machdep.h>
+#endif
+
+#ifdef __arm__
+#include <arm/arm32/machdep.h>
+#endif
+
+#endif /* _EVBARM_FDT_MACHDEP_H */
Home |
Main Index |
Thread Index |
Old Index