Source-Changes-HG archive

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

[src/trunk]: src/sys Fix const fallout.



details:   https://anonhg.NetBSD.org/src/rev/3dbf9bf6413d
branches:  trunk
changeset: 581603:3dbf9bf6413d
user:      scw <scw%NetBSD.org@localhost>
date:      Fri Jun 03 08:49:03 2005 +0000

description:
Fix const fallout.

diffstat:

 sys/arch/mvme68k/dev/pcctwo_68k.c |  10 +++++-----
 sys/arch/mvme68k/dev/sbic.c       |   8 ++++----
 sys/dev/mvme/pcctwo.c             |   6 +++---
 sys/dev/mvme/pcctwovar.h          |   7 ++++---
 4 files changed, 16 insertions(+), 15 deletions(-)

diffs (136 lines):

diff -r d8678a4dafa6 -r 3dbf9bf6413d sys/arch/mvme68k/dev/pcctwo_68k.c
--- a/sys/arch/mvme68k/dev/pcctwo_68k.c Fri Jun 03 08:45:47 2005 +0000
+++ b/sys/arch/mvme68k/dev/pcctwo_68k.c Fri Jun 03 08:49:03 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pcctwo_68k.c,v 1.4 2003/07/15 02:43:47 lukem Exp $     */
+/*     $NetBSD: pcctwo_68k.c,v 1.5 2005/06/03 08:49:03 scw Exp $       */
 
 /*-
  * Copyright (c) 1999, 2002 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pcctwo_68k.c,v 1.4 2003/07/15 02:43:47 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pcctwo_68k.c,v 1.5 2005/06/03 08:49:03 scw Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -73,7 +73,7 @@
 /*
  * Devices that live on the PCCchip2, attached in this order.
  */
-static struct pcctwo_device pcctwo_devices[] = {
+static const struct pcctwo_device pcctwo_devices[] = {
        {"clock", 0},
        {"clmpcc", PCCTWO_SCC_OFF},
        {"ie", PCCTWO_IE_OFF},
@@ -106,7 +106,7 @@
 /*
  * Devices that live on the MCchip, attached in this order.
  */
-static struct pcctwo_device mcchip_devices[] = {
+static const struct pcctwo_device mcchip_devices[] = {
        {"clock", 0},
        {"zsc", MCCHIP_ZS0_OFF},
        {"zsc", MCCHIP_ZS1_OFF},
@@ -194,7 +194,7 @@
 {
        struct mainbus_attach_args *ma;
        struct pcctwo_softc *sc;
-       struct pcctwo_device *pd = NULL;
+       const struct pcctwo_device *pd = NULL;
        u_int8_t cid;
 
        ma = args;
diff -r d8678a4dafa6 -r 3dbf9bf6413d sys/arch/mvme68k/dev/sbic.c
--- a/sys/arch/mvme68k/dev/sbic.c       Fri Jun 03 08:45:47 2005 +0000
+++ b/sys/arch/mvme68k/dev/sbic.c       Fri Jun 03 08:49:03 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sbic.c,v 1.25 2003/11/01 20:04:57 scw Exp $    */
+/*     $NetBSD: sbic.c,v 1.26 2005/06/03 08:49:03 scw Exp $    */
 
 /*
  * Copyright (c) 1990 The Regents of the University of California.
@@ -86,7 +86,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sbic.c,v 1.25 2003/11/01 20:04:57 scw Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sbic.c,v 1.26 2005/06/03 08:49:03 scw Exp $");
 
 #include "opt_ddb.h"
 
@@ -140,7 +140,7 @@
 int     sbicpoll            __P((struct sbic_softc *));
 int     sbicnextstate       __P((struct sbic_softc *, u_char, u_char));
 int     sbicmsgin           __P((struct sbic_softc *));
-int     sbicabort           __P((struct sbic_softc *, char *));
+int     sbicabort           __P((struct sbic_softc *, const char *));
 void    sbicxfdone          __P((struct sbic_softc *));
 void    sbicerror           __P((struct sbic_softc *,u_char));
 void    sbicreset           __P((struct sbic_softc *));
@@ -754,7 +754,7 @@
 int
 sbicabort(dev, where)
     struct sbic_softc   *dev;
-    char                *where;
+    const char          *where;
 {
     sbic_regmap_p   regs = dev->sc_sbicp;
     u_char          csr,
diff -r d8678a4dafa6 -r 3dbf9bf6413d sys/dev/mvme/pcctwo.c
--- a/sys/dev/mvme/pcctwo.c     Fri Jun 03 08:45:47 2005 +0000
+++ b/sys/dev/mvme/pcctwo.c     Fri Jun 03 08:49:03 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pcctwo.c,v 1.4 2005/02/04 02:10:44 perry Exp $ */
+/*     $NetBSD: pcctwo.c,v 1.5 2005/06/03 08:49:03 scw Exp $   */
 
 /*-
  * Copyright (c) 1999, 2002 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pcctwo.c,v 1.4 2005/02/04 02:10:44 perry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pcctwo.c,v 1.5 2005/06/03 08:49:03 scw Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -66,7 +66,7 @@
 void
 pcctwo_init(sc, pd, devoff)
        struct pcctwo_softc *sc;
-       struct pcctwo_device *pd;
+       const struct pcctwo_device *pd;
        int devoff;
 {
        struct pcctwo_attach_args npa;
diff -r d8678a4dafa6 -r 3dbf9bf6413d sys/dev/mvme/pcctwovar.h
--- a/sys/dev/mvme/pcctwovar.h  Fri Jun 03 08:45:47 2005 +0000
+++ b/sys/dev/mvme/pcctwovar.h  Fri Jun 03 08:49:03 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pcctwovar.h,v 1.1 2002/02/12 20:38:50 scw Exp $        */
+/*     $NetBSD: pcctwovar.h,v 1.2 2005/06/03 08:49:03 scw Exp $        */
 
 /*-
  * Copyright (c) 2000, 2002 The NetBSD Foundation, Inc.
@@ -56,7 +56,7 @@
  * Structure used to describe a device for autoconfiguration purposes.
  */
 struct pcctwo_device {
-       char *pcc_name;         /* name of device (e.g. "clock") */
+       const char *pcc_name;   /* name of device (e.g. "clock") */
        bus_addr_t pcc_offset;  /* offset from PCC2 base */
 };
 
@@ -94,7 +94,8 @@
 
 extern struct pcctwo_softc *sys_pcctwo;
 
-extern void pcctwo_init(struct pcctwo_softc *, struct pcctwo_device *, int);
+extern void pcctwo_init(struct pcctwo_softc *,
+               const struct pcctwo_device *, int);
 extern struct evcnt *pcctwointr_evcnt(int);
 extern void pcctwointr_establish(int, int (*)(void *), int, void *,
                struct evcnt *);



Home | Main Index | Thread Index | Old Index