2019-02-16 02:52:58 +03:00
|
|
|
#pragma once
|
|
|
|
|
2019-04-03 13:36:40 +03:00
|
|
|
#include <Kernel/Devices/Device.h>
|
2019-04-06 15:29:29 +03:00
|
|
|
#include <Kernel/LinearAddress.h>
|
2019-02-16 02:52:58 +03:00
|
|
|
|
|
|
|
class BlockDevice : public Device {
|
|
|
|
public:
|
|
|
|
virtual ~BlockDevice() override;
|
|
|
|
|
2019-04-28 16:02:55 +03:00
|
|
|
virtual bool is_seekable() const override { return true; }
|
2019-02-16 11:57:42 +03:00
|
|
|
|
2019-02-16 02:52:58 +03:00
|
|
|
protected:
|
|
|
|
BlockDevice(unsigned major, unsigned minor) : Device(major, minor) { }
|
2019-02-16 11:57:42 +03:00
|
|
|
|
|
|
|
private:
|
|
|
|
virtual bool is_block_device() const final { return true; }
|
2019-02-16 02:52:58 +03:00
|
|
|
};
|