Changeset 75911d24 in mainline


Ignore:
Timestamp:
2017-10-14T23:13:08Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9a2eb14
Parents:
d51838f
Message:

ICP could relay disable/clear interrupt.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/platform/icp/icp.c

    rd51838f r75911d24  
    168168}
    169169
     170static int icp_fun_disable_interrupt(ddf_fun_t *fnode, int irq)
     171{
     172        icp_fun_t *fun = icp_fun(fnode);
     173
     174        if (!icp_fun_owns_interrupt(fun, irq))
     175                return EINVAL;
     176
     177        return irc_disable_interrupt(irq);
     178}
     179
     180static int icp_fun_clear_interrupt(ddf_fun_t *fnode, int irq)
     181{
     182        icp_fun_t *fun = icp_fun(fnode);
     183
     184        if (!icp_fun_owns_interrupt(fun, irq))
     185                return EINVAL;
     186
     187        return irc_clear_interrupt(irq);
     188}
     189
    170190static pio_window_t *icp_get_pio_window(ddf_fun_t *fnode)
    171191{
     
    176196        .get_resource_list = &icp_get_resources,
    177197        .enable_interrupt = &icp_fun_enable_interrupt,
     198        .disable_interrupt = &icp_fun_disable_interrupt,
     199        .clear_interrupt = &icp_fun_clear_interrupt
    178200};
    179201
Note: See TracChangeset for help on using the changeset viewer.