Changes in kernel/generic/src/ddi/ddi.c [46e886f:8df5f20] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ddi/ddi.c
r46e886f r8df5f20 46 46 #include <mm/frame.h> 47 47 #include <mm/as.h> 48 #include <mm/km.h>49 48 #include <mm/page.h> 50 49 #include <synch/mutex.h> … … 57 56 #include <trace.h> 58 57 #include <bitops.h> 59 #include <arch/asm.h>60 58 61 59 /** This lock protects the @c pareas ordered dictionary. */ … … 529 527 return dmamem_unmap_anonymous(virt); 530 528 } 531 void *pio_map(void *phys, size_t size)532 {533 #ifdef IO_SPACE_BOUNDARY534 if (phys < IO_SPACE_BOUNDARY)535 return phys;536 #endif537 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_BOUNDARY544 if (phys < IO_SPACE_BOUNDARY)545 return;546 #endif547 km_unmap((uintptr_t) virt, size);548 }549 529 550 530 /** @}
Note:
See TracChangeset
for help on using the changeset viewer.