From 724abb2fb5332d40f0067053dc81ea6101db3f11 Mon Sep 17 00:00:00 2001 From: aaron Date: Mon, 9 Apr 2018 17:20:25 +0000 Subject: [PATCH] git-svn-id: https://spexeah.com:8443/svn/Asuro@434 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c --- src/driver/storage/FAT32.pas | 46 ++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 src/driver/storage/FAT32.pas diff --git a/src/driver/storage/FAT32.pas b/src/driver/storage/FAT32.pas new file mode 100644 index 00000000..c110db2e --- /dev/null +++ b/src/driver/storage/FAT32.pas @@ -0,0 +1,46 @@ +{ ************************************************ + * Asuro + * Unit: Drivers/storage/fat32 + * Description: fat32 file system driver + * + ************************************************ + * Author: Aaron Hance + * Contributors: + ************************************************ } + +unit fat32; + +interface + +uses + console, storagemanagement; + +procedure init; +procedure create_volume(disk : PStorage_Device; sectors : uint32; start : uint32); +function detect_volumes(disk : PStorage_Device) : APStorage_volume; + +implementation + +function load(ptr : void) : boolean; +begin + console.outputln('DUMMY DRIVER', 'LOADED.') +end; + +procedure init; +var + filesystem : TFilesystem; +begin + filesystem.sName:= 'FAT32'; + filesystem.writecallback:= write; + filesystem.readcallback:= read; +end; + +procedure read(volume : PStorage_volume; directory : pchar; byteCount : uint32; buffer : puint32); +begin +end; + +procedure write(volume : PStorage_volume; directory : pchar; byteCount : uint32; buffer : puint32); +begin +end; + +end. \ No newline at end of file