mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 02:03:06 -05:00
799177feda
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. :^)
16 lines
387 B
C++
16 lines
387 B
C++
#pragma once
|
|
|
|
#include <Kernel/Device.h>
|
|
|
|
class BlockDevice : public Device {
|
|
public:
|
|
virtual ~BlockDevice() override;
|
|
|
|
virtual Region* mmap(Process&, LinearAddress preferred_laddr, size_t offset, size_t size) = 0;
|
|
|
|
protected:
|
|
BlockDevice(unsigned major, unsigned minor) : Device(major, minor) { }
|
|
|
|
private:
|
|
virtual bool is_block_device() const final { return true; }
|
|
};
|