Changeset c1a0488 in mainline for uspace/srv/devman/devman.h


Ignore:
Timestamp:
2011-09-02T15:58:02Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e2b9b341
Parents:
aff587f
Message:

Track basic device and function states.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/devman/devman.h

    raff587f rc1a0488  
    118118} driver_list_t;
    119119
    120 /** The state of the device. */
     120/** Device state */
    121121typedef enum {
    122122        DEVICE_NOT_INITIALIZED = 0,
    123123        DEVICE_USABLE,
    124124        DEVICE_NOT_PRESENT,
    125         DEVICE_INVALID
     125        DEVICE_INVALID,
     126        /** Device node has been removed from the tree */
     127        DEVICE_REMOVED
    126128} device_state_t;
    127129
     
    157159};
    158160
     161/** Function state */
     162typedef enum {
     163        FUN_INIT = 0,
     164        FUN_OFF_LINE,
     165        FUN_ON_LINE,
     166        /** Function node has been removed from the tree */
     167        FUN_REMOVED
     168} fun_state_t;
     169
    159170/** Function node in the device tree. */
    160171struct fun_node {
    161172        /** Reference count */
    162173        atomic_t refcnt;
     174        /** State */
     175        fun_state_t state;
    163176       
    164177        /** The global unique identifier of the function */
Note: See TracChangeset for help on using the changeset viewer.