From 99826c21b9da1c3a74fd8b3ebc08c7f8dbfadd30 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Tue, 14 Jan 2025 11:52:02 +0100 Subject: T& Labs's ZKA, Multi-Processor Operating System. Signed-off-by: Amlal El Mahrouss --- dev/Mod/ACPI/ACPI.h | 2 +- dev/Mod/ACPI/ACPIFactoryInterface.h | 6 ++-- dev/Mod/AHCI/AHCI.h | 2 +- dev/Mod/APM/APM.h | 2 +- dev/Mod/ATA/ATA.h | 2 +- dev/Mod/CoreGfx/AccessibilityMgr.h | 2 +- dev/Mod/CoreGfx/FBMgr.h | 2 +- dev/Mod/CoreGfx/MathMgr.h | 2 +- dev/Mod/CoreGfx/TextMgr.h | 2 +- dev/Mod/HPET/Defines.h | 2 +- dev/Mod/LTE/LTE.h | 2 +- dev/Mod/MBCI/Interface.h | 2 +- dev/Mod/MBCI/MBCI.h | 2 +- dev/Mod/MFlash/MFlash.h | 2 +- dev/Mod/NVME/NVME.h | 2 +- dev/Mod/ReadMe.md | 2 +- dev/Mod/SCSI/SCSI.h | 2 +- dev/Mod/XHCI/Defines.h | 69 ++++++++++++++++++------------------- 18 files changed, 53 insertions(+), 54 deletions(-) (limited to 'dev/Mod') diff --git a/dev/Mod/ACPI/ACPI.h b/dev/Mod/ACPI/ACPI.h index 4495d29d..55e6ea69 100644 --- a/dev/Mod/ACPI/ACPI.h +++ b/dev/Mod/ACPI/ACPI.h @@ -1,6 +1,6 @@ /* ------------------------------------------- - Copyright (C) 2024, t& Corporation, all rights reserved. + Copyright (C) 2024, t& Labs, all rights reserved. ------------------------------------------- */ diff --git a/dev/Mod/ACPI/ACPIFactoryInterface.h b/dev/Mod/ACPI/ACPIFactoryInterface.h index 850e3652..30a09fd7 100644 --- a/dev/Mod/ACPI/ACPIFactoryInterface.h +++ b/dev/Mod/ACPI/ACPIFactoryInterface.h @@ -1,6 +1,6 @@ /* ------------------------------------------- - Copyright (C) 2024, t& Corporation, all rights reserved. + Copyright (C) 2024, t& Labs, all rights reserved. ------------------------------------------- */ @@ -51,8 +51,8 @@ namespace Kernel } private: - VoidPtr fRsdp; // pointer to root descriptor. - SSizeT fEntries; // number of entries, -1 tells that no invalid entries were + VoidPtr fRsdp{nullptr}; // pointer to root descriptor. + SSizeT fEntries{0UL}; // number of entries, -1 tells that no invalid entries were // found. }; } // namespace Kernel diff --git a/dev/Mod/AHCI/AHCI.h b/dev/Mod/AHCI/AHCI.h index efeb294b..665e82c7 100644 --- a/dev/Mod/AHCI/AHCI.h +++ b/dev/Mod/AHCI/AHCI.h @@ -1,6 +1,6 @@ /* ------------------------------------------- - Copyright (C) 2024, t& Corporation, all rights reserved. + Copyright (C) 2024, t& Labs, all rights reserved. File: AHCI.h Purpose: AHCI protocol defines. diff --git a/dev/Mod/APM/APM.h b/dev/Mod/APM/APM.h index 0f37c233..440fa6fe 100644 --- a/dev/Mod/APM/APM.h +++ b/dev/Mod/APM/APM.h @@ -1,6 +1,6 @@ /* ------------------------------------------- - Copyright (C) 2024, t& Corporation, all rights reserved. + Copyright (C) 2024, t& Labs, all rights reserved. ------------------------------------------- */ diff --git a/dev/Mod/ATA/ATA.h b/dev/Mod/ATA/ATA.h index d82b33e1..b9c0d186 100644 --- a/dev/Mod/ATA/ATA.h +++ b/dev/Mod/ATA/ATA.h @@ -1,6 +1,6 @@ /* ------------------------------------------- - Copyright (C) 2024, t& Corporation, all rights reserved. + Copyright (C) 2024, t& Labs, all rights reserved. File: Defines.h Purpose: ATA header. diff --git a/dev/Mod/CoreGfx/AccessibilityMgr.h b/dev/Mod/CoreGfx/AccessibilityMgr.h index 62319025..f0439a03 100644 --- a/dev/Mod/CoreGfx/AccessibilityMgr.h +++ b/dev/Mod/CoreGfx/AccessibilityMgr.h @@ -1,6 +1,6 @@ /* ------------------------------------------- - Copyright t& Corporation. + Copyright t& Labs. ------------------------------------------- */ diff --git a/dev/Mod/CoreGfx/FBMgr.h b/dev/Mod/CoreGfx/FBMgr.h index 276f6153..2eaba448 100644 --- a/dev/Mod/CoreGfx/FBMgr.h +++ b/dev/Mod/CoreGfx/FBMgr.h @@ -1,6 +1,6 @@ /* ------------------------------------------- - Copyright (C) 2024, t& Corporation, all rights reserved. + Copyright (C) 2024, t& Labs, all rights reserved. ------------------------------------------- */ diff --git a/dev/Mod/CoreGfx/MathMgr.h b/dev/Mod/CoreGfx/MathMgr.h index 4e40765f..147a2393 100644 --- a/dev/Mod/CoreGfx/MathMgr.h +++ b/dev/Mod/CoreGfx/MathMgr.h @@ -1,6 +1,6 @@ /* ------------------------------------------- - Copyright t& Corporation. + Copyright t& Labs. ------------------------------------------- */ diff --git a/dev/Mod/CoreGfx/TextMgr.h b/dev/Mod/CoreGfx/TextMgr.h index 6df1e68d..718bf1bb 100644 --- a/dev/Mod/CoreGfx/TextMgr.h +++ b/dev/Mod/CoreGfx/TextMgr.h @@ -1,6 +1,6 @@ /* ------------------------------------------- - Copyright (C) 2024, t& Corporation, all rights reserved. + Copyright (C) 2024, t& Labs, all rights reserved. ------------------------------------------- */ diff --git a/dev/Mod/HPET/Defines.h b/dev/Mod/HPET/Defines.h index 48ac5947..fce086be 100644 --- a/dev/Mod/HPET/Defines.h +++ b/dev/Mod/HPET/Defines.h @@ -1,6 +1,6 @@ /* ------------------------------------------- - Copyright (C) 2024, t& Corporation, all rights reserved. + Copyright (C) 2024, t& Labs, all rights reserved. File: HPET.h Purpose: HPET builtin. diff --git a/dev/Mod/LTE/LTE.h b/dev/Mod/LTE/LTE.h index ab0267d7..bcce8016 100644 --- a/dev/Mod/LTE/LTE.h +++ b/dev/Mod/LTE/LTE.h @@ -1,6 +1,6 @@ /* ------------------------------------------- -Copyright (C) 2024, t& Corporation, all rights reserved.. +Copyright (C) 2024, t& Labs, all rights reserved.. File: LTE\LTE.h. Purpose: LTE Standard Library. diff --git a/dev/Mod/MBCI/Interface.h b/dev/Mod/MBCI/Interface.h index 29fd8fb9..a6ad9453 100644 --- a/dev/Mod/MBCI/Interface.h +++ b/dev/Mod/MBCI/Interface.h @@ -1,6 +1,6 @@ /* ------------------------------------------- - Copyright (C) 2024, t& Corporation, all rights reserved. + Copyright (C) 2024, t& Labs, all rights reserved. ------------------------------------------- */ diff --git a/dev/Mod/MBCI/MBCI.h b/dev/Mod/MBCI/MBCI.h index fc7d9c5d..d22c0d8d 100644 --- a/dev/Mod/MBCI/MBCI.h +++ b/dev/Mod/MBCI/MBCI.h @@ -1,6 +1,6 @@ /* ------------------------------------------- - Copyright (C) 2024-2025, t& Corporation, all rights reserved. + Copyright (C) 2024-2025, t& Labs, all rights reserved. ------------------------------------------- */ diff --git a/dev/Mod/MFlash/MFlash.h b/dev/Mod/MFlash/MFlash.h index b057681f..c5c2f6ae 100644 --- a/dev/Mod/MFlash/MFlash.h +++ b/dev/Mod/MFlash/MFlash.h @@ -1,6 +1,6 @@ /* ------------------------------------------- - Copyright (C) 2024, t& Corporation, all rights reserved. + Copyright (C) 2024, t& Labs, all rights reserved. ------------------------------------------- */ diff --git a/dev/Mod/NVME/NVME.h b/dev/Mod/NVME/NVME.h index 23adafd5..7e6f3200 100644 --- a/dev/Mod/NVME/NVME.h +++ b/dev/Mod/NVME/NVME.h @@ -1,6 +1,6 @@ /* ------------------------------------------- - Copyright (C) 2024, t& Corporation, all rights reserved. + Copyright (C) 2024, t& Labs, all rights reserved. Revision History: diff --git a/dev/Mod/ReadMe.md b/dev/Mod/ReadMe.md index 6030acf9..f3359f3a 100644 --- a/dev/Mod/ReadMe.md +++ b/dev/Mod/ReadMe.md @@ -9,4 +9,4 @@ They are pluggable modules for builtin hardware support. - [X] AHCI kernel module. - [X] MBCI kernel module. -###### Copyright (C) 2024, t& Corporation, all rights reserved. All rights reserved. +###### Copyright (C) 2024, t& Labs, all rights reserved. All rights reserved. diff --git a/dev/Mod/SCSI/SCSI.h b/dev/Mod/SCSI/SCSI.h index fba69b18..45eabd8d 100644 --- a/dev/Mod/SCSI/SCSI.h +++ b/dev/Mod/SCSI/SCSI.h @@ -1,6 +1,6 @@ /* ------------------------------------------- - Copyright (C) 2024, t& Corporation, all rights reserved. + Copyright (C) 2024, t& Labs, all rights reserved. ------------------------------------------- */ diff --git a/dev/Mod/XHCI/Defines.h b/dev/Mod/XHCI/Defines.h index 337a2d1e..84b7ac36 100644 --- a/dev/Mod/XHCI/Defines.h +++ b/dev/Mod/XHCI/Defines.h @@ -1,6 +1,6 @@ /* ------------------------------------------- - Copyright (C) 2024, t& Corporation, all rights reserved. + Copyright (C) 2024, t& Labs, all rights reserved. File: Defines.h Purpose: XHCI (and backwards) header. @@ -16,6 +16,8 @@ #include +using namespace Kernel; + #define kUSBCommand (UInt16)0x0 #define kUSBStatus (UInt16)0x2 #define kUSBInterruptEnable (UInt16)0x4 @@ -25,47 +27,44 @@ #define kUSBPort1StatusCtrl (UInt16)0x10 #define kUSBPort2StatusCtrl (UInt16)0x12 -namespace Kernel +typedef struct USBCommandRegister final { - typedef struct USBCommandRegister final - { - UInt8 mReserved[8]; // Reserved - UInt8 - mMaxPacket; // 0 = Max packet size 32 bits 1 = Max packet size 64 bits - UInt8 mConfigure; - UInt8 mSoftwareDebug; - UInt8 mGlobalResume; - UInt8 mGlobalSuspend; - UInt8 mHostCtrlReset; - UInt8 mRun; // 1 = Controller execute frame list entries - } USBCommandRegister; + UInt8 mReserved[8]; // Reserved + UInt8 + mMaxPacket; // 0 = Max packet size 32 bits 1 = Max packet size 64 bits + UInt8 mConfigure; + UInt8 mSoftwareDebug; + UInt8 mGlobalResume; + UInt8 mGlobalSuspend; + UInt8 mHostCtrlReset; + UInt8 mRun; // 1 = Controller execute frame list entries +} USBCommandRegister; - typedef struct USBStatusRegister final - { - UInt8 mReserved[8]; // Reserved - UInt8 mHalted; // 1 = bit 0 in CMD is zero 0 = bit 0 in CMD is 1 - UInt8 mProcessError; - UInt8 mSystemError; - UInt8 mResumeDetected; - UInt8 mErrorInterrupt; - UInt8 mInterrupt; - } USBStatusRegister; +typedef struct USBStatusRegister final +{ + UInt8 mReserved[8]; // Reserved + UInt8 mHalted; // 1 = bit 0 in CMD is zero 0 = bit 0 in CMD is 1 + UInt8 mProcessError; + UInt8 mSystemError; + UInt8 mResumeDetected; + UInt8 mErrorInterrupt; + UInt8 mInterrupt; +} USBStatusRegister; - typedef struct USBInterruptEnableRegister final - { - UInt8 mReserved[4]; // Reserved - UInt8 mShortPacket; // 1=Enable interrupt 0=Disable interrupt - UInt8 mComplete; // 1=Enable interrupt 0=Disable interrupt - UInt8 mResume; // 1=Enable interrupt 0=Disable interrupt - UInt8 mTimeoutCRC; // 1=Enable interrupt 0=Disable interrupt - } USBInterruptEnableRegister; +typedef struct USBInterruptEnableRegister final +{ + UInt8 mReserved[4]; // Reserved + UInt8 mShortPacket; // 1=Enable interrupt 0=Disable interrupt + UInt8 mComplete; // 1=Enable interrupt 0=Disable interrupt + UInt8 mResume; // 1=Enable interrupt 0=Disable interrupt + UInt8 mTimeoutCRC; // 1=Enable interrupt 0=Disable interrupt +} USBInterruptEnableRegister; - /* +/* Some terminology: Frame Number: Number of processed entry of the Frame List. Frame List Base Address: 32-bit physical adress of Frame List. Remember that first 12 bytes are always 0. The Frame List must contain 1024 entries. - */ -} // namespace Kernel \ No newline at end of file +*/ -- cgit v1.2.3