summaryrefslogtreecommitdiffhomepage
path: root/Private/Tools
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-29 09:05:36 +0100
committerAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-29 09:05:36 +0100
commitb7f2a078b4284c3adc253f40bc54e733d27b6bd6 (patch)
tree9eb5c6c0501278bcf1615ba59e7bb25a63bd4f1b /Private/Tools
parent375fa68692447f6806264fc0339d26b691e2a1bb (diff)
HCoreKrnl: Start work on AHCI support. to add HCFS,EPM,GPT support to
the kernel. Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Private/Tools')
-rw-r--r--Private/Tools/disk_api.h29
-rw-r--r--Private/Tools/make_hcfs.c (renamed from Private/Tools/PartTool.cxx)8
2 files changed, 32 insertions, 5 deletions
diff --git a/Private/Tools/disk_api.h b/Private/Tools/disk_api.h
new file mode 100644
index 00000000..27a446c2
--- /dev/null
+++ b/Private/Tools/disk_api.h
@@ -0,0 +1,29 @@
+/* -------------------------------------------
+
+ Copyright Mahrouss Logic
+ all rights reserved.
+
+ File: Disk.hxx
+
+------------------------------------------- */
+
+#pragma once
+
+#ifdef __cplusplus
+extern "C" {
+#endif // __cplusplus
+
+#include <stdio.h>
+#include <stdint.h>
+
+#ifdef __cplusplus
+};
+#endif // __cplusplus
+
+typedef struct __sDISK
+{
+ FILE* fFile;
+ int32_t fDiskFilesystem;
+ uintptr_t fDiskCursor;
+ size_t fDiskSize;
+} DISK, *PDISK;
diff --git a/Private/Tools/PartTool.cxx b/Private/Tools/make_hcfs.c
index dd84cfb2..273cd0fc 100644
--- a/Private/Tools/PartTool.cxx
+++ b/Private/Tools/make_hcfs.c
@@ -16,12 +16,10 @@
/// @brief NewFS partition program.
/***********************************************************************************/
-#include <ConOut.hxx>
+#include <disk_api.h>
-int main() {
- HCore::cout
- << "PartTool: build a NewFS partition image from a directory!\n"
- << "Copyright Mahrouss Logic, all rights reserved. (INTERNAL TOOL)\n";
+int main(void) {
+ printf("%s\n", "makeHCFS, brought to you by Amlal El Mahrouss.");
return 0;
}