Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/include Allow machine_banner and machine_mo...



details:   https://anonhg.NetBSD.org/src/rev/390e0197289e
branches:  trunk
changeset: 790915:390e0197289e
user:      jdc <jdc%NetBSD.org@localhost>
date:      Sat Oct 26 18:47:27 2013 +0000

description:
Allow machine_banner and machine_model to be used outside autoconf.c, for
example, by drivers that need to match on model name.  Suggested by mrg@.

diffstat:

 sys/arch/sparc64/include/autoconf.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 3f21620a4364 -r 390e0197289e sys/arch/sparc64/include/autoconf.h
--- a/sys/arch/sparc64/include/autoconf.h       Sat Oct 26 18:31:29 2013 +0000
+++ b/sys/arch/sparc64/include/autoconf.h       Sat Oct 26 18:47:27 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.h,v 1.31 2012/10/27 17:18:12 chs Exp $ */
+/*     $NetBSD: autoconf.h,v 1.32 2013/10/26 18:47:27 jdc Exp $ */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -76,6 +76,10 @@
 #include <sys/bus.h>
 #include <machine/promlib.h>
 
+/* Machine banner name and model name */
+extern char machine_banner[100];
+extern char machine_model[100];
+
 /* This is used to map device classes to IPLs */
 struct intrmap {
        const char *in_class;



Home | Main Index | Thread Index | Old Index