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:
parent
8293a0ff36
commit
12e515735b
6 changed files with 88 additions and 11 deletions
21
Kernel/IDEDiskDevice.h
Normal file
21
Kernel/IDEDiskDevice.h
Normal 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;
|
||||
};
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue