summaryrefslogtreecommitdiffhomepage
path: root/dev/Mod/AHCI/AHCI.h
AgeCommit message (Collapse)Author
2025-03-23meta(kernel): Reworked repository's filesystem structure.Amlal El Mahrouss
Removing useless parts of the project too. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-03-18feat(AHCI, HAL): Improve AHCI error handling & optimize HAL initializationAmlal El Mahrouss
- Refactored `sk_acquire_ahci_device(Int32 drv_index)` to return `ErrorOr<AHCIDeviceInterface>` for proper error handling instead of returning a raw object. - Moved `sk_init_ahci_device(BOOL atapi)` into the `NeOS` namespace for better encapsulation. - Reduced `HbaMem::Ports` array size from `Ports[32]` to `Ports[1]` to optimize memory usage for single-port AHCI controllers. - Removed manual constructor initialization (`__CTOR_LIST__`, `__DTOR_LIST__`) from HAL, simplifying kernel startup. - Updated `hal_real_init()` to initialize AHCI storage (`sk_init_ahci_device(NO)`) before userland execution. - Refactored `hal_get_phys_address(void* virtual_address)` to use `VoidPtr` for type safety. - Fixed incorrect buffer size (`kSzIdent`) in AHCI driver initialization from `kib_cast(1)` to `512`, ensuring correct sector identification. - Removed redundant drive model string parsing logic. - Refactored AHCI PRD iteration loop to use `prd_i` instead of `i`, improving readability. - Optimized `drv_std_input_output` by simplifying wait loop logic. Overall, this commit improves AHCI error handling, reduces redundant initialization, optimizes memory usage, and cleans up HAL and storage code. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-03-14AHCI: Important tweaks.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-03-12ADD: Scheduler bug fixes, and working on deadlock prevention.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-03-11Many AHCI improvements and IPC tweaks.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-02-22New DeviceMgr, other APIs have been reworked as a result.Amlal
AHCI becomes the first module to be available in StorageKit. Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
2025-02-20NeOS: Namespace change from 'Kernel' to 'NeOS'Amlal
ADD: Start defining the Workstation's HPFS (High-Performance File System) Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
2025-02-16ADD: Many tweaks to the OS.Amlal
Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
2025-02-15ADD: Almost done on AHCI:Amlal
- Got the HBA to respond. - Got it to do some transfers. - Now debugging a GPF. Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
2025-02-11ADD: tweaks.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-02-11ADD: LibCFAmlal El Mahrouss
2025-02-10SATA.cc: It seems like the DMA is not working.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-02-08ADD: Tweaks and improvements on the Operating System.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-02-07ADD: Major tweaks and improvements on the kernel product.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-02-07ADD: VGA logging and tweaks.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-02-04ADD: Important refactors regarding NeKernel.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-02-03META: Update copyright year.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-01-31ADD: Disk Driver has been reverted, working on that version now.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-01-29Tweaks and improvements.Amlal
Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
2025-01-28ADD: Improvements on the AHCI driver.Amlal
Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
2025-01-27Bump and fixes.Amlal
Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
2025-01-25ADD: Better SATA driver, but not fully fixed yet.Amlal
Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
2025-01-24ADD: Open version, with important changes kept out.Amlal
Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>