Changes in uspace/drv/intctl/i8259/i8259.c [b446b02:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/intctl/i8259/i8259.c
rb446b02 rb7fd2a0 45 45 #include <stdbool.h> 46 46 #include <errno.h> 47 #include <str_error.h> 47 48 #include <async.h> 48 49 #include <stdio.h> … … 63 64 #define PIC_MAX_IRQ 15 64 65 65 static int pic_enable_irq(i8259_t *i8259, sysarg_t irq)66 static errno_t pic_enable_irq(i8259_t *i8259, sysarg_t irq) 66 67 { 67 68 if (irq > PIC_MAX_IRQ) … … 135 136 136 137 /** Add i8259 device. */ 137 int i8259_add(i8259_t *i8259, i8259_res_t *res)138 errno_t i8259_add(i8259_t *i8259, i8259_res_t *res) 138 139 { 139 140 sysarg_t have_i8259; … … 141 142 ioport8_t *regs1; 142 143 ddf_fun_t *fun_a = NULL; 143 int rc;144 errno_t rc; 144 145 145 146 if ((sysinfo_get_value("i8259", &have_i8259) != EOK) || (!have_i8259)) { … … 170 171 rc = ddf_fun_bind(fun_a); 171 172 if (rc != EOK) { 172 ddf_msg(LVL_ERROR, "Failed binding function 'a' . (%d)", rc);173 ddf_msg(LVL_ERROR, "Failed binding function 'a': %s", str_error(rc)); 173 174 goto error; 174 175 } … … 186 187 187 188 /** Remove i8259 device */ 188 int i8259_remove(i8259_t *i8259)189 errno_t i8259_remove(i8259_t *i8259) 189 190 { 190 191 return ENOTSUP; … … 192 193 193 194 /** i8259 device gone */ 194 int i8259_gone(i8259_t *i8259)195 errno_t i8259_gone(i8259_t *i8259) 195 196 { 196 197 return ENOTSUP;
Note:
See TracChangeset
for help on using the changeset viewer.