summaryrefslogtreecommitdiffstats
path: root/util/intelmetool/mmap.h
blob: 57ecca246078190e0be3a309bac6cf0c5c3aa003 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* intelmetool */
/* SPDX-License-Identifier: GPL-2.0-or-later */

#include <inttypes.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <stdio.h>

#ifndef __DARWIN__
extern int fd_mem;
extern void *map_physical(off_t phys_addr, size_t len);
extern void unmap_physical(void *virt_addr, size_t len);
extern void *map_physical_exact(off_t phys_addr, void *mapto, size_t len);
#endif