summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sparc/shared/include/drvmgr/ambapp_bus_grlib.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/sparc/shared/include/drvmgr/ambapp_bus_grlib.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/sparc/shared/include/drvmgr/ambapp_bus_grlib.h b/c/src/lib/libbsp/sparc/shared/include/drvmgr/ambapp_bus_grlib.h
new file mode 100644
index 0000000000..a0e0548e32
--- /dev/null
+++ b/c/src/lib/libbsp/sparc/shared/include/drvmgr/ambapp_bus_grlib.h
@@ -0,0 +1,33 @@
+/* LEON3 GRLIB AMBA Plug & Play bus driver interface.
+ *
+ * COPYRIGHT (c) 2008.
+ * Cobham Gaisler AB.
+ *
+ * This is driver is a wrapper for the general AMBA Plug & Play bus
+ * driver. This is the root bus driver for GRLIB systems.
+ *
+ * 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.
+ */
+
+#ifndef __AMBAPP_BUS_GRLIB_H__
+#define __AMBAPP_BUS_GRLIB_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+struct grlib_config {
+ struct ambapp_bus *abus;
+ struct drvmgr_bus_res *resources;
+};
+
+/* Register GRLIB AMBA PnP Bus as root bus at driver manager */
+extern int ambapp_grlib_root_register(struct grlib_config *config);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif