Changes in uspace/drv/intctl/apic/apic.c [b7fd2a0:b446b02] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/intctl/apic/apic.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> … … 140 139 } 141 140 142 static errno_t apic_enable_irq(apic_t *apic, sysarg_t irq)141 static int apic_enable_irq(apic_t *apic, sysarg_t irq) 143 142 { 144 143 io_redirection_reg_t reg; … … 207 206 208 207 /** Add APIC device. */ 209 errno_t apic_add(apic_t *apic, apic_res_t *res)208 int apic_add(apic_t *apic, apic_res_t *res) 210 209 { 211 210 sysarg_t have_apic; 212 211 ddf_fun_t *fun_a = NULL; 213 212 void *regs; 214 errno_t rc;213 int rc; 215 214 216 215 if ((sysinfo_get_value("apic", &have_apic) != EOK) || (!have_apic)) { … … 221 220 rc = pio_enable((void *) res->base, IO_APIC_SIZE, ®s); 222 221 if (rc != EOK) { 223 printf("%s: Failed to enable PIO for APIC: % s\n", NAME, str_error(rc));222 printf("%s: Failed to enable PIO for APIC: %d\n", NAME, rc); 224 223 return EIO; 225 224 } … … 238 237 rc = ddf_fun_bind(fun_a); 239 238 if (rc != EOK) { 240 ddf_msg(LVL_ERROR, "Failed binding function 'a' : %s", str_error(rc));239 ddf_msg(LVL_ERROR, "Failed binding function 'a'. (%d)", rc); 241 240 goto error; 242 241 } … … 254 253 255 254 /** Remove APIC device */ 256 errno_t apic_remove(apic_t *apic)255 int apic_remove(apic_t *apic) 257 256 { 258 257 return ENOTSUP; … … 260 259 261 260 /** APIC device gone */ 262 errno_t apic_gone(apic_t *apic)261 int apic_gone(apic_t *apic) 263 262 { 264 263 return ENOTSUP;
Note:
See TracChangeset
for help on using the changeset viewer.