9
* Maps the specified memory area in the address space of the process.
10
* @param[in,out] ctx - pcilib context
11
* @param[in] addr - hardware address (should be page-aligned)
12
* @param[in] size - size (should be multiple of page size)
13
* return - the address where the memory area is mapped
15
void *pcilib_map_area(pcilib_t *ctx, uintptr_t addr, size_t size);
18
* Unmaps the specified memory area in the address space of the process.
19
* @param[in,out] ctx - pcilib context
20
* @param[in] addr - pointer to the virtual address where the area is mapped
21
* @param[in] size - size (should be multiple of page size)
23
void pcilib_unmap_area(pcilib_t *ctx, void *addr, size_t size);
29
#endif /* _PCILIB_MEM_H */