1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:47:46 +00:00

Revert "Kernel: Replace IRQHandler with the new InterruptHandler class"

This reverts commit 6c72736b26.

I am unable to boot on my home machine with this change in the tree.
This commit is contained in:
Andreas Kling 2020-01-22 22:23:50 +01:00
parent 8e21e31b3a
commit e64c335e5a
29 changed files with 169 additions and 193 deletions

View file

@ -39,11 +39,6 @@
#include <Kernel/FileSystem/File.h>
#include <Kernel/UnixTypes.h>
enum class DEVICE_TYPE {
BLOCK_DEVICE = 1,
CHAR_DEVICE = 2
};
class Device : public File {
public:
virtual ~Device() override;
@ -60,17 +55,16 @@ public:
virtual bool is_device() const override { return true; }
virtual bool is_disk_device() const { return false; }
virtual bool is_block_device() const override { return false; }
virtual bool is_character_device() const override { return true; }
static void for_each(Function<void(Device&)>);
static Device* get_device(unsigned major, unsigned minor);
protected:
Device(unsigned major, unsigned minor, u8 device_type);
Device(unsigned major, unsigned minor);
void set_uid(uid_t uid) { m_uid = uid; }
void set_gid(gid_t gid) { m_gid = gid; }
static HashMap<u32, Device*>& all_devices();
private:
unsigned m_major { 0 };
unsigned m_minor { 0 };