xref: /haiku/src/libs/compat/freebsd_network/compat/vm/vm.h (revision 97f11716bfaa0f385eb0e28a52bf56a5023b9e99)
1 /*
2  * Copyright 2022, Haiku, Inc. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _FBSD_COMPAT_VM_VM_H_
6 #define _FBSD_COMPAT_VM_VM_H_
7 
8 
9 #include <KernelExport.h>
10 
11 
12 typedef phys_addr_t vm_paddr_t;
13 typedef addr_t vm_offset_t;
14 
15 typedef void* pmap_t;
16 
17 
18 vm_paddr_t pmap_kextract(vm_offset_t virtualAddress);
19 
20 #define vtophys(virtualAddress) pmap_kextract((vm_offset_t)(virtualAddress))
21 #define vmspace_pmap(...)	NULL
22 #define pmap_extract(...)	NULL
23 
24 
25 #endif	/* _FBSD_COMPAT_VM_VM_H_ */
26