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