From 12e515735b94972c87426d8e6039e3dfd87cf33d Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 16 Oct 2018 14:17:43 +0200 Subject: Add a simple IDEDiskDevice class that implements DiskDevice from VFS. --- Kernel/IDEDiskDevice.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Kernel/IDEDiskDevice.h (limited to 'Kernel/IDEDiskDevice.h') diff --git a/Kernel/IDEDiskDevice.h b/Kernel/IDEDiskDevice.h new file mode 100644 index 0000000000..efa9db087b --- /dev/null +++ b/Kernel/IDEDiskDevice.h @@ -0,0 +1,21 @@ +#pragma once + +#include +#include + +class IDEDiskDevice final : public DiskDevice { +public: + static RetainPtr 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; +}; + -- cgit v1.2.3