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