summaryrefslogtreecommitdiffhomepage
path: root/dev/hpfs
diff options
context:
space:
mode:
Diffstat (limited to 'dev/hpfs')
-rw-r--r--dev/hpfs/.gitignore3
-rw-r--r--dev/hpfs/ReadMe.md9
-rw-r--r--dev/hpfs/epm/blob.json6
-rw-r--r--dev/hpfs/epm/ebs.i29
-rw-r--r--dev/hpfs/epm/epm.asm37
-rw-r--r--dev/hpfs/hpfs.json22
-rw-r--r--dev/hpfs/hpfs_specs.h31
-rw-r--r--dev/hpfs/src/hpfs_main.cc29
8 files changed, 0 insertions, 166 deletions
diff --git a/dev/hpfs/.gitignore b/dev/hpfs/.gitignore
deleted file mode 100644
index 6f675898..00000000
--- a/dev/hpfs/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-*.sys
-*.exe
-*.dll \ No newline at end of file
diff --git a/dev/hpfs/ReadMe.md b/dev/hpfs/ReadMe.md
deleted file mode 100644
index 53778988..00000000
--- a/dev/hpfs/ReadMe.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# High Performance File System.
-
-Filesystem driver for the HPFS specification.
-
-## Installation
-
-- Use BTB to build filesystem and partition blobs.
-
-###### Copyright ZKA Web Services Co. All rights reserved.
diff --git a/dev/hpfs/epm/blob.json b/dev/hpfs/epm/blob.json
deleted file mode 100644
index 4b1905b5..00000000
--- a/dev/hpfs/epm/blob.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "compiler_path": "nasm",
- "sources_path": ["epm.asm"],
- "output_name": "bl.bin",
- "compiler_flags": ["-f bin"]
-}
diff --git a/dev/hpfs/epm/ebs.i b/dev/hpfs/epm/ebs.i
deleted file mode 100644
index c486f463..00000000
--- a/dev/hpfs/epm/ebs.i
+++ /dev/null
@@ -1,29 +0,0 @@
-;; FILE: EBS.asm
-;; PURPOSE: EXPLICIT BOOT SECTOR STRUCTURE (HPFS RELATED).
-;; AUTHOR: AMLAL EL MAHROUSS
-
-[bits 64]
-
-;; DUMP THIS BLOB TO DISK, WHEN FORMATTING THE SSD.
-
-HPFS_EBS_HEADER:
- db " HPFS", 0 ;; MAGIC NUMBER OF FILESYSTEM
- dw 8 ;; MAGIC NUMBER LENGTH.
- dq 0 ;; RESERVED 4
- dw 0x0100 ;; VERSION
- dw 0 ;; PARTITION TYPE
- dq 0 ;; RESERVED 3
- dw 0 ;; DISK TYPE (INVALID = 0, CDROM = 1, SSD = 2, USB = 3)
- dw 0 ;; CHECKSUM OF PARTITION
- dw 0 ;; IS IT LOCKED? (DISK ENCRYPTION ON?)
- dq 0 ;; SECTOR COUNT
- dq 0 ;; RESERVED 2
- dq 512 ;; SECTOR SZ
- dq 0 ;; DISK SIZE
- dq 0 ;; RESERVED 1 SLOT
- dq 1 ;; LOCKER ON?
- dq 1 ;; PARTITION MAP TYPE (GPT, MBR, EPM)
- dq 16 ;; MASTER FILE TABLE
- dq 80 ;; MASTER TRACE TABLE
- dq 144 ;; MASTER DIRECTORY TABLE
- dw 0xFFFF ;; END OF HEADER WORD
diff --git a/dev/hpfs/epm/epm.asm b/dev/hpfs/epm/epm.asm
deleted file mode 100644
index 2197d2cd..00000000
--- a/dev/hpfs/epm/epm.asm
+++ /dev/null
@@ -1,37 +0,0 @@
-;; FILE: EBS.asm
-;; PURPOSE: EXPLICIT PARTITION MAP BOOT STRUCTURE (HPFS RELATED).
-;; AUTHOR: AMLAL EL MAHROUSS
-
-[bits 64]
-
-HPFS_EPM_HEADER:
- db "EPMAM", 0
- db "HPFS ", 0
-HPFS_EPM_UUID:
- dd 0
- dw 0
- db 0
- db 0
- db 0
- db 0
- db 0
- db 0
- db 0
- db 0
- dd 0xAD ;; EPM revision
- dd 0 ;; Number of blocks, set to 0 by default.
- dd 512 ;; Sector size, HPFS was made with drives in mind, so 512.
- dd 0
- dd 0
- dw 0x1f ;; NewOS (ZKA) present on partition.
- dd 1
- db "FileSystem (A:)", 0
- times 401 db 0
-HPFS_EPM_HEADER_END:
-
-
-%include "EBS.i"
-
-times 16 db 0
-
-;; Here the partition starts
diff --git a/dev/hpfs/hpfs.json b/dev/hpfs/hpfs.json
deleted file mode 100644
index a6f20f66..00000000
--- a/dev/hpfs/hpfs.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "compiler_path": "x86_64-w64-mingw32-g++",
- "compiler_std": "c++20",
- "headers_path": ["../"],
- "sources_path": ["src/*.cc"],
- "output_name": "hpfs.sys",
- "compiler_flags": [
- "-fPIC",
- "-ffreestanding",
- "-shared",
- "-fno-rtti",
- "-fno-exceptions",
- "-Wl,--subsystem=17"
- ],
- "cpp_macros": [
- "__HPFS_IMPL__",
- "__NEWOSKRNL__",
- "cHPFSVersion=0x0100",
- "cHPFSVersionHighest=0x0100",
- "cHPFSVersionLowest=0x0100"
- ]
-}
diff --git a/dev/hpfs/hpfs_specs.h b/dev/hpfs/hpfs_specs.h
deleted file mode 100644
index 3a6ef582..00000000
--- a/dev/hpfs/hpfs_specs.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/* -------------------------------------------
-
- Copyright ZKA Web Services Co.
-
- FILE: Defines.h
- PURPOSE: HPFS IFS defines.
-
-------------------------------------------- */
-
-#pragma once
-
-#include <ddk/ddk.h>
-
-#define kHPFSVersion 0x01000
-#define kHPFSMagic " HPFS"
-#define kHPFSMagicLen 8
-
-#define kHPFSMinimumDiskSize (gib_cast(64))
-
-/** @brief Drive type enum. */
-enum
-{
- kHPFSInvalidDrive,
- kHPFSCDROMDrive,
- kHPFSHDDDrive,
- kHPFSSSDDrive,
- kHPFSUSBDrive,
-};
-
-/** @brief Explicit Boot Sector structure. */
-struct HPFS_EXPLICIT_BOOT_SECTOR;
diff --git a/dev/hpfs/src/hpfs_main.cc b/dev/hpfs/src/hpfs_main.cc
deleted file mode 100644
index e65b03dc..00000000
--- a/dev/hpfs/src/hpfs_main.cc
+++ /dev/null
@@ -1,29 +0,0 @@
-/* -------------------------------------------
-
- Copyright ZKA Web Services Co.
-
- FILE: hpfs_main.cxx
- PURPOSE: HPFS IFS entrypoint.
-
-------------------------------------------- */
-
-#include <hpfs/hpfs_specs.h>
-
-static DDK_OBJECT_MANIFEST* kIfsObject = nullptr;
-
-/** @brief HPFS IFS main module function. */
-DK_EXTERN int32_t ModuleMain(void)
-{
- auto ifs_handle = KernelGetObject(0, "IFS_OBJECT");
-
- if (ifs_handle == nil)
- {
- return 1;
- }
-
- /// TODO: Register this IFS with necessary I/O functions...
-
- kIfsObject = ifs_handle;
-
- return 0;
-}