Changeset bf9cb2f in mainline for uspace/srv/hid/output/port


Ignore:
Timestamp:
2014-05-19T01:01:27Z (12 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
10ef47ba
Parents:
527f1ca
Message:

complete the desired API semantics of physmem_map() and dmamem_map_anonymous() to be compatible with as_area_create()
(the user is allowed to request a specific virtual memory base address, the kernel uses an available base address if AS_AREA_ANY is used)

Location:
uspace/srv/hid/output/port
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/output/port/ega.c

    r527f1ca rbf9cb2f  
    215215       
    216216        ega.size = (ega.cols * ega.rows) << 1;
     217        ega.addr = AS_AREA_ANY;
    217218       
    218219        rc = physmem_map(paddr,
  • uspace/srv/hid/output/port/kchar.c

    r527f1ca rbf9cb2f  
    8484                return rc;
    8585       
     86        kchar.addr = AS_AREA_ANY;
     87       
    8688        rc = physmem_map(paddr,
    8789            ALIGN_UP(1, PAGE_SIZE) >> PAGE_WIDTH,
  • uspace/srv/hid/output/port/niagara.c

    r527f1ca rbf9cb2f  
    104104                return rc;
    105105       
     106        niagara.fifo = (output_fifo_t *) AS_AREA_ANY;
     107       
    106108        rc = physmem_map(paddr, 1, AS_AREA_READ | AS_AREA_WRITE,
    107109            (void *) &niagara.fifo);
Note: See TracChangeset for help on using the changeset viewer.