Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/include/ddf/driver.h

    r609243f4 r77ad86c  
    8181         */
    8282        devman_handle_t handle;
     83       
    8384        /** Reference count */
    8485        atomic_t refcnt;
     
    104105        /** True if bound to the device manager */
    105106        bool bound;
     107       
    106108        /** Function indentifier (asigned by device manager) */
    107109        devman_handle_t handle;
     110       
    108111        /** Reference count */
    109112        atomic_t refcnt;
     
    114117        /** Function type */
    115118        fun_type_t ftype;
     119       
    116120        /** Function name */
    117121        const char *name;
     122       
    118123        /** List of device ids for driver matching */
    119124        match_id_list_t match_ids;
     125       
    120126        /** Driver-specific data associated with this function */
    121127        void *driver_data;
     128       
    122129        /** Implementation of operations provided by this function */
    123130        ddf_dev_ops_t *ops;
     131       
    124132        /** Connection handler or @c NULL to use the DDF default handler. */
    125133        async_client_conn_t conn_handler;
     
    136144typedef struct driver_ops {
    137145        /** Callback method for passing a new device to the device driver */
    138         int (*add_device)(ddf_dev_t *);
    139         /**
    140          * Notification that the device was succesfully added.
    141          * The driver can do any blocking operation without
    142          * blocking the device manager.
    143          */
    144         void (*device_added)(ddf_dev_t *dev);
     146        int (*dev_add)(ddf_dev_t *);
     147       
    145148        /** Ask driver to remove a device */
    146149        int (*dev_remove)(ddf_dev_t *);
     150       
    147151        /** Inform driver a device disappeared */
    148152        int (*dev_gone)(ddf_dev_t *);
     153       
    149154        /** Ask driver to online a specific function */
    150155        int (*fun_online)(ddf_fun_t *);
     156       
    151157        /** Ask driver to offline a specific function */
    152158        int (*fun_offline)(ddf_fun_t *);
Note: See TracChangeset for help on using the changeset viewer.