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