blob: 57ecca246078190e0be3a309bac6cf0c5c3aa003 [file] [log] [blame]
Patrick Georgiafd4c872020-05-05 23:43:18 +02001/* intelmetool */
Patrick Georgiac959032020-05-05 22:49:26 +02002/* SPDX-License-Identifier: GPL-2.0-or-later */
Philipp Deppenwiesed8fe4432016-03-18 00:52:54 +01003
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__
11extern int fd_mem;
Paul Menzel1e7911e2016-12-27 15:24:02 +010012extern void *map_physical(off_t phys_addr, size_t len);
Philipp Deppenwiesed8fe4432016-03-18 00:52:54 +010013extern void unmap_physical(void *virt_addr, size_t len);
Paul Menzel1e7911e2016-12-27 15:24:02 +010014extern void *map_physical_exact(off_t phys_addr, void *mapto, size_t len);
Philipp Deppenwiesed8fe4432016-03-18 00:52:54 +010015#endif