Changeset cccd60c3 in mainline for uspace/lib/c


Ignore:
Timestamp:
2017-10-10T06:51:02Z (8 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.

Location:
uspace/lib/c
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/device/hw_res.c

    r2bdf92a5 rcccd60c3  
    7575}
    7676
    77 bool hw_res_enable_interrupt(async_sess_t *sess)
     77int hw_res_enable_interrupt(async_sess_t *sess, int irq)
    7878{
    7979        async_exch_t *exch = async_exchange_begin(sess);
    8080       
    81         int rc = async_req_1_0(exch, DEV_IFACE_ID(HW_RES_DEV_IFACE),
    82             HW_RES_ENABLE_INTERRUPT);
     81        int rc = async_req_2_0(exch, DEV_IFACE_ID(HW_RES_DEV_IFACE),
     82            HW_RES_ENABLE_INTERRUPT, irq);
    8383        async_exchange_end(exch);
    8484       
    85         return (rc == EOK);
     85        return rc;
    8686}
    8787
  • uspace/lib/c/include/device/hw_res.h

    r2bdf92a5 rcccd60c3  
    115115
    116116extern int hw_res_get_resource_list(async_sess_t *, hw_resource_list_t *);
    117 extern bool hw_res_enable_interrupt(async_sess_t *);
     117extern int hw_res_enable_interrupt(async_sess_t *, int);
    118118
    119119extern int hw_res_dma_channel_setup(async_sess_t *, unsigned int, uint32_t,
Note: See TracChangeset for help on using the changeset viewer.