Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/generic/driver.c

    r8820544 rfacc34d  
    3636/** @file
    3737 */
     38
     39#define _DDF_DATA_IMPLANT
    3840
    3941#include <assert.h>
     
    594596}
    595597
     598/** Implant foreign driver-specific device data.
     599 *
     600 * XXX This is used to transition USB to new interface. Do not use
     601 * in new code. Use of this function must be removed.
     602 */
     603void ddf_fun_data_implant(ddf_fun_t *fun, void *data)
     604{
     605        assert(fun->driver_data == NULL);
     606        fun->driver_data = data;
     607}
     608
    596609/** Return driver-specific device data. */
    597610void *ddf_dev_data_get(ddf_dev_t *dev)
     
    906919
    907920/** Set function ops. */
    908 void ddf_fun_set_ops(ddf_fun_t *fun, ddf_dev_ops_t *dev_ops)
     921void ddf_fun_set_ops(ddf_fun_t *fun, const ddf_dev_ops_t *dev_ops)
    909922{
    910923        assert(fun->conn_handler == NULL);
     
    950963         */
    951964        driver = drv;
     965       
     966        /* Initialize interrupt module */
     967        interrupt_init();
    952968       
    953969        /*
Note: See TracChangeset for help on using the changeset viewer.