Changeset e8f9bf0 in mainline for uspace/drv/intctl/obio/obio.c
- Timestamp:
- 2017-11-14T18:51:26Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- af9f271
- Parents:
- 0a0b3d8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/intctl/obio/obio.c
r0a0b3d8 re8f9bf0 118 118 { 119 119 ddf_fun_t *fun_a = NULL; 120 int flags;121 int retval;122 120 int rc; 123 121 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) { 131 124 ddf_msg(LVL_ERROR, "Error mapping OBIO registers"); 132 125 rc = EIO;
Note:
See TracChangeset
for help on using the changeset viewer.