summaryrefslogtreecommitdiffhomepage
path: root/src/kernel/KernelKit/DeviceMgr.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-01-07 09:51:21 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-01-07 09:51:21 +0100
commitbd1598a2b97277e527240f721df14911602cbf11 (patch)
tree49d894db69461698d13aa7c1ce79bd6ef9d444e1 /src/kernel/KernelKit/DeviceMgr.h
parent3ce1536af0519e5a7b0b34df4f85cd0cace51f8b (diff)
chore: kernel: Internal API fixes and improvements.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/kernel/KernelKit/DeviceMgr.h')
-rw-r--r--src/kernel/KernelKit/DeviceMgr.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/kernel/KernelKit/DeviceMgr.h b/src/kernel/KernelKit/DeviceMgr.h
index 12f24970..bea5908c 100644
--- a/src/kernel/KernelKit/DeviceMgr.h
+++ b/src/kernel/KernelKit/DeviceMgr.h
@@ -19,6 +19,7 @@
// Last Rev: Wed, May 27, 2025 6:22 PM
namespace Kernel {
+
template <typename T>
class IDevice;
@@ -33,8 +34,7 @@ class IDevice {
public:
IDevice() = default;
- explicit IDevice(void (*Out)(IDevice<T>*, T), void (*In)(IDevice<T>*, T)) : fOut(Out), fIn(In) {}
-
+ IDevice(void (*Out)(IDevice<T>*, T), void (*In)(IDevice<T>*, T)) : fOut(Out), fIn(In) {}
virtual ~IDevice() = default;
public:
@@ -43,8 +43,7 @@ class IDevice {
using ConstType = const T&;
using TypePtr = T*;
- IDevice& operator=(const IDevice<T>&) = default;
- IDevice(const IDevice<T>&) = default;
+ NE_COPY_DEFAULT(IDevice)
public:
virtual IDevice<T>& operator<<(T Data) {
@@ -118,8 +117,11 @@ enum {
kDeviceTypePCI,
kDeviceTypeVGA,
kDeviceTypeGPU,
- kDeviceTypeCount,
+ kDeviceTypeRandom,
+ kDeviceTypeIPC,
+ kDeviceTypeCount = kDeviceTypeIPC - kDeviceTypeIDE + 1,
};
+
} // namespace Kernel
#endif