2020-05-05 23:43:18 +02:00
|
|
|
/* intelmetool */
|
2020-05-05 22:49:26 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2016-03-18 00:52:54 +01:00
|
|
|
|
|
|
|
#include <inttypes.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <fcntl.h>
|
|
|
|
#include <sys/mman.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#ifndef __DARWIN__
|
|
|
|
extern int fd_mem;
|
2016-12-27 15:24:02 +01:00
|
|
|
extern void *map_physical(off_t phys_addr, size_t len);
|
2016-03-18 00:52:54 +01:00
|
|
|
extern void unmap_physical(void *virt_addr, size_t len);
|
2016-12-27 15:24:02 +01:00
|
|
|
extern void *map_physical_exact(off_t phys_addr, void *mapto, size_t len);
|
2016-03-18 00:52:54 +01:00
|
|
|
#endif
|