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


Ignore:
Timestamp:
2010-04-23T11:30:25Z (14 years ago)
Author:
Lenka Trochtova <trochtova.lenka@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5af21c5
Parents:
a78fa2a
Message:

added device states (usable, invalid, not present, not initialized); add_device driver callback method returns integer (errno) instead of bool

File:
1 edited

Legend:

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

    ra78fa2a rdf747b9c  
    9393} driver_list_t;
    9494
     95/** The state of the device. */
     96typedef enum {
     97        DEVICE_NOT_INITIALIZED = 0,
     98        DEVICE_USABLE,
     99        DEVICE_NOT_PRESENT,
     100        DEVICE_INVALID
     101} device_state_t;
     102
    95103/** Representation of a node in the device tree.*/
    96104struct node {
     
    113121        /** Driver of this device.*/
    114122        driver_t *drv;
     123        /** The state of the device. */
     124        device_state_t state;
    115125        /** Pointer to the previous and next device in the list of devices
    116126            owned by one driver */
Note: See TracChangeset for help on using the changeset viewer.