Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm Less is more



details:   https://anonhg.NetBSD.org/src/rev/097f37c9efa8
branches:  trunk
changeset: 445571:097f37c9efa8
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Nov 03 15:02:32 2018 +0000

description:
Less is more

diffstat:

 sys/arch/evbarm/amlogic/amlogic_machdep.c     |  21 +++++++++------------
 sys/arch/evbarm/bcm53xx/bcm53xx_machdep.c     |  21 +++++++++------------
 sys/arch/evbarm/fdt/fdt_machdep.c             |  21 +++++++++------------
 sys/arch/evbarm/nitrogen6/nitrogen6_machdep.c |  21 +++++++++------------
 sys/arch/evbarm/zynq/zynq_machdep.c           |  21 +++++++++------------
 5 files changed, 45 insertions(+), 60 deletions(-)

diffs (255 lines):

diff -r cc6d199dfb5f -r 097f37c9efa8 sys/arch/evbarm/amlogic/amlogic_machdep.c
--- a/sys/arch/evbarm/amlogic/amlogic_machdep.c Sat Nov 03 14:56:36 2018 +0000
+++ b/sys/arch/evbarm/amlogic/amlogic_machdep.c Sat Nov 03 15:02:32 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: amlogic_machdep.c,v 1.26 2018/10/18 09:01:53 skrll Exp $ */
+/*     $NetBSD: amlogic_machdep.c,v 1.27 2018/11/03 15:02:32 skrll Exp $ */
 
 /*
  * Machine dependent functions for kernel setup for TI OSK5912 board.
@@ -125,7 +125,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amlogic_machdep.c,v 1.26 2018/10/18 09:01:53 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amlogic_machdep.c,v 1.27 2018/11/03 15:02:32 skrll Exp $");
 
 #include "opt_console.h"
 #include "opt_machdep.h"
@@ -238,15 +238,6 @@
 
 bs_protos(bs_notimpl);
 
-static dev_type_cnputc(earlyconsputc);
-static dev_type_cngetc(earlyconsgetc);
-
-static struct consdev earlycons = {
-       .cn_putc = earlyconsputc,
-       .cn_getc = earlyconsgetc,
-       .cn_pollc = nullcnpollc,
-};
-
 static void
 earlyconsputc(dev_t dev, int c)
 {
@@ -256,9 +247,15 @@
 static int
 earlyconsgetc(dev_t dev)
 {
-       return 0;       /* XXX */
+       return 0;
 }
 
+static struct consdev earlycons = {
+       .cn_putc = earlyconsputc,
+       .cn_getc = earlyconsgetc,
+       .cn_pollc = nullcnpollc,
+};
+
 /*
  * Static device mappings. These peripheral registers are mapped at
  * fixed virtual addresses very early in initarm() so that we can use
diff -r cc6d199dfb5f -r 097f37c9efa8 sys/arch/evbarm/bcm53xx/bcm53xx_machdep.c
--- a/sys/arch/evbarm/bcm53xx/bcm53xx_machdep.c Sat Nov 03 14:56:36 2018 +0000
+++ b/sys/arch/evbarm/bcm53xx/bcm53xx_machdep.c Sat Nov 03 15:02:32 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bcm53xx_machdep.c,v 1.18 2018/10/18 09:01:53 skrll Exp $       */
+/*     $NetBSD: bcm53xx_machdep.c,v 1.19 2018/11/03 15:02:32 skrll Exp $       */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
 #define IDM_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bcm53xx_machdep.c,v 1.18 2018/10/18 09:01:53 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bcm53xx_machdep.c,v 1.19 2018/11/03 15:02:32 skrll Exp $");
 
 #include "opt_arm_debug.h"
 #include "opt_console.h"
@@ -111,15 +111,6 @@
 #include <sys/kgdb.h>
 #endif
 
-static dev_type_cnputc(earlyconsputc);
-static dev_type_cngetc(earlyconsgetc);
-
-static struct consdev earlycons = {
-       .cn_putc = earlyconsputc,
-       .cn_getc = earlyconsgetc,
-       .cn_pollc = nullcnpollc,
-};
-
 static void
 earlyconsputc(dev_t dev, int c)
 {
@@ -129,9 +120,15 @@
 static int
 earlyconsgetc(dev_t dev)
 {
-       return 0;       /* XXX */
+       return 0;
 }
 
+static struct consdev earlycons = {
+       .cn_putc = earlyconsputc,
+       .cn_getc = earlyconsgetc,
+       .cn_pollc = nullcnpollc,
+};
+
 /*
  * Static device mappings. These peripheral registers are mapped at
  * fixed virtual addresses very early in initarm() so that we can use
diff -r cc6d199dfb5f -r 097f37c9efa8 sys/arch/evbarm/fdt/fdt_machdep.c
--- a/sys/arch/evbarm/fdt/fdt_machdep.c Sat Nov 03 14:56:36 2018 +0000
+++ b/sys/arch/evbarm/fdt/fdt_machdep.c Sat Nov 03 15:02:32 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fdt_machdep.c,v 1.53 2018/11/01 00:44:06 jmcneill Exp $ */
+/* $NetBSD: fdt_machdep.c,v 1.54 2018/11/03 15:02:32 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.53 2018/11/01 00:44:06 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fdt_machdep.c,v 1.54 2018/11/03 15:02:32 skrll Exp $");
 
 #include "opt_machdep.h"
 #include "opt_bootconfig.h"
@@ -129,15 +129,6 @@
 static void fdt_reset(void);
 static void fdt_powerdown(void);
 
-static dev_type_cnputc(earlyconsputc);
-static dev_type_cngetc(earlyconsgetc);
-
-static struct consdev earlycons = {
-       .cn_putc = earlyconsputc,
-       .cn_getc = earlyconsgetc,
-       .cn_pollc = nullcnpollc,
-};
-
 static void
 earlyconsputc(dev_t dev, int c)
 {
@@ -147,9 +138,15 @@
 static int
 earlyconsgetc(dev_t dev)
 {
-       return 0;       /* XXX */
+       return 0;
 }
 
+static struct consdev earlycons = {
+       .cn_putc = earlyconsputc,
+       .cn_getc = earlyconsgetc,
+       .cn_pollc = nullcnpollc,
+};
+
 #ifdef VERBOSE_INIT_ARM
 #define VPRINTF(...)   printf(__VA_ARGS__)
 #else
diff -r cc6d199dfb5f -r 097f37c9efa8 sys/arch/evbarm/nitrogen6/nitrogen6_machdep.c
--- a/sys/arch/evbarm/nitrogen6/nitrogen6_machdep.c     Sat Nov 03 14:56:36 2018 +0000
+++ b/sys/arch/evbarm/nitrogen6/nitrogen6_machdep.c     Sat Nov 03 15:02:32 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nitrogen6_machdep.c,v 1.12 2018/10/20 05:58:34 skrll Exp $     */
+/*     $NetBSD: nitrogen6_machdep.c,v 1.13 2018/11/03 15:02:32 skrll Exp $     */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nitrogen6_machdep.c,v 1.12 2018/10/20 05:58:34 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nitrogen6_machdep.c,v 1.13 2018/11/03 15:02:32 skrll Exp $");
 
 #include "opt_evbarm_boardtype.h"
 #include "opt_arm_debug.h"
@@ -108,15 +108,6 @@
 #include <sys/kgdb.h>
 #endif
 
-static dev_type_cnputc(earlyconsputc);
-static dev_type_cngetc(earlyconsgetc);
-
-static struct consdev earlycons = {
-       .cn_putc = earlyconsputc,
-       .cn_getc = earlyconsgetc,
-       .cn_pollc = nullcnpollc,
-};
-
 static void
 earlyconsputc(dev_t dev, int c)
 {
@@ -126,9 +117,15 @@
 static int
 earlyconsgetc(dev_t dev)
 {
-       return 0;       /* XXX */
+       return 0;
 }
 
+static struct consdev earlycons = {
+       .cn_putc = earlyconsputc,
+       .cn_getc = earlyconsgetc,
+       .cn_pollc = nullcnpollc,
+};
+
 /*
  * Static device mappings. These peripheral registers are mapped at
  * fixed virtual addresses very early in initarm() so that we can use
diff -r cc6d199dfb5f -r 097f37c9efa8 sys/arch/evbarm/zynq/zynq_machdep.c
--- a/sys/arch/evbarm/zynq/zynq_machdep.c       Sat Nov 03 14:56:36 2018 +0000
+++ b/sys/arch/evbarm/zynq/zynq_machdep.c       Sat Nov 03 15:02:32 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: zynq_machdep.c,v 1.5 2018/10/18 09:01:54 skrll Exp $   */
+/*     $NetBSD: zynq_machdep.c,v 1.6 2018/11/03 15:02:32 skrll Exp $   */
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: zynq_machdep.c,v 1.5 2018/10/18 09:01:54 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: zynq_machdep.c,v 1.6 2018/11/03 15:02:32 skrll Exp $");
 
 #include "opt_evbarm_boardtype.h"
 #include "opt_arm_debug.h"
@@ -107,15 +107,6 @@
 #include <sys/kgdb.h>
 #endif
 
-static dev_type_cnputc(earlyconsputc);
-static dev_type_cngetc(earlyconsgetc);
-
-static struct consdev earlycons = {
-       .cn_putc = earlyconsputc,
-       .cn_getc = earlyconsgetc,
-       .cn_pollc = nullcnpollc,
-};
-
 static void
 earlyconsputc(dev_t dev, int c)
 {
@@ -125,9 +116,15 @@
 static int
 earlyconsgetc(dev_t dev)
 {
-       return 0;       /* XXX */
+       return 0;
 }
 
+static struct consdev earlycons = {
+       .cn_putc = earlyconsputc,
+       .cn_getc = earlyconsgetc,
+       .cn_pollc = nullcnpollc,
+};
+
 /*
  * Static device mappings. These peripheral registers are mapped at
  * fixed virtual addresses very early in initarm() so that we can use



Home | Main Index | Thread Index | Old Index