util/intelmetool: Fix warning building with 32-bit
[coreboot.git] / util / intelmetool / mmap.h
blob2a7fa053081ca964a9fe9f906be7bf48fc75585b
1 /* intelmetool
3 * Copyright (C) 2013-2015 Damien Zammit <damien@zamaudio.com>
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of
8 * the License, or any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
16 #include <inttypes.h>
17 #include <stdlib.h>
18 #include <fcntl.h>
19 #include <sys/mman.h>
20 #include <stdio.h>
22 #ifndef __DARWIN__
23 extern int fd_mem;
24 extern void *map_physical(off_t phys_addr, size_t len);
25 extern void unmap_physical(void *virt_addr, size_t len);
26 extern void *map_physical_exact(off_t phys_addr, void *mapto, size_t len);
27 #endif