Ignore:
Timestamp:
2017-10-10T06:51:02Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c46bfbc
Parents:
2bdf92a5
Message:

hw_res_enable_interrupt should allow enabling individual interrupts.

File:
1 edited

Legend:

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

    r2bdf92a5 rcccd60c3  
    6767        hw_res_ops_t *hw_res_ops = (hw_res_ops_t *) ops;
    6868       
    69         if (hw_res_ops->enable_interrupt == NULL)
     69        if (hw_res_ops->enable_interrupt == NULL) {
    7070                async_answer_0(callid, ENOTSUP);
    71         else if (hw_res_ops->enable_interrupt(fun))
    72                 async_answer_0(callid, EOK);
    73         else
    74                 async_answer_0(callid, EREFUSED);
     71                return;
     72        }
     73       
     74        const int irq = DEV_IPC_GET_ARG1(*call);
     75        const int ret = hw_res_ops->enable_interrupt(fun, irq);
     76        async_answer_0(callid, ret);
    7577}
    7678
Note: See TracChangeset for help on using the changeset viewer.