Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/isa/isa.c

    r8e3498b r39330200  
    130130}
    131131
    132 static int isa_fun_enable_interrupt(ddf_fun_t *fnode, int irq)
     132static errno_t isa_fun_enable_interrupt(ddf_fun_t *fnode, int irq)
    133133{
    134134        isa_fun_t *fun = isa_fun(fnode);
     
    140140}
    141141
    142 static int isa_fun_disable_interrupt(ddf_fun_t *fnode, int irq)
     142static errno_t isa_fun_disable_interrupt(ddf_fun_t *fnode, int irq)
    143143{
    144144        isa_fun_t *fun = isa_fun(fnode);
     
    150150}
    151151
    152 static int isa_fun_clear_interrupt(ddf_fun_t *fnode, int irq)
     152static errno_t isa_fun_clear_interrupt(ddf_fun_t *fnode, int irq)
    153153{
    154154        isa_fun_t *fun = isa_fun(fnode);
     
    160160}
    161161
    162 static int isa_fun_setup_dma(ddf_fun_t *fnode,
     162static errno_t isa_fun_setup_dma(ddf_fun_t *fnode,
    163163    unsigned int channel, uint32_t pa, uint32_t size, uint8_t mode)
    164164{
     
    182182}
    183183
    184 static int isa_fun_remain_dma(ddf_fun_t *fnode,
     184static errno_t isa_fun_remain_dma(ddf_fun_t *fnode,
    185185    unsigned channel, size_t *size)
    186186{
     
    232232};
    233233
    234 static int isa_dev_add(ddf_dev_t *dev);
    235 static int isa_dev_remove(ddf_dev_t *dev);
    236 static int isa_fun_online(ddf_fun_t *fun);
    237 static int isa_fun_offline(ddf_fun_t *fun);
     234static errno_t isa_dev_add(ddf_dev_t *dev);
     235static errno_t isa_dev_remove(ddf_dev_t *dev);
     236static errno_t isa_fun_online(ddf_fun_t *fun);
     237static errno_t isa_fun_offline(ddf_fun_t *fun);
    238238
    239239/** The isa device driver's standard operations */
     
    277277        int fd;
    278278        size_t len;
    279         int rc;
     279        errno_t rc;
    280280        size_t nread;
    281         struct stat st;
    282 
    283         fd = vfs_lookup_open(conf_path, WALK_REGULAR, MODE_READ);
    284         if (fd < 0) {
     281        vfs_stat_t st;
     282
     283        rc = vfs_lookup_open(conf_path, WALK_REGULAR, MODE_READ, &fd);
     284        if (rc != EOK) {
    285285                ddf_msg(LVL_ERROR, "Unable to open %s", conf_path);
    286286                goto cleanup;
     
    578578            "function %s", id, score, ddf_fun_get_name(fun->fnode));
    579579
    580         int rc = ddf_fun_add_match_id(fun->fnode, id, score);
     580        errno_t rc = ddf_fun_add_match_id(fun->fnode, id, score);
    581581        if (rc != EOK) {
    582582                ddf_msg(LVL_ERROR, "Failed adding match ID: %s",
     
    698698}
    699699
    700 static int isa_dev_add(ddf_dev_t *dev)
     700static errno_t isa_dev_add(ddf_dev_t *dev)
    701701{
    702702        async_sess_t *sess;
    703         int rc;
     703        errno_t rc;
    704704
    705705        ddf_msg(LVL_DEBUG, "isa_dev_add, device handle = %d",
     
    767767}
    768768
    769 static int isa_dev_remove(ddf_dev_t *dev)
     769static errno_t isa_dev_remove(ddf_dev_t *dev)
    770770{
    771771        isa_bus_t *isa = isa_bus(dev);
     
    777777                    isa_fun_t, bus_link);
    778778
    779                 int rc = ddf_fun_offline(fun->fnode);
     779                errno_t rc = ddf_fun_offline(fun->fnode);
    780780                if (rc != EOK) {
    781781                        fibril_mutex_unlock(&isa->mutex);
     
    807807}
    808808
    809 static int isa_fun_online(ddf_fun_t *fun)
     809static errno_t isa_fun_online(ddf_fun_t *fun)
    810810{
    811811        ddf_msg(LVL_DEBUG, "isa_fun_online()");
     
    813813}
    814814
    815 static int isa_fun_offline(ddf_fun_t *fun)
     815static errno_t isa_fun_offline(ddf_fun_t *fun)
    816816{
    817817        ddf_msg(LVL_DEBUG, "isa_fun_offline()");
Note: See TracChangeset for help on using the changeset viewer.