Changes in uspace/drv/intctl/icp-ic/icp-ic.c [b7fd2a0:b446b02] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/intctl/icp-ic/icp-ic.c
rb7fd2a0 rb446b02 41 41 #include <ddf/log.h> 42 42 #include <errno.h> 43 #include <str_error.h>44 43 #include <ipc/irc.h> 45 44 #include <stdint.h> … … 52 51 }; 53 52 54 static errno_t icpic_enable_irq(icpic_t *icpic, sysarg_t irq)53 static int icpic_enable_irq(icpic_t *icpic, sysarg_t irq) 55 54 { 56 55 if (irq > icpic_max_irq) … … 112 111 113 112 /** Add icp-ic device. */ 114 errno_t icpic_add(icpic_t *icpic, icpic_res_t *res)113 int icpic_add(icpic_t *icpic, icpic_res_t *res) 115 114 { 116 115 ddf_fun_t *fun_a = NULL; 117 116 void *regs; 118 errno_t rc;117 int rc; 119 118 120 119 rc = pio_enable((void *)res->base, sizeof(icpic_regs_t), ®s); … … 137 136 rc = ddf_fun_bind(fun_a); 138 137 if (rc != EOK) { 139 ddf_msg(LVL_ERROR, "Failed binding function 'a' : %s", str_error(rc));138 ddf_msg(LVL_ERROR, "Failed binding function 'a'. (%d)", rc); 140 139 goto error; 141 140 } … … 153 152 154 153 /** Remove icp-ic device */ 155 errno_t icpic_remove(icpic_t *icpic)154 int icpic_remove(icpic_t *icpic) 156 155 { 157 156 return ENOTSUP; … … 159 158 160 159 /** icp-ic device gone */ 161 errno_t icpic_gone(icpic_t *icpic)160 int icpic_gone(icpic_t *icpic) 162 161 { 163 162 return ENOTSUP;
Note:
See TracChangeset
for help on using the changeset viewer.