Changeset edb0a33 in mainline


Ignore:
Timestamp:
2012-10-14T13:26:40Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0f323d3
Parents:
274bbcc7
Message:

libc: Make iospace_enable static as nothing uses it.

Nothing should, use pio_enable instead.
Change param to size_t while at it. pio_enable takes size_t and ddi_ioarg_t uses size_t as well.
Use struct initializers instead of member assingment.

Location:
uspace/lib/c
Files:
2 edited

Legend:

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

    r274bbcc7 redb0a33  
    120120 *
    121121 */
    122 int iospace_enable(task_id_t id, void *ioaddr, unsigned long size)
    123 {
    124         ddi_ioarg_t arg;
    125        
    126         arg.task_id = id;
    127         arg.ioaddr = ioaddr;
    128         arg.size = size;
     122static int iospace_enable(task_id_t id, void *ioaddr, size_t size)
     123{
     124        const ddi_ioarg_t arg = {
     125                .task_id = id,
     126                .ioaddr = ioaddr,
     127                .size = size
     128        };
    129129       
    130130        return __SYSCALL1(SYS_IOSPACE_ENABLE, (sysarg_t) &arg);
  • uspace/lib/c/include/ddi.h

    r274bbcc7 redb0a33  
    5050extern int dmamem_unmap_anonymous(void *);
    5151
    52 extern int iospace_enable(task_id_t, void *, unsigned long);
    5352extern int pio_enable(void *, size_t, void **);
    5453
Note: See TracChangeset for help on using the changeset viewer.