diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-01-26 22:37:50 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-01-26 22:37:50 +0000 |
commit | b617010d5ac81cf70ab82d9cae430567245ecf05 (patch) | |
tree | 901c24808742d5a52d57e979b95008645a7420d9 | |
parent | ce2a3fa0c39fb10c4d65a8795449bb1125e259be (diff) |
constify BA1
-rw-r--r-- | sys/dev/pci/cs4280.c | 6 | ||||
-rw-r--r-- | sys/dev/pci/cs4280_image.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/pci/cs4280.c b/sys/dev/pci/cs4280.c index 44f1168fbd7..f481b9b2be6 100644 --- a/sys/dev/pci/cs4280.c +++ b/sys/dev/pci/cs4280.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cs4280.c,v 1.5 2000/09/17 20:31:20 marc Exp $ */ +/* $OpenBSD: cs4280.c,v 1.6 2001/01/26 22:37:48 mickey Exp $ */ /* $NetBSD: cs4280.c,v 1.5 2000/06/26 04:56:23 simonb Exp $ */ /* @@ -176,7 +176,7 @@ int cs4280_intr __P((void *)); void cs4280_reset __P((void *)); int cs4280_download_image __P((struct cs4280_softc *)); -int cs4280_download(struct cs4280_softc *, u_int32_t *, u_int32_t, u_int32_t); +int cs4280_download(struct cs4280_softc *, const u_int32_t *, u_int32_t, u_int32_t); int cs4280_allocmem __P((struct cs4280_softc *, size_t, size_t, struct cs4280_dma *)); int cs4280_freemem __P((struct cs4280_softc *, struct cs4280_dma *)); @@ -827,7 +827,7 @@ cs4280_intr(p) int cs4280_download(sc, src, offset, len) struct cs4280_softc *sc; - u_int32_t *src; + const u_int32_t *src; u_int32_t offset, len; { u_int32_t ctr; diff --git a/sys/dev/pci/cs4280_image.h b/sys/dev/pci/cs4280_image.h index ba90e4f9ced..a1f61b30a0a 100644 --- a/sys/dev/pci/cs4280_image.h +++ b/sys/dev/pci/cs4280_image.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cs4280_image.h,v 1.1 2000/06/30 03:28:07 art Exp $ */ +/* $OpenBSD: cs4280_image.h,v 1.2 2001/01/26 22:37:49 mickey Exp $ */ /* $NetBSD: cs4280_image.h,v 1.1 1999/12/13 20:19:24 augustss Exp $ */ /* This source is based on cwcimage.h in cwcealdr1.zip, the @@ -12,7 +12,7 @@ #ifndef _CLCS_IMAGE_H #define _CLCS_IMAGE_H -struct BA1struct BA1Struct = { +static const struct BA1struct BA1Struct = { {{ 0x00000000, 0x00003000 },{ 0x00010000, 0x00003800 },{ 0x00020000, 0x00007000 }}, {0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000, |