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


Ignore:
Timestamp:
2011-07-08T17:01:01Z (13 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cc1a727
Parents:
4e36219 (diff), 026793d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes

File:
1 edited

Legend:

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

    r4e36219 rc028b22  
    4444#include <fibril_synch.h>
    4545#include <atomic.h>
     46#include <async.h>
    4647
    4748#include "util.h"
     
    8788        int state;
    8889       
    89         /** Phone asociated with this driver. */
    90         int phone;
     90        /** Session asociated with this driver. */
     91        async_sess_t *sess;
    9192        /** Name of the device driver. */
    9293        char *name;
     
    9596        /** List of device ids for device-to-driver matching. */
    9697        match_id_list_t match_ids;
    97         /** Pointer to the linked list of devices controlled by this driver. */
    98         link_t devices;
    99        
    100         /**
    101          * Fibril mutex for this driver - driver state, list of devices, phone.
     98        /** List of devices controlled by this driver. */
     99        list_t devices;
     100       
     101        /**
     102         * Fibril mutex for this driver - driver state, list of devices, session.
    102103         */
    103104        fibril_mutex_t driver_mutex;
     
    107108typedef struct driver_list {
    108109        /** List of drivers */
    109         link_t drivers;
     110        list_t drivers;
    110111        /** Fibril mutex for list of drivers. */
    111112        fibril_mutex_t drivers_mutex;
     
    129130       
    130131        /** List of device functions. */
    131         link_t functions;
     132        list_t functions;
    132133        /** Driver of this device. */
    133134        driver_t *drv;
     
    169170        match_id_list_t match_ids;
    170171       
    171         /** The list of device classes to which this device function belongs. */
    172         link_t classes;
     172        /** List of device classes to which this device function belongs. */
     173        list_t classes;
    173174        /** Devmap handle if the device function is registered by devmap. */
    174175        devmap_handle_t devmap_handle;
     
    227228         * this class.
    228229         */
    229         link_t devices;
     230        list_t devices;
    230231       
    231232        /**
     
    279280typedef struct class_list {
    280281        /** List of classes. */
    281         link_t classes;
     282        list_t classes;
    282283       
    283284        /**
     
    312313extern void add_driver(driver_list_t *, driver_t *);
    313314extern void attach_driver(dev_node_t *, driver_t *);
    314 extern void add_device(int, driver_t *, dev_node_t *, dev_tree_t *);
     315extern void add_device(async_sess_t *, driver_t *, dev_node_t *, dev_tree_t *);
    315316extern bool start_driver(driver_t *);
    316317
Note: See TracChangeset for help on using the changeset viewer.