Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/ddi/ddi.c

    r46e886f r6f7071b  
    4646#include <mm/frame.h>
    4747#include <mm/as.h>
    48 #include <mm/km.h>
    4948#include <mm/page.h>
    5049#include <synch/mutex.h>
     
    5756#include <trace.h>
    5857#include <bitops.h>
    59 #include <arch/asm.h>
    6058
    6159/** This lock protects the @c pareas ordered dictionary. */
     
    123121 *
    124122 */
    125 _NO_TRACE static errno_t physmem_map(uintptr_t phys, size_t pages,
     123NO_TRACE static errno_t physmem_map(uintptr_t phys, size_t pages,
    126124    unsigned int flags, uintptr_t *virt, uintptr_t bound)
    127125{
     
    229227}
    230228
    231 _NO_TRACE static errno_t physmem_unmap(uintptr_t virt)
     229NO_TRACE static errno_t physmem_unmap(uintptr_t virt)
    232230{
    233231        assert(TASK);
     
    314312 *
    315313 */
    316 _NO_TRACE static errno_t iospace_enable(task_id_t id, uintptr_t ioaddr, size_t size)
     314NO_TRACE static errno_t iospace_enable(task_id_t id, uintptr_t ioaddr, size_t size)
    317315{
    318316        /*
     
    355353 *
    356354 */
    357 _NO_TRACE static errno_t iospace_disable(task_id_t id, uintptr_t ioaddr, size_t size)
     355NO_TRACE static errno_t iospace_disable(task_id_t id, uintptr_t ioaddr, size_t size)
    358356{
    359357        /*
     
    415413}
    416414
    417 _NO_TRACE static errno_t dmamem_map(uintptr_t virt, size_t size, unsigned int map_flags,
     415NO_TRACE static errno_t dmamem_map(uintptr_t virt, size_t size, unsigned int map_flags,
    418416    unsigned int flags, uintptr_t *phys)
    419417{
     
    424422}
    425423
    426 _NO_TRACE static errno_t dmamem_map_anonymous(size_t size, uintptr_t constraint,
     424NO_TRACE static errno_t dmamem_map_anonymous(size_t size, uintptr_t constraint,
    427425    unsigned int map_flags, unsigned int flags, uintptr_t *phys,
    428426    uintptr_t *virt, uintptr_t bound)
     
    453451}
    454452
    455 _NO_TRACE static errno_t dmamem_unmap(uintptr_t virt, size_t size)
     453NO_TRACE static errno_t dmamem_unmap(uintptr_t virt, size_t size)
    456454{
    457455        // TODO: implement unlocking & unmap
     
    459457}
    460458
    461 _NO_TRACE static errno_t dmamem_unmap_anonymous(uintptr_t virt)
     459NO_TRACE static errno_t dmamem_unmap_anonymous(uintptr_t virt)
    462460{
    463461        return as_area_destroy(TASK->as, virt);
     
    529527                return dmamem_unmap_anonymous(virt);
    530528}
    531 void *pio_map(void *phys, size_t size)
    532 {
    533 #ifdef IO_SPACE_BOUNDARY
    534         if (phys < IO_SPACE_BOUNDARY)
    535                 return phys;
    536 #endif
    537         return (void *) km_map((uintptr_t) phys, size, KM_NATURAL_ALIGNMENT,
    538             PAGE_READ | PAGE_WRITE | PAGE_NOT_CACHEABLE);
    539 }
    540 
    541 void pio_unmap(void *phys, void *virt, size_t size)
    542 {
    543 #ifdef IO_SPACE_BOUNDARY
    544         if (phys < IO_SPACE_BOUNDARY)
    545                 return;
    546 #endif
    547         km_unmap((uintptr_t) virt, size);
    548 }
    549529
    550530/** @}
Note: See TracChangeset for help on using the changeset viewer.