Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/bus.h
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | |||||
/** | /** | ||||
* @brief State of the device. | * @brief State of the device. | ||||
*/ | */ | ||||
typedef enum device_state { | typedef enum device_state { | ||||
DS_NOTPRESENT = 10, /**< @brief not probed or probe failed */ | DS_NOTPRESENT = 10, /**< @brief not probed or probe failed */ | ||||
DS_ALIVE = 20, /**< @brief probe succeeded */ | DS_ALIVE = 20, /**< @brief probe succeeded */ | ||||
DS_ATTACHING = 25, /**< @brief currently attaching */ | DS_ATTACHING = 25, /**< @brief currently attaching */ | ||||
DS_ATTACHED = 30, /**< @brief attach method called */ | DS_ATTACHED = 30, /**< @brief attach method called */ | ||||
DS_BUSY = 40 /**< @brief device is open */ | |||||
} device_state_t; | } device_state_t; | ||||
/** | /** | ||||
* @brief Device information exported to userspace. | * @brief Device information exported to userspace. | ||||
* The strings are placed one after the other, separated by NUL characters. | * The strings are placed one after the other, separated by NUL characters. | ||||
* Fields should be added after the last one and order maintained for compatibility | * Fields should be added after the last one and order maintained for compatibility | ||||
*/ | */ | ||||
#define BUS_USER_BUFFER (3*1024) | #define BUS_USER_BUFFER (3*1024) | ||||
▲ Show 20 Lines • Show All 914 Lines • Show Last 20 Lines |