Add const.
This commit is contained in:
parent
d922af0c4b
commit
5304f91e7a
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: cgsix_obio.c,v 1.15 2005/06/04 04:39:34 tsutsui Exp $ */
|
||||
/* $NetBSD: cgsix_obio.c,v 1.16 2005/06/04 04:41:40 tsutsui Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -41,7 +41,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: cgsix_obio.c,v 1.15 2005/06/04 04:39:34 tsutsui Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: cgsix_obio.c,v 1.16 2005/06/04 04:41:40 tsutsui Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -127,7 +127,7 @@ cgsixattach(parent, self, aux)
|
||||
struct fbdevice *fb = &sc->sc_fb;
|
||||
bus_space_handle_t bh;
|
||||
int constype, isconsole;
|
||||
char *name;
|
||||
const char *name;
|
||||
|
||||
oba = &uoba->uoba_oba4;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: sbus.c,v 1.63 2004/12/13 02:39:07 chs Exp $ */
|
||||
/* $NetBSD: sbus.c,v 1.64 2005/06/04 04:40:57 tsutsui Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -81,7 +81,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: sbus.c,v 1.63 2004/12/13 02:39:07 chs Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: sbus.c,v 1.64 2005/06/04 04:40:57 tsutsui Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/malloc.h>
|
||||
@ -366,7 +366,7 @@ sbus_attach_xbox(parent, self, aux)
|
||||
void
|
||||
sbus_attach_common(sc, busname, busnode, specials)
|
||||
struct sbus_softc *sc;
|
||||
char *busname;
|
||||
const char *busname;
|
||||
int busnode;
|
||||
const char * const *specials;
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: iommuvar.h,v 1.7 2002/08/25 16:02:54 thorpej Exp $ */
|
||||
/* $NetBSD: iommuvar.h,v 1.8 2005/06/04 04:40:57 tsutsui Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -44,7 +44,7 @@
|
||||
struct iommu_attach_args {
|
||||
bus_space_tag_t iom_bustag;
|
||||
bus_dma_tag_t iom_dmatag;
|
||||
char *iom_name; /* PROM node name */
|
||||
const char *iom_name; /* PROM node name */
|
||||
int iom_node; /* PROM handle */
|
||||
struct openprom_addr *iom_reg;
|
||||
int iom_nreg;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: cgsix_sbus.c,v 1.16 2005/05/16 14:29:11 macallan Exp $ */
|
||||
/* $NetBSD: cgsix_sbus.c,v 1.17 2005/06/04 04:41:40 tsutsui Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -41,7 +41,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: cgsix_sbus.c,v 1.16 2005/05/16 14:29:11 macallan Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: cgsix_sbus.c,v 1.17 2005/06/04 04:41:40 tsutsui Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -111,7 +111,7 @@ cgsixattach(parent, self, aux)
|
||||
struct sbus_attach_args *sa = aux;
|
||||
struct fbdevice *fb = &sc->sc_fb;
|
||||
int node, isconsole;
|
||||
char *name;
|
||||
const char *name;
|
||||
bus_space_handle_t bh;
|
||||
|
||||
/* Remember cookies for cgsix_mmap() */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: sbusvar.h,v 1.22 2005/02/27 00:27:48 perry Exp $ */
|
||||
/* $NetBSD: sbusvar.h,v 1.23 2005/06/04 04:40:57 tsutsui Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -85,7 +85,7 @@ struct sbus_attach_args {
|
||||
};
|
||||
|
||||
/* sbus_attach_internal() is also used from obio.c */
|
||||
void sbus_attach_common(struct sbus_softc *, char *, int,
|
||||
void sbus_attach_common(struct sbus_softc *, const char *, int,
|
||||
const char * const *);
|
||||
int sbus_print(void *, const char *);
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: xboxvar.h,v 1.2 2000/01/11 12:59:44 pk Exp $ */
|
||||
/* $NetBSD: xboxvar.h,v 1.3 2005/06/04 04:40:57 tsutsui Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -45,7 +45,7 @@
|
||||
struct xbox_attach_args {
|
||||
bus_space_tag_t xa_bustag;
|
||||
bus_dma_tag_t xa_dmatag;
|
||||
char *xa_name; /* PROM node name */
|
||||
const char *xa_name; /* PROM node name */
|
||||
int xa_node; /* PROM handle */
|
||||
};
|
||||
#endif /* _XBOX_VAR_H */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: cgsix.c,v 1.24 2005/05/22 03:45:08 macallan Exp $ */
|
||||
/* $NetBSD: cgsix.c,v 1.25 2005/06/04 04:41:40 tsutsui Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -85,7 +85,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: cgsix.c,v 1.24 2005/05/22 03:45:08 macallan Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: cgsix.c,v 1.25 2005/06/04 04:41:40 tsutsui Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -613,7 +613,7 @@ cg6_ras_do_cursor(struct rasops_info *ri)
|
||||
#endif /* (NWSDISPLAY > 0) || defined(RASTERCONSOLE) */
|
||||
|
||||
void
|
||||
cg6attach(struct cgsix_softc *sc, char *name, int isconsole)
|
||||
cg6attach(struct cgsix_softc *sc, const char *name, int isconsole)
|
||||
{
|
||||
struct fbdevice *fb = &sc->sc_fb;
|
||||
#if NWSDISPLAY > 0
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: cgsixvar.h,v 1.5 2005/05/16 14:29:11 macallan Exp $ */
|
||||
/* $NetBSD: cgsixvar.h,v 1.6 2005/06/04 04:41:40 tsutsui Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -109,4 +109,4 @@ extern int cgsix_use_rasterconsole;
|
||||
#define cgsix_use_rasterconsole 0
|
||||
#endif
|
||||
|
||||
void cg6attach(struct cgsix_softc *, char *, int);
|
||||
void cg6attach(struct cgsix_softc *, const char *, int);
|
||||
|
Loading…
Reference in New Issue
Block a user