Changeset 75911d24 in mainline for uspace/drv/platform/icp/icp.c
- Timestamp:
- 2017-10-14T23:13:08Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9a2eb14
- Parents:
- d51838f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/platform/icp/icp.c
rd51838f r75911d24 168 168 } 169 169 170 static 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 180 static 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 170 190 static pio_window_t *icp_get_pio_window(ddf_fun_t *fnode) 171 191 { … … 176 196 .get_resource_list = &icp_get_resources, 177 197 .enable_interrupt = &icp_fun_enable_interrupt, 198 .disable_interrupt = &icp_fun_disable_interrupt, 199 .clear_interrupt = &icp_fun_clear_interrupt 178 200 }; 179 201
Note:
See TracChangeset
for help on using the changeset viewer.