From 9e746d42d2e3faa526f12ba222f5ee6924dd30f9 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Fri, 26 Dec 2025 10:08:33 +0100 Subject: feat! breaking API changes, use header guards and libSystem fixes. Signed-off-by: Amlal El Mahrouss --- src/kernel/StorageKit/AHCI.h | 5 ++++- src/kernel/StorageKit/ATA.h | 5 ++++- src/kernel/StorageKit/NVME.h | 5 ++++- src/kernel/StorageKit/PRDT.h | 5 ++++- src/kernel/StorageKit/SCSI.h | 5 ++++- src/kernel/StorageKit/StorageKit.h | 5 ++++- 6 files changed, 24 insertions(+), 6 deletions(-) (limited to 'src/kernel/StorageKit') diff --git a/src/kernel/StorageKit/AHCI.h b/src/kernel/StorageKit/AHCI.h index d29cb0fc..fa74a0f4 100644 --- a/src/kernel/StorageKit/AHCI.h +++ b/src/kernel/StorageKit/AHCI.h @@ -4,7 +4,8 @@ ======================================== */ -#pragma once +#ifndef STORAGEKIT_AHCI_H +#define STORAGEKIT_AHCI_H #include #include @@ -45,3 +46,5 @@ class AHCIDeviceInterface NE_DEVICE { UInt16 sk_init_ahci_device(BOOL atapi); ErrorOr sk_acquire_ahci_device(UInt32 drv_index); } // namespace Kernel + +#endif diff --git a/src/kernel/StorageKit/ATA.h b/src/kernel/StorageKit/ATA.h index 729cf4f7..3b33a97d 100644 --- a/src/kernel/StorageKit/ATA.h +++ b/src/kernel/StorageKit/ATA.h @@ -4,7 +4,8 @@ ======================================== */ -#pragma once +#ifndef STORAGEKIT_ATA_H +#define STORAGEKIT_ATA_H #include #include @@ -54,3 +55,5 @@ BOOL sk_init_ata_device(BOOL is_master, UInt16& io, UInt8& master); /// @return A wrapped device interface if successful, or error code. ErrorOr sk_acquire_ata_device(Int32 drv_index); } // namespace Kernel + +#endif diff --git a/src/kernel/StorageKit/NVME.h b/src/kernel/StorageKit/NVME.h index 3a4ced1e..80b1630a 100644 --- a/src/kernel/StorageKit/NVME.h +++ b/src/kernel/StorageKit/NVME.h @@ -4,7 +4,8 @@ ======================================== */ -#pragma once +#ifndef STORAGEKIT_NVME_H +#define STORAGEKIT_NVME_H #include #include @@ -29,3 +30,5 @@ class NVMEDeviceInterface final NE_DEVICE { Void (*fCleanup)(Void) = {nullptr}; }; } // namespace Kernel + +#endif diff --git a/src/kernel/StorageKit/PRDT.h b/src/kernel/StorageKit/PRDT.h index 44eb11be..0b0ce32e 100644 --- a/src/kernel/StorageKit/PRDT.h +++ b/src/kernel/StorageKit/PRDT.h @@ -4,7 +4,8 @@ ======================================== */ -#pragma once +#ifndef STORAGEKIT_PRDT_H +#define STORAGEKIT_PRDT_H #include #include @@ -31,3 +32,5 @@ void construct_prdt(Ref& prd); EXTERN_C Int32 kPRDTTransferStatus; } // namespace Kernel + +#endif diff --git a/src/kernel/StorageKit/SCSI.h b/src/kernel/StorageKit/SCSI.h index 3354a678..83395e0e 100644 --- a/src/kernel/StorageKit/SCSI.h +++ b/src/kernel/StorageKit/SCSI.h @@ -4,7 +4,8 @@ ======================================== */ -#pragma once +#ifndef STORAGEKIT_SCSI_H +#define STORAGEKIT_SCSI_H #include #include @@ -27,3 +28,5 @@ class SCSIDeviceInterface final NE_DEVICE { Void (*fCleanup)(Void) = {nullptr}; }; } // namespace Kernel + +#endif diff --git a/src/kernel/StorageKit/StorageKit.h b/src/kernel/StorageKit/StorageKit.h index d7a1b6e9..87dd346e 100644 --- a/src/kernel/StorageKit/StorageKit.h +++ b/src/kernel/StorageKit/StorageKit.h @@ -4,7 +4,8 @@ ======================================== */ -#pragma once +#ifndef STORAGEKIT_STORAGEKIT_H +#define STORAGEKIT_STORAGEKIT_H #define kDriveSectorSizeHDD (512U) #define kDriveSectorSizeSSD (512U) @@ -19,3 +20,5 @@ class AHCIDeviceInterface; class ATADeviceInterface; class SCSIDeviceInterface; } // namespace Kernel + +#endif -- cgit v1.2.3