diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-01-03 09:58:24 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-01-03 09:58:24 +0100 |
| commit | cbfd279a1410e11d734edc99509a3e0c02dc6fcc (patch) | |
| tree | 9fdda9fed9bd39f5f0ad8f2ba8bf0820d7495cff /dev/Mod | |
| parent | 69b47cf75b49ffe571ab528497b30a2499d372cb (diff) | |
Worked on the AARCH64 HAL for TQ's boards, Add new spec in /doc/
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Mod')
| -rw-r--r-- | dev/Mod/MBCI/MBCI.h | 20 | ||||
| -rw-r--r-- | dev/Mod/MFlash/MFlash.h | 12 | ||||
| -rw-r--r-- | dev/Mod/NVME/NVME.h | 11 |
3 files changed, 15 insertions, 28 deletions
diff --git a/dev/Mod/MBCI/MBCI.h b/dev/Mod/MBCI/MBCI.h index dae14298..562953d4 100644 --- a/dev/Mod/MBCI/MBCI.h +++ b/dev/Mod/MBCI/MBCI.h @@ -1,6 +1,6 @@ /* ------------------------------------------- - Copyright (C) 2024, Theater Quality Corp, all rights reserved. + Copyright (C) 2024-2025, Theater Quality Corp, all rights reserved. ------------------------------------------- */ @@ -26,20 +26,6 @@ namespace Kernel { struct IMBCIHost; - struct IMBCIHostPacketFrame; - - /// @brief MBCI Packet frame header - struct PACKED IMBCIHostPacketFrame final - { - UInt32 Magic; - UInt32 HostId; - UInt32 Flags; - UInt32 VendorId; - UInt32 DeviceId; - UInt32 DeviceSpeed; - Bool Acknowledge; - Char Zero[kMBCIZeroSz]; - }; enum { @@ -49,7 +35,7 @@ namespace Kernel kMBCISpeedDeviceCount, }; - /// @brief MBCI Host Interface header. + /// @brief MBCI Host header. struct PACKED IMBCIHost final { UInt32 Magic; @@ -92,7 +78,7 @@ namespace Kernel }; /// @brief An AuthKey is a context used to decrpy data from an MBCI packet. - typedef UInt64 MBCIAuthyKeyType; + typedef UInt64 MBCIAuthKeyType; } // namespace Kernel #endif // ifndef _INC_MODULE_MBCI_H_ diff --git a/dev/Mod/MFlash/MFlash.h b/dev/Mod/MFlash/MFlash.h index 5942353a..33e56a2b 100644 --- a/dev/Mod/MFlash/MFlash.h +++ b/dev/Mod/MFlash/MFlash.h @@ -10,12 +10,12 @@ #include <NewKit/Defines.h> -/// @brief get sector count. -/// @return drive sector count. -Kernel::SizeT drv_get_sector_count(); +Kernel::SizeT drv_get_sector_count(Kernel::Int32 slot); -/// @brief get device size. -/// @return drive size -Kernel::SizeT drv_get_size(); +Kernel::SizeT drv_get_size(Kernel::Int32 slot); + +Kernel::Void drv_enable_at(Kernel::Int32 slot); + +Kernel::Void drv_disable_at(Kernel::Int32 slot); #endif // ifdef ZKA_USE_MBCI_FLASH diff --git a/dev/Mod/NVME/NVME.h b/dev/Mod/NVME/NVME.h index 6d327bd7..73ca0d7e 100644 --- a/dev/Mod/NVME/NVME.h +++ b/dev/Mod/NVME/NVME.h @@ -5,7 +5,7 @@ Revision History: ??/??/24: Added file (amlel) - 23 Jul 24: Update filename to Defines.h and using ALIGN_NVME for NVME structs. (amlel) + 23 Jul 24: Update filename to Defines.h and using ZKA_ALIGN_NVME for NVME structs. (amlel) ------------------------------------------- */ @@ -14,13 +14,14 @@ #include <NewKit/Defines.h> -/// TODO: checklist in: https://wiki.osdev.org/NVMe +/// @file NVME.h +/// @brief NVME driver. -#define ALIGN_NVME ATTRIBUTE(aligned(sizeof(Kernel::UInt32))) +#define ZKA_ALIGN_NVME ATTRIBUTE(aligned(sizeof(Kernel::UInt32))) namespace Kernel { - struct ALIGN_NVME HAL_NVME_BAR_0 final + struct ZKA_ALIGN_NVME HAL_NVME_BAR_0 final { UInt32 fCapabilities; UInt32 fVersion; @@ -33,7 +34,7 @@ namespace Kernel UInt32 fAdminCompletionQueue; }; - struct ALIGN_NVME HAL_NVME_QUEUE final + struct ZKA_ALIGN_NVME HAL_NVME_QUEUE final { UInt32 fOpcode; UInt32 fNSID; |
