Changeset 8565a42 in mainline for uspace/lib/c/generic/ddi.c


Ignore:
Timestamp:
2018-03-02T20:34:50Z (7 years ago)
Author:
GitHub <noreply@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a1a81f69, d5e5fd1
Parents:
3061bc1 (diff), 34e1206 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:34:50)
git-committer:
GitHub <noreply@…> (2018-03-02 20:34:50)
Message:

Remove all trailing whitespace, everywhere.

See individual commit messages for details.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/ddi.c

    r3061bc1 r8565a42  
    142142{
    143143        *phys = constraint;
    144        
     144
    145145        return (errno_t) __SYSCALL6(SYS_DMAMEM_MAP, (sysarg_t) size,
    146146            (sysarg_t) map_flags, (sysarg_t) flags | DMAMEM_FLAGS_ANONYMOUS,
     
    180180                .size = size
    181181        };
    182        
     182
    183183        return (errno_t) __SYSCALL1(SYS_IOSPACE_ENABLE, (sysarg_t) &arg);
    184184}
     
    204204                .size = size
    205205        };
    206        
     206
    207207        return (errno_t) __SYSCALL1(SYS_IOSPACE_DISABLE, (sysarg_t) &arg);
    208208}
     
    284284        if (!virt)
    285285                return EINVAL;
    286        
     286
    287287        uintptr_t phys_frame =
    288288            ALIGN_DOWN((uintptr_t) pio_addr, PAGE_SIZE);
    289289        size_t offset = (uintptr_t) pio_addr - phys_frame;
    290290        size_t pages = SIZE2PAGES(offset + size);
    291        
     291
    292292        void *virt_page = AS_AREA_ANY;
    293293        errno_t rc = physmem_map(phys_frame, pages,
     
    295295        if (rc != EOK)
    296296                return rc;
    297        
     297
    298298        *virt = virt_page + offset;
    299299        return EOK;
Note: See TracChangeset for help on using the changeset viewer.