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