Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x68k/include Constify the buffer pointer argument o...
details: https://anonhg.NetBSD.org/src/rev/3e7c8ef8318c
branches: trunk
changeset: 753170:3e7c8ef8318c
user: he <he%NetBSD.org@localhost>
date: Fri Mar 19 08:28:44 2010 +0000
description:
Constify the buffer pointer argument of the _bus_space_write_multi_<n>
inline functions, so that this builds again. (Otherwise, ne2000.c driver
would now fail to build.)
diffstat:
sys/arch/x68k/include/bus.h | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (53 lines):
diff -r 8a4612ffdac7 -r 3e7c8ef8318c sys/arch/x68k/include/bus.h
--- a/sys/arch/x68k/include/bus.h Fri Mar 19 07:35:29 2010 +0000
+++ b/sys/arch/x68k/include/bus.h Fri Mar 19 08:28:44 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus.h,v 1.18 2008/04/28 20:23:40 martin Exp $ */
+/* $NetBSD: bus.h,v 1.19 2010/03/19 08:28:44 he Exp $ */
/*-
* Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@@ -223,13 +223,13 @@
static __inline void _bus_space_write_multi_1
(bus_space_tag_t, bus_space_handle_t, bus_size_t,
- u_int8_t *, bus_size_t);
+ const u_int8_t *, bus_size_t);
static __inline void _bus_space_write_multi_2
(bus_space_tag_t, bus_space_handle_t, bus_size_t,
- u_int16_t *, bus_size_t);
+ const u_int16_t *, bus_size_t);
static __inline void _bus_space_write_multi_4
(bus_space_tag_t, bus_space_handle_t, bus_size_t,
- u_int32_t *, bus_size_t);
+ const u_int32_t *, bus_size_t);
static __inline void _bus_space_write_region_1
(bus_space_tag_t, bus_space_handle_t, bus_size_t,
@@ -466,7 +466,7 @@
bus_space_tag_t t;
bus_space_handle_t bsh;
bus_size_t offset;
- u_int8_t *datap;
+ const u_int8_t *datap;
bus_size_t count;
{
#if X68K_BUS_PERFORMANCE_HACK
@@ -488,7 +488,7 @@
bus_space_tag_t t;
bus_space_handle_t bsh;
bus_size_t offset;
- u_int16_t *datap;
+ const u_int16_t *datap;
bus_size_t count;
{
#if X68K_BUS_PERFORMANCE_HACK
@@ -510,7 +510,7 @@
bus_space_tag_t t;
bus_space_handle_t bsh;
bus_size_t offset;
- u_int32_t *datap;
+ const u_int32_t *datap;
bus_size_t count;
{
#if X68K_BUS_PERFORMANCE_HACK
Home |
Main Index |
Thread Index |
Old Index