1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:47:44 +00:00

Add a simple IDEDiskDevice class that implements DiskDevice from VFS.

This commit is contained in:
Andreas Kling 2018-10-16 14:17:43 +02:00
parent 8293a0ff36
commit 12e515735b
6 changed files with 88 additions and 11 deletions

21
Kernel/IDEDiskDevice.h Normal file
View file

@ -0,0 +1,21 @@
#pragma once
#include <AK/RetainPtr.h>
#include <VirtualFileSystem/DiskDevice.h>
class IDEDiskDevice final : public DiskDevice {
public:
static RetainPtr<IDEDiskDevice> create();
virtual ~IDEDiskDevice();
virtual unsigned blockSize() const override;
virtual bool readBlock(unsigned index, byte*) const override;
virtual bool writeBlock(unsigned index, const byte*) override;
protected:
IDEDiskDevice();
private:
virtual const char* className() const override;
};