summaryrefslogtreecommitdiffstats
path: root/bsps/include
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-06-10 13:04:13 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-06-17 12:58:33 +0200
commit2c07f24af210c4738fbe6f75a53c58fbd80fb658 (patch)
tree4d8e061e716beb451cdb45bd8761f2025ce062bb /bsps/include
parentgrlib: Customizable allocation in ambapp_scan() (diff)
downloadrtems-2c07f24af210c4738fbe6f75a53c58fbd80fb658.tar.bz2
grlib: Add ambapp_plb()
Replace the global variable ambapp_plb with a function to allow an automatic on demand initialization.
Diffstat (limited to 'bsps/include')
-rw-r--r--bsps/include/grlib/ambapp.h5
-rw-r--r--bsps/include/grlib/grlib_impl.h2
2 files changed, 5 insertions, 2 deletions
diff --git a/bsps/include/grlib/ambapp.h b/bsps/include/grlib/ambapp.h
index 2091103551..bcc26e1efe 100644
--- a/bsps/include/grlib/ambapp.h
+++ b/bsps/include/grlib/ambapp.h
@@ -188,6 +188,11 @@ struct ambapp_context {
void *(*alloc)(size_t);
};
+/**
+ * @brief Gets the fully scanned AMBA Plug & Play Processor Local Bus (PLB).
+ */
+extern struct ambapp_bus *ambapp_plb(void);
+
/* Scan a AMBA Plug & Play bus and create all device structures describing the
* the devices. The devices will form a tree, where every node describes one
* interface. The resulting tree is placed in the location pointed to by root.
diff --git a/bsps/include/grlib/grlib_impl.h b/bsps/include/grlib/grlib_impl.h
index 3bff2af0da..919f6d69ab 100644
--- a/bsps/include/grlib/grlib_impl.h
+++ b/bsps/include/grlib/grlib_impl.h
@@ -157,8 +157,6 @@ RTEMS_INLINE_ROUTINE unsigned int grlib_read_uncached32(unsigned int address)
#endif
-extern struct ambapp_bus ambapp_plb;
-
#ifdef __cplusplus
}
#endif