Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hpcmips clean up boot message.



details:   https://anonhg.NetBSD.org/src/rev/5e70fdbaa480
branches:  trunk
changeset: 480097:5e70fdbaa480
user:      uch <uch%NetBSD.org@localhost>
date:      Mon Jan 03 18:29:03 2000 +0000

description:
clean up boot message.

diffstat:

 sys/arch/hpcmips/dev/it8368.c     |  13 +++++++------
 sys/arch/hpcmips/tx/tx3912video.c |  15 ++++++++-------
 2 files changed, 15 insertions(+), 13 deletions(-)

diffs (97 lines):

diff -r a58869e38052 -r 5e70fdbaa480 sys/arch/hpcmips/dev/it8368.c
--- a/sys/arch/hpcmips/dev/it8368.c     Mon Jan 03 18:24:03 2000 +0000
+++ b/sys/arch/hpcmips/dev/it8368.c     Mon Jan 03 18:29:03 2000 +0000
@@ -1,7 +1,7 @@
-/*     $NetBSD: it8368.c,v 1.4 1999/12/30 16:50:43 uch Exp $ */
+/*     $NetBSD: it8368.c,v 1.5 2000/01/03 18:29:03 uch Exp $ */
 
 /*
- * Copyright (c) 1999, by UCHIYAMA Yasushi
+ * Copyright (c) 1999, 2000, by UCHIYAMA Yasushi
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -26,7 +26,6 @@
  *
  */
 #include "opt_tx39_debug.h"
-#include "opt_it8368debug.h"
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -223,6 +222,8 @@
                IT8368_PIN_BCRDRST;
        it8368_reg_write(csregt, csregh, IT8368_GPIODIR_REG, reg);
 
+       printf("\n");
+
        /* 
         *      Separate I/O and attribute memory region 
         */
@@ -233,13 +234,13 @@
        if (IT8368_CTRL_FIXATTRIO & it8368_reg_read(csregt, csregh, 
                                                    IT8368_CTRL_REG)) {
                sc->sc_fixattr = 1;
-               printf(":fix attr mode");
+               printf("%s: fix attr mode\n", sc->sc_dev.dv_xname);
                sc->sc_csmemt = sc->sc_csiot;
                sc->sc_csiosize /= 2;
                sc->sc_csmemsize = sc->sc_csiosize;
                sc->sc_csmembase = sc->sc_csiosize;
        } else {
-               printf(":legacy attr mode");
+               printf("%s: legacy attr mode", sc->sc_dev.dv_xname);
                sc->sc_fixattr = 0;
                sc->sc_csmemt = sc->sc_csiot;
                sc->sc_csmemh = sc->sc_csmemh;
@@ -258,7 +259,7 @@
        sc->sc_irq = ca->ca_irq1;
        sc->sc_card_irq = ca->ca_irq3;
 
-       printf("\n");
+
 
        it8368_attach_socket(sc);
 }
diff -r a58869e38052 -r 5e70fdbaa480 sys/arch/hpcmips/tx/tx3912video.c
--- a/sys/arch/hpcmips/tx/tx3912video.c Mon Jan 03 18:24:03 2000 +0000
+++ b/sys/arch/hpcmips/tx/tx3912video.c Mon Jan 03 18:29:03 2000 +0000
@@ -1,7 +1,7 @@
-/*     $NetBSD: tx3912video.c,v 1.4 1999/12/23 16:56:16 uch Exp $ */
+/*     $NetBSD: tx3912video.c,v 1.5 2000/01/03 18:29:04 uch Exp $ */
 
 /*
- * Copyright (c) 1999, by UCHIYAMA Yasushi
+ * Copyright (c) 1999, 2000, by UCHIYAMA Yasushi
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -97,22 +97,23 @@
        struct fb_attach_args fba;
        txreg_t reg;
 
-       printf("\n");
        sc->sc_fbaddr = framebuffer;
        sc->sc_fbsize = framebuffersize;
-       printf("TMPR3912 video module [");
+
+       printf(": ");
        tx3912video_fbdepth(tc, 1);
-       printf("] frame buffer: 0x%08x-0x%08x", sc->sc_fbaddr, 
+       printf(", frame buffer 0x%08x-0x%08x", sc->sc_fbaddr, 
               sc->sc_fbaddr + sc->sc_fbsize);
        
+       printf("\n");
+
        if (bootinfo->bi_cnuse & BI_CNUSE_SERIAL) {
-               printf("disabled.");
+               printf("%s: power off\n", sc->sc_dev.dv_xname);
                reg = tx_conf_read(tc, TX3912_VIDEOCTRL1_REG);
                reg &= ~(TX3912_VIDEOCTRL1_DISPON |
                         TX3912_VIDEOCTRL1_ENVID);
                tx_conf_write(tc, TX3912_VIDEOCTRL1_REG, reg);
        }
-       printf("\n");
 
        /* Attach frame buffer device */
 #if NFB > 0



Home | Main Index | Thread Index | Old Index