20 #ifndef MACHINE_DISK_H 21 #define MACHINE_DISK_H 23 #include "pedigree/kernel/compiler.h" 24 #include "pedigree/kernel/machine/Device.h" 25 #include "pedigree/kernel/processor/types.h" 47 virtual SubType getSubType();
67 virtual uintptr_t read(uint64_t location);
76 virtual void write(uint64_t location);
93 virtual void align(uint64_t location);
101 virtual size_t getSize()
const;
109 virtual size_t getBlockSize()
const;
120 virtual void pin(uint64_t location);
125 virtual void unpin(uint64_t location);
147 virtual bool cacheIsCritical();
159 virtual void flush(uint64_t location);
virtual void dump(String &str)
virtual void getName(String &str)
A disk device - a block device in UNIX terms.