[rtems-libbsd commit] Add root bus support functions

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Apr 27 05:53:18 UTC 2016



On 27/04/16 04:27, Chris Johns wrote:
> On 26/04/2016 23:22, Sebastian Huber wrote:
>>
>> Add root bus support functions
>>
>
> How and why would you use these functions?

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

Suspend and resume can be used to go into a power saving state. Detach 
to shutdown the system and do a warm reset.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




More information about the devel mailing list