#include "VMDeviceCache.h"
#include <slab/Slab.h>
status_t
VMDeviceCache::Init(addr_t baseAddress, uint32 allocationFlags)
{
fBaseAddress = baseAddress;
return VMCache::Init("VMDeviceCache", CACHE_TYPE_DEVICE, allocationFlags);
}
status_t
VMDeviceCache::Read(off_t offset, const generic_io_vec *vecs, size_t count,
uint32 flags, generic_size_t *_numBytes)
{
panic("device_store: read called. Invalid!\n");
return B_ERROR;
}
status_t
VMDeviceCache::Write(off_t offset, const generic_io_vec* vecs, size_t count,
uint32 flags, generic_size_t* _numBytes)
{
return B_OK;
}
void
VMDeviceCache::DeleteObject()
{
object_cache_delete(gDeviceCacheObjectCache, this);
}