summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-16 00:52:58 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-16 00:52:58 +0100
commit2dc7c5a7b09bc53d6b15362b61a19046b4611833 (patch)
tree3f172e6349fb4f7c561a2a7a34219ceb8d0c9335
parent994279d56c0186d7037c64473010718604d7e869 (diff)
downloadserenity-2dc7c5a7b09bc53d6b15362b61a19046b4611833.zip
Kernel: Add empty BlockDevice class.
-rw-r--r--Kernel/BlockDevice.cpp5
-rw-r--r--Kernel/BlockDevice.h11
-rw-r--r--Kernel/CharacterDevice.cpp2
-rw-r--r--Kernel/Makefile1
4 files changed, 17 insertions, 2 deletions
diff --git a/Kernel/BlockDevice.cpp b/Kernel/BlockDevice.cpp
new file mode 100644
index 0000000000..d81d2bbc34
--- /dev/null
+++ b/Kernel/BlockDevice.cpp
@@ -0,0 +1,5 @@
+#include <Kernel/BlockDevice.h>
+
+BlockDevice::~BlockDevice()
+{
+}
diff --git a/Kernel/BlockDevice.h b/Kernel/BlockDevice.h
new file mode 100644
index 0000000000..3f42270eb2
--- /dev/null
+++ b/Kernel/BlockDevice.h
@@ -0,0 +1,11 @@
+#pragma once
+
+#include <Kernel/Device.h>
+
+class BlockDevice : public Device {
+public:
+ virtual ~BlockDevice() override;
+
+protected:
+ BlockDevice(unsigned major, unsigned minor) : Device(major, minor) { }
+};
diff --git a/Kernel/CharacterDevice.cpp b/Kernel/CharacterDevice.cpp
index 0f6df53c17..a783e80d7d 100644
--- a/Kernel/CharacterDevice.cpp
+++ b/Kernel/CharacterDevice.cpp
@@ -1,5 +1,3 @@
-#pragma once
-
#include <Kernel/CharacterDevice.h>
CharacterDevice::~CharacterDevice()
diff --git a/Kernel/Makefile b/Kernel/Makefile
index acd006c057..f74cbb6740 100644
--- a/Kernel/Makefile
+++ b/Kernel/Makefile
@@ -39,6 +39,7 @@ VFS_OBJS = \
DiskDevice.o \
Device.o \
CharacterDevice.o \
+ BlockDevice.o \
NullDevice.o \
FullDevice.o \
ZeroDevice.o \