1 /* 2 * Copyright 2008, Ingo Weinhold, ingo_weinhold@gmx.de. 3 * Copyright 2005-2007, Axel Dörfler, axeld@pinc-software.de. 4 * Distributed under the terms of the MIT License. 5 * 6 * Copyright 2001-2002, Travis Geiselbrecht. All rights reserved. 7 * Distributed under the terms of the NewOS License. 8 */ 9 #ifndef _KERNEL_VM_STORE_DEVICE_H 10 #define _KERNEL_VM_STORE_DEVICE_H 11 12 #include <vm_types.h> 13 14 15 class VMDeviceCache : public VMCache { 16 public: 17 status_t Init(addr_t baseAddress); 18 19 virtual bool HasPage(off_t offset); 20 21 virtual status_t Read(off_t offset, const iovec *vecs, size_t count, 22 size_t *_numBytes); 23 virtual status_t Write(off_t offset, const iovec *vecs, size_t count, 24 uint32 flags, size_t *_numBytes); 25 26 private: 27 addr_t fBaseAddress; 28 }; 29 30 31 #endif /* _KERNEL_VM_STORE_DEVICE_H */ 32