summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sparc/shared/include
diff options
context:
space:
mode:
authorDaniel Hellstrom <daniel@gaisler.com>2015-02-10 16:05:38 +0100
committerDaniel Hellstrom <daniel@gaisler.com>2015-04-17 01:10:23 +0200
commit3f38335b02d1b9a7853a0e133b406f57428eb07f (patch)
tree28879e50cad41dd709b2aa46714efaf718c007d9 /c/src/lib/libbsp/sparc/shared/include
parentGR1553B: fixed build warnings (diff)
downloadrtems-3f38335b02d1b9a7853a0e133b406f57428eb07f.tar.bz2
LEON: added get_resarray_count() helper routine
Diffstat (limited to 'c/src/lib/libbsp/sparc/shared/include')
-rw-r--r--c/src/lib/libbsp/sparc/shared/include/drvmgr/bspcommon.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/sparc/shared/include/drvmgr/bspcommon.h b/c/src/lib/libbsp/sparc/shared/include/drvmgr/bspcommon.h
new file mode 100644
index 0000000000..08c6198859
--- /dev/null
+++ b/c/src/lib/libbsp/sparc/shared/include/drvmgr/bspcommon.h
@@ -0,0 +1,28 @@
+/* Common BSP/driver configuration routines.
+ *
+ * COPYRIGHT (c) 2015.
+ * Cobham Gaisler.
+ *
+ * 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 __BSPCOMMON_H__
+#define __BSPCOMMON_H__
+
+#include <drvmgr/drvmgr.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* Count driver resource array length. Array must be terminated with a NULL */
+int get_resarray_count(struct drvmgr_bus_res **array);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif