summaryrefslogtreecommitdiffstats
path: root/rtemsbsd/include/rtems/bsd/bsd.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-26 15:00:44 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-26 15:20:59 +0200
commit5b93cc84b42ab7a0328dee9488c69c76ac5a84a2 (patch)
tree5d6873860483891bea1d88598292dfa653bb17bd /rtemsbsd/include/rtems/bsd/bsd.h
parentmedia01: Add telnetd (diff)
downloadrtems-libbsd-5b93cc84b42ab7a0328dee9488c69c76ac5a84a2.tar.bz2
Add root bus support functions
Diffstat (limited to 'rtemsbsd/include/rtems/bsd/bsd.h')
-rw-r--r--rtemsbsd/include/rtems/bsd/bsd.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/rtemsbsd/include/rtems/bsd/bsd.h b/rtemsbsd/include/rtems/bsd/bsd.h
index 1014a96e..ecffcb48 100644
--- a/rtemsbsd/include/rtems/bsd/bsd.h
+++ b/rtemsbsd/include/rtems/bsd/bsd.h
@@ -143,6 +143,38 @@ uintptr_t rtems_bsd_get_allocator_domain_size(
void rtems_bsd_get_mac_address(const char *name, int unit,
uint8_t mac_addr[6]);
+/**
+ * @brief Attach the root bus.
+ *
+ * @retval 0 Successful operation.
+ * @retval errno Otherwise.
+ */
+int rtems_bsd_bus_root_attach(void);
+
+/**
+ * @brief Suspend the root bus.
+ *
+ * @retval 0 Successful operation.
+ * @retval errno Otherwise.
+ */
+int rtems_bsd_bus_root_suspend(void);
+
+/**
+ * @brief Resume the root bus.
+ *
+ * @retval 0 Successful operation.
+ * @retval errno Otherwise.
+ */
+int rtems_bsd_bus_root_resume(void);
+
+/**
+ * @brief Detach the root bus.
+ *
+ * @retval 0 Successful operation.
+ * @retval errno Otherwise.
+ */
+int rtems_bsd_bus_root_detach(void);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */