summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/shared/vmeUniverse/vmeTsi148.h
diff options
context:
space:
mode:
authorTill Straumann <strauman@slac.stanford.edu>2006-11-30 02:28:49 +0000
committerTill Straumann <strauman@slac.stanford.edu>2006-11-30 02:28:49 +0000
commit43ea3692ceb89bb1de2bbaa0a63ada28380c39c2 (patch)
tree979940bee8015074905d4c0e6491f8b3805326af /c/src/lib/libbsp/shared/vmeUniverse/vmeTsi148.h
parent2006-11-27 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-43ea3692ceb89bb1de2bbaa0a63ada28380c39c2.tar.bz2
* vmeUniverse/vmeTsi148.h: user now must define a symbol
for the header to declare 'dump info'-style routine. This is in order to avoid pulling in <stdio.h>.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/shared/vmeUniverse/vmeTsi148.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/shared/vmeUniverse/vmeTsi148.h b/c/src/lib/libbsp/shared/vmeUniverse/vmeTsi148.h
index 0e2bcc2327..575e23daec 100644
--- a/c/src/lib/libbsp/shared/vmeUniverse/vmeTsi148.h
+++ b/c/src/lib/libbsp/shared/vmeUniverse/vmeTsi148.h
@@ -191,6 +191,16 @@ vmeTsi148XlateAddr(
unsigned long *paOut/* where to put result */
);
+
+/* avoid pulling stdio.h into this header.
+ * Applications that want a declaration of the
+ * following routines should
+ * #include <stdio.h>
+ * #define _VME_TSI148_DECLARE_SHOW_ROUTINES
+ * #include <vmeTsi148.h>
+ */
+#ifdef _VME_TSI148_DECLARE_SHOW_ROUTINES
+
/* Print the current configuration of all outbound ports to
* f (stdout if NULL)
*/
@@ -211,6 +221,8 @@ vmeTsi148InboundPortsShowXX(BERegister *base, FILE *f);
void
vmeTsi148InboundPortsShow(FILE *f);
+#endif
+
/* Disable all in- or out-bound ports, respectively */
void