summaryrefslogtreecommitdiffstats
path: root/tools/cpu/nios2/bridges.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/cpu/nios2/bridges.h')
-rw-r--r--tools/cpu/nios2/bridges.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/tools/cpu/nios2/bridges.h b/tools/cpu/nios2/bridges.h
new file mode 100644
index 0000000000..1d348dc2f2
--- /dev/null
+++ b/tools/cpu/nios2/bridges.h
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2006 Kolja Waschk rtemsdev/ixo.de
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ *
+ * $Id$
+ */
+
+#ifndef __NIOS2GEN_BRIDGES_H
+#define __NIOS2GEN_BRIDGES_H 1
+
+typedef struct bus_bridge_pair
+{
+ char *mastered_by;
+ char *bridges_to;
+ struct bus_bridge_pair *next;
+}
+bus_bridge_pair;
+
+bus_bridge_pair *find_bridges(struct ptf *p);
+
+int is_bridged(
+ char *cpu_master,
+ char *dev_master,
+ bus_bridge_pair *bridges);
+
+#endif
+
+