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 13extern "C" { 14#endif 15 16status_t generic_vm_memset_physical(phys_addr_t address, int value, 17 phys_size_t length); 18status_t generic_vm_memcpy_from_physical(void* to, phys_addr_t from, 19 size_t length, bool user); 20status_t generic_vm_memcpy_to_physical(phys_addr_t to, const void* from, 21 size_t length, bool user); 22void 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