1 /* 2 * Copyright 2008-2010, Ingo Weinhold <ingo_weinhold@gmx.de>. 3 * All rights reserved. Distributed under the terms of the MIT License. 4 */ 5 #ifndef _KERNEL_GENERIC_VM_PHYSICAL_PAGE_OPS_H 6 #define _KERNEL_GENERIC_VM_PHYSICAL_PAGE_OPS_H 7 8 9 #include <SupportDefs.h> 10 11 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 15 16 status_t generic_vm_memset_physical(phys_addr_t address, int value, 17 phys_size_t length); 18 status_t generic_vm_memcpy_from_physical(void* to, phys_addr_t from, 19 size_t length, bool user); 20 status_t generic_vm_memcpy_to_physical(phys_addr_t to, const void* from, 21 size_t length, bool user); 22 void generic_vm_memcpy_physical_page(phys_addr_t to, phys_addr_t from); 23 24 #ifdef __cplusplus 25 } 26 #endif 27 28 29 #endif // _KERNEL_GENERIC_VM_PHYSICAL_PAGE_OPS_H 30