#ifndef _KERNEL_VM_STORE_DEVICE_H
#define _KERNEL_VM_STORE_DEVICE_H
#include <vm/VMCache.h>
class VMDeviceCache final : public VMCache {
public:
status_t Init(addr_t baseAddress,
uint32 allocationFlags);
virtual status_t Read(off_t offset, const generic_io_vec *vecs,
size_t count, uint32 flags,
generic_size_t *_numBytes);
virtual status_t Write(off_t offset, const generic_io_vec *vecs,
size_t count, uint32 flags,
generic_size_t *_numBytes);
protected:
virtual void DeleteObject();
private:
addr_t fBaseAddress;
};
#endif