1 /* 2 * Copyright 2004-2007, Axel Dörfler, axeld@pinc-software.de. 3 * Distributed under the terms of the MIT License. 4 * 5 * Copyright 2001-2002, Travis Geiselbrecht. All rights reserved. 6 * Distributed under the terms of the NewOS License. 7 */ 8 9 10 #include "VMDeviceCache.h" 11 12 13 status_t 14 VMDeviceCache::Init(addr_t baseAddress, uint32 allocationFlags) 15 { 16 fBaseAddress = baseAddress; 17 return VMCache::Init(CACHE_TYPE_DEVICE, allocationFlags); 18 } 19 20 21 status_t 22 VMDeviceCache::Read(off_t offset, const iovec *vecs, size_t count, 23 uint32 flags, size_t *_numBytes) 24 { 25 panic("device_store: read called. Invalid!\n"); 26 return B_ERROR; 27 } 28 29 30 status_t 31 VMDeviceCache::Write(off_t offset, const iovec *vecs, size_t count, 32 uint32 flags, size_t *_numBytes) 33 { 34 // no place to write, this will cause the page daemon to skip this store 35 return B_OK; 36 } 37