summaryrefslogtreecommitdiffhomepage
path: root/dev/Kernel/KernelKit/PCI
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-03-22 06:48:11 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-03-22 06:48:11 +0100
commit6ae47a1fe04296eba06fcde0af4e89e100c6eb76 (patch)
treee36568191f20c410b64b0dba9712de85c735ee9b /dev/Kernel/KernelKit/PCI
parent9fdaa2f0f2fc3b19fced1c9f3cb9a2780540eab7 (diff)
kernel(PCI): Let compare UInt8 (UChar) with PciDeviceKind in Database.h
Applied the patch to Iterator.cc. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Kernel/KernelKit/PCI')
-rw-r--r--dev/Kernel/KernelKit/PCI/Database.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/dev/Kernel/KernelKit/PCI/Database.h b/dev/Kernel/KernelKit/PCI/Database.h
index 82f38d33..cb12a731 100644
--- a/dev/Kernel/KernelKit/PCI/Database.h
+++ b/dev/Kernel/KernelKit/PCI/Database.h
@@ -36,3 +36,23 @@ namespace NeOS
};
} // namespace Types
} // namespace NeOS
+
+inline BOOL operator!=(const NeOS::Types::PciDeviceKind& lhs, NeOS::UChar rhs)
+{
+ return rhs != (NeOS::UChar)lhs;
+}
+
+inline BOOL operator==(const NeOS::Types::PciDeviceKind& lhs, NeOS::UChar rhs)
+{
+ return rhs == (NeOS::UChar)lhs;
+}
+
+inline BOOL operator!=(NeOS::UChar lhs, const NeOS::Types::PciDeviceKind& rhs)
+{
+ return lhs != (NeOS::UChar)rhs;
+}
+
+inline BOOL operator==(NeOS::UChar lhs, const NeOS::Types::PciDeviceKind& rhs)
+{
+ return lhs == (NeOS::UChar)rhs;
+} \ No newline at end of file