Module Name:    src
Committed By:   dyoung
Date:           Mon Jul 25 16:06:58 UTC 2011

Modified Files:
        src/sys/arch/sh3/include: bus_funcs.h
        src/sys/arch/sh3/sh3: sh3_machdep.c

Log Message:
Move the sh_memio_*() declarations back to sh3/include/bus_funcs.h.
Should fix the mmeye build.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/sh3/include/bus_funcs.h
cvs rdiff -u -r1.94 -r1.95 src/sys/arch/sh3/sh3/sh3_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/sh3/include/bus_funcs.h
diff -u src/sys/arch/sh3/include/bus_funcs.h:1.2 src/sys/arch/sh3/include/bus_funcs.h:1.3
--- src/sys/arch/sh3/include/bus_funcs.h:1.2	Wed Jul 20 21:30:13 2011
+++ src/sys/arch/sh3/include/bus_funcs.h	Mon Jul 25 16:06:58 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: bus_funcs.h,v 1.2 2011/07/20 21:30:13 dyoung Exp $	*/
+/*	$NetBSD: bus_funcs.h,v 1.3 2011/07/25 16:06:58 dyoung Exp $	*/
 
 /*-
  * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -78,6 +78,13 @@
     bus_size_t, bus_size_t, bus_space_handle_t *);
 #endif
 
+int sh_memio_alloc(bus_space_tag_t, bus_addr_t, bus_addr_t, bus_size_t,
+    bus_size_t, bus_size_t, int, bus_addr_t *, bus_space_handle_t *);
+void sh_memio_free(bus_space_tag_t, bus_space_handle_t, bus_size_t);
+void sh_memio_unmap(bus_space_tag_t, bus_space_handle_t, bus_size_t);
+int sh_memio_subregion(bus_space_tag_t, bus_space_handle_t,
+    bus_size_t, bus_size_t, bus_space_handle_t *);
+
 /*
  * Bus read/write barrier methods.
  *

Index: src/sys/arch/sh3/sh3/sh3_machdep.c
diff -u src/sys/arch/sh3/sh3/sh3_machdep.c:1.94 src/sys/arch/sh3/sh3/sh3_machdep.c:1.95
--- src/sys/arch/sh3/sh3/sh3_machdep.c:1.94	Mon Jul 25 16:02:25 2011
+++ src/sys/arch/sh3/sh3/sh3_machdep.c	Mon Jul 25 16:06:58 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: sh3_machdep.c,v 1.94 2011/07/25 16:02:25 dyoung Exp $	*/
+/*	$NetBSD: sh3_machdep.c,v 1.95 2011/07/25 16:06:58 dyoung Exp $	*/
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2002 The NetBSD Foundation, Inc.
@@ -65,7 +65,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sh3_machdep.c,v 1.94 2011/07/25 16:02:25 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sh3_machdep.c,v 1.95 2011/07/25 16:06:58 dyoung Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -708,8 +708,6 @@
  *
  * Allocate a region of bus space.
  */
-int sh_memio_alloc(bus_space_tag_t, bus_addr_t, bus_addr_t, bus_size_t,
-    bus_size_t, bus_size_t, int, bus_addr_t *, bus_space_handle_t *);
 
 #define	bus_space_alloc(t, rs, re, s, a, b, f, ap, hp)			\
 	sh_memio_alloc((t), (rs), (re), (s), (a), (b), (f), (ap), (hp))
@@ -720,7 +718,6 @@
  *
  * Free a region of bus space.
  */
-void sh_memio_free(bus_space_tag_t, bus_space_handle_t, bus_size_t);
 
 #define	bus_space_free(t, h, s)						\
 	sh_memio_free((t), (h), (s))
@@ -731,7 +728,6 @@
  *
  * Unmap a region of bus space.
  */
-void sh_memio_unmap(bus_space_tag_t, bus_space_handle_t, bus_size_t);
 
 #define	bus_space_unmap(t, h, s)					\
 	sh_memio_unmap((t), (h), (s))
@@ -743,8 +739,6 @@
  *
  * Get a new handle for a subregion of an already-mapped area of bus space.
  */
-int sh_memio_subregion(bus_space_tag_t, bus_space_handle_t,
-    bus_size_t, bus_size_t, bus_space_handle_t *);
 
 #define	bus_space_subregion(t, h, o, s, nhp)				\
 	sh_memio_subregion((t), (h), (o), (s), (nhp))

Reply via email to