| 1 | /* intelmetool */ |
| 2 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 3 | |
| 4 | #include <inttypes.h> |
| 5 | #include <stdlib.h> |
| 6 | #include <fcntl.h> |
| 7 | #include <sys/mman.h> |
| 8 | #include <stdio.h> |
| 9 | |
| 10 | #ifndef __DARWIN__ |
| 11 | extern int fd_mem; |
| 12 | extern void *map_physical(off_t phys_addr, size_t len); |
| 13 | extern void unmap_physical(void *virt_addr, size_t len); |
| 14 | extern void *map_physical_exact(off_t phys_addr, void *mapto, size_t len); |
| 15 | #endif |