ladybird/Kernel/CharacterDevice.h
Andreas Kling 799177feda Kernel: Make BochsVGADevice a BlockDevice and support mmapping it.
Currently you can only mmap the entire framebuffer.
Using this when starting up the WindowServer gets us yet another step
closer towards it moving into userspace. :^)
2019-02-16 09:57:42 +01:00

15 lines
303 B
C++

#pragma once
#include <Kernel/Device.h>
class CharacterDevice : public Device {
public:
virtual ~CharacterDevice() override;
protected:
CharacterDevice(unsigned major, unsigned minor) : Device(major, minor) { }
private:
virtual bool is_character_device() const final { return true; }
};