Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/char/i8042/main.c

    r56fd7cf r9d58539  
    3737#include <libarch/inttypes.h>
    3838#include <ddf/driver.h>
     39#include <devman.h>
    3940#include <device/hw_res_parsed.h>
    4041#include <errno.h>
     
    6364 *
    6465 */
    65 static int get_my_registers(ddf_dev_t *dev, uintptr_t *io_reg_address,
     66static int get_my_registers(const ddf_dev_t *dev, uintptr_t *io_reg_address,
    6667    size_t *io_reg_size, int *kbd_irq, int *mouse_irq)
    6768{
    6869        assert(dev);
    6970       
    70         async_sess_t *parent_sess = ddf_dev_parent_sess_create(
    71             dev, EXCHANGE_SERIALIZE);
    72         if (parent_sess == NULL)
     71        async_sess_t *parent_sess =
     72            devman_parent_device_connect(EXCHANGE_SERIALIZE, dev->handle,
     73            IPC_FLAG_BLOCKING);
     74        if (!parent_sess)
    7375                return ENOMEM;
    7476       
     
    7678        hw_res_list_parsed_init(&hw_resources);
    7779        const int ret = hw_res_get_list_parsed(parent_sess, &hw_resources, 0);
     80        async_hangup(parent_sess);
    7881        if (ret != EOK)
    7982                return ret;
     
    133136       
    134137        ddf_msg(LVL_NOTE, "Controlling '%s' (%" PRIun ").",
    135             ddf_dev_get_name(device), ddf_dev_get_handle(device));
     138            device->name, device->handle);
    136139        return EOK;
    137140}
Note: See TracChangeset for help on using the changeset viewer.