Changeset e8f9bf0 in mainline for uspace/drv/intctl/obio/obio.c


Ignore:
Timestamp:
2017-11-14T18:51:26Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
af9f271
Parents:
0a0b3d8
Message:

OBIO could use pio_enable.

File:
1 edited

Legend:

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

    r0a0b3d8 re8f9bf0  
    118118{
    119119        ddf_fun_t *fun_a = NULL;
    120         int flags;
    121         int retval;
    122120        int rc;
    123121
    124         flags = AS_AREA_READ | AS_AREA_WRITE;
    125         obio->regs = (ioport64_t *)AS_AREA_ANY;
    126         retval = physmem_map(res->base,
    127             ALIGN_UP(OBIO_SIZE, PAGE_SIZE) >> PAGE_WIDTH, flags,
    128             (void *) &obio->regs);
    129 
    130         if (retval < 0) {
     122        rc = pio_enable((void *)res->base, OBIO_SIZE, (void **) &obio->regs);
     123        if (rc != EOK) {
    131124                ddf_msg(LVL_ERROR, "Error mapping OBIO registers");
    132125                rc = EIO;
Note: See TracChangeset for help on using the changeset viewer.