Source-Changes-HG archive

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

[src/trunk]: src/sys/sys Put back bus_space_handle_is_equal() and bus_space_i...



details:   https://anonhg.NetBSD.org/src/rev/827a08046f20
branches:  trunk
changeset: 768553:827a08046f20
user:      he <he%NetBSD.org@localhost>
date:      Sat Aug 20 06:00:14 2011 +0000

description:
Put back bus_space_handle_is_equal() and bus_space_is_equal() in
the non-__HAVE_NEW_STYLE_BUS_H case, since bus_proto.h isn't and
can't be included in that case.  Restores buildable state for
ports which don't (yet) define __HAVE_NEW_STYLE_BUS_H.  Also add
comments to preprocessing directives spaced far apart.

OK'ed by dyoung@

diffstat:

 sys/sys/bus.h |  13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b5cc7317019c -r 827a08046f20 sys/sys/bus.h
--- a/sys/sys/bus.h     Fri Aug 19 11:56:01 2011 +0000
+++ b/sys/sys/bus.h     Sat Aug 20 06:00:14 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bus.h,v 1.7 2011/08/17 14:52:09 dyoung Exp $   */
+/*     $NetBSD: bus.h,v 1.8 2011/08/20 06:00:14 he Exp $       */
 
 /*-
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -159,8 +159,15 @@
 #include <sys/bus_proto.h>
 
 #include <machine/bus_funcs.h>
-#else
+
+#else /* !__HAVE_NEW_STYLE_BUS_H */
+
 #include <machine/bus.h>
-#endif
+
+bool   bus_space_is_equal(bus_space_tag_t, bus_space_tag_t);
+bool   bus_space_handle_is_equal(bus_space_tag_t, bus_space_handle_t,
+    bus_space_handle_t);
+
+#endif /* __HAVE_NEW_STYLE_BUS_H */
 
 #endif /* _SYS_BUS_H_ */



Home | Main Index | Thread Index | Old Index