Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/intctl/apic/apic.c

    rb7fd2a0 rb446b02  
    4545#include <stdbool.h>
    4646#include <errno.h>
    47 #include <str_error.h>
    4847#include <async.h>
    4948#include <stdio.h>
     
    140139}
    141140
    142 static errno_t apic_enable_irq(apic_t *apic, sysarg_t irq)
     141static int apic_enable_irq(apic_t *apic, sysarg_t irq)
    143142{
    144143        io_redirection_reg_t reg;
     
    207206
    208207/** Add APIC device. */
    209 errno_t apic_add(apic_t *apic, apic_res_t *res)
     208int apic_add(apic_t *apic, apic_res_t *res)
    210209{
    211210        sysarg_t have_apic;
    212211        ddf_fun_t *fun_a = NULL;
    213212        void *regs;
    214         errno_t rc;
     213        int rc;
    215214       
    216215        if ((sysinfo_get_value("apic", &have_apic) != EOK) || (!have_apic)) {
     
    221220        rc = pio_enable((void *) res->base, IO_APIC_SIZE, &regs);
    222221        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);
    224223                return EIO;
    225224        }
     
    238237        rc = ddf_fun_bind(fun_a);
    239238        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);
    241240                goto error;
    242241        }
     
    254253
    255254/** Remove APIC device */
    256 errno_t apic_remove(apic_t *apic)
     255int apic_remove(apic_t *apic)
    257256{
    258257        return ENOTSUP;
     
    260259
    261260/** APIC device gone */
    262 errno_t apic_gone(apic_t *apic)
     261int apic_gone(apic_t *apic)
    263262{
    264263        return ENOTSUP;
Note: See TracChangeset for help on using the changeset viewer.