summaryrefslogtreecommitdiffhomepage
path: root/Drivers
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-03 10:07:06 +0100
committerAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-03 10:07:06 +0100
commitbb83659cf509f659cf1dd2e4ad239a32ad9ce119 (patch)
tree9ed0cd541fd4ad7738ea3b3a5c108f9f6e32cadc /Drivers
parent275c162c7c270499408ee4cbdd8f24b6d0240117 (diff)
WiP: See below.
- GetDevicePathSize - IsDevicePathValid - DuplicateDevicePath - Fix kernel build on MinGW-gcc. - Will also work on kernel disk bootstrap drivers (ATA, NVME). - Add compile_flags.txt for drivers to lint correctly. Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Drivers')
-rw-r--r--Drivers/AHCI/compile_flags.txt4
-rw-r--r--Drivers/Ethernet/compile_flags.txt4
-rw-r--r--Drivers/NVME/.gitkeep0
-rw-r--r--Drivers/NVME/compile_flags.txt4
-rw-r--r--Drivers/WiFi/compile_flags.txt4
-rw-r--r--Drivers/XHCI/Defines.hxx (renamed from Drivers/XHCI/USBRegs.hxx)9
-rw-r--r--Drivers/XHCI/compile_flags.txt4
7 files changed, 24 insertions, 5 deletions
diff --git a/Drivers/AHCI/compile_flags.txt b/Drivers/AHCI/compile_flags.txt
new file mode 100644
index 00000000..545816fc
--- /dev/null
+++ b/Drivers/AHCI/compile_flags.txt
@@ -0,0 +1,4 @@
+-I./
+-I../
+-I../../Private
+-std=c++20
diff --git a/Drivers/Ethernet/compile_flags.txt b/Drivers/Ethernet/compile_flags.txt
new file mode 100644
index 00000000..545816fc
--- /dev/null
+++ b/Drivers/Ethernet/compile_flags.txt
@@ -0,0 +1,4 @@
+-I./
+-I../
+-I../../Private
+-std=c++20
diff --git a/Drivers/NVME/.gitkeep b/Drivers/NVME/.gitkeep
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/Drivers/NVME/.gitkeep
diff --git a/Drivers/NVME/compile_flags.txt b/Drivers/NVME/compile_flags.txt
new file mode 100644
index 00000000..545816fc
--- /dev/null
+++ b/Drivers/NVME/compile_flags.txt
@@ -0,0 +1,4 @@
+-I./
+-I../
+-I../../Private
+-std=c++20
diff --git a/Drivers/WiFi/compile_flags.txt b/Drivers/WiFi/compile_flags.txt
new file mode 100644
index 00000000..6e721e73
--- /dev/null
+++ b/Drivers/WiFi/compile_flags.txt
@@ -0,0 +1,4 @@
+-I./
+-I../
+-I../../../Private
+-std=c++20
diff --git a/Drivers/XHCI/USBRegs.hxx b/Drivers/XHCI/Defines.hxx
index 5ef2ee2e..38ca7853 100644
--- a/Drivers/XHCI/USBRegs.hxx
+++ b/Drivers/XHCI/Defines.hxx
@@ -2,20 +2,19 @@
Copyright Mahrouss Logic
- File: USBRegs.hxx
- Purpose: USB registers
+ File: Defines.hxx
+ Purpose: XHCI (and backwards) defines.
Revision History:
01/02/24: Added file (amlel)
+ 03/02/24: Update filename to Defines.hxx (amlel)
------------------------------------------- */
#pragma once
-typedef __UINT16_TYPE__ UInt16;
-typedef __UINT32_TYPE__ UInt32;
-typedef __UINT8_TYPE__ UInt8;
+#include <NewKit/Defines.hpp>
#define kUSBCommand (UInt16)0x0
#define kUSBStatus (UInt16)0x2
diff --git a/Drivers/XHCI/compile_flags.txt b/Drivers/XHCI/compile_flags.txt
new file mode 100644
index 00000000..545816fc
--- /dev/null
+++ b/Drivers/XHCI/compile_flags.txt
@@ -0,0 +1,4 @@
+-I./
+-I../
+-I../../Private
+-std=c++20