summaryrefslogtreecommitdiff
path: root/include/amba.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/amba.h')
-rw-r--r--include/amba.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/include/amba.h b/include/amba.h
new file mode 100644
index 0000000000..2bbc33308c
--- /dev/null
+++ b/include/amba.h
@@ -0,0 +1,50 @@
+/**
+ * @file
+ * @defgroup amba AMBA Driver Handler
+ * @ingroup sparc_leon3
+ * @brief AMBA Plag & Play Bus Driver Macros
+ */
+
+/*
+ * AMBA Plag & Play Bus Driver Macros
+ *
+ * Macros used for AMBA Plug & Play bus scanning
+ *
+ * COPYRIGHT (c) 2004.
+ * Gaisler Research
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#ifndef __AMBA_H__
+#define __AMBA_H__
+
+#define LEON3_IO_AREA 0xfff00000
+#define LEON3_CONF_AREA 0xff000
+#define LEON3_AHB_SLAVE_CONF_AREA (1 << 11)
+
+#define LEON3_AHB_CONF_WORDS 8
+#define LEON3_APB_CONF_WORDS 2
+#define LEON3_AHB_MASTERS 64
+#define LEON3_AHB_SLAVES 64
+#define LEON3_APB_SLAVES 16
+
+#include <ambapp.h>
+#include <grlib.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* The AMBA Plug&Play info of the bus that the LEON3 sits on */
+extern struct ambapp_bus ambapp_plb;
+
+void amba_initialize(void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __AMBA_H__ */