git-svn-id: https://spexeah.com:8443/svn/Asuro@434 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
parent
407c290a1c
commit
724abb2fb5
46
src/driver/storage/FAT32.pas
Normal file
46
src/driver/storage/FAT32.pas
Normal file
@ -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.
|
Loading…
x
Reference in New Issue
Block a user