Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arc Add const.



details:   https://anonhg.NetBSD.org/src/rev/2ee453e0e155
branches:  trunk
changeset: 581634:2ee453e0e155
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Fri Jun 03 12:30:53 2005 +0000

description:
Add const.

diffstat:

 sys/arch/arc/arc/c_nec_pci.c        |  6 +++---
 sys/arch/arc/arc/disksubr.c         |  6 +++---
 sys/arch/arc/arc/machdep.c          |  8 ++++----
 sys/arch/arc/arc/p_dti_arcstation.c |  6 +++---
 sys/arch/arc/arc/p_dti_tyne.c       |  6 +++---
 sys/arch/arc/include/isa_machdep.h  |  4 ++--
 sys/arch/arc/include/platform.h     |  6 +++---
 sys/arch/arc/jazz/jazziovar.h       |  4 ++--
 sys/arch/arc/jazz/vga_jazzio.c      |  9 +++++----
 9 files changed, 28 insertions(+), 27 deletions(-)

diffs (244 lines):

diff -r 5a2b044c4c6f -r 2ee453e0e155 sys/arch/arc/arc/c_nec_pci.c
--- a/sys/arch/arc/arc/c_nec_pci.c      Fri Jun 03 12:29:43 2005 +0000
+++ b/sys/arch/arc/arc/c_nec_pci.c      Fri Jun 03 12:30:53 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: c_nec_pci.c,v 1.10 2005/01/22 07:35:33 tsutsui Exp $   */
+/*     $NetBSD: c_nec_pci.c,v 1.11 2005/06/03 12:30:53 tsutsui Exp $   */
 
 /*-
  * Copyright (C) 2000 Shuichiro URATA.  All rights reserved.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: c_nec_pci.c,v 1.10 2005/01/22 07:35:33 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: c_nec_pci.c,v 1.11 2005/06/03 12:30:53 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -86,7 +86,7 @@
 #include <dev/ic/comvar.h>
 #endif
 
-char *c_nec_pci_mainbusdevs[] = {
+const char *c_nec_pci_mainbusdevs[] = {
        "jazzio",
        "necpb",
        NULL,
diff -r 5a2b044c4c6f -r 2ee453e0e155 sys/arch/arc/arc/disksubr.c
--- a/sys/arch/arc/arc/disksubr.c       Fri Jun 03 12:29:43 2005 +0000
+++ b/sys/arch/arc/arc/disksubr.c       Fri Jun 03 12:30:53 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: disksubr.c,v 1.20 2005/01/22 07:35:33 tsutsui Exp $    */
+/*     $NetBSD: disksubr.c,v 1.21 2005/06/03 12:30:53 tsutsui Exp $    */
 /*     $OpenBSD: disksubr.c,v 1.14 1997/05/08 00:14:29 deraadt Exp $   */
 /*     NetBSD: disksubr.c,v 1.40 1999/05/06 15:45:51 christos Exp      */
 
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.20 2005/01/22 07:35:33 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.21 2005/06/03 12:30:53 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -151,7 +151,7 @@
        struct dkbad *bdp;
        struct buf *bp;
        struct disklabel *dlp;
-       char *msg = NULL;
+       const char *msg = NULL;
        int dospartoff, cyl, i, *ip;
        int use_openbsd_part = 0;
 
diff -r 5a2b044c4c6f -r 2ee453e0e155 sys/arch/arc/arc/machdep.c
--- a/sys/arch/arc/arc/machdep.c        Fri Jun 03 12:29:43 2005 +0000
+++ b/sys/arch/arc/arc/machdep.c        Fri Jun 03 12:30:53 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.86 2005/04/25 15:02:03 lukem Exp $       */
+/*     $NetBSD: machdep.c,v 1.87 2005/06/03 12:30:53 tsutsui Exp $     */
 /*     $OpenBSD: machdep.c,v 1.36 1999/05/22 21:22:19 weingart Exp $   */
 
 /*
@@ -78,7 +78,7 @@
 /* from: Utah Hdr: machdep.c 1.63 91/04/24 */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.86 2005/04/25 15:02:03 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.87 2005/06/03 12:30:53 tsutsui Exp $");
 
 #include "fs_mfs.h"
 #include "opt_ddb.h"
@@ -205,7 +205,7 @@
 /* initialize bss, etc. from kernel start, before main() is called. */
 void mach_init(int, char **argv, char **);
 
-char *firmware_getenv(char *env);
+char *firmware_getenv(const char *env);
 void arc_sysreset(bus_addr_t, bus_size_t);
 
 /*
@@ -477,7 +477,7 @@
  * Return a pointer to the given environment variable.
  */
 char *
-firmware_getenv(char *envname)
+firmware_getenv(const char *envname)
 {
        char **env;
        int l;
diff -r 5a2b044c4c6f -r 2ee453e0e155 sys/arch/arc/arc/p_dti_arcstation.c
--- a/sys/arch/arc/arc/p_dti_arcstation.c       Fri Jun 03 12:29:43 2005 +0000
+++ b/sys/arch/arc/arc/p_dti_arcstation.c       Fri Jun 03 12:30:53 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: p_dti_arcstation.c,v 1.6 2005/01/22 07:35:33 tsutsui Exp $     */
+/*     $NetBSD: p_dti_arcstation.c,v 1.7 2005/06/03 12:30:53 tsutsui Exp $     */
 /*     $OpenBSD: machdep.c,v 1.36 1999/05/22 21:22:19 weingart Exp $   */
 
 /*
@@ -76,7 +76,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: p_dti_arcstation.c,v 1.6 2005/01/22 07:35:33 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: p_dti_arcstation.c,v 1.7 2005/06/03 12:30:53 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -107,7 +107,7 @@
 #include <arc/dti/btlvar.h>
 #endif
 
-char *p_dti_arcstation_mainbusdevs[] = {
+const char *p_dti_arcstation_mainbusdevs[] = {
        "arcsisabr",
        NULL,
 };
diff -r 5a2b044c4c6f -r 2ee453e0e155 sys/arch/arc/arc/p_dti_tyne.c
--- a/sys/arch/arc/arc/p_dti_tyne.c     Fri Jun 03 12:29:43 2005 +0000
+++ b/sys/arch/arc/arc/p_dti_tyne.c     Fri Jun 03 12:30:53 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: p_dti_tyne.c,v 1.8 2005/01/22 07:35:33 tsutsui Exp $   */
+/*     $NetBSD: p_dti_tyne.c,v 1.9 2005/06/03 12:30:53 tsutsui Exp $   */
 /*     $OpenBSD: machdep.c,v 1.36 1999/05/22 21:22:19 weingart Exp $   */
 
 /*
@@ -76,7 +76,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: p_dti_tyne.c,v 1.8 2005/01/22 07:35:33 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: p_dti_tyne.c,v 1.9 2005/06/03 12:30:53 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -109,7 +109,7 @@
 #include <arc/dti/btlvar.h>
 #endif
 
-char *p_dti_tyne_mainbusdevs[] = {
+const char *p_dti_tyne_mainbusdevs[] = {
        "tyneisabr",
        NULL
 };
diff -r 5a2b044c4c6f -r 2ee453e0e155 sys/arch/arc/include/isa_machdep.h
--- a/sys/arch/arc/include/isa_machdep.h        Fri Jun 03 12:29:43 2005 +0000
+++ b/sys/arch/arc/include/isa_machdep.h        Fri Jun 03 12:30:53 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: isa_machdep.h,v 1.9 2004/02/13 11:36:10 wiz Exp $      */
+/*     $NetBSD: isa_machdep.h,v 1.10 2005/06/03 12:30:53 tsutsui Exp $ */
 /*      $OpenBSD: isa_machdep.h,v 1.5 1997/04/19 17:20:00 pefo Exp $  */
 
 /*
@@ -136,7 +136,7 @@
        u_long  ih_count;
        int     ih_level;
        int     ih_irq;
-       char    *ih_what;
+       const char *ih_what;
 };
 
 #endif /* _ISA_MACHDEP_H_ */
diff -r 5a2b044c4c6f -r 2ee453e0e155 sys/arch/arc/include/platform.h
--- a/sys/arch/arc/include/platform.h   Fri Jun 03 12:29:43 2005 +0000
+++ b/sys/arch/arc/include/platform.h   Fri Jun 03 12:30:53 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: platform.h,v 1.6 2005/06/03 12:08:50 tsutsui Exp $     */
+/*     $NetBSD: platform.h,v 1.7 2005/06/03 12:30:53 tsutsui Exp $     */
 /*     NetBSD: cpuconf.h,v 1.12 2000/06/08 03:10:06 thorpej Exp        */
 
 /*
@@ -42,7 +42,7 @@
        const char      *vendor;        /* Vendor Name */
        int             clock;          /* CPU clock [MHz] */
 
-       char    **mainbusdevs;
+       const char      **mainbusdevs;
 
        /*
         * Platform Specific Function Hooks
@@ -98,7 +98,7 @@
     int);
 void c_nec_jazz_init(void);
 
-extern char *c_nec_pci_mainbusdevs[];
+extern const char *c_nec_pci_mainbusdevs[];
 void c_nec_pci_init(void);
 void c_nec_pci_cons_init(void);
 
diff -r 5a2b044c4c6f -r 2ee453e0e155 sys/arch/arc/jazz/jazziovar.h
--- a/sys/arch/arc/jazz/jazziovar.h     Fri Jun 03 12:29:43 2005 +0000
+++ b/sys/arch/arc/jazz/jazziovar.h     Fri Jun 03 12:30:53 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: jazziovar.h,v 1.3 2005/01/22 07:35:34 tsutsui Exp $    */
+/*     $NetBSD: jazziovar.h,v 1.4 2005/06/03 12:30:53 tsutsui Exp $    */
 
 /*-
  * Copyright (C) 2000 Shuichiro URATA.  All rights reserved.
@@ -32,7 +32,7 @@
 #include <machine/bus.h>
 
 struct jazzio_attach_args {
-       char    *ja_name;
+       const char *ja_name;
        struct abus *ja_bus;
        bus_space_tag_t ja_bust;
        bus_dma_tag_t   ja_dmat;
diff -r 5a2b044c4c6f -r 2ee453e0e155 sys/arch/arc/jazz/vga_jazzio.c
--- a/sys/arch/arc/jazz/vga_jazzio.c    Fri Jun 03 12:29:43 2005 +0000
+++ b/sys/arch/arc/jazz/vga_jazzio.c    Fri Jun 03 12:30:53 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vga_jazzio.c,v 1.11 2005/01/22 07:35:34 tsutsui Exp $ */
+/* $NetBSD: vga_jazzio.c,v 1.12 2005/06/03 12:30:53 tsutsui Exp $ */
 /* NetBSD: vga_isa.c,v 1.3 1998/06/12 18:45:48 drochner Exp  */
 
 /*
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vga_jazzio.c,v 1.11 2005/01/22 07:35:34 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vga_jazzio.c,v 1.12 2005/06/03 12:30:53 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -58,7 +58,7 @@
 
 #define WSDISPLAY_TYPE_JAZZVGA WSDISPLAY_TYPE_PCIVGA   /* XXX not really */
 
-int    vga_jazzio_init_tag(char*, bus_space_tag_t *, bus_space_tag_t *);
+int    vga_jazzio_init_tag(const char *, bus_space_tag_t *, bus_space_tag_t *);
 paddr_t        vga_jazzio_mmap(void *, off_t, int);
 int    vga_jazzio_match(struct device *, struct cfdata *, void *);
 void   vga_jazzio_attach(struct device *, struct device *, void *);
@@ -72,7 +72,8 @@
 };
 
 int
-vga_jazzio_init_tag(char *name, bus_space_tag_t *iotp, bus_space_tag_t *memtp)
+vga_jazzio_init_tag(const char *name, bus_space_tag_t *iotp,
+    bus_space_tag_t *memtp)
 {
        static int initialized = 0;
        static struct arc_bus_space vga_io, vga_mem;



Home | Main Index | Thread Index | Old Index