Ignore:
File:
1 edited

Legend:

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

    rb72efe8 r3ad7b1c  
    4444#include <fibril_synch.h>
    4545#include <atomic.h>
    46 #include <async.h>
    4746
    4847#include "util.h"
     
    8887        int state;
    8988       
    90         /** Session asociated with this driver. */
    91         async_sess_t *sess;
     89        /** Phone asociated with this driver. */
     90        int phone;
    9291        /** Name of the device driver. */
    9392        char *name;
     
    9695        /** List of device ids for device-to-driver matching. */
    9796        match_id_list_t match_ids;
    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.
     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.
    103102         */
    104103        fibril_mutex_t driver_mutex;
     
    108107typedef struct driver_list {
    109108        /** List of drivers */
    110         list_t drivers;
     109        link_t drivers;
    111110        /** Fibril mutex for list of drivers. */
    112111        fibril_mutex_t drivers_mutex;
     
    130129       
    131130        /** List of device functions. */
    132         list_t functions;
     131        link_t functions;
    133132        /** Driver of this device. */
    134133        driver_t *drv;
     
    170169        match_id_list_t match_ids;
    171170       
    172         /** List of device classes to which this device function belongs. */
    173         list_t classes;
     171        /** The list of device classes to which this device function belongs. */
     172        link_t classes;
    174173        /** Devmap handle if the device function is registered by devmap. */
    175174        devmap_handle_t devmap_handle;
     
    228227         * this class.
    229228         */
    230         list_t devices;
     229        link_t devices;
    231230       
    232231        /**
     
    280279typedef struct class_list {
    281280        /** List of classes. */
    282         list_t classes;
     281        link_t classes;
    283282       
    284283        /**
     
    313312extern void add_driver(driver_list_t *, driver_t *);
    314313extern void attach_driver(dev_node_t *, driver_t *);
    315 extern void add_device(async_sess_t *, driver_t *, dev_node_t *, dev_tree_t *);
     314extern void add_device(int, driver_t *, dev_node_t *, dev_tree_t *);
    316315extern bool start_driver(driver_t *);
    317316
Note: See TracChangeset for help on using the changeset viewer.