20 #ifndef CDI_CPP_DISK_H 21 #define CDI_CPP_DISK_H 25 #include "cdi/storage.h" 26 #include "pedigree/kernel/machine/Disk.h" 27 #include "pedigree/kernel/processor/types.h" 28 #include "pedigree/kernel/utilities/Cache.h" 29 #include "pedigree/kernel/utilities/String.h" 35 CdiDisk(
struct cdi_storage_device *device);
36 CdiDisk(
Disk* pDev,
struct cdi_storage_device* device);
41 if((!m_Device) || (!m_Device->dev.name))
45 str = m_Device->dev.name;
54 virtual uintptr_t
read(uint64_t location);
55 virtual void write(uint64_t location);
65 virtual void flush(uint64_t location)
74 struct cdi_storage_device* m_Device;
virtual void getName(String &str)
virtual void write(uint64_t location)
virtual bool cacheIsCritical()
Assume CDI-provided disks are never read-only.
virtual void flush(uint64_t location)
virtual uintptr_t read(uint64_t location)