Add root bus support functions

This commit is contained in:
Sebastian Huber
2016-04-26 15:00:44 +02:00
parent 5edcb9ecd2
commit 5b93cc84b4
4 changed files with 125 additions and 0 deletions

View File

@@ -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 */