Changeset 8ff0bd2 in mainline for uspace/lib/drv/include


Ignore:
Timestamp:
2011-09-04T11:30:58Z (15 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
03bc76a
Parents:
d2c67e7 (diff), deac215e (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

Location:
uspace/lib/drv/include/ddf
Files:
3 edited

Legend:

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

    rd2c67e7 r8ff0bd2  
    8181         */
    8282        devman_handle_t handle;
     83        /** Reference count */
     84        atomic_t refcnt;
    8385       
    8486        /**
     
    104106        /** Function indentifier (asigned by device manager) */
    105107        devman_handle_t handle;
     108        /** Reference count */
     109        atomic_t refcnt;
    106110       
    107111        /** Device which this function belogs to */
     
    118122        /** Implementation of operations provided by this function */
    119123        ddf_dev_ops_t *ops;
     124        /** Connection handler or @c NULL to use the DDF default handler. */
     125        async_client_conn_t conn_handler;
    120126       
    121127        /** Link in the list of functions handled by the driver */
     
    130136typedef struct driver_ops {
    131137        /** Callback method for passing a new device to the device driver */
    132         int (*add_device)(ddf_dev_t *dev);
    133         /* TODO: add other generic driver operations */
     138        int (*add_device)(ddf_dev_t *);
     139        /** Ask driver to remove a device */
     140        int (*dev_remove)(ddf_dev_t *);
     141        /** Ask driver to online a specific function */
     142        int (*fun_online)(ddf_fun_t *);
     143        /** Ask driver to offline a specific function */
     144        int (*fun_offline)(ddf_fun_t *);
    134145} driver_ops_t;
    135146
     
    144155extern int ddf_driver_main(driver_t *);
    145156
     157extern void *ddf_dev_data_alloc(ddf_dev_t *, size_t);
    146158extern ddf_fun_t *ddf_fun_create(ddf_dev_t *, fun_type_t, const char *);
    147159extern void ddf_fun_destroy(ddf_fun_t *);
     160extern void *ddf_fun_data_alloc(ddf_fun_t *, size_t);
    148161extern int ddf_fun_bind(ddf_fun_t *);
     162extern int ddf_fun_unbind(ddf_fun_t *);
     163extern int ddf_fun_online(ddf_fun_t *);
     164extern int ddf_fun_offline(ddf_fun_t *);
    149165extern int ddf_fun_add_match_id(ddf_fun_t *, const char *, int);
    150166
    151 extern int ddf_fun_add_to_class(ddf_fun_t *, const char *);
     167extern int ddf_fun_add_to_category(ddf_fun_t *, const char *);
    152168
    153169#endif
  • uspace/lib/drv/include/ddf/interrupt.h

    rd2c67e7 r8ff0bd2  
    3636#define DDF_INTERRUPT_H_
    3737
    38 #include <kernel/ddi/irq.h>
     38#include <abi/ddi/irq.h>
    3939#include <adt/list.h>
    4040#include <ddi.h>
     
    6060typedef struct interrupt_context_list {
    6161        int curr_id;
    62         link_t contexts;
     62        list_t contexts;
    6363        fibril_mutex_t mutex;
    6464} interrupt_context_list_t;
  • uspace/lib/drv/include/ddf/log.h

    rd2c67e7 r8ff0bd2  
    3939extern void ddf_msg(log_level_t, const char *, ...);
    4040
     41extern void ddf_dump_buffer(char *, size_t, const void *, size_t, size_t,
     42    size_t);
     43
    4144#endif
    4245
Note: See TracChangeset for help on using the changeset viewer.